diff --git a/packages/control/bat.py b/packages/control/bat.py index 6750ab10db..eedb3c63b2 100644 --- a/packages/control/bat.py +++ b/packages/control/bat.py @@ -29,7 +29,7 @@ def get_factory() -> Get: @dataclass class Set: - power_limit: float = field(default=0, metadata={"topic": "set/power_limit"}) + power_limit: float = field(default=None, metadata={"topic": "set/power_limit"}) def set_factory() -> Set: diff --git a/packages/control/bat_all.py b/packages/control/bat_all.py index ac0cbdc90e..ea4020dddd 100644 --- a/packages/control/bat_all.py +++ b/packages/control/bat_all.py @@ -294,7 +294,7 @@ def get_power_limit(self): return chargepoint_by_chargemodes = get_chargepoints_by_chargemodes(CONSIDERED_CHARGE_MODES_CHARGING) # Falls aktive Steuerung an und Fahrzeuge laden und kein Überschuss im System ist, - # dann Speichereistung begrenzen. + # dann Speicherleistung begrenzen. if (self.data.config.power_limit_mode != BatPowerLimitMode.NO_LIMIT.value and len(chargepoint_by_chargemodes) > 0 and data.data.cp_all_data.data.get.power > 100 and @@ -315,7 +315,7 @@ def get_power_limit(self): log.debug("Speicher-Leistung nicht begrenzen, " "da keine Ladepunkte in einem Lademodus mit Netzbezug sind.") elif data.data.cp_all_data.data.get.power <= 100: - log.debug("Speicher-Leistung nicht begrenzen, da kein Ladepunkt mit Netzubezug lädt.") + log.debug("Speicher-Leistung nicht begrenzen, da kein Ladepunkt mit Netzbezug lädt.") elif self.data.get.power_limit_controllable is False: log.debug("Speicher-Leistung nicht begrenzen, da keine regelbaren Speicher vorhanden sind.") elif self.data.get.power > 0: diff --git a/packages/control/chargepoint/chargepoint.py b/packages/control/chargepoint/chargepoint.py index 6ed200beee..8dedab09c4 100644 --- a/packages/control/chargepoint/chargepoint.py +++ b/packages/control/chargepoint/chargepoint.py @@ -20,6 +20,7 @@ from threading import Thread, Event import traceback from typing import Dict, Optional, Tuple +from fnmatch import fnmatch from control.algorithm.utils import get_medium_charging_current from control.chargelog import chargelog @@ -154,11 +155,18 @@ def _is_autolock_inactive(self) -> Tuple[bool, Optional[str]]: def _is_manual_lock_inactive(self) -> Tuple[bool, Optional[str]]: # Die Pro schickt je nach Timing auch nach Abstecken noch ein paar Zyklen den Tag. Dann darf der Ladepunkt # nicht wieder entsperrt werden. - if (self.data.get.rfid or - self.data.get.vehicle_id or - self.data.set.rfid) in self.template.data.valid_tags: - Pub().pub(f"openWB/set/chargepoint/{self.num}/set/manual_lock", False) - elif self.template.data.disable_after_unplug and self.data.get.plug_state is False: + + # Prüfung auf ein passendes Muster + # Vergleiche werden case-insensitive durchgeführt + # das vereinfacht die Eingabe, kann aber auch für falsche Treffer sorgen. + # 'fnmatch()' ist case-insensitive + for tag_id in self.template.data.valid_tags: + if ((self.data.get.rfid is not None and fnmatch(self.data.get.rfid, tag_id)) or + (self.data.get.vehicle_id is not None and fnmatch(self.data.get.vehicle_id, tag_id)) or + (self.data.set.rfid is not None and fnmatch(self.data.set.rfid, tag_id))): + Pub().pub(f"openWB/set/chargepoint/{self.num}/set/manual_lock", False) + # Wenn der Ladepunkt nach dem Abstecken gesperrt werden soll, und kein Fahrzeug angeschlossen ist wird gesperrt + if self.template.data.disable_after_unplug and self.data.get.plug_state is False: Pub().pub(f"openWB/set/chargepoint/{self.num}/set/manual_lock", True) if self.data.set.manual_lock: @@ -561,6 +569,7 @@ def hw_bidi_capable(self) -> BidiState: def set_phases(self, phases: int) -> int: charging_ev = self.data.set.charging_ev_data + phases = min(phases, self.get_max_phase_hw()) if phases != self.data.get.phases_in_use: # Wenn noch kein Eintrag im Protokoll erstellt wurde, wurde noch nicht geladen und die Phase kann noch diff --git a/packages/control/ev/ev.py b/packages/control/ev/ev.py index 91ed80bb12..ab74e2d326 100644 --- a/packages/control/ev/ev.py +++ b/packages/control/ev/ev.py @@ -354,7 +354,10 @@ def auto_phase_switch(self, delay)[1]) control_parameter.state = ChargepointState.PHASE_SWITCH_DELAY elif condition_msg: - log.debug(f"Keine Phasenumschaltung{condition_msg}") + if condition_msg == self.CURRENT_OUT_OF_NOMINAL_DIFFERENCE: + message = f"Keine Phasenumschaltung{condition_msg}" + else: + log.debug(f"Keine Phasenumschaltung{condition_msg}") else: if condition: # Timer laufen lassen diff --git a/packages/helpermodules/command.py b/packages/helpermodules/command.py index d75438229f..2c19972c8d 100644 --- a/packages/helpermodules/command.py +++ b/packages/helpermodules/command.py @@ -81,20 +81,15 @@ def _get_max_ids(self) -> None: max_id = default for topic, payload in received_topics.items(): if re.search(topic_str, topic) is not None: - try: - if id_topic == "autolock_plan": - for plan in payload["autolock"]["plans"]: - max_id = max(plan["id"], max_id) - elif id_topic == "charge_template_scheduled_plan": - for plan in payload["chargemode"]["scheduled_charging"]["plans"]: - max_id = max(plan["id"], max_id) - elif id_topic == "charge_template_time_charging_plan": - for plan in payload["time_charging"]["plans"]: - max_id = max(plan["id"], max_id) - except KeyError: - # überspringe Profile, die keinen Eintrag für Pläne haben. - # Da gab es einen Bug beim Kopieren. - pass + if id_topic == "autolock_plan": + for plan in payload["autolock"]["plans"]: + max_id = max(plan["id"], max_id) + elif id_topic == "charge_template_scheduled_plan": + for plan in payload["chargemode"]["scheduled_charging"]["plans"]: + max_id = max(plan["id"], max_id) + elif id_topic == "charge_template_time_charging_plan": + for plan in payload["time_charging"]["plans"]: + max_id = max(plan["id"], max_id) setattr(self, f'max_id_{id_topic}', max_id) Pub().pub("openWB/set/command/max_id/"+id_topic, max_id) for id_topic, topic_str, default in self.MAX_IDS["topic"]: @@ -261,15 +256,7 @@ def setup_added_chargepoint(): Pub().pub(f'openWB/chargepoint/{new_id}/set/manual_lock', False) {Pub().pub(f"openWB/chargepoint/{new_id}/get/"+k, v) for (k, v) in asdict(chargepoint.Get()).items()} charge_template = SubData.ev_charge_template_data[f"ct{SubData.ev_data['ev0'].data.charge_template}"] - for time_plan in charge_template.data.time_charging.plans: - Pub().pub(f'openWB/chargepoint/{new_id}/set/charge_template/time_charging/plans', - dataclass_utils.asdict(time_plan)) - for scheduled_plan in charge_template.data.chargemode.scheduled_charging.plans: - Pub().pub(f'openWB/chargepoint/{new_id}/set/charge_template/chargemode/scheduled_charging/plans', - scheduled_plan) charge_template = dataclass_utils.asdict(charge_template.data) - charge_template["chargemode"]["scheduled_charging"]["plans"].clear() - charge_template["time_charging"]["plans"].clear() Pub().pub(f'openWB/chargepoint/{new_id}/set/charge_template', charge_template) self.max_id_hierarchy = self.max_id_hierarchy + 1 Pub().pub("openWB/set/command/max_id/hierarchy", self.max_id_hierarchy) @@ -352,7 +339,7 @@ def removeChargepoint(self, connection_id: str, payload: dict) -> None: """ löscht ein Ladepunkt. """ if self.max_id_hierarchy < payload["data"]["id"]: - log.error( + pub_user_message( payload, connection_id, f'Die ID \'{payload["data"]["id"]}\' ist größer als die maximal vergebene ' f'ID \'{self.max_id_hierarchy}\'.', MessageType.ERROR) @@ -379,7 +366,7 @@ def addChargepointTemplate(self, connection_id: str, payload: dict) -> None: self.max_id_chargepoint_template) # if copying a template, copy autolock plans if "data" in payload and "copy" in payload["data"]: - for _, plan in data.data.cp_template_data[f'cpt{payload["data"]["copy"]}'].data.autolock.plans.items(): + for plan in data.data.cp_template_data[f'cpt{payload["data"]["copy"]}'].data.autolock.plans: new_plan = asdict(plan).copy() new_plan["id"] = self.max_id_autolock_plan + 1 Pub().pub(f'openWB/set/chargepoint/template/{new_id}/autolock/{new_plan["id"]}', new_plan) diff --git a/packages/helpermodules/create_debug.py b/packages/helpermodules/create_debug.py index 9c7682be2e..8c95b03813 100644 --- a/packages/helpermodules/create_debug.py +++ b/packages/helpermodules/create_debug.py @@ -173,7 +173,7 @@ def config_and_state(): "--| Counter_Max_Currents: " f"{component_data.data.config.max_currents}\n") else: - parsed_data += ("--| Counter_Type: Sonstiger Zähler\nCOUNTER_MAX_CURRENTS: " + parsed_data += ("--| Counter_Type: Sonstiger Zähler\n--| Counter_Max_Currents: " f"{component_data.data.config.max_currents}\n") parsed_data += (f"--| Counter_Power: {component_data.data.get.power/1000}kW\n" f"--| Counter_Currents: {component_data.data.get.currents}A\n" diff --git a/packages/helpermodules/logger.py b/packages/helpermodules/logger.py index 4993b403dc..2f5258dba4 100644 --- a/packages/helpermodules/logger.py +++ b/packages/helpermodules/logger.py @@ -334,12 +334,15 @@ def mb_to_bytes(megabytes: int) -> int: logging.getLogger("uModbus").setLevel(logging.WARNING) logging.getLogger("websockets").setLevel(logging.WARNING) - thread_errors_path = Path(Path(__file__).resolve().parents[2]/"ramdisk"/"thread_errors.log") + thread_errors_path = Path(RAMDISK_PATH+"thread_errors.log") with thread_errors_path.open("w") as f: f.write("") def threading_excepthook(args): - with open(RAMDISK_PATH+"thread_errors.log", "a") as f: + if thread_errors_path.exists() and thread_errors_path.stat().st_size > 10_000: + with thread_errors_path.open("w") as f: + f.write("") + with open(thread_errors_path, "a") as f: f.write("Uncaught exception in thread:\n") f.write(f"Type: {args.exc_type}\n") f.write(f"Value: {args.exc_value}\n") @@ -348,7 +351,10 @@ def threading_excepthook(args): threading.excepthook = threading_excepthook def handle_unhandled_exception(exc_type, exc_value, exc_traceback): - with open(RAMDISK_PATH+"thread_errors.log", "a") as f: + if thread_errors_path.exists() and thread_errors_path.stat().st_size > 10_000: + with thread_errors_path.open("w") as f: + f.write("") + with open(thread_errors_path, "a") as f: f.write("Uncaught exception:\n") f.write(f"Type: {exc_type}\n") f.write(f"Value: {exc_value}\n") diff --git a/packages/helpermodules/setdata.py b/packages/helpermodules/setdata.py index 10dc200d4e..2846b1db46 100644 --- a/packages/helpermodules/setdata.py +++ b/packages/helpermodules/setdata.py @@ -549,7 +549,8 @@ def process_chargepoint_get_topics(self, msg): self._validate_value(msg, int, [(0, 2)]) elif ("/get/evse_current" in msg.topic or "/get/max_evse_current" in msg.topic): - self._validate_value(msg, float, [(float("-inf"), 0), (0, 0), (6, 32), (600, 3200)]) + # AC-EVSE: 0, 6-32, 600-3200, DC-EVSE 0-500 + self._validate_value(msg, float, [(0, 3200)]) elif ("/get/version" in msg.topic or "/get/current_branch" in msg.topic or "/get/current_commit" in msg.topic): @@ -717,7 +718,7 @@ def process_general_topic(self, msg: mqtt.MQTTMessage): elif "openWB/set/general/chargemode_config/pv_charging/switch_off_threshold" in msg.topic: self._validate_value(msg, float) elif "openWB/set/general/chargemode_config/phase_switch_delay" in msg.topic: - self._validate_value(msg, int, [(5, 20)]) + self._validate_value(msg, int, [(5, 60)]) elif "openWB/set/general/chargemode_config/pv_charging/control_range" in msg.topic: self._validate_value(msg, int, collection=list) elif "openWB/set/general/chargemode_config/pv_charging/min_bat_soc" in msg.topic: diff --git a/packages/helpermodules/subdata.py b/packages/helpermodules/subdata.py index f07b62b436..f6855c393e 100644 --- a/packages/helpermodules/subdata.py +++ b/packages/helpermodules/subdata.py @@ -440,6 +440,9 @@ def process_chargepoint_topic(self, var: Dict[str, chargepoint.Chargepoint], msg if var["cp"+index].chargepoint.data.set.charging_ev > -1: Pub().pub(f'openWB/set/vehicle/{var["cp"+index].chargepoint.data.set.charging_ev}' '/get/force_soc_update', True) + elif var["cp"+index].chargepoint.data.set.charging_ev_prev > -1: + Pub().pub(f'openWB/set/vehicle/{var["cp"+index].chargepoint.data.set.charging_ev_prev}' + '/get/force_soc_update', True) self.set_json_payload_class(var["cp"+index].chargepoint.data.get, msg) elif (re.search("/chargepoint/[0-9]+/get/error_timestamp$", msg.topic) is not None and hasattr(var[f"cp{index}"].chargepoint.chargepoint_module, "client_error_context")): diff --git a/packages/helpermodules/update_config.py b/packages/helpermodules/update_config.py index b51e6dbf9c..f5ce2c377b 100644 --- a/packages/helpermodules/update_config.py +++ b/packages/helpermodules/update_config.py @@ -57,7 +57,7 @@ class UpdateConfig: - DATASTORE_VERSION = 93 + DATASTORE_VERSION = 94 valid_topic = [ "^openWB/bat/config/bat_control_permitted$", @@ -2425,3 +2425,93 @@ def upgrade(topic: str, payload) -> Optional[dict]: return {topic: payload} self._loop_all_received_topics(upgrade) self.__update_topic("openWB/system/datastore_version", 93) + + def upgrade_datastore_93(self) -> None: + # Pläne die keinen plans Key haben, id=None + max_id = -1 + none_id = False + for topic, payload in self.all_received_topics.items(): + if re.search("openWB/vehicle/template/charge_template/[0-9]+$", topic) is not None: + payload = decode_payload(payload) + try: + for plan in payload["chargemode"]["scheduled_charging"]["plans"]: + try: + max_id = max(plan["id"], max_id) + except TypeError: + if plan["id"] is None: + none_id = True + else: + raise TypeError(f"Plan {plan} hat keinen Key 'id' und ist kein NoneType.") + except KeyError: + payload["chargemode"]["scheduled_charging"].update({"plans": []}) + self.all_received_topics[topic] = json.dumps(payload, ensure_ascii=False).encode("utf-8") + Pub().pub(f"openWB/set/vehicle/template/charge_template/{get_index(topic)}", payload) + if none_id: + for topic, payload in self.all_received_topics.items(): + if re.search("openWB/vehicle/template/charge_template/[0-9]+$", topic) is not None: + payload = decode_payload(payload) + for plan in payload["chargemode"]["scheduled_charging"]["plans"]: + if plan["id"] is None: + plan["id"] = max_id + 1 + max_id += 1 + self.all_received_topics[topic] = json.dumps(payload, ensure_ascii=False).encode("utf-8") + Pub().pub(f"openWB/set/vehicle/template/charge_template/{get_index(topic)}", payload) + + max_id = -1 + none_id = False + for topic, payload in self.all_received_topics.items(): + if re.search("openWB/vehicle/template/charge_template/[0-9]+$", topic) is not None: + payload = decode_payload(payload) + try: + for plan in payload["time_charging"]["plans"]: + try: + max_id = max(plan["id"], max_id) + except TypeError: + if plan["id"] is None: + none_id = True + else: + raise TypeError(f"Plan {plan} hat keinen Key 'id' und ist kein NoneType.") + except KeyError: + payload["time_charging"].update({"plans": []}) + self.all_received_topics[topic] = json.dumps(payload, ensure_ascii=False).encode("utf-8") + Pub().pub(f"openWB/set/vehicle/template/charge_template/{get_index(topic)}", payload) + if none_id: + for topic, payload in self.all_received_topics.items(): + if re.search("openWB/vehicle/template/charge_template/[0-9]+$", topic) is not None: + payload = decode_payload(payload) + for plan in payload["time_charging"]["plans"]: + if plan["id"] is None: + plan["id"] = max_id + 1 + max_id += 1 + self.all_received_topics[topic] = json.dumps(payload, ensure_ascii=False).encode("utf-8") + Pub().pub(f"openWB/set/vehicle/template/charge_template/{get_index(topic)}", payload) + + max_id = -1 + none_id = False + for topic, payload in self.all_received_topics.items(): + if re.search("openWB/chargepoint/template/[0-9]+$", topic) is not None: + payload = decode_payload(payload) + try: + for plan in payload["autolock"]["plans"]: + try: + max_id = max(plan["id"], max_id) + except TypeError: + if plan["id"] is None: + none_id = True + else: + raise TypeError(f"Plan {plan} hat keinen Key 'id' und ist kein NoneType.") + except KeyError: + payload["autolock"].update({"plans": []}) + self.all_received_topics[topic] = json.dumps(payload, ensure_ascii=False).encode("utf-8") + Pub().pub(f"openWB/set/chargepoint/template/{get_index(topic)}", payload) + if none_id: + for topic, payload in self.all_received_topics.items(): + if re.search("openWB/chargepoint/template/[0-9]+$", topic) is not None: + payload = decode_payload(payload) + for plan in payload["autolock"]["plans"]: + if plan["id"] is None: + plan["id"] = max_id + 1 + max_id += 1 + self.all_received_topics[topic] = json.dumps(payload, ensure_ascii=False).encode("utf-8") + Pub().pub(f"openWB/set/chargepoint/template/{get_index(topic)}", payload) + self.__update_topic("openWB/system/datastore_version", 94) diff --git a/packages/modules/chargepoints/openwb_pro/chargepoint_module.py b/packages/modules/chargepoints/openwb_pro/chargepoint_module.py index 9a7d0767d2..5ae7fad614 100644 --- a/packages/modules/chargepoints/openwb_pro/chargepoint_module.py +++ b/packages/modules/chargepoints/openwb_pro/chargepoint_module.py @@ -63,10 +63,18 @@ def set_current(self, current: float) -> None: def get_values(self) -> None: with SingleComponentUpdateContext(self.fault_state): - chargepoint_state = self.request_values() - if chargepoint_state is not None: - # bei Fehler, aber Fehlezähler noch nicht abgelaufen, keine Werte mehr publishen. - self.store.set(chargepoint_state) + try: + chargepoint_state = self.request_values() + if chargepoint_state is not None: + # bei Fehler, aber Fehlezähler noch nicht abgelaufen, keine Werte mehr publishen. + self.store.set(chargepoint_state) + except Exception as e: + if self.client_error_context.error_counter_exceeded(): + chargepoint_state = ChargepointState(plug_state=False, charge_state=False, imported=None, + # bei im-/exported None werden keine Werte gepublished + exported=None, phases_in_use=0, power=0, currents=[0]*3) + self.store.set(chargepoint_state) + raise e def request_values(self) -> ChargepointState: with self.client_error_context: @@ -113,15 +121,6 @@ def request_values(self) -> ChargepointState: self.validate_values(chargepoint_state) self.client_error_context.reset_error_counter() return chargepoint_state - if self.client_error_context.error_counter_exceeded(): - chargepoint_state = ChargepointState() - chargepoint_state.plug_state = False - chargepoint_state.charge_state = False - chargepoint_state.imported = None # bei None werden keine Werte gepublished - chargepoint_state.exported = None - return chargepoint_state - else: - return None def validate_values(self, chargepoint_state: ChargepointState) -> None: if chargepoint_state.charge_state is False and max(chargepoint_state.currents) > 1: diff --git a/packages/modules/common/component_state.py b/packages/modules/common/component_state.py index ee856d4e22..7eb3ff5990 100644 --- a/packages/modules/common/component_state.py +++ b/packages/modules/common/component_state.py @@ -48,6 +48,15 @@ def _calculate_powers_and_currents(currents: Optional[List[Optional[float]]], return currents, powers, voltages +def check_currents_power_sign(currents: Optional[List[Optional[float]]], power: float) -> bool: + """Check if the sign of the sum of currents matches the power sign or both zero.""" + return any([ + sum(currents) < 0 and power < 0, + sum(currents) > 0 and power > 0, + sum(currents) == 0 and power == 0 + ]) + + @auto_str class BatState: def __init__( @@ -71,7 +80,7 @@ def __init__( if _check_none(currents): currents = [0.0]*3 else: - if not ((sum(currents) < 0 and power < 0) or (sum(currents) > 0 and power > 0)): + if not check_currents_power_sign(currents, power): log.debug("currents sign wrong "+str(currents)) self.currents = currents @@ -131,7 +140,7 @@ def __init__( if _check_none(currents): currents = [0.0]*3 else: - if not ((sum(currents) < 0 and power < 0) or (sum(currents) > 0 and power > 0)): + if not check_currents_power_sign(currents, power): log.debug("currents sign wrong "+str(currents)) self.currents = currents self.power = power diff --git a/packages/modules/common/hardware_check.py b/packages/modules/common/hardware_check.py index 420c1f2958..b43d9200e6 100644 --- a/packages/modules/common/hardware_check.py +++ b/packages/modules/common/hardware_check.py @@ -17,16 +17,11 @@ "Bitte den openWB series2 satellit stromlos machen.") METER_PROBLEM = "Der Zähler konnte nicht ausgelesen werden. Vermutlich ist der Zähler falsch konfiguriert oder defekt." METER_BROKEN_VOLTAGES = "Die Spannungen des Zählers konnten nicht korrekt ausgelesen werden: {}V Der Zähler ist defekt." -METER_VOLTAGE = "Die Spannung des Zählers ist zu {}. Bitte prüfen Sie die Spannungsversorgung. Spannung: {}V." -METER_VOLTAGE_TOO_HIGH = METER_VOLTAGE.format("hoch", "{}") -METER_VOLTAGE_TOO_LOW = METER_VOLTAGE.format("niedrig", "{}") METER_NO_SERIAL_NUMBER = ("Die Seriennummer des Zählers für das Ladelog kann nicht ausgelesen werden. Wenn Sie die " "Seriennummer für Abrechnungszwecke benötigen, wenden Sie sich bitte an unseren Support. Die " "Funktionalität wird dadurch nicht beeinträchtigt!") EVSE_BROKEN = ("Auslesen der EVSE nicht möglich. Vermutlich ist die EVSE defekt oder hat eine unbekannte Modbus-ID. " "(Fehlermeldung nur relevant, wenn diese auf der Startseite oder im Status angezeigt wird.)") -METER_IMPLAUSIBLE_VALUE = ("Der Zähler hat einen unplausiblen Wert zurückgegeben: Leistungen {}W, Ströme {}A, " - "Spannungen {}V.") def check_meter_values(counter_state: CounterState, fault_state: Optional[FaultState] = None) -> None: @@ -36,27 +31,14 @@ def check_meter_values(counter_state: CounterState, fault_state: Optional[FaultS def _check_meter_values(counter_state: CounterState) -> Optional[str]: - VOLTAGE_HIGH_THRESHOLD = 260 - VOLTAGE_LOW_THRESHOLD = 200 - VOLTAGE_DETECTED_THRESHOLD = 50 # Phasenaufall detektieren - - def valid_voltage(voltage) -> bool: - return VOLTAGE_LOW_THRESHOLD < voltage < VOLTAGE_HIGH_THRESHOLD + # Nur prüfen, dass keine Phase ausgefallen ist + # Es gibt einige Fälle, in denen die Normtoleranzen der Netzspannung nicht eingehalten werden, aber kein Defekt + # vorliegt und der Kunde nicht eingreifen muss. Dann soll keine Warnung angezeigt werden. + # Kona 1-phasig induziert auf L2 40V, Zoe auf L2 130V + # beim Ladestart sind Strom und Spannung nicht immer konsistent. voltages = counter_state.voltages - # wenn ein Wert in voltages großer VOLTAGE_HIGH_THRESHOLD ist, gebe eine Fehlermeldung zurück - if any(v > VOLTAGE_HIGH_THRESHOLD and v > VOLTAGE_DETECTED_THRESHOLD for v in voltages): - return METER_VOLTAGE_TOO_HIGH.format(voltages) - elif any(v < VOLTAGE_LOW_THRESHOLD and v > VOLTAGE_DETECTED_THRESHOLD for v in voltages): - return METER_VOLTAGE_TOO_LOW.format(voltages) - if not ((valid_voltage(voltages[0]) and voltages[1] == 0 and voltages[2] == 0) or - # Zoe lädt einphasig an einphasiger Wallbox und erzeugt Spannung auf L2 (ca 126V) - (valid_voltage(voltages[0]) and 115 < voltages[1] < 135 and voltages[2] == 0) or - (valid_voltage(voltages[0]) and valid_voltage(voltages[1]) and voltages[2] == 0) or - (valid_voltage(voltages[0]) and valid_voltage(voltages[1]) and valid_voltage((voltages[2])))): + if (voltages[1] == 0 and voltages[2] > 30) or voltages[0] == 0: return METER_BROKEN_VOLTAGES.format(voltages) - if ((sum(counter_state.currents) < 0.5 and counter_state.power > 230) or - (sum(counter_state.currents) > 1 and counter_state.power < 100)): - return METER_IMPLAUSIBLE_VALUE.format(counter_state.powers, counter_state.currents, counter_state.voltages) return None diff --git a/packages/modules/common/hardware_check_test.py b/packages/modules/common/hardware_check_test.py index cde1b270dc..d4d2b13e44 100644 --- a/packages/modules/common/hardware_check_test.py +++ b/packages/modules/common/hardware_check_test.py @@ -8,8 +8,8 @@ from modules.common.component_state import CounterState, EvseState from modules.common.evse import Evse from modules.common.hardware_check import ( - EVSE_BROKEN, LAN_ADAPTER_BROKEN, METER_BROKEN_VOLTAGES, METER_IMPLAUSIBLE_VALUE, METER_NO_SERIAL_NUMBER, - METER_PROBLEM, METER_VOLTAGE_TOO_HIGH, METER_VOLTAGE_TOO_LOW, OPEN_TICKET, USB_ADAPTER_BROKEN, + EVSE_BROKEN, LAN_ADAPTER_BROKEN, METER_BROKEN_VOLTAGES, METER_NO_SERIAL_NUMBER, + METER_PROBLEM, OPEN_TICKET, USB_ADAPTER_BROKEN, SeriesHardwareCheckMixin, _check_meter_values) from modules.common.modbus import NO_CONNECTION, ModbusSerialClient_, ModbusTcpClient_ from modules.conftest import SAMPLE_IP, SAMPLE_PORT @@ -98,8 +98,6 @@ def test_hardware_check_succeeds(monkeypatch): pytest.param([0, 230, 230], 0, METER_BROKEN_VOLTAGES.format([0, 230, 230]), id="dreiphasig, L1 defekt"), pytest.param([230, 0, 230], 0, METER_BROKEN_VOLTAGES.format([230, 0, 230]), id="dreiphasig, L2 defekt"), pytest.param([230]*3, 100, METER_PROBLEM, id="Phantom-Leistung"), - pytest.param([261, 230, 230], 0, METER_VOLTAGE_TOO_HIGH.format([261, 230, 230]), id="Spannung zu hoch"), - pytest.param([230, 230, 199], 0, METER_VOLTAGE_TOO_LOW.format([230, 230, 199]), id="Spannung zu niedrig"), ] ) def test_check_meter_values_voltages(voltages, power, expected_msg, monkeypatch): @@ -112,29 +110,6 @@ def test_check_meter_values_voltages(voltages, power, expected_msg, monkeypatch) assert msg == expected_msg if expected_msg is None else expected_msg.format(voltages) -@pytest.mark.parametrize( - "currents, power, expected_msg", - [pytest.param([0.4, 0, 0], -80, None, id="Kriechströme"), - pytest.param([1, 0, 0], 0, METER_IMPLAUSIBLE_VALUE.format([0]*3, [1, 0, 0], [230]*3), - id="zu hoher positiver Strom"), - pytest.param([0, -1, 0], 0, METER_IMPLAUSIBLE_VALUE.format([0]*3, [0, -1, 0], [230]*3), - id="zu hoher negativer Strom"), - pytest.param([0.1, 0, 0], 120, METER_IMPLAUSIBLE_VALUE.format([40]*3, [0.1, 5, 0], [230]*3), - id="zu niedriger Strom bei Leistung"), - ] -) -def test_check_meter_values_powers(currents, power, expected_msg, monkeypatch): - # setup - counter_state = Mock(spec=CounterState, voltages=[230]*3, currents=currents, powers=[power/3]*3, power=power) - # execution - msg = _check_meter_values(counter_state) - - # assert - assert msg == expected_msg if expected_msg is None else expected_msg.format(counter_state.powers, - counter_state.currents, - counter_state.voltages) - - @patch('modules.common.hardware_check.ClientHandlerProtocol') @pytest.mark.parametrize("serial_number, voltages, expected", [("0", [230]*3, (True, METER_NO_SERIAL_NUMBER, CounterState)), diff --git a/packages/modules/devices/sonnen/sonnenbatterie/api.py b/packages/modules/devices/sonnen/sonnenbatterie/api.py index f0bc51680d..462e486cb1 100644 --- a/packages/modules/devices/sonnen/sonnenbatterie/api.py +++ b/packages/modules/devices/sonnen/sonnenbatterie/api.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +import logging from enum import Enum from typing import Dict, List, Optional, TypedDict, Union from modules.common import req @@ -6,6 +7,9 @@ from modules.common.simcount import SimCounter +log = logging.getLogger(__name__) + + class RestApi1(): def __init__(self, host: str) -> None: self.host = host @@ -351,7 +355,7 @@ def update_battery(self, sim_counter: SimCounter) -> BatState: # the current is calculated as apparent power / voltage battery_ac_voltage = battery_state["Uac"] currents = [float(battery_state[f"Sac{phase}"]) / battery_ac_voltage - if battery_state[f"Sac{phase}"] else None + if battery_state.get(f"Sac{phase}") else None for phase in range(1, 4)] imported, exported = sim_counter.sim_count(battery_power) return BatState(power=battery_power, @@ -434,11 +438,13 @@ def set_power_limit(self, power_limit: Optional[int]) -> None: if self.default_operating_mode is None: # Store the default operating mode for later restoration self.default_operating_mode = self.OperatingMode(configurations["EM_OperatingMode"]) + log.debug(f"default_operating_mode set to: {self.default_operating_mode}") + operating_mode = self.OperatingMode(configurations["EM_OperatingMode"]) if power_limit is None: # No specific power limit is set, activating default mode to allow the system to optimize energy usage by it # self. - if operating_mode == self.OperatingMode.MANUAL: + if operating_mode == self.OperatingMode.MANUAL and self.default_operating_mode != self.OperatingMode.MANUAL: self.__set_configurations({"EM_OperatingMode": self.default_operating_mode.value}) else: # Activate "Manual" operating mode to allow direct control of the power limit diff --git a/packages/modules/devices/sungrow/sungrow/bat.py b/packages/modules/devices/sungrow/sungrow/bat.py index 86c145e6cd..5267f21774 100644 --- a/packages/modules/devices/sungrow/sungrow/bat.py +++ b/packages/modules/devices/sungrow/sungrow/bat.py @@ -10,8 +10,7 @@ from modules.common.simcount import SimCounter from modules.common.store import get_bat_value_store from modules.devices.sungrow.sungrow.config import SungrowBatSetup, Sungrow -from modules.devices.sungrow.sungrow.version import Version -from modules.devices.sungrow.sungrow.firmware import Firmware +from modules.devices.sungrow.sungrow.registers import RegMode log = logging.getLogger(__name__) @@ -33,52 +32,70 @@ def initialize(self) -> None: self.store = get_bat_value_store(self.component_config.id) self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config)) self.last_mode = 'Undefined' - self.firmware_check = self.check_firmware_register() + self.register_check = self.detect_register_check() - def check_firmware_register(self) -> bool: - if Firmware(self.device_config.configuration.firmware) == Firmware.v1: - return False + def detect_register_check(self) -> RegMode: + # Battery register availability test unit = self.device_config.configuration.modbus_id + try: self.__tcp_client.read_input_registers(5213, ModbusDataType.INT_32, wordorder=Endian.Little, unit=unit) - log.debug("Wechselrichter Firmware ist größer gleich 95.09") - return True + self.__tcp_client.read_input_registers(5630, ModbusDataType.INT_16, unit=unit) + log.debug("Battery register check: using new_registers (5213/5630).") + return RegMode.NEW_REGISTERS + except Exception: + pass + + try: + self.__tcp_client.read_input_registers(13000, ModbusDataType.UINT_16, unit=unit) + log.debug("Battery register check: using old_registers (13021 + 13000 bits for sign).") + return RegMode.OLD_REGISTERS except Exception: - log.debug("Wechselrichter Firmware ist kleiner als 95.09") - return False + pass + + log.debug("Battery register check: using fallback (13021 + total vs PV power).") + return RegMode.FALLBACK def update(self) -> None: unit = self.device_config.configuration.modbus_id - soc = int(self.__tcp_client.read_input_registers(13022, ModbusDataType.UINT_16, unit=unit) / 10) - version = Version(self.device_config.configuration.version) - - if Firmware(self.device_config.configuration.firmware) == Firmware.v2: - if self.firmware_check: # Firmware >= 95.09 - bat_current = self.__tcp_client.read_input_registers(5630, ModbusDataType.INT_16, unit=unit) * -0.1 - bat_power = self.__tcp_client.read_input_registers(5213, ModbusDataType.INT_32, - wordorder=Endian.Little, unit=unit) * -1 - else: # Firmware between 95.03 and 95.09 - bat_current = self.__tcp_client.read_input_registers(13020, ModbusDataType.INT_16, unit=unit) * -0.1 - if version == Version.SH: - bat_power = self.__tcp_client.read_input_registers(13021, ModbusDataType.INT_16, unit=unit) - elif version == Version.SH_winet_dongle: - bat_power = self.__tcp_client.read_input_registers(13021, ModbusDataType.UINT_16, unit=unit) - total_power = self.__tcp_client.read_input_registers(13033, ModbusDataType.INT_32, - wordorder=Endian.Little, unit=unit) - pv_power = self.__tcp_client.read_input_registers(5016, ModbusDataType.UINT_32, - wordorder=Endian.Little, unit=unit) - if total_power > pv_power: - bat_power = bat_power * -1 - else: # Firmware.v1 (Firmware < 95.03) + + # === Mode 1: new_registers === + if self.register_check == RegMode.NEW_REGISTERS: + bat_current = self.__tcp_client.read_input_registers(5630, ModbusDataType.INT_16, unit=unit) * -0.1 + bat_power = self.__tcp_client.read_input_registers(5213, ModbusDataType.INT_32, + wordorder=Endian.Little, unit=unit) * -1 + + # === Mode 2: old_registers === + elif self.register_check == RegMode.OLD_REGISTERS: bat_current = self.__tcp_client.read_input_registers(13020, ModbusDataType.INT_16, unit=unit) * -0.1 bat_power = self.__tcp_client.read_input_registers(13021, ModbusDataType.UINT_16, unit=unit) - if version in (Version.SH, Version.SH_winet_dongle): - resp = self.__tcp_client._delegate.read_input_registers(13000, 1, unit=unit) - binary = bin(resp.registers[0])[2:].zfill(8) - if binary[5] == "1": - bat_power = bat_power * -1 + + resp = self.__tcp_client._delegate.read_input_registers(13000, 1, unit=unit) + running_state = resp.registers[0] + is_charging = (running_state & 0x02) != 0 + is_discharging = (running_state & 0x04) != 0 + + if is_discharging: + bat_power = -abs(bat_power) + elif is_charging: + bat_power = abs(bat_power) + + # === Mode 3: fallback === + else: + bat_current = self.__tcp_client.read_input_registers(13020, ModbusDataType.INT_16, unit=unit) * -0.1 + bat_power = self.__tcp_client.read_input_registers(13021, ModbusDataType.UINT_16, unit=unit) + + total_power = self.__tcp_client.read_input_registers(13033, ModbusDataType.INT_32, + wordorder=Endian.Little, unit=unit) + pv_power = self.__tcp_client.read_input_registers(5016, ModbusDataType.UINT_32, + wordorder=Endian.Little, unit=unit) + + if total_power > pv_power: + bat_power = -abs(bat_power) + else: + bat_power = abs(bat_power) currents = [bat_current / 3] * 3 diff --git a/packages/modules/devices/sungrow/sungrow/config.py b/packages/modules/devices/sungrow/sungrow/config.py index 9825fe3af4..bc112dd867 100644 --- a/packages/modules/devices/sungrow/sungrow/config.py +++ b/packages/modules/devices/sungrow/sungrow/config.py @@ -2,7 +2,6 @@ from modules.common.component_setup import ComponentSetup from modules.devices.sungrow.sungrow.version import Version -from modules.devices.sungrow.sungrow.firmware import Firmware from ..vendor import vendor_descriptor @@ -11,13 +10,11 @@ def __init__(self, ip_address: Optional[str] = None, port: int = 502, modbus_id: int = 1, - version: Version = Version.SG, - firmware: Firmware = Firmware.v1): + version: Version = Version.SG): self.ip_address = ip_address self.port = port self.modbus_id = modbus_id self.version = version - self.firmware = firmware class Sungrow: diff --git a/packages/modules/devices/sungrow/sungrow/firmware.py b/packages/modules/devices/sungrow/sungrow/firmware.py deleted file mode 100644 index b96018bf8b..0000000000 --- a/packages/modules/devices/sungrow/sungrow/firmware.py +++ /dev/null @@ -1,6 +0,0 @@ -from enum import Enum - - -class Firmware(Enum): - v1 = "v1" # bis 11/2024 - v2 = "v2" # ab 11/2024 diff --git a/packages/modules/devices/sungrow/sungrow/inverter.py b/packages/modules/devices/sungrow/sungrow/inverter.py index 791dc51744..a934e04315 100644 --- a/packages/modules/devices/sungrow/sungrow/inverter.py +++ b/packages/modules/devices/sungrow/sungrow/inverter.py @@ -38,20 +38,17 @@ def update(self) -> float: dc_power = self.__tcp_client.read_input_registers(5016, ModbusDataType.UINT_32, wordorder=Endian.Little, unit=unit) * -1 - current_L1 = self.__tcp_client.read_input_registers(13030, ModbusDataType.INT_16, unit=unit) * -0.1 - current_L2 = self.__tcp_client.read_input_registers(13031, ModbusDataType.INT_16, unit=unit) * -0.1 - current_L3 = self.__tcp_client.read_input_registers(13032, ModbusDataType.INT_16, unit=unit) * -0.1 - currents = [current_L1, current_L2, current_L3] - else: + currents = self.__tcp_client.read_input_registers(13030, [ModbusDataType.INT_16]*3, unit=unit) + currents = [value * -0.1 for value in currents] + + elif self.device_config.configuration.version in (Version.SG, Version.SG_winet_dongle): power = self.__tcp_client.read_input_registers(5030, ModbusDataType.INT_32, wordorder=Endian.Little, unit=unit) * -1 dc_power = self.__tcp_client.read_input_registers(5016, ModbusDataType.UINT_32, wordorder=Endian.Little, unit=unit) * -1 - current_L1 = self.__tcp_client.read_input_registers(5021, ModbusDataType.UINT_16, unit=unit) * -0.1 - current_L2 = self.__tcp_client.read_input_registers(5022, ModbusDataType.UINT_16, unit=unit) * -0.1 - current_L3 = self.__tcp_client.read_input_registers(5023, ModbusDataType.UINT_16, unit=unit) * -0.1 - currents = [current_L1, current_L2, current_L3] + currents = self.__tcp_client.read_input_registers(5021, [ModbusDataType.INT_16]*3, unit=unit) + currents = [value * -0.1 for value in currents] imported, exported = self.sim_counter.sim_count(power) diff --git a/packages/modules/devices/sungrow/sungrow/registers.py b/packages/modules/devices/sungrow/sungrow/registers.py new file mode 100644 index 0000000000..7c903cd2b7 --- /dev/null +++ b/packages/modules/devices/sungrow/sungrow/registers.py @@ -0,0 +1,7 @@ +from enum import Enum + + +class RegMode(Enum): + NEW_REGISTERS = "new_registers" + OLD_REGISTERS = "old_registers" + FALLBACK = "fallback" diff --git a/packages/modules/display_themes/cards/source/package-lock.json b/packages/modules/display_themes/cards/source/package-lock.json index 18811305d7..72bf1f1d83 100644 --- a/packages/modules/display_themes/cards/source/package-lock.json +++ b/packages/modules/display_themes/cards/source/package-lock.json @@ -29,17 +29,17 @@ "devDependencies": { "@rollup/plugin-terser": "^0.4.4", "@rushstack/eslint-patch": "^1.12.0", - "@vitejs/plugin-vue": "^5.2.4", + "@vitejs/plugin-vue": "^6.0.1", "@vue/eslint-config-prettier": "^10.2.0", "@vue/test-utils": "^2.4.6", - "eslint": "^9.32.0", + "eslint": "^9.33.0", "eslint-plugin-vue": "^10.4.0", "jsdom": "^26.1.0", "postcss": "^8.5.6", "postcss-preset-env": "^10.2.4", "prettier": "^3.6.2", "rollup-plugin-polyfill-node": "^0.13.0", - "sass": "^1.89.2", + "sass": "^1.90.0", "vite": "^5.4.19", "vite-plugin-node-polyfills": "^0.24.0", "vitest": "^3.2.4" @@ -78,12 +78,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", - "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.3.tgz", + "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==", "license": "MIT", "dependencies": { - "@babel/types": "^7.28.0" + "@babel/types": "^7.28.2" }, "bin": { "parser": "bin/babel-parser.js" @@ -93,9 +93,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.28.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.2.tgz", - "integrity": "sha512-KHp2IflsnGywDjBWDkR9iEqiWSpc8GIi0lgTT3mOElT0PP1tG26P4tmFI2YvAdzgq9RGyoHZQEIEdZy6Ec5xCA==", + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.3.tgz", + "integrity": "sha512-9uIQ10o0WGdpP6GDhXcdOJPJuDgFtIDtN/9+ArJQ2NAfAmiuhTQdzkaTGR33v43GYS2UrSA0eX2pPPHoFVvpxA==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -1739,9 +1739,9 @@ } }, "node_modules/@eslint/config-helpers": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", - "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", + "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", "dev": true, "license": "Apache-2.0", "engines": { @@ -1749,9 +1749,9 @@ } }, "node_modules/@eslint/core": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", - "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", + "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -1786,9 +1786,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.32.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz", - "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==", + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.33.0.tgz", + "integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==", "dev": true, "license": "MIT", "engines": { @@ -1809,13 +1809,13 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.4.tgz", - "integrity": "sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", + "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^0.15.1", + "@eslint/core": "^0.15.2", "levn": "^0.4.1" }, "engines": { @@ -1978,9 +1978,9 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.12", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", - "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "dev": true, "license": "MIT", "dependencies": { @@ -1999,9 +1999,9 @@ } }, "node_modules/@jridgewell/source-map": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.10.tgz", - "integrity": "sha512-0pPkgz9dY+bijgistcTTJ5mR+ocqRXLuhXHYdzoMmmoJ2C9S46RCm2GMUbatPEUK9Yjy26IrAy8D/M00lLkv+Q==", + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz", + "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==", "dev": true, "license": "MIT", "dependencies": { @@ -2010,15 +2010,15 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", - "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.29", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", - "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", + "version": "0.3.30", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", "dev": true, "license": "MIT", "dependencies": { @@ -2383,6 +2383,13 @@ "url": "https://opencollective.com/popperjs" } }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.29", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.29.tgz", + "integrity": "sha512-NIJgOsMjbxAXvoGq/X0gD7VPMQ8j9g0BiDaNjVNVjvl+iKXxL3Jre0v31RmBYeLEmkbj2s02v8vFTbUXi5XS2Q==", + "dev": true, + "license": "MIT" + }, "node_modules/@rollup/plugin-inject": { "version": "5.0.5", "resolved": "https://registry.npmjs.org/@rollup/plugin-inject/-/plugin-inject-5.0.5.tgz", @@ -2452,10 +2459,23 @@ } } }, + "node_modules/@rollup/pluginutils/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.46.2.tgz", - "integrity": "sha512-Zj3Hl6sN34xJtMv7Anwb5Gu01yujyE/cLBDB2gnHTAHaWS1Z38L7kuSG+oAh0giZMqG060f/YBStXtMH6FvPMA==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.46.3.tgz", + "integrity": "sha512-UmTdvXnLlqQNOCJnyksjPs1G4GqXNGW1LrzCe8+8QoaLhhDeTXYBgJ3k6x61WIhlHX2U+VzEJ55TtIjR/HTySA==", "cpu": [ "arm" ], @@ -2467,9 +2487,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.46.2.tgz", - "integrity": "sha512-nTeCWY83kN64oQ5MGz3CgtPx8NSOhC5lWtsjTs+8JAJNLcP3QbLCtDDgUKQc/Ro/frpMq4SHUaHN6AMltcEoLQ==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.46.3.tgz", + "integrity": "sha512-8NoxqLpXm7VyeI0ocidh335D6OKT0UJ6fHdnIxf3+6oOerZZc+O7r+UhvROji6OspyPm+rrIdb1gTXtVIqn+Sg==", "cpu": [ "arm64" ], @@ -2481,9 +2501,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.46.2.tgz", - "integrity": "sha512-HV7bW2Fb/F5KPdM/9bApunQh68YVDU8sO8BvcW9OngQVN3HHHkw99wFupuUJfGR9pYLLAjcAOA6iO+evsbBaPQ==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.46.3.tgz", + "integrity": "sha512-csnNavqZVs1+7/hUKtgjMECsNG2cdB8F7XBHP6FfQjqhjF8rzMzb3SLyy/1BG7YSfQ+bG75Ph7DyedbUqwq1rA==", "cpu": [ "arm64" ], @@ -2495,9 +2515,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.46.2.tgz", - "integrity": "sha512-SSj8TlYV5nJixSsm/y3QXfhspSiLYP11zpfwp6G/YDXctf3Xkdnk4woJIF5VQe0of2OjzTt8EsxnJDCdHd2xMA==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.46.3.tgz", + "integrity": "sha512-r2MXNjbuYabSIX5yQqnT8SGSQ26XQc8fmp6UhlYJd95PZJkQD1u82fWP7HqvGUf33IsOC6qsiV+vcuD4SDP6iw==", "cpu": [ "x64" ], @@ -2509,9 +2529,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.46.2.tgz", - "integrity": "sha512-ZyrsG4TIT9xnOlLsSSi9w/X29tCbK1yegE49RYm3tu3wF1L/B6LVMqnEWyDB26d9Ecx9zrmXCiPmIabVuLmNSg==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.46.3.tgz", + "integrity": "sha512-uluObTmgPJDuJh9xqxyr7MV61Imq+0IvVsAlWyvxAaBSNzCcmZlhfYcRhCdMaCsy46ccZa7vtDDripgs9Jkqsw==", "cpu": [ "arm64" ], @@ -2523,9 +2543,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.46.2.tgz", - "integrity": "sha512-pCgHFoOECwVCJ5GFq8+gR8SBKnMO+xe5UEqbemxBpCKYQddRQMgomv1104RnLSg7nNvgKy05sLsY51+OVRyiVw==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.46.3.tgz", + "integrity": "sha512-AVJXEq9RVHQnejdbFvh1eWEoobohUYN3nqJIPI4mNTMpsyYN01VvcAClxflyk2HIxvLpRcRggpX1m9hkXkpC/A==", "cpu": [ "x64" ], @@ -2537,9 +2557,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.46.2.tgz", - "integrity": "sha512-EtP8aquZ0xQg0ETFcxUbU71MZlHaw9MChwrQzatiE8U/bvi5uv/oChExXC4mWhjiqK7azGJBqU0tt5H123SzVA==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.46.3.tgz", + "integrity": "sha512-byyflM+huiwHlKi7VHLAYTKr67X199+V+mt1iRgJenAI594vcmGGddWlu6eHujmcdl6TqSNnvqaXJqZdnEWRGA==", "cpu": [ "arm" ], @@ -2551,9 +2571,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.46.2.tgz", - "integrity": "sha512-qO7F7U3u1nfxYRPM8HqFtLd+raev2K137dsV08q/LRKRLEc7RsiDWihUnrINdsWQxPR9jqZ8DIIZ1zJJAm5PjQ==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.46.3.tgz", + "integrity": "sha512-aLm3NMIjr4Y9LklrH5cu7yybBqoVCdr4Nvnm8WB7PKCn34fMCGypVNpGK0JQWdPAzR/FnoEoFtlRqZbBBLhVoQ==", "cpu": [ "arm" ], @@ -2565,9 +2585,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.46.2.tgz", - "integrity": "sha512-3dRaqLfcOXYsfvw5xMrxAk9Lb1f395gkoBYzSFcc/scgRFptRXL9DOaDpMiehf9CO8ZDRJW2z45b6fpU5nwjng==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.46.3.tgz", + "integrity": "sha512-VtilE6eznJRDIoFOzaagQodUksTEfLIsvXymS+UdJiSXrPW7Ai+WG4uapAc3F7Hgs791TwdGh4xyOzbuzIZrnw==", "cpu": [ "arm64" ], @@ -2579,9 +2599,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.46.2.tgz", - "integrity": "sha512-fhHFTutA7SM+IrR6lIfiHskxmpmPTJUXpWIsBXpeEwNgZzZZSg/q4i6FU4J8qOGyJ0TR+wXBwx/L7Ho9z0+uDg==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.46.3.tgz", + "integrity": "sha512-dG3JuS6+cRAL0GQ925Vppafi0qwZnkHdPeuZIxIPXqkCLP02l7ka+OCyBoDEv8S+nKHxfjvjW4OZ7hTdHkx8/w==", "cpu": [ "arm64" ], @@ -2593,9 +2613,9 @@ ] }, "node_modules/@rollup/rollup-linux-loongarch64-gnu": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.46.2.tgz", - "integrity": "sha512-i7wfGFXu8x4+FRqPymzjD+Hyav8l95UIZ773j7J7zRYc3Xsxy2wIn4x+llpunexXe6laaO72iEjeeGyUFmjKeA==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.46.3.tgz", + "integrity": "sha512-iU8DxnxEKJptf8Vcx4XvAUdpkZfaz0KWfRrnIRrOndL0SvzEte+MTM7nDH4A2Now4FvTZ01yFAgj6TX/mZl8hQ==", "cpu": [ "loong64" ], @@ -2607,9 +2627,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.46.2.tgz", - "integrity": "sha512-B/l0dFcHVUnqcGZWKcWBSV2PF01YUt0Rvlurci5P+neqY/yMKchGU8ullZvIv5e8Y1C6wOn+U03mrDylP5q9Yw==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.46.3.tgz", + "integrity": "sha512-VrQZp9tkk0yozJoQvQcqlWiqaPnLM6uY1qPYXvukKePb0fqaiQtOdMJSxNFUZFsGw5oA5vvVokjHrx8a9Qsz2A==", "cpu": [ "ppc64" ], @@ -2621,9 +2641,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.46.2.tgz", - "integrity": "sha512-32k4ENb5ygtkMwPMucAb8MtV8olkPT03oiTxJbgkJa7lJ7dZMr0GCFJlyvy+K8iq7F/iuOr41ZdUHaOiqyR3iQ==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.46.3.tgz", + "integrity": "sha512-uf2eucWSUb+M7b0poZ/08LsbcRgaDYL8NCGjUeFMwCWFwOuFcZ8D9ayPl25P3pl+D2FH45EbHdfyUesQ2Lt9wA==", "cpu": [ "riscv64" ], @@ -2635,9 +2655,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.46.2.tgz", - "integrity": "sha512-t5B2loThlFEauloaQkZg9gxV05BYeITLvLkWOkRXogP4qHXLkWSbSHKM9S6H1schf/0YGP/qNKtiISlxvfmmZw==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.46.3.tgz", + "integrity": "sha512-7tnUcDvN8DHm/9ra+/nF7lLzYHDeODKKKrh6JmZejbh1FnCNZS8zMkZY5J4sEipy2OW1d1Ncc4gNHUd0DLqkSg==", "cpu": [ "riscv64" ], @@ -2649,9 +2669,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.46.2.tgz", - "integrity": "sha512-YKjekwTEKgbB7n17gmODSmJVUIvj8CX7q5442/CK80L8nqOUbMtf8b01QkG3jOqyr1rotrAnW6B/qiHwfcuWQA==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.46.3.tgz", + "integrity": "sha512-MUpAOallJim8CsJK+4Lc9tQzlfPbHxWDrGXZm2z6biaadNpvh3a5ewcdat478W+tXDoUiHwErX/dOql7ETcLqg==", "cpu": [ "s390x" ], @@ -2663,9 +2683,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.46.2.tgz", - "integrity": "sha512-Jj5a9RUoe5ra+MEyERkDKLwTXVu6s3aACP51nkfnK9wJTraCC8IMe3snOfALkrjTYd2G1ViE1hICj0fZ7ALBPA==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.46.3.tgz", + "integrity": "sha512-F42IgZI4JicE2vM2PWCe0N5mR5vR0gIdORPqhGQ32/u1S1v3kLtbZ0C/mi9FFk7C5T0PgdeyWEPajPjaUpyoKg==", "cpu": [ "x64" ], @@ -2677,9 +2697,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.46.2.tgz", - "integrity": "sha512-7kX69DIrBeD7yNp4A5b81izs8BqoZkCIaxQaOpumcJ1S/kmqNFjPhDu1LHeVXv0SexfHQv5cqHsxLOjETuqDuA==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.46.3.tgz", + "integrity": "sha512-oLc+JrwwvbimJUInzx56Q3ujL3Kkhxehg7O1gWAYzm8hImCd5ld1F2Gry5YDjR21MNb5WCKhC9hXgU7rRlyegQ==", "cpu": [ "x64" ], @@ -2691,9 +2711,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.46.2.tgz", - "integrity": "sha512-wiJWMIpeaak/jsbaq2HMh/rzZxHVW1rU6coyeNNpMwk5isiPjSTx0a4YLSlYDwBH/WBvLz+EtsNqQScZTLJy3g==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.46.3.tgz", + "integrity": "sha512-lOrQ+BVRstruD1fkWg9yjmumhowR0oLAAzavB7yFSaGltY8klttmZtCLvOXCmGE9mLIn8IBV/IFrQOWz5xbFPg==", "cpu": [ "arm64" ], @@ -2705,9 +2725,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.46.2.tgz", - "integrity": "sha512-gBgaUDESVzMgWZhcyjfs9QFK16D8K6QZpwAaVNJxYDLHWayOta4ZMjGm/vsAEy3hvlS2GosVFlBlP9/Wb85DqQ==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.46.3.tgz", + "integrity": "sha512-vvrVKPRS4GduGR7VMH8EylCBqsDcw6U+/0nPDuIjXQRbHJc6xOBj+frx8ksfZAh6+Fptw5wHrN7etlMmQnPQVg==", "cpu": [ "ia32" ], @@ -2719,9 +2739,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.46.2.tgz", - "integrity": "sha512-CvUo2ixeIQGtF6WvuB87XWqPQkoFAFqW+HUo/WzHwuHDvIwZCtjdWXoYCcr06iKGydiqTclC4jU/TNObC/xKZg==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.46.3.tgz", + "integrity": "sha512-fi3cPxCnu3ZeM3EwKZPgXbWoGzm2XHgB/WShKI81uj8wG0+laobmqy5wbgEwzstlbLu4MyO8C19FyhhWseYKNQ==", "cpu": [ "x64" ], @@ -2771,9 +2791,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "24.2.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.0.tgz", - "integrity": "sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw==", + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", + "integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==", "license": "MIT", "dependencies": { "undici-types": "~7.10.0" @@ -2798,16 +2818,19 @@ } }, "node_modules/@vitejs/plugin-vue": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", - "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.1.tgz", + "integrity": "sha512-+MaE752hU0wfPFJEUAIxqw18+20euHHdxVtMvbFcOEpjEyfqXH/5DCoTHiVJ0J29EhTJdoTkjEv5YBKU9dnoTw==", "dev": true, "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "1.0.0-beta.29" + }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^20.19.0 || >=22.12.0" }, "peerDependencies": { - "vite": "^5.0.0 || ^6.0.0", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0", "vue": "^3.2.25" } }, @@ -2893,6 +2916,13 @@ "url": "https://opencollective.com/vitest" } }, + "node_modules/@vitest/runner/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, "node_modules/@vitest/snapshot": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz", @@ -2908,6 +2938,13 @@ "url": "https://opencollective.com/vitest" } }, + "node_modules/@vitest/snapshot/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, "node_modules/@vitest/spy": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", @@ -3180,9 +3217,9 @@ } }, "node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz", + "integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==", "dev": true, "license": "MIT", "engines": { @@ -3345,9 +3382,9 @@ } }, "node_modules/bl": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/bl/-/bl-6.1.1.tgz", - "integrity": "sha512-yYc8UIHrd1ZTLgNBIE7JjMzUPZH+dec3q7nWkrSHEbtvkQ3h6WKC63W9K5jthcL5EXFyMuWYq+2pq5WMSIgFHw==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/bl/-/bl-6.1.2.tgz", + "integrity": "sha512-6J3oG82fpJ71WF4l0W6XslkwAPMr+Zcp+AmdxJ0L8LsXNzFeO8GYesV2J9AzGArBjrsb2xR50Ocbn/CL1B44TA==", "license": "MIT", "dependencies": { "@types/readable-stream": "^4.0.0", @@ -3395,15 +3432,15 @@ } }, "node_modules/broker-factory": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/broker-factory/-/broker-factory-3.1.8.tgz", - "integrity": "sha512-xmVnYN0FZtynhPUmAnN+/MFRdbDi3syCuxWV7o7s78FcIN0pjDtn9mUrVqEgdjQkbfojRhlPWbYbXJkMCyddrg==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/broker-factory/-/broker-factory-3.1.9.tgz", + "integrity": "sha512-MzvndyD6EcbkBtX4NXm/HfdO1+cOR5ONNdMCXEKfHpxGdMtuDz7+o+nJf7HMtyPH1sUVf/lEIP+DMluC5PgaBQ==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.27.6", - "fast-unique-numbers": "^9.0.22", + "@babel/runtime": "^7.28.3", + "fast-unique-numbers": "^9.0.23", "tslib": "^2.8.1", - "worker-factory": "^7.0.44" + "worker-factory": "^7.0.45" } }, "node_modules/brorand": { @@ -3545,9 +3582,9 @@ } }, "node_modules/browserslist": { - "version": "4.25.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz", - "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", + "version": "4.25.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.3.tgz", + "integrity": "sha512-cDGv1kkDI4/0e5yON9yM5G/0A5u8sf5TnmdX5C9qHzI9PPu++sQ9zjm1k9NiOrf3riY4OkK0zSGqfvJyJsgCBQ==", "dev": true, "funding": [ { @@ -3565,8 +3602,8 @@ ], "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001726", - "electron-to-chromium": "^1.5.173", + "caniuse-lite": "^1.0.30001735", + "electron-to-chromium": "^1.5.204", "node-releases": "^2.0.19", "update-browserslist-db": "^1.1.3" }, @@ -3687,9 +3724,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001731", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001731.tgz", - "integrity": "sha512-lDdp2/wrOmTRWuoB5DpfNkC0rJDU8DqRa6nYL6HK6sytw70QMopt/NIc/9SM7ylItlBWfACXk0tEn37UWM/+mg==", + "version": "1.0.30001735", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001735.tgz", + "integrity": "sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w==", "dev": true, "funding": [ { @@ -3708,9 +3745,9 @@ "license": "CC-BY-4.0" }, "node_modules/chai": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.2.1.tgz", - "integrity": "sha512-5nFxhUrX0PqtyogoYOA8IPswy5sZFTOsBFl/9bNsmDLgsxYTzSZQJDPppDnZPTQbzSEm0hqGjWPzRemQCYbD6A==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.1.tgz", + "integrity": "sha512-48af6xm9gQK8rhIcOxWwdGzIervm8BVTin+yRp9HEvU20BtVZ2lBywlIJBzwaDtvo0FvjeL7QdCADoUoqIbV3A==", "dev": true, "license": "MIT", "dependencies": { @@ -3782,22 +3819,6 @@ "node": ">= 16" } }, - "node_modules/chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "readdirp": "^4.0.1" - }, - "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/cipher-base": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.6.tgz", @@ -4403,9 +4424,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.195", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.195.tgz", - "integrity": "sha512-URclP0iIaDUzqcAyV1v2PgduJ9N0IdXmWsnPzPfelvBmjmZzEy6xJcjb1cXj+TbYqXgtLrjHEoaSIdTYhw4ezg==", + "version": "1.5.206", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.206.tgz", + "integrity": "sha512-/eucXSTaI8L78l42xPurxdBzPTjAkMVCQO7unZCWk9LnZiwKcSvQUhF4c99NWQLwMQXxjlfoQy0+8m9U2yEDQQ==", "dev": true, "license": "ISC" }, @@ -4550,20 +4571,20 @@ } }, "node_modules/eslint": { - "version": "9.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.32.0.tgz", - "integrity": "sha512-LSehfdpgMeWcTZkWZVIJl+tkZ2nuSkyyB9C27MZqFWXuph7DvaowgcTvKqxvpLW1JZIk8PN7hFY3Rj9LQ7m7lg==", + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.33.0.tgz", + "integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.21.0", - "@eslint/config-helpers": "^0.3.0", - "@eslint/core": "^0.15.0", + "@eslint/config-helpers": "^0.3.1", + "@eslint/core": "^0.15.2", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.32.0", - "@eslint/plugin-kit": "^0.3.4", + "@eslint/js": "9.33.0", + "@eslint/plugin-kit": "^0.3.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", @@ -4627,9 +4648,9 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.3.tgz", - "integrity": "sha512-NAdMYww51ehKfDyDhv59/eIItUVzU0Io9H2E8nHNGKEeeqlnci+1gCvrHib6EmZdf6GxF+LCV5K7UC65Ezvw7w==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.4.tgz", + "integrity": "sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==", "dev": true, "license": "MIT", "dependencies": { @@ -4715,6 +4736,19 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/espree": { "version": "10.4.0", "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", @@ -4852,33 +4886,18 @@ "license": "MIT" }, "node_modules/fast-unique-numbers": { - "version": "9.0.22", - "resolved": "https://registry.npmjs.org/fast-unique-numbers/-/fast-unique-numbers-9.0.22.tgz", - "integrity": "sha512-dBR+30yHAqBGvOuxxQdnn2lTLHCO6r/9B+M4yF8mNrzr3u1yiF+YVJ6u3GTyPN/VRWqaE1FcscZDdBgVKmrmQQ==", + "version": "9.0.23", + "resolved": "https://registry.npmjs.org/fast-unique-numbers/-/fast-unique-numbers-9.0.23.tgz", + "integrity": "sha512-jcRIaHo46nfvyvKRMaFSKXmez4jALQ3Qw49gxM5F4siz8HqkyKPPEexpCOYwBSJI1HovrDr4fEedM8QAJ7oX3w==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.27.6", + "@babel/runtime": "^7.28.3", "tslib": "^2.8.1" }, "engines": { "node": ">=18.2.0" } }, - "node_modules/fdir": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", - "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, "node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -5071,19 +5090,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, "node_modules/glob/node_modules/brace-expansion": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", @@ -5380,14 +5386,10 @@ "license": "ISC" }, "node_modules/ip-address": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", - "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.0.1.tgz", + "integrity": "sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==", "license": "MIT", - "dependencies": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" - }, "engines": { "node": ">= 12" } @@ -5603,6 +5605,18 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "jiti": "bin/jiti.js" + } + }, "node_modules/js-beautify": { "version": "1.15.4", "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.15.4.tgz", @@ -5665,12 +5679,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsbn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", - "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", - "license": "MIT" - }, "node_modules/jsdom": { "version": "26.1.0", "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-26.1.0.tgz", @@ -5854,20 +5862,6 @@ "node": ">=8.6" } }, - "node_modules/micromatch/node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/miller-rabin": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", @@ -6373,13 +6367,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, "node_modules/pathval": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", @@ -6451,13 +6438,14 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, "license": "MIT", + "optional": true, "engines": { - "node": ">=12" + "node": ">=8.6" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" @@ -7557,20 +7545,6 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.18.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/resolve": { "version": "1.22.10", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", @@ -7618,9 +7592,9 @@ } }, "node_modules/rollup": { - "version": "4.46.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.46.2.tgz", - "integrity": "sha512-WMmLFI+Boh6xbop+OAGo9cQ3OgX9MIg7xOQjn+pTCwOkk+FNDAeAemXkJ3HzDJrVXleLOFVa1ipuc1AmEx1Dwg==", + "version": "4.46.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.46.3.tgz", + "integrity": "sha512-RZn2XTjXb8t5g13f5YclGoilU/kwT696DIkY3sywjdZidNSi3+vseaQov7D7BZXVJCPv3pDWUN69C78GGbXsKw==", "dev": true, "license": "MIT", "dependencies": { @@ -7634,26 +7608,26 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.46.2", - "@rollup/rollup-android-arm64": "4.46.2", - "@rollup/rollup-darwin-arm64": "4.46.2", - "@rollup/rollup-darwin-x64": "4.46.2", - "@rollup/rollup-freebsd-arm64": "4.46.2", - "@rollup/rollup-freebsd-x64": "4.46.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.46.2", - "@rollup/rollup-linux-arm-musleabihf": "4.46.2", - "@rollup/rollup-linux-arm64-gnu": "4.46.2", - "@rollup/rollup-linux-arm64-musl": "4.46.2", - "@rollup/rollup-linux-loongarch64-gnu": "4.46.2", - "@rollup/rollup-linux-ppc64-gnu": "4.46.2", - "@rollup/rollup-linux-riscv64-gnu": "4.46.2", - "@rollup/rollup-linux-riscv64-musl": "4.46.2", - "@rollup/rollup-linux-s390x-gnu": "4.46.2", - "@rollup/rollup-linux-x64-gnu": "4.46.2", - "@rollup/rollup-linux-x64-musl": "4.46.2", - "@rollup/rollup-win32-arm64-msvc": "4.46.2", - "@rollup/rollup-win32-ia32-msvc": "4.46.2", - "@rollup/rollup-win32-x64-msvc": "4.46.2", + "@rollup/rollup-android-arm-eabi": "4.46.3", + "@rollup/rollup-android-arm64": "4.46.3", + "@rollup/rollup-darwin-arm64": "4.46.3", + "@rollup/rollup-darwin-x64": "4.46.3", + "@rollup/rollup-freebsd-arm64": "4.46.3", + "@rollup/rollup-freebsd-x64": "4.46.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.46.3", + "@rollup/rollup-linux-arm-musleabihf": "4.46.3", + "@rollup/rollup-linux-arm64-gnu": "4.46.3", + "@rollup/rollup-linux-arm64-musl": "4.46.3", + "@rollup/rollup-linux-loongarch64-gnu": "4.46.3", + "@rollup/rollup-linux-ppc64-gnu": "4.46.3", + "@rollup/rollup-linux-riscv64-gnu": "4.46.3", + "@rollup/rollup-linux-riscv64-musl": "4.46.3", + "@rollup/rollup-linux-s390x-gnu": "4.46.3", + "@rollup/rollup-linux-x64-gnu": "4.46.3", + "@rollup/rollup-linux-x64-musl": "4.46.3", + "@rollup/rollup-win32-arm64-msvc": "4.46.3", + "@rollup/rollup-win32-ia32-msvc": "4.46.3", + "@rollup/rollup-win32-x64-msvc": "4.46.3", "fsevents": "~2.3.2" } }, @@ -7722,9 +7696,9 @@ "license": "MIT" }, "node_modules/sass": { - "version": "1.89.2", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.89.2.tgz", - "integrity": "sha512-xCmtksBKd/jdJ9Bt9p7nPKiuqrlBMBuuGkQlkhZjjQk3Ty48lv93k5Dq6OPkKt4XwxDJ7tvlfrTa1MPA9bf+QA==", + "version": "1.90.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.90.0.tgz", + "integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==", "dev": true, "license": "MIT", "dependencies": { @@ -7742,6 +7716,36 @@ "@parcel/watcher": "^2.4.1" } }, + "node_modules/sass/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/sass/node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/saxes": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", @@ -7954,12 +7958,12 @@ "license": "MIT" }, "node_modules/socks": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.6.tgz", - "integrity": "sha512-pe4Y2yzru68lXCb38aAqRf5gvN8YdjP1lok5o0J7BOHljkyCGKVz7H3vpVIXKD27rj2giOJ7DwVyk/GWrPHDWA==", + "version": "2.8.7", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz", + "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==", "license": "MIT", "dependencies": { - "ip-address": "^9.0.5", + "ip-address": "^10.0.1", "smart-buffer": "^4.2.0" }, "engines": { @@ -8015,12 +8019,6 @@ "node": ">= 10.x" } }, - "node_modules/sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "license": "BSD-3-Clause" - }, "node_modules/stackback": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", @@ -8353,6 +8351,37 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/tinypool": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", @@ -8684,6 +8713,13 @@ "url": "https://opencollective.com/vitest" } }, + "node_modules/vite-node/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, "node_modules/vite-plugin-node-polyfills": { "version": "0.24.0", "resolved": "https://registry.npmjs.org/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.24.0.tgz", @@ -8774,6 +8810,26 @@ } } }, + "node_modules/vitest/node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/vitest/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", @@ -8999,50 +9055,50 @@ } }, "node_modules/worker-factory": { - "version": "7.0.44", - "resolved": "https://registry.npmjs.org/worker-factory/-/worker-factory-7.0.44.tgz", - "integrity": "sha512-08AuUfWi+KeZI+KC7nU4pU/9tDeAFvE5NSWk+K9nIfuQc6UlOsZtjjeGVYVEn+DEchyXNJ5i10HCn0xRzFXEQA==", + "version": "7.0.45", + "resolved": "https://registry.npmjs.org/worker-factory/-/worker-factory-7.0.45.tgz", + "integrity": "sha512-FFPCiSv7MD6ZDEfiik/ErM8IrIAWajaXhezLyCo3v0FjhUWud6GXnG2BiTE91jLywXGAVCT8IF48Hhr+D/omMw==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.27.6", - "fast-unique-numbers": "^9.0.22", + "@babel/runtime": "^7.28.3", + "fast-unique-numbers": "^9.0.23", "tslib": "^2.8.1" } }, "node_modules/worker-timers": { - "version": "8.0.23", - "resolved": "https://registry.npmjs.org/worker-timers/-/worker-timers-8.0.23.tgz", - "integrity": "sha512-1BnWHNNiu5YEutgF7eVZEqNntAsij2oG0r66xDdScoY3fKGFrok2y0xA8OgG6FA+3srrmAplSY6JN5h9jV5D0w==", + "version": "8.0.24", + "resolved": "https://registry.npmjs.org/worker-timers/-/worker-timers-8.0.24.tgz", + "integrity": "sha512-Ydu/7TRHlxIRjYSGDge1F92L7y9kzInpwR4CkocRVObPE0eRqC6d+0GFh52Hm+m520RHVKiytOERtCUu5sQDVQ==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.27.6", + "@babel/runtime": "^7.28.3", "tslib": "^2.8.1", - "worker-timers-broker": "^8.0.9", - "worker-timers-worker": "^9.0.9" + "worker-timers-broker": "^8.0.10", + "worker-timers-worker": "^9.0.10" } }, "node_modules/worker-timers-broker": { - "version": "8.0.9", - "resolved": "https://registry.npmjs.org/worker-timers-broker/-/worker-timers-broker-8.0.9.tgz", - "integrity": "sha512-WJsd7aIvu2GBTXp7IBGT1NKnt3ZbiJ2wqb7Pl4nFJXC8pek84+X68TJGVvvrqwHgHPNxSlzpU1nadhcW4PDD7A==", + "version": "8.0.10", + "resolved": "https://registry.npmjs.org/worker-timers-broker/-/worker-timers-broker-8.0.10.tgz", + "integrity": "sha512-xvo/9GiuduENbJNdWnvZtkriIkjBKKVbMyw7GXvrBu3n1JHemzZgxqaCcCBNlpfXnRXXF4ekqvXWLh1gb65b8w==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.27.6", - "broker-factory": "^3.1.8", - "fast-unique-numbers": "^9.0.22", + "@babel/runtime": "^7.28.3", + "broker-factory": "^3.1.9", + "fast-unique-numbers": "^9.0.23", "tslib": "^2.8.1", - "worker-timers-worker": "^9.0.9" + "worker-timers-worker": "^9.0.10" } }, "node_modules/worker-timers-worker": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/worker-timers-worker/-/worker-timers-worker-9.0.9.tgz", - "integrity": "sha512-OOKTMdHbzx7FaXCW40RS8RxAqLF/R8xU5/YA7CFasDy+jBA5yQWUusSQJUFFTV2Z9ZOpnR+ZWgte/IuAqOAEVw==", + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/worker-timers-worker/-/worker-timers-worker-9.0.10.tgz", + "integrity": "sha512-cfCmAkuoN+nGGJShta/g7CQVP3h7rvQA642EQg72fOHCWP5S2P83rLxDiaGv811Hd+19Cgdqt/tpRBIZ5kj/dw==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.27.6", + "@babel/runtime": "^7.28.3", "tslib": "^2.8.1", - "worker-factory": "^7.0.44" + "worker-factory": "^7.0.45" } }, "node_modules/wrap-ansi": { diff --git a/packages/modules/display_themes/cards/source/package.json b/packages/modules/display_themes/cards/source/package.json index 4175da6ca0..e8145f2fc1 100644 --- a/packages/modules/display_themes/cards/source/package.json +++ b/packages/modules/display_themes/cards/source/package.json @@ -33,17 +33,17 @@ "devDependencies": { "@rollup/plugin-terser": "^0.4.4", "@rushstack/eslint-patch": "^1.12.0", - "@vitejs/plugin-vue": "^5.2.4", + "@vitejs/plugin-vue": "^6.0.1", "@vue/eslint-config-prettier": "^10.2.0", "@vue/test-utils": "^2.4.6", - "eslint": "^9.32.0", + "eslint": "^9.33.0", "eslint-plugin-vue": "^10.4.0", "jsdom": "^26.1.0", "postcss": "^8.5.6", "postcss-preset-env": "^10.2.4", "prettier": "^3.6.2", "rollup-plugin-polyfill-node": "^0.13.0", - "sass": "^1.89.2", + "sass": "^1.90.0", "vite": "^5.4.19", "vite-plugin-node-polyfills": "^0.24.0", "vitest": "^3.2.4" diff --git a/packages/modules/electricity_tariffs/energycharts/tariff.py b/packages/modules/electricity_tariffs/energycharts/tariff.py index 7d878e6a55..70668920f6 100644 --- a/packages/modules/electricity_tariffs/energycharts/tariff.py +++ b/packages/modules/electricity_tariffs/energycharts/tariff.py @@ -1,29 +1,59 @@ +import logging +import random +import requests +import time from typing import Dict from datetime import datetime, timedelta - from helpermodules import timecheck - from modules.common import req from modules.common.abstract_device import DeviceDescriptor from modules.common.component_state import TariffState from modules.electricity_tariffs.energycharts.config import EnergyChartsTariffConfiguration from modules.electricity_tariffs.energycharts.config import EnergyChartsTariff +MAX_RETRIES = 10 +MAX_DELAY = 10 +log = logging.getLogger(__name__) + + +def get_tomorrow_last_hour_timestamp() -> int: + tomorrow = datetime.now() + timedelta(days=2) + return int(tomorrow.timestamp()) + -def fetch_prices(config: EnergyChartsTariffConfiguration) -> Dict[int, float]: - tomorrow = datetime.now() + timedelta(1) +def create_request_url(config: EnergyChartsTariffConfiguration) -> str: start_time = timecheck.create_unix_timestamp_current_full_hour() - end_time = int(tomorrow.timestamp()) + end_time = get_tomorrow_last_hour_timestamp() url = f'https://api.energy-charts.info/price?bzn={config.country}&start={start_time}&end={end_time}' - raw_prices = req.get_http_session().get(url).json() - price_arr = [] - for price in raw_prices['price']: - price_arr.append((float(price + (config.surcharge*10))/1000000)) # €/MWh -> €/Wh + Aufschlag + log.debug("fetching tariffs: %s", url) + return url + + +def parse_response(config: EnergyChartsTariffConfiguration, raw_prices: dict) -> Dict[str, float]: prices: Dict[int, float] = {} - prices = dict(zip([str(int(unix_seconds)) for unix_seconds in raw_prices['unix_seconds']], price_arr)) + for timestamp, price_per_MWh in zip(raw_prices['unix_seconds'], raw_prices['price']): + prices[str(int(timestamp))] = float(price_per_MWh + (config.surcharge*10))/1000000 + log.debug("converted prices: %s : %s", len(prices), prices) return prices +def fetch_prices(config: EnergyChartsTariffConfiguration) -> Dict[str, float]: + url = create_request_url(config) + for attempt in range(MAX_RETRIES): + attempt += 1 # one-based indexing + try: + response = req.get_http_session().get(url, timeout=(10, 20)) + response.raise_for_status() + return parse_response(config, response.json()) + except requests.exceptions.Timeout as e: + if MAX_RETRIES > attempt: + delay = (attempt) * random.uniform(attempt, MAX_DELAY) + log.warning(f"Timeout beim Abrufen der Preise (Versuch {attempt}/{MAX_RETRIES}) : {str(e)}" + f", neuer Versuch in {delay:.1f} Sekunden...") + time.sleep(delay) + raise Exception("Timeout beim Abrufen der Preise nach {MAX_RETRIES} Versuchen") + + def create_electricity_tariff(config: EnergyChartsTariff): def updater(): return TariffState(prices=fetch_prices(config.configuration)) diff --git a/packages/modules/internal_chargepoint_handler/clients.py b/packages/modules/internal_chargepoint_handler/clients.py index d90ecb10a8..db510591f7 100644 --- a/packages/modules/internal_chargepoint_handler/clients.py +++ b/packages/modules/internal_chargepoint_handler/clients.py @@ -63,16 +63,16 @@ def find_meter_client(meters: List[meter_config], client: Union[ModbusSerialClient_, ModbusTcpClient_], fault_state: FaultState) -> METERS: for meter_type, modbus_id in meters: - meter_client = meter_type(modbus_id, client, fault_state) - with client: - try: + try: + with client: + meter_client = meter_type(modbus_id, client, fault_state) if meter_client.get_voltages()[0] > 200: with ModifyLoglevelContext(log, logging.DEBUG): log.debug("Verbauter Zähler: "+str(meter_type)+" mit Modbus-ID: "+str(modbus_id)) return meter_client - except Exception: - log.debug(client) - log.debug(f"Zähler {meter_type} mit Modbus-ID:{modbus_id} antwortet nicht.") + except Exception: + log.debug(client) + log.debug(f"Zähler {meter_type} mit Modbus-ID:{modbus_id} antwortet nicht.") else: return None diff --git a/packages/modules/internal_chargepoint_handler/pro_plus.py b/packages/modules/internal_chargepoint_handler/pro_plus.py index cb8de42f05..c8af1a97c5 100644 --- a/packages/modules/internal_chargepoint_handler/pro_plus.py +++ b/packages/modules/internal_chargepoint_handler/pro_plus.py @@ -8,6 +8,9 @@ class ProPlus(ChargepointModule): + NO_DATA_SINCE_BOOT = "Es konnten seit dem Start keine Daten abgefangen werden." + NO_CONNECTION_TO_INTERNAL_CP = "Interner Ladepunkt ist nicht erreichbar." + def __init__(self, local_charge_point_num: int, internal_cp: InternalChargepoint, hierarchy_id: int) -> None: @@ -17,7 +20,7 @@ def __init__(self, local_charge_point_num: int, self.old_chargepoint_state = None super().__init__(OpenWBPro(configuration=OpenWBProConfiguration(ip_address="192.168.192.50"))) - super().set_internal_context_handlers(hierarchy_id, internal_cp) + self.set_internal_context_handlers(hierarchy_id, internal_cp) def get_values(self, phase_switch_cp_active: bool, last_tag: str) -> ChargepointState: def store_state(chargepoint_state: ChargepointState) -> None: @@ -25,22 +28,33 @@ def store_state(chargepoint_state: ChargepointState) -> None: self.store.update() self.store_internal.set(chargepoint_state) self.store_internal.update() + self.old_chargepoint_state = chargepoint_state try: - chargepoint_state = super().request_values() + chargepoint_state = self.request_values() if chargepoint_state is not None and last_tag is not None and last_tag != "": chargepoint_state.rfid = last_tag - except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError): - raise Exception("Interner Ladepunkt ist nicht erreichbar.") - - if chargepoint_state is None: - if self.old_chargepoint_state is None: - raise Exception("Keine erfolgreiche Auslesung der Daten seit dem Start möglich.") - # bei Fehler, aber Fehlerzähler noch nicht abgelaufen - chargepoint_state = self.old_chargepoint_state - store_state(chargepoint_state) - self.old_chargepoint_state = chargepoint_state - return chargepoint_state + if chargepoint_state is not None: + store_state(chargepoint_state) + return chargepoint_state + else: + store_state(self.old_chargepoint_state) + return self.old_chargepoint_state + except Exception as e: + if self.client_error_context.error_counter_exceeded(): + chargepoint_state = ChargepointState(plug_state=False, charge_state=False, imported=None, + # bei im-/exported None werden keine Werte gepublished + exported=None, phases_in_use=0, power=0, currents=[0]*3) + store_state(chargepoint_state) + if isinstance(e, (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError)): + raise Exception(self.NO_CONNECTION_TO_INTERNAL_CP) + else: + raise e + elif self.old_chargepoint_state is not None: + store_state(self.old_chargepoint_state) + return self.old_chargepoint_state + else: + raise Exception(self.NO_DATA_SINCE_BOOT) def perform_phase_switch(self, phases_to_use: int, duration: int) -> None: super().switch_phases(phases_to_use, duration) diff --git a/packages/modules/internal_chargepoint_handler/pro_plus_test.py b/packages/modules/internal_chargepoint_handler/pro_plus_test.py new file mode 100644 index 0000000000..c84415df6f --- /dev/null +++ b/packages/modules/internal_chargepoint_handler/pro_plus_test.py @@ -0,0 +1,75 @@ +import re +from typing import Callable, Tuple +from unittest.mock import Mock + +import pytest +from modules.common.component_state import ChargepointState +from modules.internal_chargepoint_handler.internal_chargepoint_handler_config import InternalChargepoint +from modules.internal_chargepoint_handler.pro_plus import ProPlus + + +@pytest.fixture(autouse=True) +def setup_pro_plus(monkeypatch) -> Tuple[ProPlus, Mock]: + pro_plus = ProPlus(0, InternalChargepoint(), 1) + mock_store_set = Mock() + monkeypatch.setattr(pro_plus.store, "set", mock_store_set) + monkeypatch.setattr(pro_plus.store, "update", lambda: None) + monkeypatch.setattr(pro_plus.store_internal, "set", lambda x: None) + monkeypatch.setattr(pro_plus.store_internal, "update", lambda: None) + return pro_plus, mock_store_set + + +@pytest.fixture() +def chargepoint_state() -> ChargepointState: + return ChargepointState(currents=[0, 0, 0], powers=[0, 0, 0], voltages=[ + 229.4, 229.4, 229.4], imported=0, exported=0, power=0, phases_in_use=2, charge_state=False, plug_state=True) + + +@pytest.mark.parametrize( + "request_values_return, expected_chargepoint_state", + [pytest.param(lambda: chargepoint_state, chargepoint_state, id="Normalfall"), + pytest.param(Mock(side_effect=Exception(ProPlus.NO_CONNECTION_TO_INTERNAL_CP)), + chargepoint_state, id="Fehler, aber Timer noch nicht abgelaufen")]) +def test_get_values(request_values_return: ChargepointState, + expected_chargepoint_state: ChargepointState, + setup_pro_plus: Callable[[], Tuple[ProPlus, Mock]], + monkeypatch): + # setup + pro_plus, mock_store_set = setup_pro_plus + pro_plus.old_chargepoint_state = expected_chargepoint_state + monkeypatch.setattr(pro_plus, "request_values", request_values_return) + monkeypatch.setattr(pro_plus.client_error_context, "error_counter_exceeded", lambda: False) + + # execution + chargepoint_state = pro_plus.get_values(False, None) + + # evalutation + assert chargepoint_state == expected_chargepoint_state + assert mock_store_set.call_args.args[0].__dict__ == expected_chargepoint_state.__dict__ + + +def test_get_values_no_data_since_boot(setup_pro_plus: Callable[[], Tuple[ProPlus, Mock]], monkeypatch): + # setup + pro_plus = setup_pro_plus[0] + monkeypatch.setattr(pro_plus, "request_values", Mock(side_effect=Exception(ProPlus.NO_CONNECTION_TO_INTERNAL_CP))) + monkeypatch.setattr(pro_plus.client_error_context, "error_counter_exceeded", lambda: False) + + # execution + with pytest.raises(Exception, match=re.escape(ProPlus.NO_DATA_SINCE_BOOT)): + pro_plus.get_values(False, None) + + +def test_get_values_error_timer_exceed(setup_pro_plus: Callable[[], Tuple[ProPlus, Mock]], monkeypatch): + # Exception werfen und Ladepunkt-Status zurücksetzen + # setup + pro_plus, mock_store_set = setup_pro_plus + monkeypatch.setattr(pro_plus, "request_values", Mock(side_effect=Exception(ProPlus.NO_CONNECTION_TO_INTERNAL_CP))) + monkeypatch.setattr(pro_plus.client_error_context, "error_counter_exceeded", lambda: True) + + # execution + with pytest.raises(Exception, match=re.escape(ProPlus.NO_CONNECTION_TO_INTERNAL_CP)): + pro_plus.get_values(False, None) + + assert mock_store_set.call_args.args[0].__dict__ == ChargepointState( + plug_state=False, charge_state=False, imported=None, exported=None, + phases_in_use=0, power=0, currents=[0]*3).__dict__ diff --git a/packages/modules/smarthome/lambda_/off.py b/packages/modules/smarthome/lambda_/off.py index cc8274b7f3..526317742f 100644 --- a/packages/modules/smarthome/lambda_/off.py +++ b/packages/modules/smarthome/lambda_/off.py @@ -22,7 +22,7 @@ % (devicenumber, ipadr, uberschuss)) client = ModbusTcpClient(ipadr, port=502) start = 103 -resp = client.read_holding_registers(start, 2) +resp = client.read_holding_registers(start, 2, unit=1) value1 = resp.registers[0] all = format(value1, '04x') aktpower = int(struct.unpack('>h', codecs.decode(all, 'hex'))[0]) diff --git a/packages/modules/smarthome/lambda_/on.py b/packages/modules/smarthome/lambda_/on.py index 0b2cc2431b..d74abad74a 100644 --- a/packages/modules/smarthome/lambda_/on.py +++ b/packages/modules/smarthome/lambda_/on.py @@ -23,7 +23,7 @@ % (devicenumber, ipadr, uberschuss)) client = ModbusTcpClient(ipadr, port=502) start = 103 -resp = client.read_holding_registers(start, 2) +resp = client.read_holding_registers(start, 2, unit=1) value1 = resp.registers[0] all = format(value1, '04x') aktpower = int(struct.unpack('>h', codecs.decode(all, 'hex'))[0]) diff --git a/packages/modules/smarthome/lambda_/watt.py b/packages/modules/smarthome/lambda_/watt.py index 4d4ed9ceda..a6ad5c641b 100644 --- a/packages/modules/smarthome/lambda_/watt.py +++ b/packages/modules/smarthome/lambda_/watt.py @@ -53,7 +53,7 @@ # aktuelle Leistung lesen with ModbusTcpClient(ipadr, port=502) as client: start = 103 - resp = client.read_holding_registers(start, 2) + resp = client.read_holding_registers(start, 2, unit=1) # value1 = resp.registers[0] all = format(value1, '04x') @@ -104,7 +104,7 @@ builder = BinaryPayloadBuilder(byteorder=Endian.Big, wordorder=Endian.Little) builder.add_16bit_int(neupower) pay = builder.to_registers() - client.write_registers(102, [pay[0]]) + client.write_registers(102, [pay[0]], unit=1) if count1 < 3: log.info(' %d ipadr %s written %6d %#4X' % (devicenumber, ipadr, pay[0], pay[0])) diff --git a/packages/modules/vehicles/bmwbc/api.py b/packages/modules/vehicles/bmwbc/api.py index c140b10558..ece02fa090 100755 --- a/packages/modules/vehicles/bmwbc/api.py +++ b/packages/modules/vehicles/bmwbc/api.py @@ -139,6 +139,7 @@ class Api: _clconf = {} _account = {} _last_reload = {} + _login_required = {} _primary_vehicle_id = {} _lock = Lock() @@ -188,6 +189,7 @@ async def _fetch_soc(self, soc = 0 range = 0.0 soc_tsX = 0.0 + self._login_required[user_id] = False if captcha_token != "SECONDARY": self._mode = "PRIMARY " @@ -207,13 +209,20 @@ async def _fetch_soc(self, # last used captcha token in store, compare with captcha_token in configuration if self._store[user_id]['captcha_token'] != captcha_token: # invalidate current refresh and access token to force new login - log.debug("new captcha token configured - invalidate stored token set") + self._login_required[user_id] = True + log.info("new captcha token configured - invalidate stored token set") self._new_captcha = True self._store[user_id]['expires_at'] = None self._store[user_id]['access_token'] = None self._store[user_id]['refresh_token'] = None self._store[user_id]['session_id'] = None self._store[user_id]['gcid'] = None + if user_id in self._auth: + self._auth.pop(user_id) + if user_id in self._clconf: + self._clconf.pop(user_id) + if user_id in self._account: + self._account.pop(user_id) else: log.debug("captcha token unchanged") self._new_captcha = False @@ -246,10 +255,11 @@ async def _fetch_soc(self, log.debug("# Reuse _auth instance") # set session_id and gcid in _auth to store values - if self._store[user_id]['session_id'] is not None: - self._auth[user_id].session_id = self._store[user_id]['session_id'] - if self._store[user_id]['gcid'] is not None: - self._auth[user_id].gcid = self._store[user_id]['gcid'] + if self._login_required[user_id] is False: + if self._store[user_id]['session_id'] is not None: + self._auth[user_id].session_id = self._store[user_id]['session_id'] + if self._store[user_id]['gcid'] is not None: + self._auth[user_id].gcid = self._store[user_id]['gcid'] # instantiate client configuration object is not existent yet if user_id not in self._clconf: @@ -265,15 +275,23 @@ async def _fetch_soc(self, self._account[user_id] = MyBMWAccount(None, None, None, config=self._clconf[user_id], hcaptcha_token=captcha_token) - self._account[user_id].set_refresh_token(refresh_token=self._store[user_id]['refresh_token'], - gcid=self._store[user_id]['gcid'], - access_token=self._store[user_id]['access_token'], - session_id=self._store[user_id]['session_id']) + if self._login_required[user_id] is False: + self._account[user_id].set_refresh_token(refresh_token=self._store[user_id]['refresh_token'], + gcid=self._store[user_id]['gcid'], + access_token=self._store[user_id]['access_token'], + session_id=self._store[user_id]['session_id']) else: log.debug("# Reuse _account instance") else: self._mode = "SECONDARY" + if self._login_required[user_id]: + log.debug("# before initial login:" + str(self._auth[user_id].expires_at)) + await self._auth[user_id].login() + log.debug("# after initial login:" + str(self._auth[user_id].expires_at)) + self._login_required[user_id] = False + self._last_reload[user_id] = 0 + # get vehicle list - if last reload is more than 5 min ago self._now = datetime.timestamp(datetime.now()) if user_id not in self._last_reload: @@ -325,6 +343,7 @@ async def _fetch_soc(self, # get json of vehicle data resp = dumps(vehicle, cls=MyBMWJSONEncoder, indent=4) + log.debug("bmwbc.fetch_soc: resp=" + resp) # vehicle data - json to dict respd = loads(resp) diff --git a/packages/modules/web_themes/colors/source/package-lock.json b/packages/modules/web_themes/colors/source/package-lock.json index c4feb9958b..b705926798 100644 --- a/packages/modules/web_themes/colors/source/package-lock.json +++ b/packages/modules/web_themes/colors/source/package-lock.json @@ -78,12 +78,10 @@ } }, "node_modules/@babel/runtime": { - "version": "7.26.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.7.tgz", - "integrity": "sha512-AOPI3D+a8dXnja+iwsUqGRjr1BbZIe771sXdapOtYI531gSqpi92vXivKcq2asu/DFpdl1ceFAKZyRzK2PCVcQ==", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.3.tgz", + "integrity": "sha512-9uIQ10o0WGdpP6GDhXcdOJPJuDgFtIDtN/9+ArJQ2NAfAmiuhTQdzkaTGR33v43GYS2UrSA0eX2pPPHoFVvpxA==", + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -3848,11 +3846,6 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" - }, "node_modules/reinterval": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/reinterval/-/reinterval-1.1.0.tgz", diff --git a/packages/modules/web_themes/colors/source/src/components/powerGraph/processLiveGraphData.ts b/packages/modules/web_themes/colors/source/src/components/powerGraph/processLiveGraphData.ts index 1f76830556..599a68c22d 100755 --- a/packages/modules/web_themes/colors/source/src/components/powerGraph/processLiveGraphData.ts +++ b/packages/modules/web_themes/colors/source/src/components/powerGraph/processLiveGraphData.ts @@ -79,6 +79,7 @@ function extractValues(data: RawGraphDataItem): GraphDataItem { : 1 const car1id = 'ev' + car1 + '-soc' const car2id = 'ev' + car2 + '-soc' + const re_cp = /cp(\d+)-power/ const values: GraphDataItem = {} values.date = +data.timestamp * 1000 if (+data.grid > 0) { @@ -124,10 +125,18 @@ function extractValues(data: RawGraphDataItem): GraphDataItem { values.charging = +data['charging-all'] // charge points - we only show a maximum of 10 chargepoints in the graph - for (let i = 0; i < 10; i++) { +/* for (let i = 0; i < 10; i++) { const idx = 'cp' + i values[idx] = +(data[idx + '-power'] ?? 0) - } + } */ +Object.keys(data) +.filter(key => re_cp.test(key)) + .forEach((key) => { + const found = key.match(re_cp) + if (found && found[1]) { + values['cp' + found[1]] = +(data[key] ?? 0) + } + }) values.selfUsage = values.pv - values.evuOut if (values.selfUsage < 0) { values.selfUsage = 0 diff --git a/packages/modules/web_themes/colors/source/src/components/powerMeter/PMArc.vue b/packages/modules/web_themes/colors/source/src/components/powerMeter/PMArc.vue index 0e53cf73af..a794fef532 100644 --- a/packages/modules/web_themes/colors/source/src/components/powerMeter/PMArc.vue +++ b/packages/modules/web_themes/colors/source/src/components/powerMeter/PMArc.vue @@ -56,7 +56,7 @@ const props = defineProps<{ categoriesToShow: PowerItemType[] }>() -const cornerRadius = 20 +const cornerRadius = 10 const circleGapSize = Math.PI / 40 const arcCount = computed(() => props.plotdata.length - 1) const pieGenerator = computed(() => @@ -75,7 +75,7 @@ const pieGenerator = computed(() => const path = computed(() => arc>() //.innerRadius((props.radius / 6) * 5) - .innerRadius(props.radius * 0.88) + .innerRadius(props.radius * 0.87) .outerRadius(props.radius) .cornerRadius(cornerRadius), ) diff --git a/packages/modules/web_themes/colors/source/src/views/ColorsTheme.vue b/packages/modules/web_themes/colors/source/src/views/ColorsTheme.vue index bec6914be8..b29a1ffe35 100644 --- a/packages/modules/web_themes/colors/source/src/views/ColorsTheme.vue +++ b/packages/modules/web_themes/colors/source/src/views/ColorsTheme.vue @@ -81,7 +81,7 @@ Hagen */ Fahrzeuge {throw TypeError(t)};var iT=(t,e,r)=>e in t?nT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ve=(t,e,r)=>iT(t,typeof e!="symbol"?e+"":e,r),Sf=(t,e,r)=>e.has(t)||hb("Cannot "+r);var ye=(t,e,r)=>(Sf(t,e,"read from private field"),r?r.call(t):e.get(t)),gt=(t,e,r)=>e.has(t)?hb("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Ze=(t,e,r,n)=>(Sf(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Xe=(t,e,r)=>(Sf(t,e,"access private method"),r);var Vl=(t,e,r,n)=>({set _(s){Ze(t,e,s,r)},get _(){return ye(t,e,n)}});(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();const qs=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function kg(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const At={},Po=[],Fn=()=>{},sT=()=>!1,Lc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Pg=t=>t.startsWith("onUpdate:"),Sr=Object.assign,Og=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},oT=Object.prototype.hasOwnProperty,wt=(t,e)=>oT.call(t,e),nt=Array.isArray,Oo=t=>_l(t)==="[object Map]",oa=t=>_l(t)==="[object Set]",pb=t=>_l(t)==="[object Date]",at=t=>typeof t=="function",Kt=t=>typeof t=="string",xn=t=>typeof t=="symbol",Ot=t=>t!==null&&typeof t=="object",S0=t=>(Ot(t)||at(t))&&at(t.then)&&at(t.catch),x0=Object.prototype.toString,_l=t=>x0.call(t),aT=t=>_l(t).slice(8,-1),T0=t=>_l(t)==="[object Object]",Lg=t=>Kt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ga=kg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},lT=/-(\w)/g,ln=Rc(t=>t.replace(lT,(e,r)=>r?r.toUpperCase():"")),uT=/\B([A-Z])/g,eo=Rc(t=>t.replace(uT,"-$1").toLowerCase()),Bc=Rc(t=>t.charAt(0).toUpperCase()+t.slice(1)),xf=Rc(t=>t?`on${Bc(t)}`:""),Ji=(t,e)=>!Object.is(t,e),vu=(t,...e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},Ku=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let gb;const $c=()=>gb||(gb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof qs<"u"?qs:{});function ht(t){if(nt(t)){const e={};for(let r=0;r{if(r){const n=r.split(fT);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function rt(t){let e="";if(Kt(t))e=t;else if(nt(t))for(let r=0;rEl(r,e))}const I0=t=>!!(t&&t.__v_isRef===!0),ke=t=>Kt(t)?t:t==null?"":nt(t)||Ot(t)&&(t.toString===x0||!at(t.toString))?I0(t)?ke(t.value):JSON.stringify(t,M0,2):String(t),M0=(t,e)=>I0(e)?M0(t,e.value):Oo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,s],i)=>(r[Tf(n,i)+" =>"]=s,r),{})}:oa(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>Tf(r))}:xn(e)?Tf(e):Ot(e)&&!nt(e)&&!T0(e)?String(e):e,Tf=(t,e="")=>{var r;return xn(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Vr;class bT{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Vr,!e&&Vr&&(this.index=(Vr.scopes||(Vr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e0)return;if(Ka){let e=Ka;for(Ka=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;Ya;){let e=Ya;for(Ya=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function L0(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function R0(t){let e,r=t.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),Ng(n),wT(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}t.deps=e,t.depsTail=r}function yh(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(B0(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function B0(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ol))return;t.globalVersion=ol;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!yh(t)){t.flags&=-3;return}const r=Mt,n=Sn;Mt=t,Sn=!0;try{L0(t);const s=t.fn(t._value);(e.version===0||Ji(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{Mt=r,Sn=n,R0(t),t.flags&=-3}}function Ng(t,e=!1){const{dep:r,prevSub:n,nextSub:s}=t;if(n&&(n.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Ng(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function wT(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}let Sn=!0;const $0=[];function os(){$0.push(Sn),Sn=!1}function as(){const t=$0.pop();Sn=t===void 0?!0:t}function mb(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=Mt;Mt=void 0;try{e()}finally{Mt=r}}}let ol=0;class vT{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dg{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Mt||!Sn||Mt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Mt)r=this.activeLink=new vT(Mt,this),Mt.deps?(r.prevDep=Mt.depsTail,Mt.depsTail.nextDep=r,Mt.depsTail=r):Mt.deps=Mt.depsTail=r,N0(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Mt.depsTail,r.nextDep=void 0,Mt.depsTail.nextDep=r,Mt.depsTail=r,Mt.deps===r&&(Mt.deps=n)}return r}trigger(e){this.version++,ol++,this.notify(e)}notify(e){Bg();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{$g()}}}function N0(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)N0(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const wh=new WeakMap,Ns=Symbol(""),vh=Symbol(""),al=Symbol("");function mr(t,e,r){if(Sn&&Mt){let n=wh.get(t);n||wh.set(t,n=new Map);let s=n.get(r);s||(n.set(r,s=new Dg),s.map=n,s.key=r),s.track()}}function ui(t,e,r,n,s,i){const a=wh.get(t);if(!a){ol++;return}const o=l=>{l&&l.trigger()};if(Bg(),e==="clear")a.forEach(o);else{const l=nt(t),u=l&&Lg(r);if(l&&r==="length"){const c=Number(n);a.forEach((f,d)=>{(d==="length"||d===al||!xn(d)&&d>=c)&&o(f)})}else switch((r!==void 0||a.has(void 0))&&o(a.get(r)),u&&o(a.get(al)),e){case"add":l?u&&o(a.get("length")):(o(a.get(Ns)),Oo(t)&&o(a.get(vh)));break;case"delete":l||(o(a.get(Ns)),Oo(t)&&o(a.get(vh)));break;case"set":Oo(t)&&o(a.get(Ns));break}}$g()}function go(t){const e=yt(t);return e===t?e:(mr(e,"iterate",al),on(t)?e:e.map(br))}function Nc(t){return mr(t=yt(t),"iterate",al),t}const _T={__proto__:null,[Symbol.iterator](){return Cf(this,Symbol.iterator,br)},concat(...t){return go(this).concat(...t.map(e=>nt(e)?go(e):e))},entries(){return Cf(this,"entries",t=>(t[1]=br(t[1]),t))},every(t,e){return Jn(this,"every",t,e,void 0,arguments)},filter(t,e){return Jn(this,"filter",t,e,r=>r.map(br),arguments)},find(t,e){return Jn(this,"find",t,e,br,arguments)},findIndex(t,e){return Jn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Jn(this,"findLast",t,e,br,arguments)},findLastIndex(t,e){return Jn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Jn(this,"forEach",t,e,void 0,arguments)},includes(...t){return If(this,"includes",t)},indexOf(...t){return If(this,"indexOf",t)},join(t){return go(this).join(t)},lastIndexOf(...t){return If(this,"lastIndexOf",t)},map(t,e){return Jn(this,"map",t,e,void 0,arguments)},pop(){return wa(this,"pop")},push(...t){return wa(this,"push",t)},reduce(t,...e){return bb(this,"reduce",t,e)},reduceRight(t,...e){return bb(this,"reduceRight",t,e)},shift(){return wa(this,"shift")},some(t,e){return Jn(this,"some",t,e,void 0,arguments)},splice(...t){return wa(this,"splice",t)},toReversed(){return go(this).toReversed()},toSorted(t){return go(this).toSorted(t)},toSpliced(...t){return go(this).toSpliced(...t)},unshift(...t){return wa(this,"unshift",t)},values(){return Cf(this,"values",br)}};function Cf(t,e,r){const n=Nc(t),s=n[e]();return n!==t&&!on(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=r(i.value)),i}),s}const ET=Array.prototype;function Jn(t,e,r,n,s,i){const a=Nc(t),o=a!==t&&!on(t),l=a[e];if(l!==ET[e]){const f=l.apply(t,i);return o?br(f):f}let u=r;a!==t&&(o?u=function(f,d){return r.call(this,br(f),d,t)}:r.length>2&&(u=function(f,d){return r.call(this,f,d,t)}));const c=l.call(a,u,n);return o&&s?s(c):c}function bb(t,e,r,n){const s=Nc(t);let i=r;return s!==t&&(on(t)?r.length>3&&(i=function(a,o,l){return r.call(this,a,o,l,t)}):i=function(a,o,l){return r.call(this,a,br(o),l,t)}),s[e](i,...n)}function If(t,e,r){const n=yt(t);mr(n,"iterate",al);const s=n[e](...r);return(s===-1||s===!1)&&Vg(r[0])?(r[0]=yt(r[0]),n[e](...r)):s}function wa(t,e,r=[]){os(),Bg();const n=yt(t)[e].apply(t,r);return $g(),as(),n}const ST=kg("__proto__,__v_isRef,__isVue"),D0=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(xn));function xT(t){xn(t)||(t=String(t));const e=yt(this);return mr(e,"has",t),e.hasOwnProperty(t)}class U0{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?RT:W0:i?j0:V0).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=nt(e);if(!s){let l;if(a&&(l=_T[r]))return l;if(r==="hasOwnProperty")return xT}const o=Reflect.get(e,r,Er(e)?e:n);return(xn(r)?D0.has(r):ST(r))||(s||mr(e,"get",r),i)?o:Er(o)?a&&Lg(r)?o:o.value:Ot(o)?s?z0(o):Dt(o):o}}class F0 extends U0{constructor(e=!1){super(!1,e)}set(e,r,n,s){let i=e[r];if(!this._isShallow){const l=Gs(i);if(!on(n)&&!Gs(n)&&(i=yt(i),n=yt(n)),!nt(e)&&Er(i)&&!Er(n))return l?!1:(i.value=n,!0)}const a=nt(e)&&Lg(r)?Number(r)t,jl=t=>Reflect.getPrototypeOf(t);function MT(t,e,r){return function(...n){const s=this.__v_raw,i=yt(s),a=Oo(i),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,u=s[t](...n),c=r?_h:e?Eh:br;return!e&&mr(i,"iterate",l?vh:Ns),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:o?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Wl(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function kT(t,e){const r={get(s){const i=this.__v_raw,a=yt(i),o=yt(s);t||(Ji(s,o)&&mr(a,"get",s),mr(a,"get",o));const{has:l}=jl(a),u=e?_h:t?Eh:br;if(l.call(a,s))return u(i.get(s));if(l.call(a,o))return u(i.get(o));i!==a&&i.get(s)},get size(){const s=this.__v_raw;return!t&&mr(yt(s),"iterate",Ns),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,a=yt(i),o=yt(s);return t||(Ji(s,o)&&mr(a,"has",s),mr(a,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const a=this,o=a.__v_raw,l=yt(o),u=e?_h:t?Eh:br;return!t&&mr(l,"iterate",Ns),o.forEach((c,f)=>s.call(i,u(c),u(f),a))}};return Sr(r,t?{add:Wl("add"),set:Wl("set"),delete:Wl("delete"),clear:Wl("clear")}:{add(s){!e&&!on(s)&&!Gs(s)&&(s=yt(s));const i=yt(this);return jl(i).has.call(i,s)||(i.add(s),ui(i,"add",s,s)),this},set(s,i){!e&&!on(i)&&!Gs(i)&&(i=yt(i));const a=yt(this),{has:o,get:l}=jl(a);let u=o.call(a,s);u||(s=yt(s),u=o.call(a,s));const c=l.call(a,s);return a.set(s,i),u?Ji(i,c)&&ui(a,"set",s,i):ui(a,"add",s,i),this},delete(s){const i=yt(this),{has:a,get:o}=jl(i);let l=a.call(i,s);l||(s=yt(s),l=a.call(i,s)),o&&o.call(i,s);const u=i.delete(s);return l&&ui(i,"delete",s,void 0),u},clear(){const s=yt(this),i=s.size!==0,a=s.clear();return i&&ui(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=MT(s,t,e)}),r}function Ug(t,e){const r=kT(t,e);return(n,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(wt(r,s)&&s in n?r:n,s,i)}const PT={get:Ug(!1,!1)},OT={get:Ug(!1,!0)},LT={get:Ug(!0,!1)};const V0=new WeakMap,j0=new WeakMap,W0=new WeakMap,RT=new WeakMap;function BT(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $T(t){return t.__v_skip||!Object.isExtensible(t)?0:BT(aT(t))}function Dt(t){return Gs(t)?t:Fg(t,!1,AT,PT,V0)}function NT(t){return Fg(t,!1,IT,OT,j0)}function z0(t){return Fg(t,!0,CT,LT,W0)}function Fg(t,e,r,n,s){if(!Ot(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=s.get(t);if(i)return i;const a=$T(t);if(a===0)return t;const o=new Proxy(t,a===2?n:r);return s.set(t,o),o}function Lo(t){return Gs(t)?Lo(t.__v_raw):!!(t&&t.__v_isReactive)}function Gs(t){return!!(t&&t.__v_isReadonly)}function on(t){return!!(t&&t.__v_isShallow)}function Vg(t){return t?!!t.__v_raw:!1}function yt(t){const e=t&&t.__v_raw;return e?yt(e):t}function DT(t){return!wt(t,"__v_skip")&&Object.isExtensible(t)&&A0(t,"__v_skip",!0),t}const br=t=>Ot(t)?Dt(t):t,Eh=t=>Ot(t)?z0(t):t;function Er(t){return t?t.__v_isRef===!0:!1}function ct(t){return UT(t,!1)}function UT(t,e){return Er(t)?t:new FT(t,e)}class FT{constructor(e,r){this.dep=new Dg,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:yt(e),this._value=r?e:br(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||on(e)||Gs(e);e=n?e:yt(e),Ji(e,r)&&(this._rawValue=e,this._value=n?e:br(e),this.dep.trigger())}}function se(t){return Er(t)?t.value:t}const VT={get:(t,e,r)=>e==="__v_raw"?t:se(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const s=t[e];return Er(s)&&!Er(r)?(s.value=r,!0):Reflect.set(t,e,r,n)}};function H0(t){return Lo(t)?t:new Proxy(t,VT)}class jT{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new Dg(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ol-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Mt!==this)return O0(this,!0),!0}get value(){const e=this.dep.track();return B0(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function WT(t,e,r=!1){let n,s;return at(t)?n=t:(n=t.get,s=t.set),new jT(n,s,r)}const zl={},Xu=new WeakMap;let As;function zT(t,e=!1,r=As){if(r){let n=Xu.get(r);n||Xu.set(r,n=[]),n.push(t)}}function HT(t,e,r=At){const{immediate:n,deep:s,once:i,scheduler:a,augmentJob:o,call:l}=r,u=x=>s?x:on(x)||s===!1||s===0?ci(x,1):ci(x);let c,f,d,p,g=!1,b=!1;if(Er(t)?(f=()=>t.value,g=on(t)):Lo(t)?(f=()=>u(t),g=!0):nt(t)?(b=!0,g=t.some(x=>Lo(x)||on(x)),f=()=>t.map(x=>{if(Er(x))return x.value;if(Lo(x))return u(x);if(at(x))return l?l(x,2):x()})):at(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){os();try{d()}finally{as()}}const x=As;As=c;try{return l?l(t,3,[p]):t(p)}finally{As=x}}:f=Fn,e&&s){const x=f,T=s===!0?1/0:s;f=()=>ci(x(),T)}const v=yT(),w=()=>{c.stop(),v&&v.active&&Og(v.effects,c)};if(i&&e){const x=e;e=(...T)=>{x(...T),w()}}let _=b?new Array(t.length).fill(zl):zl;const y=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(e){const T=c.run();if(s||g||(b?T.some((A,C)=>Ji(A,_[C])):Ji(T,_))){d&&d();const A=As;As=c;try{const C=[T,_===zl?void 0:b&&_[0]===zl?[]:_,p];l?l(e,3,C):e(...C),_=T}finally{As=A}}}else c.run()};return o&&o(y),c=new k0(f),c.scheduler=a?()=>a(y,!1):y,p=x=>zT(x,!1,c),d=c.onStop=()=>{const x=Xu.get(c);if(x){if(l)l(x,4);else for(const T of x)T();Xu.delete(c)}},e?n?y(!0):_=c.run():a?a(y.bind(null,!0),!0):c.run(),w.pause=c.pause.bind(c),w.resume=c.resume.bind(c),w.stop=w,w}function ci(t,e=1/0,r){if(e<=0||!Ot(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,Er(t))ci(t.value,e,r);else if(nt(t))for(let n=0;n{ci(n,e,r)});else if(T0(t)){for(const n in t)ci(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&ci(t[n],e,r)}return t}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Sl(t,e,r,n){try{return n?t(...n):t()}catch(s){Dc(s,e,r)}}function qn(t,e,r,n){if(at(t)){const s=Sl(t,e,r,n);return s&&S0(s)&&s.catch(i=>{Dc(i,e,r)}),s}if(nt(t)){const s=[];for(let i=0;i>>1,s=Cr[n],i=ll(s);i=ll(r)?Cr.push(t):Cr.splice(GT(e),0,t),t.flags|=1,Y0()}}function Y0(){Qu||(Qu=q0.then(X0))}function YT(t){nt(t)?Ro.push(...t):Hi&&t.id===-1?Hi.splice(_o+1,0,t):t.flags&1||(Ro.push(t),t.flags|=1),Y0()}function yb(t,e,r=Ln+1){for(;rll(r)-ll(n));if(Ro.length=0,Hi){Hi.push(...e);return}for(Hi=e,_o=0;_ot.id==null?t.flags&2?-1:1/0:t.id;function X0(t){try{for(Ln=0;Ln{n._d&&Pb(-1);const i=Ju(e);let a;try{a=t(...s)}finally{Ju(i),n._d&&Pb(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function xl(t,e){if(lr===null)return t;const r=jc(lr),n=t.dirs||(t.dirs=[]);for(let s=0;st.__isTeleport,Xa=t=>t&&(t.disabled||t.disabled===""),wb=t=>t&&(t.defer||t.defer===""),vb=t=>typeof SVGElement<"u"&&t instanceof SVGElement,_b=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Sh=(t,e)=>{const r=t&&t.to;return Kt(r)?e?e(r):null:r},Z0={name:"Teleport",__isTeleport:!0,process(t,e,r,n,s,i,a,o,l,u){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:b,createComment:v}}=u,w=Xa(e.props);let{shapeFlag:_,children:y,dynamicChildren:x}=e;if(t==null){const T=e.el=b(""),A=e.anchor=b("");p(T,r,n),p(A,r,n);const C=(j,R)=>{_&16&&(s&&s.isCE&&(s.ce._teleportTarget=j),c(y,j,R,s,i,a,o,l))},L=()=>{const j=e.target=Sh(e.props,g),R=e_(j,e,b,p);j&&(a!=="svg"&&vb(j)?a="svg":a!=="mathml"&&_b(j)&&(a="mathml"),w||(C(j,R),_u(e,!1)))};w&&(C(r,A),_u(e,!0)),wb(e.props)?Ar(()=>{L(),e.el.__isMounted=!0},i):L()}else{if(wb(e.props)&&!t.el.__isMounted){Ar(()=>{Z0.process(t,e,r,n,s,i,a,o,l,u),delete t.el.__isMounted},i);return}e.el=t.el,e.targetStart=t.targetStart;const T=e.anchor=t.anchor,A=e.target=t.target,C=e.targetAnchor=t.targetAnchor,L=Xa(t.props),j=L?r:A,R=L?T:C;if(a==="svg"||vb(A)?a="svg":(a==="mathml"||_b(A))&&(a="mathml"),x?(d(t.dynamicChildren,x,j,s,i,a,o),Hg(t,e,!0)):l||f(t,e,j,R,s,i,a,o,!1),w)L?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Hl(e,r,T,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const U=e.target=Sh(e.props,g);U&&Hl(e,U,null,u,0)}else L&&Hl(e,A,C,u,1);_u(e,w)}},remove(t,e,r,{um:n,o:{remove:s}},i){const{shapeFlag:a,children:o,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=t;if(f&&(s(u),s(c)),i&&s(l),a&16){const p=i||!Xa(d);for(let g=0;gZu(g,e&&(nt(e)?e[b]:e),r,n,s));return}if(Bo(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Zu(t,e,r,n.component.subTree);return}const i=n.shapeFlag&4?jc(n.component):n.el,a=s?null:i,{i:o,r:l}=t,u=e&&e.r,c=o.refs===At?o.refs={}:o.refs,f=o.setupState,d=yt(f),p=f===At?()=>!1:g=>wt(d,g);if(u!=null&&u!==l&&(Kt(u)?(c[u]=null,p(u)&&(f[u]=null)):Er(u)&&(u.value=null)),at(l))Sl(l,o,12,[a,c]);else{const g=Kt(l),b=Er(l);if(g||b){const v=()=>{if(t.f){const w=g?p(l)?f[l]:c[l]:l.value;s?nt(w)&&Og(w,i):nt(w)?w.includes(i)||w.push(i):g?(c[l]=[i],p(l)&&(f[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else g?(c[l]=a,p(l)&&(f[l]=a)):b&&(l.value=a,t.k&&(c[t.k]=a))};a?(v.id=-1,Ar(v,r)):v()}}}$c().requestIdleCallback;$c().cancelIdleCallback;const Bo=t=>!!t.type.__asyncLoader,r_=t=>t.type.__isKeepAlive;function JT(t,e){n_(t,"a",e)}function ZT(t,e){n_(t,"da",e)}function n_(t,e,r=wr){const n=t.__wdc||(t.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Uc(e,n,r),r){let s=r.parent;for(;s&&s.parent;)r_(s.parent.vnode)&&eA(n,e,r,s),s=s.parent}}function eA(t,e,r,n){const s=Uc(e,t,n,!0);s_(()=>{Og(n[e],s)},r)}function Uc(t,e,r=wr,n=!1){if(r){const s=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...a)=>{os();const o=Tl(r),l=qn(e,r,t,a);return o(),as(),l});return n?s.unshift(i):s.push(i),i}}const Pi=t=>(e,r=wr)=>{(!cl||t==="sp")&&Uc(t,(...n)=>e(...n),r)},tA=Pi("bm"),dn=Pi("m"),rA=Pi("bu"),nA=Pi("u"),i_=Pi("bum"),s_=Pi("um"),iA=Pi("sp"),sA=Pi("rtg"),oA=Pi("rtc");function aA(t,e=wr){Uc("ec",t,e)}const lA="components";function uA(t,e){return fA(lA,t,!0,e)||t}const cA=Symbol.for("v-ndc");function fA(t,e,r=!0,n=!1){const s=lr||wr;if(s){const i=s.type;{const o=tC(i,!1);if(o&&(o===e||o===ln(e)||o===Bc(ln(e))))return i}const a=Eb(s[t]||i[t],e)||Eb(s.appContext[t],e);return!a&&n?i:a}}function Eb(t,e){return t&&(t[e]||t[ln(e)]||t[Bc(ln(e))])}function ft(t,e,r,n){let s;const i=r,a=nt(t);if(a||Kt(t)){const o=a&&Lo(t);let l=!1;o&&(l=!on(t),t=Nc(t)),s=new Array(t.length);for(let u=0,c=t.length;ue(o,l,void 0,i));else{const o=Object.keys(t);s=new Array(o.length);for(let l=0,u=o.length;l{const i=n.fn(...s);return i&&(i.key=n.key),i}:n.fn)}return t}function Gt(t,e,r={},n,s){if(lr.ce||lr.parent&&Bo(lr.parent)&&lr.parent.ce)return e!=="default"&&(r.name=e),ae(),Re(Ye,null,[xe("slot",r,n&&n())],64);let i=t[e];i&&i._c&&(i._d=!1),ae();const a=i&&o_(i(r)),o=r.key||a&&a.key,l=Re(Ye,{key:(o&&!xn(o)?o:`_${e}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&t._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function o_(t){return t.some(e=>Gg(e)?!(e.type===ts||e.type===Ye&&!o_(e.children)):!0)?t:null}const xh=t=>t?T_(t)?jc(t):xh(t.parent):null,Qa=Sr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>xh(t.parent),$root:t=>xh(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>l_(t),$forceUpdate:t=>t.f||(t.f=()=>{jg(t.update)}),$nextTick:t=>t.n||(t.n=G0.bind(t.proxy)),$watch:t=>BA.bind(t)}),Mf=(t,e)=>t!==At&&!t.__isScriptSetup&&wt(t,e),hA={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:i,accessCache:a,type:o,appContext:l}=t;let u;if(e[0]!=="$"){const p=a[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return s[e];case 4:return r[e];case 3:return i[e]}else{if(Mf(n,e))return a[e]=1,n[e];if(s!==At&&wt(s,e))return a[e]=2,s[e];if((u=t.propsOptions[0])&&wt(u,e))return a[e]=3,i[e];if(r!==At&&wt(r,e))return a[e]=4,r[e];Th&&(a[e]=0)}}const c=Qa[e];let f,d;if(c)return e==="$attrs"&&mr(t.attrs,"get",""),c(t);if((f=o.__cssModules)&&(f=f[e]))return f;if(r!==At&&wt(r,e))return a[e]=4,r[e];if(d=l.config.globalProperties,wt(d,e))return d[e]},set({_:t},e,r){const{data:n,setupState:s,ctx:i}=t;return Mf(s,e)?(s[e]=r,!0):n!==At&&wt(n,e)?(n[e]=r,!0):wt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:s,propsOptions:i}},a){let o;return!!r[a]||t!==At&&wt(t,a)||Mf(e,a)||(o=i[0])&&wt(o,a)||wt(n,a)||wt(Qa,a)||wt(s.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:wt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function Sb(t){return nt(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let Th=!0;function pA(t){const e=l_(t),r=t.proxy,n=t.ctx;Th=!1,e.beforeCreate&&xb(e.beforeCreate,t,"bc");const{data:s,computed:i,methods:a,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:g,activated:b,deactivated:v,beforeDestroy:w,beforeUnmount:_,destroyed:y,unmounted:x,render:T,renderTracked:A,renderTriggered:C,errorCaptured:L,serverPrefetch:j,expose:R,inheritAttrs:U,components:I,directives:M,filters:$}=e;if(u&&gA(u,n,null),a)for(const re in a){const N=a[re];at(N)&&(n[re]=N.bind(r))}if(s){const re=s.call(r,r);Ot(re)&&(t.data=Dt(re))}if(Th=!0,i)for(const re in i){const N=i[re],fe=at(N)?N.bind(r,r):at(N.get)?N.get.bind(r,r):Fn,G=!at(N)&&at(N.set)?N.set.bind(r):Fn,pe=we({get:fe,set:G});Object.defineProperty(n,re,{enumerable:!0,configurable:!0,get:()=>pe.value,set:F=>pe.value=F})}if(o)for(const re in o)a_(o[re],n,r,re);if(l){const re=at(l)?l.call(r):l;Reflect.ownKeys(re).forEach(N=>{_A(N,re[N])})}c&&xb(c,t,"c");function ne(re,N){nt(N)?N.forEach(fe=>re(fe.bind(r))):N&&re(N.bind(r))}if(ne(tA,f),ne(dn,d),ne(rA,p),ne(nA,g),ne(JT,b),ne(ZT,v),ne(aA,L),ne(oA,A),ne(sA,C),ne(i_,_),ne(s_,x),ne(iA,j),nt(R))if(R.length){const re=t.exposed||(t.exposed={});R.forEach(N=>{Object.defineProperty(re,N,{get:()=>r[N],set:fe=>r[N]=fe})})}else t.exposed||(t.exposed={});T&&t.render===Fn&&(t.render=T),U!=null&&(t.inheritAttrs=U),I&&(t.components=I),M&&(t.directives=M),j&&t_(t)}function gA(t,e,r=Fn){nt(t)&&(t=Ah(t));for(const n in t){const s=t[n];let i;Ot(s)?"default"in s?i=Eu(s.from||n,s.default,!0):i=Eu(s.from||n):i=Eu(s),Er(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):e[n]=i}}function xb(t,e,r){qn(nt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function a_(t,e,r,n){let s=n.includes(".")?v_(r,n):()=>r[n];if(Kt(t)){const i=e[t];at(i)&&Su(s,i)}else if(at(t))Su(s,t.bind(r));else if(Ot(t))if(nt(t))t.forEach(i=>a_(i,e,r,n));else{const i=at(t.handler)?t.handler.bind(r):e[t.handler];at(i)&&Su(s,i,t)}}function l_(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=t.appContext,o=i.get(e);let l;return o?l=o:!s.length&&!r&&!n?l=e:(l={},s.length&&s.forEach(u=>ec(l,u,a,!0)),ec(l,e,a)),Ot(e)&&i.set(e,l),l}function ec(t,e,r,n=!1){const{mixins:s,extends:i}=e;i&&ec(t,i,r,!0),s&&s.forEach(a=>ec(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const o=mA[a]||r&&r[a];t[a]=o?o(t[a],e[a]):e[a]}return t}const mA={data:Tb,props:Ab,emits:Ab,methods:Da,computed:Da,beforeCreate:xr,created:xr,beforeMount:xr,mounted:xr,beforeUpdate:xr,updated:xr,beforeDestroy:xr,beforeUnmount:xr,destroyed:xr,unmounted:xr,activated:xr,deactivated:xr,errorCaptured:xr,serverPrefetch:xr,components:Da,directives:Da,watch:yA,provide:Tb,inject:bA};function Tb(t,e){return e?t?function(){return Sr(at(t)?t.call(this,this):t,at(e)?e.call(this,this):e)}:e:t}function bA(t,e){return Da(Ah(t),Ah(e))}function Ah(t){if(nt(t)){const e={};for(let r=0;r1)return r&&at(e)?e.call(n&&n.proxy):e}}const c_={},f_=()=>Object.create(c_),d_=t=>Object.getPrototypeOf(t)===c_;function EA(t,e,r,n=!1){const s={},i=f_();t.propsDefaults=Object.create(null),h_(t,e,s,i);for(const a in t.propsOptions[0])a in s||(s[a]=void 0);r?t.props=n?s:NT(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function SA(t,e,r,n){const{props:s,attrs:i,vnode:{patchFlag:a}}=t,o=yt(s),[l]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const c=t.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=p_(f,e,!0);Sr(a,d),p&&o.push(...p)};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return Ot(t)&&n.set(t,Po),Po;if(nt(i))for(let c=0;ct[0]==="_"||t==="$stable",zg=t=>nt(t)?t.map(Rn):[Rn(t)],TA=(t,e,r)=>{if(e._n)return e;const n=Ie((...s)=>zg(e(...s)),r);return n._c=!1,n},m_=(t,e,r)=>{const n=t._ctx;for(const s in t){if(g_(s))continue;const i=t[s];if(at(i))e[s]=TA(s,i,n);else if(i!=null){const a=zg(i);e[s]=()=>a}}},b_=(t,e)=>{const r=zg(e);t.slots.default=()=>r},y_=(t,e,r)=>{for(const n in e)(r||n!=="_")&&(t[n]=e[n])},AA=(t,e,r)=>{const n=t.slots=f_();if(t.vnode.shapeFlag&32){const s=e._;s?(y_(n,e,r),r&&A0(n,"_",s,!0)):m_(e,n)}else e&&b_(t,e)},CA=(t,e,r)=>{const{vnode:n,slots:s}=t;let i=!0,a=At;if(n.shapeFlag&32){const o=e._;o?r&&o===1?i=!1:y_(s,e,r):(i=!e.$stable,m_(e,s)),a=e}else e&&(b_(t,e),a={default:1});if(i)for(const o in s)!g_(o)&&a[o]==null&&delete s[o]},Ar=jA;function IA(t){return MA(t)}function MA(t,e){const r=$c();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:a,createText:o,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=Fn,insertStaticContent:g}=t,b=(k,P,V,B=null,H=null,q=null,ue=void 0,J=null,Y=!!P.dynamicChildren)=>{if(k===P)return;k&&!va(k,P)&&(B=W(k),F(k,H,q,!0),k=null),P.patchFlag===-2&&(Y=!1,P.dynamicChildren=null);const{type:ie,ref:Q,shapeFlag:oe}=P;switch(ie){case Vc:v(k,P,V,B);break;case ts:w(k,P,V,B);break;case xu:k==null&&_(P,V,B,ue);break;case Ye:I(k,P,V,B,H,q,ue,J,Y);break;default:oe&1?T(k,P,V,B,H,q,ue,J,Y):oe&6?M(k,P,V,B,H,q,ue,J,Y):(oe&64||oe&128)&&ie.process(k,P,V,B,H,q,ue,J,Y,ce)}Q!=null&&H&&Zu(Q,k&&k.ref,q,P||k,!P)},v=(k,P,V,B)=>{if(k==null)n(P.el=o(P.children),V,B);else{const H=P.el=k.el;P.children!==k.children&&u(H,P.children)}},w=(k,P,V,B)=>{k==null?n(P.el=l(P.children||""),V,B):P.el=k.el},_=(k,P,V,B)=>{[k.el,k.anchor]=g(k.children,P,V,B,k.el,k.anchor)},y=({el:k,anchor:P},V,B)=>{let H;for(;k&&k!==P;)H=d(k),n(k,V,B),k=H;n(P,V,B)},x=({el:k,anchor:P})=>{let V;for(;k&&k!==P;)V=d(k),s(k),k=V;s(P)},T=(k,P,V,B,H,q,ue,J,Y)=>{P.type==="svg"?ue="svg":P.type==="math"&&(ue="mathml"),k==null?A(P,V,B,H,q,ue,J,Y):j(k,P,H,q,ue,J,Y)},A=(k,P,V,B,H,q,ue,J)=>{let Y,ie;const{props:Q,shapeFlag:oe,transition:me,dirs:Te}=k;if(Y=k.el=a(k.type,q,Q&&Q.is,Q),oe&8?c(Y,k.children):oe&16&&L(k.children,Y,null,B,H,kf(k,q),ue,J),Te&&gs(k,null,B,"created"),C(Y,k,k.scopeId,ue,B),Q){for(const m in Q)m!=="value"&&!Ga(m)&&i(Y,m,null,Q[m],q,B);"value"in Q&&i(Y,"value",null,Q.value,q),(ie=Q.onVnodeBeforeMount)&&In(ie,B,k)}Te&&gs(k,null,B,"beforeMount");const S=kA(H,me);S&&me.beforeEnter(Y),n(Y,P,V),((ie=Q&&Q.onVnodeMounted)||S||Te)&&Ar(()=>{ie&&In(ie,B,k),S&&me.enter(Y),Te&&gs(k,null,B,"mounted")},H)},C=(k,P,V,B,H)=>{if(V&&p(k,V),B)for(let q=0;q{for(let ie=Y;ie{const J=P.el=k.el;let{patchFlag:Y,dynamicChildren:ie,dirs:Q}=P;Y|=k.patchFlag&16;const oe=k.props||At,me=P.props||At;let Te;if(V&&ms(V,!1),(Te=me.onVnodeBeforeUpdate)&&In(Te,V,P,k),Q&&gs(P,k,V,"beforeUpdate"),V&&ms(V,!0),(oe.innerHTML&&me.innerHTML==null||oe.textContent&&me.textContent==null)&&c(J,""),ie?R(k.dynamicChildren,ie,J,V,B,kf(P,H),q):ue||N(k,P,J,null,V,B,kf(P,H),q,!1),Y>0){if(Y&16)U(J,oe,me,V,H);else if(Y&2&&oe.class!==me.class&&i(J,"class",null,me.class,H),Y&4&&i(J,"style",oe.style,me.style,H),Y&8){const S=P.dynamicProps;for(let m=0;m{Te&&In(Te,V,P,k),Q&&gs(P,k,V,"updated")},B)},R=(k,P,V,B,H,q,ue)=>{for(let J=0;J{if(P!==V){if(P!==At)for(const q in P)!Ga(q)&&!(q in V)&&i(k,q,P[q],null,H,B);for(const q in V){if(Ga(q))continue;const ue=V[q],J=P[q];ue!==J&&q!=="value"&&i(k,q,J,ue,H,B)}"value"in V&&i(k,"value",P.value,V.value,H)}},I=(k,P,V,B,H,q,ue,J,Y)=>{const ie=P.el=k?k.el:o(""),Q=P.anchor=k?k.anchor:o("");let{patchFlag:oe,dynamicChildren:me,slotScopeIds:Te}=P;Te&&(J=J?J.concat(Te):Te),k==null?(n(ie,V,B),n(Q,V,B),L(P.children||[],V,Q,H,q,ue,J,Y)):oe>0&&oe&64&&me&&k.dynamicChildren?(R(k.dynamicChildren,me,V,H,q,ue,J),(P.key!=null||H&&P===H.subTree)&&Hg(k,P,!0)):N(k,P,V,Q,H,q,ue,J,Y)},M=(k,P,V,B,H,q,ue,J,Y)=>{P.slotScopeIds=J,k==null?P.shapeFlag&512?H.ctx.activate(P,V,B,ue,Y):$(P,V,B,H,q,ue,Y):Z(k,P,Y)},$=(k,P,V,B,H,q,ue)=>{const J=k.component=XA(k,B,H);if(r_(k)&&(J.ctx.renderer=ce),QA(J,!1,ue),J.asyncDep){if(H&&H.registerDep(J,ne,ue),!k.el){const Y=J.subTree=xe(ts);w(null,Y,P,V)}}else ne(J,k,P,V,H,q,ue)},Z=(k,P,V)=>{const B=P.component=k.component;if(FA(k,P,V))if(B.asyncDep&&!B.asyncResolved){re(B,P,V);return}else B.next=P,B.update();else P.el=k.el,B.vnode=P},ne=(k,P,V,B,H,q,ue)=>{const J=()=>{if(k.isMounted){let{next:oe,bu:me,u:Te,parent:S,vnode:m}=k;{const he=w_(k);if(he){oe&&(oe.el=m.el,re(k,oe,ue)),he.asyncDep.then(()=>{k.isUnmounted||J()});return}}let h=oe,E;ms(k,!1),oe?(oe.el=m.el,re(k,oe,ue)):oe=m,me&&vu(me),(E=oe.props&&oe.props.onVnodeBeforeUpdate)&&In(E,S,oe,m),ms(k,!0);const O=Mb(k),te=k.subTree;k.subTree=O,b(te,O,f(te.el),W(te),k,H,q),oe.el=O.el,h===null&&VA(k,O.el),Te&&Ar(Te,H),(E=oe.props&&oe.props.onVnodeUpdated)&&Ar(()=>In(E,S,oe,m),H)}else{let oe;const{el:me,props:Te}=P,{bm:S,m,parent:h,root:E,type:O}=k,te=Bo(P);ms(k,!1),S&&vu(S),!te&&(oe=Te&&Te.onVnodeBeforeMount)&&In(oe,h,P),ms(k,!0);{E.ce&&E.ce._injectChildStyle(O);const he=k.subTree=Mb(k);b(null,he,V,B,k,H,q),P.el=he.el}if(m&&Ar(m,H),!te&&(oe=Te&&Te.onVnodeMounted)){const he=P;Ar(()=>In(oe,h,he),H)}(P.shapeFlag&256||h&&Bo(h.vnode)&&h.vnode.shapeFlag&256)&&k.a&&Ar(k.a,H),k.isMounted=!0,P=V=B=null}};k.scope.on();const Y=k.effect=new k0(J);k.scope.off();const ie=k.update=Y.run.bind(Y),Q=k.job=Y.runIfDirty.bind(Y);Q.i=k,Q.id=k.uid,Y.scheduler=()=>jg(Q),ms(k,!0),ie()},re=(k,P,V)=>{P.component=k;const B=k.vnode.props;k.vnode=P,k.next=null,SA(k,P.props,B,V),CA(k,P.children,V),os(),yb(k),as()},N=(k,P,V,B,H,q,ue,J,Y=!1)=>{const ie=k&&k.children,Q=k?k.shapeFlag:0,oe=P.children,{patchFlag:me,shapeFlag:Te}=P;if(me>0){if(me&128){G(ie,oe,V,B,H,q,ue,J,Y);return}else if(me&256){fe(ie,oe,V,B,H,q,ue,J,Y);return}}Te&8?(Q&16&&K(ie,H,q),oe!==ie&&c(V,oe)):Q&16?Te&16?G(ie,oe,V,B,H,q,ue,J,Y):K(ie,H,q,!0):(Q&8&&c(V,""),Te&16&&L(oe,V,B,H,q,ue,J,Y))},fe=(k,P,V,B,H,q,ue,J,Y)=>{k=k||Po,P=P||Po;const ie=k.length,Q=P.length,oe=Math.min(ie,Q);let me;for(me=0;meQ?K(k,H,q,!0,!1,oe):L(P,V,B,H,q,ue,J,Y,oe)},G=(k,P,V,B,H,q,ue,J,Y)=>{let ie=0;const Q=P.length;let oe=k.length-1,me=Q-1;for(;ie<=oe&&ie<=me;){const Te=k[ie],S=P[ie]=Y?qi(P[ie]):Rn(P[ie]);if(va(Te,S))b(Te,S,V,null,H,q,ue,J,Y);else break;ie++}for(;ie<=oe&&ie<=me;){const Te=k[oe],S=P[me]=Y?qi(P[me]):Rn(P[me]);if(va(Te,S))b(Te,S,V,null,H,q,ue,J,Y);else break;oe--,me--}if(ie>oe){if(ie<=me){const Te=me+1,S=Teme)for(;ie<=oe;)F(k[ie],H,q,!0),ie++;else{const Te=ie,S=ie,m=new Map;for(ie=S;ie<=me;ie++){const We=P[ie]=Y?qi(P[ie]):Rn(P[ie]);We.key!=null&&m.set(We.key,ie)}let h,E=0;const O=me-S+1;let te=!1,he=0;const Ce=new Array(O);for(ie=0;ie=O){F(We,H,q,!0);continue}let De;if(We.key!=null)De=m.get(We.key);else for(h=S;h<=me;h++)if(Ce[h-S]===0&&va(We,P[h])){De=h;break}De===void 0?F(We,H,q,!0):(Ce[De-S]=ie+1,De>=he?he=De:te=!0,b(We,P[De],V,null,H,q,ue,J,Y),E++)}const Ue=te?PA(Ce):Po;for(h=Ue.length-1,ie=O-1;ie>=0;ie--){const We=S+ie,De=P[We],He=We+1{const{el:q,type:ue,transition:J,children:Y,shapeFlag:ie}=k;if(ie&6){pe(k.component.subTree,P,V,B);return}if(ie&128){k.suspense.move(P,V,B);return}if(ie&64){ue.move(k,P,V,ce);return}if(ue===Ye){n(q,P,V);for(let oe=0;oeJ.enter(q),H);else{const{leave:oe,delayLeave:me,afterLeave:Te}=J,S=()=>n(q,P,V),m=()=>{oe(q,()=>{S(),Te&&Te()})};me?me(q,S,m):m()}else n(q,P,V)},F=(k,P,V,B=!1,H=!1)=>{const{type:q,props:ue,ref:J,children:Y,dynamicChildren:ie,shapeFlag:Q,patchFlag:oe,dirs:me,cacheIndex:Te}=k;if(oe===-2&&(H=!1),J!=null&&Zu(J,null,V,k,!0),Te!=null&&(P.renderCache[Te]=void 0),Q&256){P.ctx.deactivate(k);return}const S=Q&1&&me,m=!Bo(k);let h;if(m&&(h=ue&&ue.onVnodeBeforeUnmount)&&In(h,P,k),Q&6)ee(k.component,V,B);else{if(Q&128){k.suspense.unmount(V,B);return}S&&gs(k,null,P,"beforeUnmount"),Q&64?k.type.remove(k,P,V,ce,B):ie&&!ie.hasOnce&&(q!==Ye||oe>0&&oe&64)?K(ie,P,V,!1,!0):(q===Ye&&oe&384||!H&&Q&16)&&K(Y,P,V),B&&de(k)}(m&&(h=ue&&ue.onVnodeUnmounted)||S)&&Ar(()=>{h&&In(h,P,k),S&&gs(k,null,P,"unmounted")},V)},de=k=>{const{type:P,el:V,anchor:B,transition:H}=k;if(P===Ye){Se(V,B);return}if(P===xu){x(k);return}const q=()=>{s(V),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(k.shapeFlag&1&&H&&!H.persisted){const{leave:ue,delayLeave:J}=H,Y=()=>ue(V,q);J?J(k.el,q,Y):Y()}else q()},Se=(k,P)=>{let V;for(;k!==P;)V=d(k),s(k),k=V;s(P)},ee=(k,P,V)=>{const{bum:B,scope:H,job:q,subTree:ue,um:J,m:Y,a:ie}=k;Ib(Y),Ib(ie),B&&vu(B),H.stop(),q&&(q.flags|=8,F(ue,k,P,V)),J&&Ar(J,P),Ar(()=>{k.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&k.asyncDep&&!k.asyncResolved&&k.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},K=(k,P,V,B=!1,H=!1,q=0)=>{for(let ue=q;ue{if(k.shapeFlag&6)return W(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const P=d(k.anchor||k.el),V=P&&P[J0];return V?d(V):P};let D=!1;const X=(k,P,V)=>{k==null?P._vnode&&F(P._vnode,null,null,!0):b(P._vnode||null,k,P,null,null,null,V),P._vnode=k,D||(D=!0,yb(),K0(),D=!1)},ce={p:b,um:F,m:pe,r:de,mt:$,mc:L,pc:N,pbc:R,n:W,o:t};return{render:X,hydrate:void 0,createApp:vA(X)}}function kf({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function ms({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function kA(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Hg(t,e,r=!1){const n=t.children,s=e.children;if(nt(n)&&nt(s))for(let i=0;i>1,t[r[o]]0&&(e[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=e[a];return r}function w_(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:w_(e)}function Ib(t){if(t)for(let e=0;eEu(OA);function RA(t,e){return qg(t,null,e)}function Su(t,e,r){return qg(t,e,r)}function qg(t,e,r=At){const{immediate:n,deep:s,flush:i,once:a}=r,o=Sr({},r),l=e&&n||!e&&i!=="post";let u;if(cl){if(i==="sync"){const p=LA();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Fn,p.resume=Fn,p.pause=Fn,p}}const c=wr;o.call=(p,g,b)=>qn(p,c,g,b);let f=!1;i==="post"?o.scheduler=p=>{Ar(p,c&&c.suspense)}:i!=="sync"&&(f=!0,o.scheduler=(p,g)=>{g?p():jg(p)}),o.augmentJob=p=>{e&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const d=HT(t,e,o);return cl&&(u?u.push(d):l&&d()),d}function BA(t,e,r){const n=this.proxy,s=Kt(t)?t.includes(".")?v_(n,t):()=>n[t]:t.bind(n,n);let i;at(e)?i=e:(i=e.handler,r=e);const a=Tl(this),o=qg(s,i.bind(n),r);return a(),o}function v_(t,e){const r=e.split(".");return()=>{let n=t;for(let s=0;se==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${ln(e)}Modifiers`]||t[`${eo(e)}Modifiers`];function NA(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||At;let s=r;const i=e.startsWith("update:"),a=i&&$A(n,e.slice(7));a&&(a.trim&&(s=r.map(c=>Kt(c)?c.trim():c)),a.number&&(s=r.map(Ku)));let o,l=n[o=xf(e)]||n[o=xf(ln(e))];!l&&i&&(l=n[o=xf(eo(e))]),l&&qn(l,t,6,s);const u=n[o+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,qn(u,t,6,s)}}function __(t,e,r=!1){const n=e.emitsCache,s=n.get(t);if(s!==void 0)return s;const i=t.emits;let a={},o=!1;if(!at(t)){const l=u=>{const c=__(u,e,!0);c&&(o=!0,Sr(a,c))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!o?(Ot(t)&&n.set(t,null),null):(nt(i)?i.forEach(l=>a[l]=null):Sr(a,i),Ot(t)&&n.set(t,a),a)}function Fc(t,e){return!t||!Lc(e)?!1:(e=e.slice(2).replace(/Once$/,""),wt(t,e[0].toLowerCase()+e.slice(1))||wt(t,eo(e))||wt(t,e))}function Mb(t){const{type:e,vnode:r,proxy:n,withProxy:s,propsOptions:[i],slots:a,attrs:o,emit:l,render:u,renderCache:c,props:f,data:d,setupState:p,ctx:g,inheritAttrs:b}=t,v=Ju(t);let w,_;try{if(r.shapeFlag&4){const x=s||n,T=x;w=Rn(u.call(T,x,c,f,p,d,g)),_=o}else{const x=e;w=Rn(x.length>1?x(f,{attrs:o,slots:a,emit:l}):x(f,null)),_=e.props?o:DA(o)}}catch(x){Ja.length=0,Dc(x,t,1),w=xe(ts)}let y=w;if(_&&b!==!1){const x=Object.keys(_),{shapeFlag:T}=y;x.length&&T&7&&(i&&x.some(Pg)&&(_=UA(_,i)),y=jo(y,_,!1,!0))}return r.dirs&&(y=jo(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Wg(y,r.transition),w=y,Ju(v),w}const DA=t=>{let e;for(const r in t)(r==="class"||r==="style"||Lc(r))&&((e||(e={}))[r]=t[r]);return e},UA=(t,e)=>{const r={};for(const n in t)(!Pg(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function FA(t,e,r){const{props:n,children:s,component:i}=t,{props:a,children:o,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?kb(n,a,u):!!a;if(l&8){const c=e.dynamicProps;for(let f=0;ft.__isSuspense;function jA(t,e){e&&e.pendingBranch?nt(t)?e.effects.push(...t):e.effects.push(t):YT(t)}const Ye=Symbol.for("v-fgt"),Vc=Symbol.for("v-txt"),ts=Symbol.for("v-cmt"),xu=Symbol.for("v-stc"),Ja=[];let qr=null;function ae(t=!1){Ja.push(qr=t?null:[])}function WA(){Ja.pop(),qr=Ja[Ja.length-1]||null}let ul=1;function Pb(t,e=!1){ul+=t,t<0&&qr&&e&&(qr.hasOnce=!0)}function S_(t){return t.dynamicChildren=ul>0?qr||Po:null,WA(),ul>0&&qr&&qr.push(t),t}function Ee(t,e,r,n,s,i){return S_(z(t,e,r,n,s,i,!0))}function Re(t,e,r,n,s){return S_(xe(t,e,r,n,s,!0))}function Gg(t){return t?t.__v_isVNode===!0:!1}function va(t,e){return t.type===e.type&&t.key===e.key}const x_=({key:t})=>t??null,Tu=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Kt(t)||Er(t)||at(t)?{i:lr,r:t,k:e,f:!!r}:t:null);function z(t,e=null,r=null,n=0,s=null,i=t===Ye?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&x_(e),ref:e&&Tu(e),scopeId:Q0,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:lr};return o?(Yg(l,r),i&128&&t.normalize(l)):r&&(l.shapeFlag|=Kt(r)?8:16),ul>0&&!a&&qr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&qr.push(l),l}const xe=zA;function zA(t,e=null,r=null,n=0,s=null,i=!1){if((!t||t===cA)&&(t=ts),Gg(t)){const o=jo(t,e,!0);return r&&Yg(o,r),ul>0&&!i&&qr&&(o.shapeFlag&6?qr[qr.indexOf(t)]=o:qr.push(o)),o.patchFlag=-2,o}if(rC(t)&&(t=t.__vccOpts),e){e=HA(e);let{class:o,style:l}=e;o&&!Kt(o)&&(e.class=rt(o)),Ot(l)&&(Vg(l)&&!nt(l)&&(l=Sr({},l)),e.style=ht(l))}const a=Kt(t)?1:E_(t)?128:KT(t)?64:Ot(t)?4:at(t)?2:0;return z(t,e,r,n,s,a,i,!0)}function HA(t){return t?Vg(t)||d_(t)?Sr({},t):t:null}function jo(t,e,r=!1,n=!1){const{props:s,ref:i,patchFlag:a,children:o,transition:l}=t,u=e?GA(s||{},e):s,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&x_(u),ref:e&&e.ref?r&&i?nt(i)?i.concat(Tu(e)):[i,Tu(e)]:Tu(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ye?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&jo(t.ssContent),ssFallback:t.ssFallback&&jo(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&Wg(c,l.clone(c)),c}function st(t=" ",e=0){return xe(Vc,null,t,e)}function qA(t,e){const r=xe(xu,null,t);return r.staticCount=e,r}function Me(t="",e=!1){return e?(ae(),Re(ts,null,t)):xe(ts,null,t)}function Rn(t){return t==null||typeof t=="boolean"?xe(ts):nt(t)?xe(Ye,null,t.slice()):Gg(t)?qi(t):xe(Vc,null,String(t))}function qi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:jo(t)}function Yg(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(nt(e))r=16;else if(typeof e=="object")if(n&65){const s=e.default;s&&(s._c&&(s._d=!1),Yg(t,s()),s._c&&(s._d=!0));return}else{r=32;const s=e._;!s&&!d_(e)?e._ctx=lr:s===3&&lr&&(lr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else at(e)?(e={default:e,_ctx:lr},r=32):(e=String(e),n&64?(r=16,e=[st(e)]):r=8);t.children=e,t.shapeFlag|=r}function GA(...t){const e={};for(let r=0;r{let s;return(s=t[r])||(s=t[r]=[]),s.push(n),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};tc=e("__VUE_INSTANCE_SETTERS__",r=>wr=r),Ih=e("__VUE_SSR_SETTERS__",r=>cl=r)}const Tl=t=>{const e=wr;return tc(t),t.scope.on(),()=>{t.scope.off(),tc(e)}},Ob=()=>{wr&&wr.scope.off(),tc(null)};function T_(t){return t.vnode.shapeFlag&4}let cl=!1;function QA(t,e=!1,r=!1){e&&Ih(e);const{props:n,children:s}=t.vnode,i=T_(t);EA(t,n,i,e),AA(t,s,r);const a=i?JA(t,e):void 0;return e&&Ih(!1),a}function JA(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,hA);const{setup:n}=r;if(n){os();const s=t.setupContext=n.length>1?eC(t):null,i=Tl(t),a=Sl(n,t,0,[t.props,s]),o=S0(a);if(as(),i(),(o||t.sp)&&!Bo(t)&&t_(t),o){if(a.then(Ob,Ob),e)return a.then(l=>{Lb(t,l)}).catch(l=>{Dc(l,t,0)});t.asyncDep=a}else Lb(t,a)}else A_(t)}function Lb(t,e,r){at(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ot(e)&&(t.setupState=H0(e)),A_(t)}function A_(t,e,r){const n=t.type;t.render||(t.render=n.render||Fn);{const s=Tl(t);os();try{pA(t)}finally{as(),s()}}}const ZA={get(t,e){return mr(t,"get",""),t[e]}};function eC(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,ZA),slots:t.slots,emit:t.emit,expose:e}}function jc(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(H0(DT(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Qa)return Qa[r](t)},has(e,r){return r in e||r in Qa}})):t.proxy}function tC(t,e=!0){return at(t)?t.displayName||t.name:t.name||e&&t.__name}function rC(t){return at(t)&&"__vccOpts"in t}const we=(t,e)=>WT(t,e,cl),nC="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Mh;const Rb=typeof window<"u"&&window.trustedTypes;if(Rb)try{Mh=Rb.createPolicy("vue",{createHTML:t=>t})}catch{}const C_=Mh?t=>Mh.createHTML(t):t=>t,iC="http://www.w3.org/2000/svg",sC="http://www.w3.org/1998/Math/MathML",ii=typeof document<"u"?document:null,Bb=ii&&ii.createElement("template"),oC={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const s=e==="svg"?ii.createElementNS(iC,t):e==="mathml"?ii.createElementNS(sC,t):r?ii.createElement(t,{is:r}):ii.createElement(t);return t==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:t=>ii.createTextNode(t),createComment:t=>ii.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ii.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,s,i){const a=r?r.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{Bb.innerHTML=C_(n==="svg"?`${t}`:n==="mathml"?`${t}`:t);const o=Bb.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},aC=Symbol("_vtc");function lC(t,e,r){const n=t[aC];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const rc=Symbol("_vod"),I_=Symbol("_vsh"),uC={beforeMount(t,{value:e},{transition:r}){t[rc]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):_a(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),_a(t,!0),n.enter(t)):n.leave(t,()=>{_a(t,!1)}):_a(t,e))},beforeUnmount(t,{value:e}){_a(t,e)}};function _a(t,e){t.style.display=e?t[rc]:"none",t[I_]=!e}const cC=Symbol(""),fC=/(^|;)\s*display\s*:/;function dC(t,e,r){const n=t.style,s=Kt(r);let i=!1;if(r&&!s){if(e)if(Kt(e))for(const a of e.split(";")){const o=a.slice(0,a.indexOf(":")).trim();r[o]==null&&Au(n,o,"")}else for(const a in e)r[a]==null&&Au(n,a,"");for(const a in r)a==="display"&&(i=!0),Au(n,a,r[a])}else if(s){if(e!==r){const a=n[cC];a&&(r+=";"+a),n.cssText=r,i=fC.test(r)}}else e&&t.removeAttribute("style");rc in t&&(t[rc]=i?n.display:"",t[I_]&&(n.display="none"))}const $b=/\s*!important$/;function Au(t,e,r){if(nt(r))r.forEach(n=>Au(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=hC(t,e);$b.test(r)?t.setProperty(eo(n),r.replace($b,""),"important"):t[n]=r}}const Nb=["Webkit","Moz","ms"],Pf={};function hC(t,e){const r=Pf[e];if(r)return r;let n=ln(e);if(n!=="filter"&&n in t)return Pf[e]=n;n=Bc(n);for(let s=0;sOf||(bC.then(()=>Of=0),Of=Date.now());function wC(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;qn(vC(n,r.value),e,5,[n])};return r.value=t,r.attached=yC(),r}function vC(t,e){if(nt(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>s=>!s._stopped&&n&&n(s))}else return e}const Wb=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,_C=(t,e,r,n,s,i)=>{const a=s==="svg";e==="class"?lC(t,n,a):e==="style"?dC(t,r,n):Lc(e)?Pg(e)||gC(t,e,r,n,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):EC(t,e,n,a))?(Fb(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ub(t,e,n,a,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Kt(n))?Fb(t,ln(e),n,i,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Ub(t,e,n,a))};function EC(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&Wb(e)&&at(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Wb(e)&&Kt(r)?!1:e in t}const Wo=t=>{const e=t.props["onUpdate:modelValue"]||!1;return nt(e)?r=>vu(e,r):e};function SC(t){t.target.composing=!0}function zb(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const yi=Symbol("_assign"),xC={created(t,{modifiers:{lazy:e,trim:r,number:n}},s){t[yi]=Wo(s);const i=n||s.props&&s.props.type==="number";Yi(t,e?"change":"input",a=>{if(a.target.composing)return;let o=t.value;r&&(o=o.trim()),i&&(o=Ku(o)),t[yi](o)}),r&&Yi(t,"change",()=>{t.value=t.value.trim()}),e||(Yi(t,"compositionstart",SC),Yi(t,"compositionend",zb),Yi(t,"change",zb))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:n,trim:s,number:i}},a){if(t[yi]=Wo(a),t.composing)return;const o=(i||t.type==="number")&&!/^0\d/.test(t.value)?Ku(t.value):t.value,l=e??"";o!==l&&(document.activeElement===t&&t.type!=="range"&&(n&&e===r||s&&t.value.trim()===l)||(t.value=l))}},M_={deep:!0,created(t,e,r){t[yi]=Wo(r),Yi(t,"change",()=>{const n=t._modelValue,s=fl(t),i=t.checked,a=t[yi];if(nt(n)){const o=Rg(n,s),l=o!==-1;if(i&&!l)a(n.concat(s));else if(!i&&l){const u=[...n];u.splice(o,1),a(u)}}else if(oa(n)){const o=new Set(n);i?o.add(s):o.delete(s),a(o)}else a(k_(t,i))})},mounted:Hb,beforeUpdate(t,e,r){t[yi]=Wo(r),Hb(t,e,r)}};function Hb(t,{value:e,oldValue:r},n){t._modelValue=e;let s;if(nt(e))s=Rg(e,n.props.value)>-1;else if(oa(e))s=e.has(n.props.value);else{if(e===r)return;s=El(e,k_(t,!0))}t.checked!==s&&(t.checked=s)}const TC={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const s=oa(e);Yi(t,"change",()=>{const i=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?Ku(fl(a)):fl(a));t[yi](t.multiple?s?new Set(i):i:i[0]),t._assigning=!0,G0(()=>{t._assigning=!1})}),t[yi]=Wo(n)},mounted(t,{value:e}){qb(t,e)},beforeUpdate(t,e,r){t[yi]=Wo(r)},updated(t,{value:e}){t._assigning||qb(t,e)}};function qb(t,e){const r=t.multiple,n=nt(e);if(!(r&&!n&&!oa(e))){for(let s=0,i=t.options.length;sString(u)===String(o)):a.selected=Rg(e,o)>-1}else a.selected=e.has(o);else if(El(fl(a),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function fl(t){return"_value"in t?t._value:t.value}function k_(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const AC=Sr({patchProp:_C},oC);let Gb;function CC(){return Gb||(Gb=IA(AC))}const IC=(...t)=>{const e=CC().createApp(...t),{mount:r}=e;return e.mount=n=>{const s=kC(n);if(!s)return;const i=e._component;!at(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=r(s,!1,MC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},e};function MC(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function kC(t){return Kt(t)?document.querySelector(t):t}function Cu(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function PC(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Kg(t){let e,r,n;t.length!==2?(e=Cu,r=(o,l)=>Cu(t(o),l),n=(o,l)=>t(o)-l):(e=t===Cu||t===PC?t:OC,r=t,n=t);function s(o,l,u=0,c=o.length){if(u>>1;r(o[f],l)<0?u=f+1:c=f}while(u>>1;r(o[f],l)<=0?u=f+1:c=f}while(uu&&n(o[f-1],l)>-n(o[f],l)?f-1:f}return{left:s,center:a,right:i}}function OC(){return 0}function LC(t){return t===null?NaN:+t}const RC=Kg(Cu),BC=RC.right;Kg(LC).center;function Tn(t,e){let r,n;if(e===void 0)for(const s of t)s!=null&&(r===void 0?s>=s&&(r=n=s):(r>s&&(r=s),n=i&&(r=n=i):(r>i&&(r=i),n=UC?10:i>=FC?5:i>=VC?2:1;let o,l,u;return s<0?(u=Math.pow(10,-s)/a,o=Math.round(t*u),l=Math.round(e*u),o/ue&&--l,u=-u):(u=Math.pow(10,s)*a,o=Math.round(t/u),l=Math.round(e/u),o*ue&&--l),l0))return[];if(t===e)return[t];const n=e=s))return[];const o=i-s+1,l=new Array(o);if(n)if(a<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let s of t)(s=e(s,++n,t))!=null&&(r=s)&&(r=s)}return r}function WC(t,e,r){t=+t,e=+e,r=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+r;for(var n=-1,s=Math.max(0,Math.ceil((e-t)/r))|0,i=new Array(s);++n+t(e)}function YC(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function KC(){return!this.__axis}function Wc(t,e){var r=[],n=null,s=null,i=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Iu||t===Ua?-1:1,c=t===Ua||t===Mu?"x":"y",f=t===Iu||t===Oh?HC:qC;function d(p){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),b=s??(e.tickFormat?e.tickFormat.apply(e,r):zC),v=Math.max(i,0)+o,w=e.range(),_=+w[0]+l,y=+w[w.length-1]+l,x=(e.bandwidth?YC:GC)(e.copy(),l),T=p.selection?p.selection():p,A=T.selectAll(".domain").data([null]),C=T.selectAll(".tick").data(g,e).order(),L=C.exit(),j=C.enter().append("g").attr("class","tick"),R=C.select("line"),U=C.select("text");A=A.merge(A.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(j),R=R.merge(j.append("line").attr("stroke","currentColor").attr(c+"2",u*i)),U=U.merge(j.append("text").attr("fill","currentColor").attr(c,u*v).attr("dy",t===Iu?"0em":t===Oh?"0.71em":"0.32em")),p!==T&&(A=A.transition(p),C=C.transition(p),R=R.transition(p),U=U.transition(p),L=L.transition(p).attr("opacity",Xb).attr("transform",function(I){return isFinite(I=x(I))?f(I+l):this.getAttribute("transform")}),j.attr("opacity",Xb).attr("transform",function(I){var M=this.parentNode.__axis;return f((M&&isFinite(M=M(I))?M:x(I))+l)})),L.remove(),A.attr("d",t===Ua||t===Mu?a?"M"+u*a+","+_+"H"+l+"V"+y+"H"+u*a:"M"+l+","+_+"V"+y:a?"M"+_+","+u*a+"V"+l+"H"+y+"V"+u*a:"M"+_+","+l+"H"+y),C.attr("opacity",1).attr("transform",function(I){return f(x(I)+l)}),R.attr(c+"2",u*i),U.attr(c,u*v).text(b),T.filter(KC).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Mu?"start":t===Ua?"end":"middle"),T.each(function(){this.__axis=x})}return d.scale=function(p){return arguments.length?(e=p,d):e},d.ticks=function(){return r=Array.from(arguments),d},d.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),d):r.slice()},d.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),d):n&&n.slice()},d.tickFormat=function(p){return arguments.length?(s=p,d):s},d.tickSize=function(p){return arguments.length?(i=a=+p,d):i},d.tickSizeInner=function(p){return arguments.length?(i=+p,d):i},d.tickSizeOuter=function(p){return arguments.length?(a=+p,d):a},d.tickPadding=function(p){return arguments.length?(o=+p,d):o},d.offset=function(p){return arguments.length?(l=+p,d):l},d}function XC(t){return Wc(Iu,t)}function QC(t){return Wc(Mu,t)}function Za(t){return Wc(Oh,t)}function Al(t){return Wc(Ua,t)}var JC={value:()=>{}};function Xg(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ku.prototype=Xg.prototype={constructor:ku,on:function(t,e){var r=this._,n=ZC(t+"",r),s,i=-1,a=n.length;if(arguments.length<2){for(;++i0)for(var r=new Array(s),n=0,s,i;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Jb.hasOwnProperty(e)?{space:Jb[e],local:t}:t}function tI(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Lh&&e.documentElement.namespaceURI===Lh?e.createElement(t):e.createElementNS(r,t)}}function rI(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function O_(t){var e=zc(t);return(e.local?rI:tI)(e)}function nI(){}function Qg(t){return t==null?nI:function(){return this.querySelector(t)}}function iI(t){typeof t!="function"&&(t=Qg(t));for(var e=this._groups,r=e.length,n=new Array(r),s=0;s=y&&(y=_+1);!(T=v[y])&&++y=0;)(a=n[s])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function MI(t){t||(t=kI);function e(f,d){return f&&d?t(f.__data__,d.__data__):!f-!d}for(var r=this._groups,n=r.length,s=new Array(n),i=0;ie?1:t>=e?0:NaN}function PI(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function OI(){return Array.from(this)}function LI(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?zI:typeof e=="function"?qI:HI)(t,e,r??"")):zo(this.node(),t)}function zo(t,e){return t.style.getPropertyValue(e)||N_(t).getComputedStyle(t,null).getPropertyValue(e)}function YI(t){return function(){delete this[t]}}function KI(t,e){return function(){this[t]=e}}function XI(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function QI(t,e){return arguments.length>1?this.each((e==null?YI:typeof e=="function"?XI:KI)(t,e)):this.node()[t]}function D_(t){return t.trim().split(/^|\s+/)}function Jg(t){return t.classList||new U_(t)}function U_(t){this._node=t,this._names=D_(t.getAttribute("class")||"")}U_.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function F_(t,e){for(var r=Jg(t),n=-1,s=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function TM(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,s=e.length,i;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?ql(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?ql(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=NM.exec(t))?new $r(e[1],e[2],e[3],1):(e=DM.exec(t))?new $r(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=UM.exec(t))?ql(e[1],e[2],e[3],e[4]):(e=FM.exec(t))?ql(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=VM.exec(t))?sy(e[1],e[2]/100,e[3]/100,1):(e=jM.exec(t))?sy(e[1],e[2]/100,e[3]/100,e[4]):Zb.hasOwnProperty(t)?ry(Zb[t]):t==="transparent"?new $r(NaN,NaN,NaN,0):null}function ry(t){return new $r(t>>16&255,t>>8&255,t&255,1)}function ql(t,e,r,n){return n<=0&&(t=e=r=NaN),new $r(t,e,r,n)}function HM(t){return t instanceof Il||(t=Ys(t)),t?(t=t.rgb(),new $r(t.r,t.g,t.b,t.opacity)):new $r}function $h(t,e,r,n){return arguments.length===1?HM(t):new $r(t,e,r,n??1)}function $r(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Zg($r,$h,z_(Il,{brighter(t){return t=t==null?sc:Math.pow(sc,t),new $r(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?dl:Math.pow(dl,t),new $r(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new $r(Ds(this.r),Ds(this.g),Ds(this.b),oc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ny,formatHex:ny,formatHex8:qM,formatRgb:iy,toString:iy}));function ny(){return`#${ks(this.r)}${ks(this.g)}${ks(this.b)}`}function qM(){return`#${ks(this.r)}${ks(this.g)}${ks(this.b)}${ks((isNaN(this.opacity)?1:this.opacity)*255)}`}function iy(){const t=oc(this.opacity);return`${t===1?"rgb(":"rgba("}${Ds(this.r)}, ${Ds(this.g)}, ${Ds(this.b)}${t===1?")":`, ${t})`}`}function oc(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ds(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ks(t){return t=Ds(t),(t<16?"0":"")+t.toString(16)}function sy(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new vn(t,e,r,n)}function H_(t){if(t instanceof vn)return new vn(t.h,t.s,t.l,t.opacity);if(t instanceof Il||(t=Ys(t)),!t)return new vn;if(t instanceof vn)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,s=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,o=i-s,l=(i+s)/2;return o?(e===i?a=(r-n)/o+(r0&&l<1?0:a,new vn(a,o,l,t.opacity)}function GM(t,e,r,n){return arguments.length===1?H_(t):new vn(t,e,r,n??1)}function vn(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Zg(vn,GM,z_(Il,{brighter(t){return t=t==null?sc:Math.pow(sc,t),new vn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?dl:Math.pow(dl,t),new vn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,s=2*r-n;return new $r(Lf(t>=240?t-240:t+120,s,n),Lf(t,s,n),Lf(t<120?t+240:t-120,s,n),this.opacity)},clamp(){return new vn(oy(this.h),Gl(this.s),Gl(this.l),oc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=oc(this.opacity);return`${t===1?"hsl(":"hsla("}${oy(this.h)}, ${Gl(this.s)*100}%, ${Gl(this.l)*100}%${t===1?")":`, ${t})`}`}}));function oy(t){return t=(t||0)%360,t<0?t+360:t}function Gl(t){return Math.max(0,Math.min(1,t||0))}function Lf(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const em=t=>()=>t;function YM(t,e){return function(r){return t+r*e}}function KM(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function XM(t){return(t=+t)==1?q_:function(e,r){return r-e?KM(e,r,t):em(isNaN(e)?r:e)}}function q_(t,e){var r=e-t;return r?YM(t,r):em(isNaN(t)?e:t)}const ac=function t(e){var r=XM(e);function n(s,i){var a=r((s=$h(s)).r,(i=$h(i)).r),o=r(s.g,i.g),l=r(s.b,i.b),u=q_(s.opacity,i.opacity);return function(c){return s.r=a(c),s.g=o(c),s.b=l(c),s.opacity=u(c),s+""}}return n.gamma=t,n}(1);function QM(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),s;return function(i){for(s=0;sr&&(i=e.slice(r,i),o[a]?o[a]+=i:o[++a]=i),(n=n[0])===(s=s[0])?o[a]?o[a]+=s:o[++a]=s:(o[++a]=null,l.push({i:a,x:wn(n,s)})),r=Rf.lastIndex;return r180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(s(f)+"rotate(",null,n)-2,x:wn(u,c)})):c&&f.push(s(f)+"rotate("+c+n)}function o(u,c,f,d){u!==c?d.push({i:f.push(s(f)+"skewX(",null,n)-2,x:wn(u,c)}):c&&f.push(s(f)+"skewX("+c+n)}function l(u,c,f,d,p,g){if(u!==f||c!==d){var b=p.push(s(p)+"scale(",null,",",null,")");g.push({i:b-4,x:wn(u,f)},{i:b-2,x:wn(c,d)})}else(f!==1||d!==1)&&p.push(s(p)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=t(u),c=t(c),i(u.translateX,u.translateY,c.translateX,c.translateY,f,d),a(u.rotate,c.rotate,f,d),o(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(p){for(var g=-1,b=d.length,v;++g=0&&t._call.call(void 0,e),t=t._next;--Ho}function uy(){Ks=(uc=pl.now())+Hc,Ho=Fa=0;try{pk()}finally{Ho=0,mk(),Ks=0}}function gk(){var t=pl.now(),e=t-uc;e>X_&&(Hc-=e,uc=t)}function mk(){for(var t,e=lc,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:lc=r);Va=t,Uh(n)}function Uh(t){if(!Ho){Fa&&(Fa=clearTimeout(Fa));var e=t-Ks;e>24?(t<1/0&&(Fa=setTimeout(uy,t-pl.now()-Hc)),Ea&&(Ea=clearInterval(Ea))):(Ea||(uc=pl.now(),Ea=setInterval(gk,X_)),Ho=1,Q_(uy))}}function cy(t,e,r){var n=new cc;return e=e==null?0:+e,n.restart(s=>{n.stop(),t(s+e)},e,r),n}var bk=Xg("start","end","cancel","interrupt"),yk=[],Z_=0,fy=1,Fh=2,Pu=3,dy=4,Vh=5,Ou=6;function qc(t,e,r,n,s,i){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;wk(t,r,{name:e,index:n,group:s,on:bk,tween:yk,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Z_})}function nm(t,e){var r=An(t,e);if(r.state>Z_)throw new Error("too late; already scheduled");return r}function Kn(t,e){var r=An(t,e);if(r.state>Pu)throw new Error("too late; already running");return r}function An(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function wk(t,e,r){var n=t.__transition,s;n[e]=r,r.timer=J_(i,0,r.time);function i(u){r.state=fy,r.timer.restart(a,r.delay,r.time),r.delay<=u&&a(u-r.delay)}function a(u){var c,f,d,p;if(r.state!==fy)return l();for(c in n)if(p=n[c],p.name===r.name){if(p.state===Pu)return cy(a);p.state===dy?(p.state=Ou,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[c]):+cFh&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function Kk(t,e,r){var n,s,i=Yk(e)?nm:Kn;return function(){var a=i(this,t),o=a.on;o!==n&&(s=(n=o).copy()).on(e,r),a.on=s}}function Xk(t,e){var r=this._id;return arguments.length<2?An(this.node(),r).on.on(t):this.each(Kk(r,t,e))}function Qk(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Jk(){return this.on("end.remove",Qk(this._id))}function Zk(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Qg(t));for(var n=this._groups,s=n.length,i=new Array(s),a=0;a+t;function vP(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var _P={time:null,delay:0,duration:250,ease:vP};function EP(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function SP(t){var e,r;t instanceof _i?(e=t._id,t=t._name):(e=r1(),(r=_P).time=rm(),t=t==null?null:t+"");for(var n=this._groups,s=n.length,i=0;i=0))throw new Error(`invalid digits: ${t}`);if(e>15)return n1;const r=10**e;return function(n){this._+=n[0];for(let s=1,i=n.length;sCs)if(!(Math.abs(f*l-u*c)>Cs)||!i)this._append`L${this._x1=e},${this._y1=r}`;else{let p=n-a,g=s-o,b=l*l+u*u,v=p*p+g*g,w=Math.sqrt(b),_=Math.sqrt(d),y=i*Math.tan((jh-Math.acos((b+d-v)/(2*w*_)))/2),x=y/_,T=y/w;Math.abs(x-1)>Cs&&this._append`L${e+x*c},${r+x*f}`,this._append`A${i},${i},0,0,${+(f*p>c*g)},${this._x1=e+T*l},${this._y1=r+T*u}`}}arc(e,r,n,s,i,a){if(e=+e,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(s),l=n*Math.sin(s),u=e+o,c=r+l,f=1^a,d=a?s-i:i-s;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Cs||Math.abs(this._y1-c)>Cs)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%Wh+Wh),d>xP?this._append`A${n},${n},0,1,${f},${e-o},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>Cs&&this._append`A${n},${n},0,${+(d>=jh)},${f},${this._x1=e+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(e,r,n,s){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+s}h${-n}Z`}toString(){return this._}}function CP(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function fc(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function qo(t){return t=fc(Math.abs(t)),t?t[1]:NaN}function IP(t,e){return function(r,n){for(var s=r.length,i=[],a=0,o=t[0],l=0;s>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),i.push(r.substring(s-=o,s+o)),!((l+=o+1)>n));)o=t[a=(a+1)%t.length];return i.reverse().join(e)}}function MP(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var kP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dc(t){if(!(e=kP.exec(t)))throw new Error("invalid format: "+t);var e;return new sm({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}dc.prototype=sm.prototype;function sm(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}sm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function PP(t){e:for(var e=t.length,r=1,n=-1,s;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(s+1):t}var i1;function OP(t,e){var r=fc(t,e);if(!r)return t+"";var n=r[0],s=r[1],i=s-(i1=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+fc(t,Math.max(0,e+i-1))[0]}function hy(t,e){var r=fc(t,e);if(!r)return t+"";var n=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+n:n.length>s+1?n.slice(0,s+1)+"."+n.slice(s+1):n+new Array(s-n.length+2).join("0")}const py={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:CP,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>hy(t*100,e),r:hy,s:OP,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function gy(t){return t}var my=Array.prototype.map,by=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function LP(t){var e=t.grouping===void 0||t.thousands===void 0?gy:IP(my.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",s=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?gy:MP(my.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(f){f=dc(f);var d=f.fill,p=f.align,g=f.sign,b=f.symbol,v=f.zero,w=f.width,_=f.comma,y=f.precision,x=f.trim,T=f.type;T==="n"?(_=!0,T="g"):py[T]||(y===void 0&&(y=12),x=!0,T="g"),(v||d==="0"&&p==="=")&&(v=!0,d="0",p="=");var A=b==="$"?r:b==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",C=b==="$"?n:/[%p]/.test(T)?a:"",L=py[T],j=/[defgprs%]/.test(T);y=y===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function R(U){var I=A,M=C,$,Z,ne;if(T==="c")M=L(U)+M,U="";else{U=+U;var re=U<0||1/U<0;if(U=isNaN(U)?l:L(Math.abs(U),y),x&&(U=PP(U)),re&&+U==0&&g!=="+"&&(re=!1),I=(re?g==="("?g:o:g==="-"||g==="("?"":g)+I,M=(T==="s"?by[8+i1/3]:"")+M+(re&&g==="("?")":""),j){for($=-1,Z=U.length;++$ne||ne>57){M=(ne===46?s+U.slice($+1):U.slice($))+M,U=U.slice(0,$);break}}}_&&!v&&(U=e(U,1/0));var N=I.length+U.length+M.length,fe=N>1)+I+U+M+fe.slice(N);break;default:U=fe+I+U+M;break}return i(U)}return R.toString=function(){return f+""},R}function c(f,d){var p=u((f=dc(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(qo(d)/3)))*3,b=Math.pow(10,-g),v=by[8+g/3];return function(w){return p(b*w)+v}}return{format:u,formatPrefix:c}}var Kl,s1,o1;RP({thousands:",",grouping:[3],currency:["$",""]});function RP(t){return Kl=LP(t),s1=Kl.format,o1=Kl.formatPrefix,Kl}function BP(t){return Math.max(0,-qo(Math.abs(t)))}function $P(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qo(e)/3)))*3-qo(Math.abs(t)))}function NP(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,qo(e)-qo(t))+1}function Ml(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const yy=Symbol("implicit");function a1(){var t=new Yb,e=[],r=[],n=yy;function s(i){let a=t.get(i);if(a===void 0){if(n!==yy)return n;t.set(i,a=e.push(i)-1)}return r[a%r.length]}return s.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Yb;for(const a of i)t.has(a)||t.set(a,e.push(a)-1);return s},s.range=function(i){return arguments.length?(r=Array.from(i),s):r.slice()},s.unknown=function(i){return arguments.length?(n=i,s):n},s.copy=function(){return a1(e,r).unknown(n)},Ml.apply(s,arguments),s}function gl(){var t=a1().unknown(void 0),e=t.domain,r=t.range,n=0,s=1,i,a,o=!1,l=0,u=0,c=.5;delete t.unknown;function f(){var d=e().length,p=se&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function VP(t,e,r){var n=t[0],s=t[1],i=e[0],a=e[1];return s2?jP:VP,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=o(t.map(n),e,r)))(n(a(d)))}return f.invert=function(d){return a(s((u||(u=o(e,t.map(n),wn)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,UP),c()):t.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),c()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),r=ik,c()},f.clamp=function(d){return arguments.length?(a=d?!0:Co,c()):a!==Co},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,p){return n=d,s=p,c()}}function u1(){return WP()(Co,Co)}function zP(t,e,r,n){var s=Ph(t,e,r),i;switch(n=dc(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(i=$P(s,a))&&(n.precision=i),o1(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=NP(s,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=BP(s))&&(n.precision=i-(n.type==="%")*2);break}}return s1(n)}function HP(t){var e=t.domain;return t.ticks=function(r){var n=e();return jC(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var s=e();return zP(s[0],s[s.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),s=0,i=n.length-1,a=n[s],o=n[i],l,u,c=10;for(o0;){if(u=kh(a,o,r),u===l)return n[s]=a,n[i]=o,e(n);if(u>0)a=Math.floor(a/u)*u,o=Math.ceil(o/u)*u;else if(u<0)a=Math.ceil(a*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function Xn(){var t=u1();return t.copy=function(){return l1(t,Xn())},Ml.apply(t,arguments),HP(t)}function qP(t,e){t=t.slice();var r=0,n=t.length-1,s=t[r],i=t[n],a;return i(t(i=new Date(+i)),i),s.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),s.round=i=>{const a=s(i),o=s.ceil(i);return i-a(e(i=new Date(+i),a==null?1:Math.floor(a)),i),s.range=(i,a,o)=>{const l=[];if(i=s.ceil(i),o=o==null?1:Math.floor(o),!(i0))return l;let u;do l.push(u=new Date(+i)),e(i,o),t(i);while(uer(a=>{if(a>=a)for(;t(a),!i(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;e(a,-1),!i(a););else for(;--o>=0;)for(;e(a,1),!i(a););}),r&&(s.count=(i,a)=>(Bf.setTime(+i),$f.setTime(+a),t(Bf),t($f),Math.floor(r(Bf,$f))),s.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?s.filter(n?a=>n(a)%i===0:a=>s.count(0,a)%i===0):s)),s}const hc=er(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);hc.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?er(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):hc);hc.range;const di=1e3,sn=di*60,hi=sn*60,Ei=hi*24,om=Ei*7,vy=Ei*30,Nf=Ei*365,Ps=er(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*di)},(t,e)=>(e-t)/di,t=>t.getUTCSeconds());Ps.range;const am=er(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*di)},(t,e)=>{t.setTime(+t+e*sn)},(t,e)=>(e-t)/sn,t=>t.getMinutes());am.range;const lm=er(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*sn)},(t,e)=>(e-t)/sn,t=>t.getUTCMinutes());lm.range;const um=er(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*di-t.getMinutes()*sn)},(t,e)=>{t.setTime(+t+e*hi)},(t,e)=>(e-t)/hi,t=>t.getHours());um.range;const cm=er(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*hi)},(t,e)=>(e-t)/hi,t=>t.getUTCHours());cm.range;const kl=er(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*sn)/Ei,t=>t.getDate()-1);kl.range;const Gc=er(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Ei,t=>t.getUTCDate()-1);Gc.range;const c1=er(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Ei,t=>Math.floor(t/Ei));c1.range;function to(t){return er(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*sn)/om)}const Yc=to(0),pc=to(1),GP=to(2),YP=to(3),Go=to(4),KP=to(5),XP=to(6);Yc.range;pc.range;GP.range;YP.range;Go.range;KP.range;XP.range;function ro(t){return er(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/om)}const Kc=ro(0),gc=ro(1),QP=ro(2),JP=ro(3),Yo=ro(4),ZP=ro(5),eO=ro(6);Kc.range;gc.range;QP.range;JP.range;Yo.range;ZP.range;eO.range;const fm=er(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());fm.range;const dm=er(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());dm.range;const Si=er(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Si.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:er(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});Si.range;const xi=er(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xi.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:er(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});xi.range;function f1(t,e,r,n,s,i){const a=[[Ps,1,di],[Ps,5,5*di],[Ps,15,15*di],[Ps,30,30*di],[i,1,sn],[i,5,5*sn],[i,15,15*sn],[i,30,30*sn],[s,1,hi],[s,3,3*hi],[s,6,6*hi],[s,12,12*hi],[n,1,Ei],[n,2,2*Ei],[r,1,om],[e,1,vy],[e,3,3*vy],[t,1,Nf]];function o(u,c,f){const d=cv).right(a,d);if(p===a.length)return t.every(Ph(u/Nf,c/Nf,f));if(p===0)return hc.every(Math.max(Ph(u,c,f),1));const[g,b]=a[d/a[p-1][2]53)return null;"w"in k||(k.w=1),"Z"in k?(V=Uf(Sa(k.y,0,1)),B=V.getUTCDay(),V=B>4||B===0?gc.ceil(V):gc(V),V=Gc.offset(V,(k.V-1)*7),k.y=V.getUTCFullYear(),k.m=V.getUTCMonth(),k.d=V.getUTCDate()+(k.w+6)%7):(V=Df(Sa(k.y,0,1)),B=V.getDay(),V=B>4||B===0?pc.ceil(V):pc(V),V=kl.offset(V,(k.V-1)*7),k.y=V.getFullYear(),k.m=V.getMonth(),k.d=V.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),B="Z"in k?Uf(Sa(k.y,0,1)).getUTCDay():Df(Sa(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(B+5)%7:k.w+k.U*7-(B+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,Uf(k)):Df(k)}}function L(X,ce,le,k){for(var P=0,V=ce.length,B=le.length,H,q;P=B)return-1;if(H=ce.charCodeAt(P++),H===37){if(H=ce.charAt(P++),q=T[H in _y?ce.charAt(P++):H],!q||(k=q(X,le,k))<0)return-1}else if(H!=le.charCodeAt(k++))return-1}return k}function j(X,ce,le){var k=u.exec(ce.slice(le));return k?(X.p=c.get(k[0].toLowerCase()),le+k[0].length):-1}function R(X,ce,le){var k=p.exec(ce.slice(le));return k?(X.w=g.get(k[0].toLowerCase()),le+k[0].length):-1}function U(X,ce,le){var k=f.exec(ce.slice(le));return k?(X.w=d.get(k[0].toLowerCase()),le+k[0].length):-1}function I(X,ce,le){var k=w.exec(ce.slice(le));return k?(X.m=_.get(k[0].toLowerCase()),le+k[0].length):-1}function M(X,ce,le){var k=b.exec(ce.slice(le));return k?(X.m=v.get(k[0].toLowerCase()),le+k[0].length):-1}function $(X,ce,le){return L(X,e,ce,le)}function Z(X,ce,le){return L(X,r,ce,le)}function ne(X,ce,le){return L(X,n,ce,le)}function re(X){return a[X.getDay()]}function N(X){return i[X.getDay()]}function fe(X){return l[X.getMonth()]}function G(X){return o[X.getMonth()]}function pe(X){return s[+(X.getHours()>=12)]}function F(X){return 1+~~(X.getMonth()/3)}function de(X){return a[X.getUTCDay()]}function Se(X){return i[X.getUTCDay()]}function ee(X){return l[X.getUTCMonth()]}function K(X){return o[X.getUTCMonth()]}function W(X){return s[+(X.getUTCHours()>=12)]}function D(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var ce=A(X+="",y);return ce.toString=function(){return X},ce},parse:function(X){var ce=C(X+="",!1);return ce.toString=function(){return X},ce},utcFormat:function(X){var ce=A(X+="",x);return ce.toString=function(){return X},ce},utcParse:function(X){var ce=C(X+="",!0);return ce.toString=function(){return X},ce}}}var _y={"-":"",_:" ",0:"0"},sr=/^\s*\d+/,oO=/^%/,aO=/[\\^$*+?|[\]().{}]/g;function bt(t,e,r){var n=t<0?"-":"",s=(n?-t:t)+"",i=s.length;return n+(i[e.toLowerCase(),r]))}function uO(t,e,r){var n=sr.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function cO(t,e,r){var n=sr.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function fO(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function dO(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function hO(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Ey(t,e,r){var n=sr.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Sy(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function pO(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function gO(t,e,r){var n=sr.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function mO(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function xy(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function bO(t,e,r){var n=sr.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Ty(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function yO(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function wO(t,e,r){var n=sr.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function vO(t,e,r){var n=sr.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function _O(t,e,r){var n=sr.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function EO(t,e,r){var n=oO.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function SO(t,e,r){var n=sr.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function xO(t,e,r){var n=sr.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Ay(t,e){return bt(t.getDate(),e,2)}function TO(t,e){return bt(t.getHours(),e,2)}function AO(t,e){return bt(t.getHours()%12||12,e,2)}function CO(t,e){return bt(1+kl.count(Si(t),t),e,3)}function d1(t,e){return bt(t.getMilliseconds(),e,3)}function IO(t,e){return d1(t,e)+"000"}function MO(t,e){return bt(t.getMonth()+1,e,2)}function kO(t,e){return bt(t.getMinutes(),e,2)}function PO(t,e){return bt(t.getSeconds(),e,2)}function OO(t){var e=t.getDay();return e===0?7:e}function LO(t,e){return bt(Yc.count(Si(t)-1,t),e,2)}function h1(t){var e=t.getDay();return e>=4||e===0?Go(t):Go.ceil(t)}function RO(t,e){return t=h1(t),bt(Go.count(Si(t),t)+(Si(t).getDay()===4),e,2)}function BO(t){return t.getDay()}function $O(t,e){return bt(pc.count(Si(t)-1,t),e,2)}function NO(t,e){return bt(t.getFullYear()%100,e,2)}function DO(t,e){return t=h1(t),bt(t.getFullYear()%100,e,2)}function UO(t,e){return bt(t.getFullYear()%1e4,e,4)}function FO(t,e){var r=t.getDay();return t=r>=4||r===0?Go(t):Go.ceil(t),bt(t.getFullYear()%1e4,e,4)}function VO(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+bt(e/60|0,"0",2)+bt(e%60,"0",2)}function Cy(t,e){return bt(t.getUTCDate(),e,2)}function jO(t,e){return bt(t.getUTCHours(),e,2)}function WO(t,e){return bt(t.getUTCHours()%12||12,e,2)}function zO(t,e){return bt(1+Gc.count(xi(t),t),e,3)}function p1(t,e){return bt(t.getUTCMilliseconds(),e,3)}function HO(t,e){return p1(t,e)+"000"}function qO(t,e){return bt(t.getUTCMonth()+1,e,2)}function GO(t,e){return bt(t.getUTCMinutes(),e,2)}function YO(t,e){return bt(t.getUTCSeconds(),e,2)}function KO(t){var e=t.getUTCDay();return e===0?7:e}function XO(t,e){return bt(Kc.count(xi(t)-1,t),e,2)}function g1(t){var e=t.getUTCDay();return e>=4||e===0?Yo(t):Yo.ceil(t)}function QO(t,e){return t=g1(t),bt(Yo.count(xi(t),t)+(xi(t).getUTCDay()===4),e,2)}function JO(t){return t.getUTCDay()}function ZO(t,e){return bt(gc.count(xi(t)-1,t),e,2)}function e2(t,e){return bt(t.getUTCFullYear()%100,e,2)}function t2(t,e){return t=g1(t),bt(t.getUTCFullYear()%100,e,2)}function r2(t,e){return bt(t.getUTCFullYear()%1e4,e,4)}function n2(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Yo(t):Yo.ceil(t),bt(t.getUTCFullYear()%1e4,e,4)}function i2(){return"+0000"}function Iy(){return"%"}function My(t){return+t}function ky(t){return Math.floor(+t/1e3)}var mo,rs,m1,b1;s2({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function s2(t){return mo=sO(t),rs=mo.format,m1=mo.parse,b1=mo.utcFormat,mo.utcParse,mo}function o2(t){return new Date(t)}function a2(t){return t instanceof Date?+t:+new Date(+t)}function hm(t,e,r,n,s,i,a,o,l,u){var c=u1(),f=c.invert,d=c.domain,p=u(".%L"),g=u(":%S"),b=u("%I:%M"),v=u("%I %p"),w=u("%a %d"),_=u("%b %d"),y=u("%B"),x=u("%Y");function T(A){return(l(A)1?0:t<-1?ml:Math.acos(t)}function Oy(t){return t>=1?mc:t<=-1?-mc:Math.asin(t)}function pm(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new AP(e)}function c2(t){return t.innerRadius}function f2(t){return t.outerRadius}function d2(t){return t.startAngle}function h2(t){return t.endAngle}function p2(t){return t&&t.padAngle}function g2(t,e,r,n,s,i,a,o){var l=r-t,u=n-e,c=a-s,f=o-i,d=f*l-c*u;if(!(d*d$*$+Z*Z&&(L=R,j=U),{cx:L,cy:j,x01:-c,y01:-f,x11:L*(s/T-1),y11:j*(s/T-1)}}function m2(){var t=c2,e=f2,r=ut(0),n=null,s=d2,i=h2,a=p2,o=null,l=pm(u);function u(){var c,f,d=+t.apply(this,arguments),p=+e.apply(this,arguments),g=s.apply(this,arguments)-mc,b=i.apply(this,arguments)-mc,v=Py(b-g),w=b>g;if(o||(o=c=l()),pLr))o.moveTo(0,0);else if(v>Ru-Lr)o.moveTo(p*ys(g),p*Mn(g)),o.arc(0,0,p,g,b,!w),d>Lr&&(o.moveTo(d*ys(b),d*Mn(b)),o.arc(0,0,d,b,g,w));else{var _=g,y=b,x=g,T=b,A=v,C=v,L=a.apply(this,arguments)/2,j=L>Lr&&(n?+n.apply(this,arguments):Io(d*d+p*p)),R=Ff(Py(p-d)/2,+r.apply(this,arguments)),U=R,I=R,M,$;if(j>Lr){var Z=Oy(j/d*Mn(L)),ne=Oy(j/p*Mn(L));(A-=Z*2)>Lr?(Z*=w?1:-1,x+=Z,T-=Z):(A=0,x=T=(g+b)/2),(C-=ne*2)>Lr?(ne*=w?1:-1,_+=ne,y-=ne):(C=0,_=y=(g+b)/2)}var re=p*ys(_),N=p*Mn(_),fe=d*ys(T),G=d*Mn(T);if(R>Lr){var pe=p*ys(y),F=p*Mn(y),de=d*ys(x),Se=d*Mn(x),ee;if(vLr?I>Lr?(M=Xl(de,Se,re,N,p,I,w),$=Xl(pe,F,fe,G,p,I,w),o.moveTo(M.cx+M.x01,M.cy+M.y01),ILr)||!(A>Lr)?o.lineTo(fe,G):U>Lr?(M=Xl(fe,G,pe,F,d,-U,w),$=Xl(re,N,de,Se,d,-U,w),o.lineTo(M.cx+M.x01,M.cy+M.y01),U=p;--g)o.point(y[g],x[g]);o.lineEnd(),o.areaEnd()}w&&(y[d]=+t(v,d,f),x[d]=+e(v,d,f),o.point(n?+n(v,d,f):y[d],r?+r(v,d,f):x[d]))}if(_)return o=null,_+""||null}function c(){return Nn().defined(s).curve(a).context(i)}return u.x=function(f){return arguments.length?(t=typeof f=="function"?f:ut(+f),n=null,u):t},u.x0=function(f){return arguments.length?(t=typeof f=="function"?f:ut(+f),u):t},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ut(+f),u):n},u.y=function(f){return arguments.length?(e=typeof f=="function"?f:ut(+f),r=null,u):e},u.y0=function(f){return arguments.length?(e=typeof f=="function"?f:ut(+f),u):e},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ut(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(n).y(e)},u.defined=function(f){return arguments.length?(s=typeof f=="function"?f:ut(!!f),u):s},u.curve=function(f){return arguments.length?(a=f,i!=null&&(o=a(i)),u):a},u.context=function(f){return arguments.length?(f==null?i=o=null:o=a(i=f),u):i},u}function b2(t,e){return et?1:e>=t?0:NaN}function y2(t){return t}function Ly(){var t=y2,e=b2,r=null,n=ut(0),s=ut(Ru),i=ut(0);function a(o){var l,u=(o=Xc(o)).length,c,f,d=0,p=new Array(u),g=new Array(u),b=+n.apply(this,arguments),v=Math.min(Ru,Math.max(-Ru,s.apply(this,arguments)-b)),w,_=Math.min(Math.abs(v)/u,i.apply(this,arguments)),y=_*(v<0?-1:1),x;for(l=0;l0&&(d+=x);for(e!=null?p.sort(function(T,A){return e(g[T],g[A])}):r!=null&&p.sort(function(T,A){return r(o[T],o[A])}),l=0,f=d?(v-u*y)/d:0;l0?x*f:0)+y,g[c]={data:o[c],index:l,value:x,startAngle:b,endAngle:w,padAngle:_};return g}return a.value=function(o){return arguments.length?(t=typeof o=="function"?o:ut(+o),a):t},a.sortValues=function(o){return arguments.length?(e=o,r=null,a):e},a.sort=function(o){return arguments.length?(r=o,e=null,a):r},a.startAngle=function(o){return arguments.length?(n=typeof o=="function"?o:ut(+o),a):n},a.endAngle=function(o){return arguments.length?(s=typeof o=="function"?o:ut(+o),a):s},a.padAngle=function(o){return arguments.length?(i=typeof o=="function"?o:ut(+o),a):i},a}class w2{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function Uo(t){return new w2(t,!0)}function Ry(t,e){if((a=t.length)>1)for(var r=1,n,s,i=t[e[0]],a,o=i.length;r=0;)r[e]=e;return r}function v2(t,e){return t[e]}function _2(t){const e=[];return e.key=t,e}function E1(){var t=ut([]),e=By,r=Ry,n=v2;function s(i){var a=Array.from(t.apply(this,arguments),_2),o,l=a.length,u=-1,c;for(const f of i)for(o=0,++u;o()=>t;function E2(t,{sourceEvent:e,target:r,transform:n,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:s}})}function pi(t,e,r){this.k=t,this.x=e,this.y=r}pi.prototype={constructor:pi,scale:function(t){return t===1?this:new pi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new pi(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var gm=new pi(1,0,0);pi.prototype;function Vf(t){t.stopImmediatePropagation()}function Aa(t){t.preventDefault(),t.stopImmediatePropagation()}function S2(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function x2(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function $y(){return this.__zoom||gm}function T2(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function A2(){return navigator.maxTouchPoints||"ontouchstart"in this}function C2(t,e,r){var n=t.invertX(e[0][0])-r[0][0],s=t.invertX(e[1][0])-r[1][0],i=t.invertY(e[0][1])-r[0][1],a=t.invertY(e[1][1])-r[1][1];return t.translate(s>n?(n+s)/2:Math.min(0,n)||Math.max(0,s),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function I2(){var t=S2,e=x2,r=C2,n=T2,s=A2,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],o=250,l=dk,u=Xg("start","zoom","end"),c,f,d,p=500,g=150,b=0,v=10;function w($){$.property("__zoom",$y).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",j).on("dblclick.zoom",R).filter(s).on("touchstart.zoom",U).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function($,Z,ne,re){var N=$.selection?$.selection():$;N.property("__zoom",$y),$!==N?T($,Z,ne,re):N.interrupt().each(function(){A(this,arguments).event(re).start().zoom(null,typeof Z=="function"?Z.apply(this,arguments):Z).end()})},w.scaleBy=function($,Z,ne,re){w.scaleTo($,function(){var N=this.__zoom.k,fe=typeof Z=="function"?Z.apply(this,arguments):Z;return N*fe},ne,re)},w.scaleTo=function($,Z,ne,re){w.transform($,function(){var N=e.apply(this,arguments),fe=this.__zoom,G=ne==null?x(N):typeof ne=="function"?ne.apply(this,arguments):ne,pe=fe.invert(G),F=typeof Z=="function"?Z.apply(this,arguments):Z;return r(y(_(fe,F),G,pe),N,a)},ne,re)},w.translateBy=function($,Z,ne,re){w.transform($,function(){return r(this.__zoom.translate(typeof Z=="function"?Z.apply(this,arguments):Z,typeof ne=="function"?ne.apply(this,arguments):ne),e.apply(this,arguments),a)},null,re)},w.translateTo=function($,Z,ne,re,N){w.transform($,function(){var fe=e.apply(this,arguments),G=this.__zoom,pe=re==null?x(fe):typeof re=="function"?re.apply(this,arguments):re;return r(gm.translate(pe[0],pe[1]).scale(G.k).translate(typeof Z=="function"?-Z.apply(this,arguments):-Z,typeof ne=="function"?-ne.apply(this,arguments):-ne),fe,a)},re,N)};function _($,Z){return Z=Math.max(i[0],Math.min(i[1],Z)),Z===$.k?$:new pi(Z,$.x,$.y)}function y($,Z,ne){var re=Z[0]-ne[0]*$.k,N=Z[1]-ne[1]*$.k;return re===$.x&&N===$.y?$:new pi($.k,re,N)}function x($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function T($,Z,ne,re){$.on("start.zoom",function(){A(this,arguments).event(re).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(re).end()}).tween("zoom",function(){var N=this,fe=arguments,G=A(N,fe).event(re),pe=e.apply(N,fe),F=ne==null?x(pe):typeof ne=="function"?ne.apply(N,fe):ne,de=Math.max(pe[1][0]-pe[0][0],pe[1][1]-pe[0][1]),Se=N.__zoom,ee=typeof Z=="function"?Z.apply(N,fe):Z,K=l(Se.invert(F).concat(de/Se.k),ee.invert(F).concat(de/ee.k));return function(W){if(W===1)W=ee;else{var D=K(W),X=de/D[2];W=new pi(X,F[0]-D[0]*X,F[1]-D[1]*X)}G.zoom(null,W)}})}function A($,Z,ne){return!ne&&$.__zooming||new C($,Z)}function C($,Z){this.that=$,this.args=Z,this.active=0,this.sourceEvent=null,this.extent=e.apply($,Z),this.taps=0}C.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,Z){return this.mouse&&$!=="mouse"&&(this.mouse[1]=Z.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=Z.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=Z.invert(this.touch1[0])),this.that.__zoom=Z,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var Z=Ct(this.that).datum();u.call($,this.that,new E2($,{sourceEvent:this.sourceEvent,target:w,type:$,transform:this.that.__zoom,dispatch:u}),Z)}};function L($,...Z){if(!t.apply(this,arguments))return;var ne=A(this,Z).event($),re=this.__zoom,N=Math.max(i[0],Math.min(i[1],re.k*Math.pow(2,n.apply(this,arguments)))),fe=bs($);if(ne.wheel)(ne.mouse[0][0]!==fe[0]||ne.mouse[0][1]!==fe[1])&&(ne.mouse[1]=re.invert(ne.mouse[0]=fe)),clearTimeout(ne.wheel);else{if(re.k===N)return;ne.mouse=[fe,re.invert(fe)],Lu(this),ne.start()}Aa($),ne.wheel=setTimeout(G,g),ne.zoom("mouse",r(y(_(re,N),ne.mouse[0],ne.mouse[1]),ne.extent,a));function G(){ne.wheel=null,ne.end()}}function j($,...Z){if(d||!t.apply(this,arguments))return;var ne=$.currentTarget,re=A(this,Z,!0).event($),N=Ct($.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",de,!0),fe=bs($,ne),G=$.clientX,pe=$.clientY;RM($.view),Vf($),re.mouse=[fe,this.__zoom.invert(fe)],Lu(this),re.start();function F(Se){if(Aa(Se),!re.moved){var ee=Se.clientX-G,K=Se.clientY-pe;re.moved=ee*ee+K*K>b}re.event(Se).zoom("mouse",r(y(re.that.__zoom,re.mouse[0]=bs(Se,ne),re.mouse[1]),re.extent,a))}function de(Se){N.on("mousemove.zoom mouseup.zoom",null),BM(Se.view,re.moved),Aa(Se),re.event(Se).end()}}function R($,...Z){if(t.apply(this,arguments)){var ne=this.__zoom,re=bs($.changedTouches?$.changedTouches[0]:$,this),N=ne.invert(re),fe=ne.k*($.shiftKey?.5:2),G=r(y(_(ne,fe),re,N),e.apply(this,Z),a);Aa($),o>0?Ct(this).transition().duration(o).call(T,G,re,$):Ct(this).call(w.transform,G,re,$)}}function U($,...Z){if(t.apply(this,arguments)){var ne=$.touches,re=ne.length,N=A(this,Z,$.changedTouches.length===re).event($),fe,G,pe,F;for(Vf($),G=0;G(t.instant_charging="instant_charging",t.pv_charging="pv_charging",t.scheduled_charging="scheduled_charging",t.eco_charging="eco_charging",t.stop="stop",t))(Hr||{}),pt=(t=>(t.counter="counter",t.inverter="inverter",t.pvSummary="pvSummary",t.battery="battery",t.batterySummary="batterySummary",t.chargepoint="chargepoint",t.chargeSummary="chargeSummary",t.device="device",t.deviceSummary="deviceSummary",t.house="house",t))(pt||{});class S1{constructor(e){ve(this,"id");ve(this,"name","Wechselrichter");ve(this,"type","inverter");ve(this,"color","var(--color-pv)");ve(this,"power",0);ve(this,"energy",0);ve(this,"energy_month",0);ve(this,"energy_year",0);ve(this,"energy_total",0);ve(this,"energyPv",0);ve(this,"energyBat",0);ve(this,"pvPercentage",0);ve(this,"icon","");ve(this,"showInGraph",!0);this.id=e}}const M2=[["EV","ev_mode"],["Speicher","bat_mode"],["MinSoc","min_soc_bat_mode"]];class k2{constructor(e){ve(this,"id");ve(this,"name","Gerät");ve(this,"type",pt.device);ve(this,"power",0);ve(this,"status","off");ve(this,"energy",0);ve(this,"runningTime",0);ve(this,"configured",!1);ve(this,"_showInGraph",!0);ve(this,"color","white");ve(this,"canSwitch",!1);ve(this,"countAsHouse",!1);ve(this,"energyPv",0);ve(this,"energyBat",0);ve(this,"pvPercentage",0);ve(this,"tempConfigured",0);ve(this,"temp",[300,300,300]);ve(this,"on",!1);ve(this,"isAutomatic",!0);ve(this,"icon","");this.id=e}get showInGraph(){return this._showInGraph}set showInGraph(e){this._showInGraph=e,qe.items["sh"+this.id].showInGraph=e,Et()}setShowInGraph(e){this._showInGraph=e}}const St=Dt(new Map);function mm(t){St.has(t)?console.info("Duplicate sh device message: "+t):(St.set(t,new k2(t)),St.get(t).color="var(--color-sh"+St.size+")")}var bm=Object.defineProperty,P2=Object.getOwnPropertyDescriptor,O2=Object.getOwnPropertyNames,L2=Object.prototype.hasOwnProperty,cr=(t,e)=>()=>(t&&(e=t(t=0)),e),Ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),no=(t,e)=>{for(var r in e)bm(t,r,{get:e[r],enumerable:!0})},R2=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of O2(e))!L2.call(t,s)&&s!==r&&bm(t,s,{get:()=>e[s],enumerable:!(n=P2(e,s))||n.enumerable});return t},It=t=>R2(bm({},"__esModule",{value:!0}),t),Pe=cr(()=>{}),vt={};no(vt,{_debugEnd:()=>xp,_debugProcess:()=>Sp,_events:()=>Up,_eventsCount:()=>Fp,_exiting:()=>up,_fatalExceptions:()=>vp,_getActiveHandles:()=>k1,_getActiveRequests:()=>M1,_kill:()=>dp,_linkedBinding:()=>C1,_maxListeners:()=>Dp,_preload_modules:()=>$p,_rawDebug:()=>op,_startProfilerIdleNotifier:()=>Tp,_stopProfilerIdleNotifier:()=>Ap,_tickCallback:()=>Ep,abort:()=>kp,addListener:()=>Vp,allowedNodeEnvironmentFlags:()=>yp,arch:()=>Gh,argv:()=>Xh,argv0:()=>Bp,assert:()=>P1,binding:()=>tp,chdir:()=>ip,config:()=>cp,cpuUsage:()=>ja,cwd:()=>np,debugPort:()=>Rp,default:()=>wm,dlopen:()=>I1,domain:()=>lp,emit:()=>qp,emitWarning:()=>ep,env:()=>Kh,execArgv:()=>Qh,execPath:()=>Lp,exit:()=>mp,features:()=>wp,hasUncaughtExceptionCaptureCallback:()=>O1,hrtime:()=>Bu,kill:()=>gp,listeners:()=>R1,memoryUsage:()=>pp,moduleLoadList:()=>ap,nextTick:()=>T1,off:()=>Wp,on:()=>ri,once:()=>jp,openStdin:()=>bp,pid:()=>Pp,platform:()=>Yh,ppid:()=>Op,prependListener:()=>Gp,prependOnceListener:()=>Yp,reallyExit:()=>fp,release:()=>sp,removeAllListeners:()=>Hp,removeListener:()=>zp,resourceUsage:()=>hp,setSourceMapsEnabled:()=>Np,setUncaughtExceptionCaptureCallback:()=>_p,stderr:()=>Ip,stdin:()=>Mp,stdout:()=>Cp,title:()=>qh,umask:()=>rp,uptime:()=>L1,version:()=>Jh,versions:()=>Zh});function ym(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function B2(){!Us||!Os||(Us=!1,Os.length?Dn=Os.concat(Dn):tl=-1,Dn.length&&x1())}function x1(){if(!Us){var t=setTimeout(B2,0);Us=!0;for(var e=Dn.length;e;){for(Os=Dn,Dn=[];++tl1)for(var r=1;r{Pe(),Le(),Oe(),Dn=[],Us=!1,tl=-1,A1.prototype.run=function(){this.fun.apply(null,this.array)},qh="browser",Gh="x64",Yh="browser",Kh={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Xh=["/usr/bin/node"],Qh=[],Jh="v16.8.0",Zh={},ep=function(t,e){console.warn((e?e+": ":"")+t)},tp=function(t){ym("binding")},rp=function(t){return 0},np=function(){return"/"},ip=function(t){},sp={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},op=gr,ap=[],lp={},up=!1,cp={},fp=gr,dp=gr,ja=function(){return{}},hp=ja,pp=ja,gp=gr,mp=gr,bp=gr,yp={},wp={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},vp=gr,_p=gr,Ep=gr,Sp=gr,xp=gr,Tp=gr,Ap=gr,Cp=void 0,Ip=void 0,Mp=void 0,kp=gr,Pp=2,Op=1,Lp="/bin/usr/node",Rp=9229,Bp="node",$p=[],Np=gr,ai={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},ai.now===void 0&&(jf=Date.now(),ai.timing&&ai.timing.navigationStart&&(jf=ai.timing.navigationStart),ai.now=()=>Date.now()-jf),$u=1e9,Bu.bigint=function(t){var e=Bu(t);return typeof BigInt>"u"?e[0]*$u+e[1]:BigInt(e[0]*$u)+BigInt(e[1])},Dp=10,Up={},Fp=0,Vp=ri,jp=ri,Wp=ri,zp=ri,Hp=ri,qp=gr,Gp=ri,Yp=ri,wm={version:Jh,versions:Zh,arch:Gh,platform:Yh,release:sp,_rawDebug:op,moduleLoadList:ap,binding:tp,_linkedBinding:C1,_events:Up,_eventsCount:Fp,_maxListeners:Dp,on:ri,addListener:Vp,once:jp,off:Wp,removeListener:zp,removeAllListeners:Hp,emit:qp,prependListener:Gp,prependOnceListener:Yp,listeners:R1,domain:lp,_exiting:up,config:cp,dlopen:I1,uptime:L1,_getActiveRequests:M1,_getActiveHandles:k1,reallyExit:fp,_kill:dp,cpuUsage:ja,resourceUsage:hp,memoryUsage:pp,kill:gp,exit:mp,openStdin:bp,allowedNodeEnvironmentFlags:yp,assert:P1,features:wp,_fatalExceptions:vp,setUncaughtExceptionCaptureCallback:_p,hasUncaughtExceptionCaptureCallback:O1,emitWarning:ep,nextTick:T1,_tickCallback:Ep,_debugProcess:Sp,_debugEnd:xp,_startProfilerIdleNotifier:Tp,_stopProfilerIdleNotifier:Ap,stdout:Cp,stdin:Mp,stderr:Ip,abort:kp,umask:rp,chdir:ip,cwd:np,env:Kh,title:qh,argv:Xh,execArgv:Qh,pid:Pp,ppid:Op,execPath:Lp,debugPort:Rp,hrtime:Bu,argv0:Bp,_preload_modules:$p,setSourceMapsEnabled:Np}}),Oe=cr(()=>{$2()}),fr={};no(fr,{Buffer:()=>bc,INSPECT_MAX_BYTES:()=>B1,default:()=>ni,kMaxLength:()=>$1});function N2(){if(Kp)return Eo;Kp=!0,Eo.byteLength=o,Eo.toByteArray=u,Eo.fromByteArray=d;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,i=n.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var b=p.indexOf("=");b===-1&&(b=g);var v=b===g?0:4-b%4;return[b,v]}function o(p){var g=a(p),b=g[0],v=g[1];return(b+v)*3/4-v}function l(p,g,b){return(g+b)*3/4-b}function u(p){var g,b=a(p),v=b[0],w=b[1],_=new r(l(p,v,w)),y=0,x=w>0?v-4:v,T;for(T=0;T>16&255,_[y++]=g>>8&255,_[y++]=g&255;return w===2&&(g=e[p.charCodeAt(T)]<<2|e[p.charCodeAt(T+1)]>>4,_[y++]=g&255),w===1&&(g=e[p.charCodeAt(T)]<<10|e[p.charCodeAt(T+1)]<<4|e[p.charCodeAt(T+2)]>>2,_[y++]=g>>8&255,_[y++]=g&255),_}function c(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function f(p,g,b){for(var v,w=[],_=g;_x?x:y+_));return v===1?(g=p[b-1],w.push(t[g>>2]+t[g<<4&63]+"==")):v===2&&(g=(p[b-2]<<8)+p[b-1],w.push(t[g>>10]+t[g>>4&63]+t[g<<2&63]+"=")),w.join("")}return Eo}function D2(){return Xp?Wa:(Xp=!0,Wa.read=function(t,e,r,n,s){var i,a,o=s*8-n-1,l=(1<>1,c=-7,f=r?s-1:0,d=r?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=o;c>0;i=i*256+t[e+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=a*256+t[e+f],f+=d,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-u}return(p?-1:1)*a*Math.pow(2,i-n)},Wa.write=function(t,e,r,n,s,i){var a,o,l,u=i*8-s-1,c=(1<>1,d=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,g=n?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?e+=d/l:e+=d*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=c?(o=0,a=c):a+f>=1?(o=(e*l-1)*Math.pow(2,s),a=a+f):(o=e*Math.pow(2,f-1)*Math.pow(2,s),a=0));s>=8;t[r+p]=o&255,p+=g,o/=256,s-=8);for(a=a<0;t[r+p]=a&255,p+=g,a/=256,u-=8);t[r+p-g]|=b*128},Wa)}function U2(){if(Qp)return Di;Qp=!0;let t=N2(),e=D2(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Di.Buffer=a,Di.SlowBuffer=w,Di.INSPECT_MAX_BYTES=50;let n=2147483647;Di.kMaxLength=n,a.TYPED_ARRAY_SUPPORT=s(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{let S=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(S,m),S.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function i(S){if(S>n)throw new RangeError('The value "'+S+'" is invalid for option "size"');let m=new Uint8Array(S);return Object.setPrototypeOf(m,a.prototype),m}function a(S,m,h){if(typeof S=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(S)}return o(S,m,h)}a.poolSize=8192;function o(S,m,h){if(typeof S=="string")return f(S,m);if(ArrayBuffer.isView(S))return p(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(ie(S,ArrayBuffer)||S&&ie(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(S,SharedArrayBuffer)||S&&ie(S.buffer,SharedArrayBuffer)))return g(S,m,h);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let E=S.valueOf&&S.valueOf();if(E!=null&&E!==S)return a.from(E,m,h);let O=b(S);if(O)return O;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return a.from(S[Symbol.toPrimitive]("string"),m,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}a.from=function(S,m,h){return o(S,m,h)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function u(S,m,h){return l(S),S<=0?i(S):m!==void 0?typeof h=="string"?i(S).fill(m,h):i(S).fill(m):i(S)}a.alloc=function(S,m,h){return u(S,m,h)};function c(S){return l(S),i(S<0?0:v(S)|0)}a.allocUnsafe=function(S){return c(S)},a.allocUnsafeSlow=function(S){return c(S)};function f(S,m){if((typeof m!="string"||m==="")&&(m="utf8"),!a.isEncoding(m))throw new TypeError("Unknown encoding: "+m);let h=_(S,m)|0,E=i(h),O=E.write(S,m);return O!==h&&(E=E.slice(0,O)),E}function d(S){let m=S.length<0?0:v(S.length)|0,h=i(m);for(let E=0;E=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return S|0}function w(S){return+S!=S&&(S=0),a.alloc(+S)}a.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==a.prototype},a.compare=function(S,m){if(ie(S,Uint8Array)&&(S=a.from(S,S.offset,S.byteLength)),ie(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),!a.isBuffer(S)||!a.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===m)return 0;let h=S.length,E=m.length;for(let O=0,te=Math.min(h,E);OE.length?(a.isBuffer(te)||(te=a.from(te)),te.copy(E,O)):Uint8Array.prototype.set.call(E,te,O);else if(a.isBuffer(te))te.copy(E,O);else throw new TypeError('"list" argument must be an Array of Buffers');O+=te.length}return E};function _(S,m){if(a.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||ie(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);let h=S.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&h===0)return 0;let O=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return H(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return J(S).length;default:if(O)return E?-1:H(S).length;m=(""+m).toLowerCase(),O=!0}}a.byteLength=_;function y(S,m,h){let E=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,m>>>=0,h<=m))return"";for(S||(S="utf8");;)switch(S){case"hex":return N(this,m,h);case"utf8":case"utf-8":return M(this,m,h);case"ascii":return ne(this,m,h);case"latin1":case"binary":return re(this,m,h);case"base64":return I(this,m,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,m,h);default:if(E)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),E=!0}}a.prototype._isBuffer=!0;function x(S,m,h){let E=S[m];S[m]=S[h],S[h]=E}a.prototype.swap16=function(){let S=this.length;if(S%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;mm&&(S+=" ... "),""},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(S,m,h,E,O){if(ie(S,Uint8Array)&&(S=a.from(S,S.offset,S.byteLength)),!a.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(m===void 0&&(m=0),h===void 0&&(h=S?S.length:0),E===void 0&&(E=0),O===void 0&&(O=this.length),m<0||h>S.length||E<0||O>this.length)throw new RangeError("out of range index");if(E>=O&&m>=h)return 0;if(E>=O)return-1;if(m>=h)return 1;if(m>>>=0,h>>>=0,E>>>=0,O>>>=0,this===S)return 0;let te=O-E,he=h-m,Ce=Math.min(te,he),Ue=this.slice(E,O),We=S.slice(m,h);for(let De=0;De2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Q(h)&&(h=O?0:S.length-1),h<0&&(h=S.length+h),h>=S.length){if(O)return-1;h=S.length-1}else if(h<0)if(O)h=0;else return-1;if(typeof m=="string"&&(m=a.from(m,E)),a.isBuffer(m))return m.length===0?-1:A(S,m,h,E,O);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?O?Uint8Array.prototype.indexOf.call(S,m,h):Uint8Array.prototype.lastIndexOf.call(S,m,h):A(S,[m],h,E,O);throw new TypeError("val must be string, number or Buffer")}function A(S,m,h,E,O){let te=1,he=S.length,Ce=m.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(S.length<2||m.length<2)return-1;te=2,he/=2,Ce/=2,h/=2}function Ue(De,He){return te===1?De[He]:De.readUInt16BE(He*te)}let We;if(O){let De=-1;for(We=h;Wehe&&(h=he-Ce),We=h;We>=0;We--){let De=!0;for(let He=0;HeO&&(E=O)):E=O;let te=m.length;E>te/2&&(E=te/2);let he;for(he=0;he>>0,isFinite(h)?(h=h>>>0,E===void 0&&(E="utf8")):(E=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let O=this.length-m;if((h===void 0||h>O)&&(h=O),S.length>0&&(h<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");E||(E="utf8");let te=!1;for(;;)switch(E){case"hex":return C(this,S,m,h);case"utf8":case"utf-8":return L(this,S,m,h);case"ascii":case"latin1":case"binary":return j(this,S,m,h);case"base64":return R(this,S,m,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,S,m,h);default:if(te)throw new TypeError("Unknown encoding: "+E);E=(""+E).toLowerCase(),te=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(S,m,h){return m===0&&h===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(m,h))}function M(S,m,h){h=Math.min(S.length,h);let E=[],O=m;for(;O239?4:te>223?3:te>191?2:1;if(O+Ce<=h){let Ue,We,De,He;switch(Ce){case 1:te<128&&(he=te);break;case 2:Ue=S[O+1],(Ue&192)===128&&(He=(te&31)<<6|Ue&63,He>127&&(he=He));break;case 3:Ue=S[O+1],We=S[O+2],(Ue&192)===128&&(We&192)===128&&(He=(te&15)<<12|(Ue&63)<<6|We&63,He>2047&&(He<55296||He>57343)&&(he=He));break;case 4:Ue=S[O+1],We=S[O+2],De=S[O+3],(Ue&192)===128&&(We&192)===128&&(De&192)===128&&(He=(te&15)<<18|(Ue&63)<<12|(We&63)<<6|De&63,He>65535&&He<1114112&&(he=He))}}he===null?(he=65533,Ce=1):he>65535&&(he-=65536,E.push(he>>>10&1023|55296),he=56320|he&1023),E.push(he),O+=Ce}return Z(E)}let $=4096;function Z(S){let m=S.length;if(m<=$)return String.fromCharCode.apply(String,S);let h="",E=0;for(;EE)&&(h=E);let O="";for(let te=m;teh&&(S=h),m<0?(m+=h,m<0&&(m=0)):m>h&&(m=h),mh)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(S,m,h){S=S>>>0,m=m>>>0,h||G(S,m,this.length);let E=this[S],O=1,te=0;for(;++te>>0,m=m>>>0,h||G(S,m,this.length);let E=this[S+--m],O=1;for(;m>0&&(O*=256);)E+=this[S+--m]*O;return E},a.prototype.readUint8=a.prototype.readUInt8=function(S,m){return S=S>>>0,m||G(S,1,this.length),this[S]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(S,m){return S=S>>>0,m||G(S,2,this.length),this[S]|this[S+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(S,m){return S=S>>>0,m||G(S,2,this.length),this[S]<<8|this[S+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(S,m){return S=S>>>0,m||G(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(S,m){return S=S>>>0,m||G(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},a.prototype.readBigUInt64LE=me(function(S){S=S>>>0,k(S,"offset");let m=this[S],h=this[S+7];(m===void 0||h===void 0)&&P(S,this.length-8);let E=m+this[++S]*2**8+this[++S]*2**16+this[++S]*2**24,O=this[++S]+this[++S]*2**8+this[++S]*2**16+h*2**24;return BigInt(E)+(BigInt(O)<>>0,k(S,"offset");let m=this[S],h=this[S+7];(m===void 0||h===void 0)&&P(S,this.length-8);let E=m*2**24+this[++S]*2**16+this[++S]*2**8+this[++S],O=this[++S]*2**24+this[++S]*2**16+this[++S]*2**8+h;return(BigInt(E)<>>0,m=m>>>0,h||G(S,m,this.length);let E=this[S],O=1,te=0;for(;++te=O&&(E-=Math.pow(2,8*m)),E},a.prototype.readIntBE=function(S,m,h){S=S>>>0,m=m>>>0,h||G(S,m,this.length);let E=m,O=1,te=this[S+--E];for(;E>0&&(O*=256);)te+=this[S+--E]*O;return O*=128,te>=O&&(te-=Math.pow(2,8*m)),te},a.prototype.readInt8=function(S,m){return S=S>>>0,m||G(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},a.prototype.readInt16LE=function(S,m){S=S>>>0,m||G(S,2,this.length);let h=this[S]|this[S+1]<<8;return h&32768?h|4294901760:h},a.prototype.readInt16BE=function(S,m){S=S>>>0,m||G(S,2,this.length);let h=this[S+1]|this[S]<<8;return h&32768?h|4294901760:h},a.prototype.readInt32LE=function(S,m){return S=S>>>0,m||G(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},a.prototype.readInt32BE=function(S,m){return S=S>>>0,m||G(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},a.prototype.readBigInt64LE=me(function(S){S=S>>>0,k(S,"offset");let m=this[S],h=this[S+7];(m===void 0||h===void 0)&&P(S,this.length-8);let E=this[S+4]+this[S+5]*2**8+this[S+6]*2**16+(h<<24);return(BigInt(E)<>>0,k(S,"offset");let m=this[S],h=this[S+7];(m===void 0||h===void 0)&&P(S,this.length-8);let E=(m<<24)+this[++S]*2**16+this[++S]*2**8+this[++S];return(BigInt(E)<>>0,m||G(S,4,this.length),e.read(this,S,!0,23,4)},a.prototype.readFloatBE=function(S,m){return S=S>>>0,m||G(S,4,this.length),e.read(this,S,!1,23,4)},a.prototype.readDoubleLE=function(S,m){return S=S>>>0,m||G(S,8,this.length),e.read(this,S,!0,52,8)},a.prototype.readDoubleBE=function(S,m){return S=S>>>0,m||G(S,8,this.length),e.read(this,S,!1,52,8)};function pe(S,m,h,E,O,te){if(!a.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>O||mS.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(S,m,h,E){if(S=+S,m=m>>>0,h=h>>>0,!E){let he=Math.pow(2,8*h)-1;pe(this,S,m,h,he,0)}let O=1,te=0;for(this[m]=S&255;++te>>0,h=h>>>0,!E){let he=Math.pow(2,8*h)-1;pe(this,S,m,h,he,0)}let O=h-1,te=1;for(this[m+O]=S&255;--O>=0&&(te*=256);)this[m+O]=S/te&255;return m+h},a.prototype.writeUint8=a.prototype.writeUInt8=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,1,255,0),this[m]=S&255,m+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,2,65535,0),this[m]=S&255,this[m+1]=S>>>8,m+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,2,65535,0),this[m]=S>>>8,this[m+1]=S&255,m+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,4,4294967295,0),this[m+3]=S>>>24,this[m+2]=S>>>16,this[m+1]=S>>>8,this[m]=S&255,m+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,4,4294967295,0),this[m]=S>>>24,this[m+1]=S>>>16,this[m+2]=S>>>8,this[m+3]=S&255,m+4};function F(S,m,h,E,O){le(m,E,O,S,h,7);let te=Number(m&BigInt(4294967295));S[h++]=te,te=te>>8,S[h++]=te,te=te>>8,S[h++]=te,te=te>>8,S[h++]=te;let he=Number(m>>BigInt(32)&BigInt(4294967295));return S[h++]=he,he=he>>8,S[h++]=he,he=he>>8,S[h++]=he,he=he>>8,S[h++]=he,h}function de(S,m,h,E,O){le(m,E,O,S,h,7);let te=Number(m&BigInt(4294967295));S[h+7]=te,te=te>>8,S[h+6]=te,te=te>>8,S[h+5]=te,te=te>>8,S[h+4]=te;let he=Number(m>>BigInt(32)&BigInt(4294967295));return S[h+3]=he,he=he>>8,S[h+2]=he,he=he>>8,S[h+1]=he,he=he>>8,S[h]=he,h+8}a.prototype.writeBigUInt64LE=me(function(S,m=0){return F(this,S,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=me(function(S,m=0){return de(this,S,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(S,m,h,E){if(S=+S,m=m>>>0,!E){let Ce=Math.pow(2,8*h-1);pe(this,S,m,h,Ce-1,-Ce)}let O=0,te=1,he=0;for(this[m]=S&255;++O>0)-he&255;return m+h},a.prototype.writeIntBE=function(S,m,h,E){if(S=+S,m=m>>>0,!E){let Ce=Math.pow(2,8*h-1);pe(this,S,m,h,Ce-1,-Ce)}let O=h-1,te=1,he=0;for(this[m+O]=S&255;--O>=0&&(te*=256);)S<0&&he===0&&this[m+O+1]!==0&&(he=1),this[m+O]=(S/te>>0)-he&255;return m+h},a.prototype.writeInt8=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,1,127,-128),S<0&&(S=255+S+1),this[m]=S&255,m+1},a.prototype.writeInt16LE=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,2,32767,-32768),this[m]=S&255,this[m+1]=S>>>8,m+2},a.prototype.writeInt16BE=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,2,32767,-32768),this[m]=S>>>8,this[m+1]=S&255,m+2},a.prototype.writeInt32LE=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,4,2147483647,-2147483648),this[m]=S&255,this[m+1]=S>>>8,this[m+2]=S>>>16,this[m+3]=S>>>24,m+4},a.prototype.writeInt32BE=function(S,m,h){return S=+S,m=m>>>0,h||pe(this,S,m,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[m]=S>>>24,this[m+1]=S>>>16,this[m+2]=S>>>8,this[m+3]=S&255,m+4},a.prototype.writeBigInt64LE=me(function(S,m=0){return F(this,S,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=me(function(S,m=0){return de(this,S,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Se(S,m,h,E,O,te){if(h+E>S.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function ee(S,m,h,E,O){return m=+m,h=h>>>0,O||Se(S,m,h,4),e.write(S,m,h,E,23,4),h+4}a.prototype.writeFloatLE=function(S,m,h){return ee(this,S,m,!0,h)},a.prototype.writeFloatBE=function(S,m,h){return ee(this,S,m,!1,h)};function K(S,m,h,E,O){return m=+m,h=h>>>0,O||Se(S,m,h,8),e.write(S,m,h,E,52,8),h+8}a.prototype.writeDoubleLE=function(S,m,h){return K(this,S,m,!0,h)},a.prototype.writeDoubleBE=function(S,m,h){return K(this,S,m,!1,h)},a.prototype.copy=function(S,m,h,E){if(!a.isBuffer(S))throw new TypeError("argument should be a Buffer");if(h||(h=0),!E&&E!==0&&(E=this.length),m>=S.length&&(m=S.length),m||(m=0),E>0&&E=this.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("sourceEnd out of bounds");E>this.length&&(E=this.length),S.length-m>>0,h=h===void 0?this.length:h>>>0,S||(S=0);let O;if(typeof S=="number")for(O=m;O2**32?O=X(String(h)):typeof h=="bigint"&&(O=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(O=X(O)),O+="n"),E+=` It must be ${m}. Received ${O}`,E},RangeError);function X(S){let m="",h=S.length,E=S[0]==="-"?1:0;for(;h>=E+4;h-=3)m=`_${S.slice(h-3,h)}${m}`;return`${S.slice(0,h)}${m}`}function ce(S,m,h){k(m,"offset"),(S[m]===void 0||S[m+h]===void 0)&&P(m,S.length-(h+1))}function le(S,m,h,E,O,te){if(S>h||S= 0${he} and < 2${he} ** ${(te+1)*8}${he}`:Ce=`>= -(2${he} ** ${(te+1)*8-1}${he}) and < 2 ** ${(te+1)*8-1}${he}`,new W.ERR_OUT_OF_RANGE("value",Ce,S)}ce(E,O,te)}function k(S,m){if(typeof S!="number")throw new W.ERR_INVALID_ARG_TYPE(m,"number",S)}function P(S,m,h){throw Math.floor(S)!==S?(k(S,h),new W.ERR_OUT_OF_RANGE("offset","an integer",S)):m<0?new W.ERR_BUFFER_OUT_OF_BOUNDS:new W.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${m}`,S)}let V=/[^+/0-9A-Za-z-_]/g;function B(S){if(S=S.split("=")[0],S=S.trim().replace(V,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function H(S,m){m=m||1/0;let h,E=S.length,O=null,te=[];for(let he=0;he55295&&h<57344){if(!O){if(h>56319){(m-=3)>-1&&te.push(239,191,189);continue}else if(he+1===E){(m-=3)>-1&&te.push(239,191,189);continue}O=h;continue}if(h<56320){(m-=3)>-1&&te.push(239,191,189),O=h;continue}h=(O-55296<<10|h-56320)+65536}else O&&(m-=3)>-1&&te.push(239,191,189);if(O=null,h<128){if((m-=1)<0)break;te.push(h)}else if(h<2048){if((m-=2)<0)break;te.push(h>>6|192,h&63|128)}else if(h<65536){if((m-=3)<0)break;te.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((m-=4)<0)break;te.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return te}function q(S){let m=[];for(let h=0;h>8,O=h%256,te.push(O),te.push(E);return te}function J(S){return t.toByteArray(B(S))}function Y(S,m,h,E){let O;for(O=0;O=m.length||O>=S.length);++O)m[O+h]=S[O];return O}function ie(S,m){return S instanceof m||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===m.name}function Q(S){return S!==S}let oe=function(){let S="0123456789abcdef",m=new Array(256);for(let h=0;h<16;++h){let E=h*16;for(let O=0;O<16;++O)m[E+O]=S[h]+S[O]}return m}();function me(S){return typeof BigInt>"u"?Te:S}function Te(){throw new Error("BigInt not supported")}return Di}var Eo,Kp,Wa,Xp,Di,Qp,ni,bc,B1,$1,dr=cr(()=>{Pe(),Le(),Oe(),Eo={},Kp=!1,Wa={},Xp=!1,Di={},Qp=!1,ni=U2(),ni.Buffer,ni.SlowBuffer,ni.INSPECT_MAX_BYTES,ni.kMaxLength,bc=ni.Buffer,B1=ni.INSPECT_MAX_BYTES,$1=ni.kMaxLength}),Le=cr(()=>{dr()}),F2=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=class{constructor(r){this.aliasToTopic={},this.max=r}put(r,n){return n===0||n>this.max?!1:(this.aliasToTopic[n]=r,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(r){return this.aliasToTopic[r]}clear(){this.aliasToTopic={}}};t.default=e}),Zt=Ne((t,e)=>{Pe(),Le(),Oe(),e.exports={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,n){return r.includes(n)},ArrayPrototypeIndexOf(r,n){return r.indexOf(n)},ArrayPrototypeJoin(r,n){return r.join(n)},ArrayPrototypeMap(r,n){return r.map(n)},ArrayPrototypePop(r,n){return r.pop(n)},ArrayPrototypePush(r,n){return r.push(n)},ArrayPrototypeSlice(r,n,s){return r.slice(n,s)},Error,FunctionPrototypeCall(r,n,...s){return r.call(n,...s)},FunctionPrototypeSymbolHasInstance(r,n){return Function.prototype[Symbol.hasInstance].call(r,n)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(r,n){return Object.defineProperties(r,n)},ObjectDefineProperty(r,n,s){return Object.defineProperty(r,n,s)},ObjectGetOwnPropertyDescriptor(r,n){return Object.getOwnPropertyDescriptor(r,n)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,n){return Object.setPrototypeOf(r,n)},Promise,PromisePrototypeCatch(r,n){return r.catch(n)},PromisePrototypeThen(r,n,s){return r.then(n,s)},PromiseReject(r){return Promise.reject(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,n){return r.test(n)},SafeSet:Set,String,StringPrototypeSlice(r,n,s){return r.slice(n,s)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(r,n,s){return r.set(n,s)},Uint8Array}}),Ti=Ne((t,e)=>{Pe(),Le(),Oe();var r=(dr(),It(fr)),n=Object.getPrototypeOf(async function(){}).constructor,s=globalThis.Blob||r.Blob,i=typeof s<"u"?function(o){return o instanceof s}:function(o){return!1},a=class extends Error{constructor(o){if(!Array.isArray(o))throw new TypeError(`Expected input to be an Array, got ${typeof o}`);let l="";for(let u=0;u{o=u,l=c}),resolve:o,reject:l}},promisify(o){return new Promise((l,u)=>{o((c,...f)=>c?u(c):l(...f))})},debuglog(){return function(){}},format(o,...l){return o.replace(/%([sdifj])/g,function(...[u,c]){let f=l.shift();return c==="f"?f.toFixed(6):c==="j"?JSON.stringify(f):c==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(o){switch(typeof o){case"string":if(o.includes("'"))if(o.includes('"')){if(!o.includes("`")&&!o.includes("${"))return`\`${o}\``}else return`"${o}"`;return`'${o}'`;case"number":return isNaN(o)?"NaN":Object.is(o,-0)?String(o):o;case"bigint":return`${String(o)}n`;case"boolean":case"undefined":return String(o);case"object":return"{}"}},types:{isAsyncFunction(o){return o instanceof n},isArrayBufferView(o){return ArrayBuffer.isView(o)}},isBlob:i},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),vm=Ne((t,e)=>{Pe(),Le(),Oe();var{AbortController:r,AbortSignal:n}=typeof self<"u"?self:typeof window<"u"?window:void 0;e.exports=r,e.exports.AbortSignal=n,e.exports.default=r}),Dr=Ne((t,e)=>{Pe(),Le(),Oe();var{format:r,inspect:n,AggregateError:s}=Ti(),i=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),o=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,u="__node_internal_",c={};function f(_,y){if(!_)throw new c.ERR_INTERNAL_ASSERTION(y)}function d(_){let y="",x=_.length,T=_[0]==="-"?1:0;for(;x>=T+4;x-=3)y=`_${_.slice(x-3,x)}${y}`;return`${_.slice(0,x)}${y}`}function p(_,y,x){if(typeof y=="function")return f(y.length<=x.length,`Code: ${_}; The provided arguments length (${x.length}) does not match the required ones (${y.length}).`),y(...x);let T=(y.match(/%[dfijoOs]/g)||[]).length;return f(T===x.length,`Code: ${_}; The provided arguments length (${x.length}) does not match the required ones (${T}).`),x.length===0?y:r(y,...x)}function g(_,y,x){x||(x=Error);class T extends x{constructor(...C){super(p(_,y,C))}toString(){return`${this.name} [${_}]: ${this.message}`}}Object.defineProperties(T.prototype,{name:{value:x.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${_}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),T.prototype.code=_,T.prototype[a]=!0,c[_]=T}function b(_){let y=u+_.name;return Object.defineProperty(_,"name",{value:y}),_}function v(_,y){if(_&&y&&_!==y){if(Array.isArray(y.errors))return y.errors.push(_),y;let x=new i([y,_],y.message);return x.code=y.code,x}return _||y}var w=class extends Error{constructor(_="The operation was aborted",y=void 0){if(y!==void 0&&typeof y!="object")throw new c.ERR_INVALID_ARG_TYPE("options","Object",y);super(_,y),this.code="ABORT_ERR",this.name="AbortError"}};g("ERR_ASSERTION","%s",Error),g("ERR_INVALID_ARG_TYPE",(_,y,x)=>{f(typeof _=="string","'name' must be a string"),Array.isArray(y)||(y=[y]);let T="The ";_.endsWith(" argument")?T+=`${_} `:T+=`"${_}" ${_.includes(".")?"property":"argument"} `,T+="must be ";let A=[],C=[],L=[];for(let R of y)f(typeof R=="string","All expected entries have to be of type string"),o.includes(R)?A.push(R.toLowerCase()):l.test(R)?C.push(R):(f(R!=="object",'The value "object" should be written as "Object"'),L.push(R));if(C.length>0){let R=A.indexOf("object");R!==-1&&(A.splice(A,R,1),C.push("Object"))}if(A.length>0){switch(A.length){case 1:T+=`of type ${A[0]}`;break;case 2:T+=`one of type ${A[0]} or ${A[1]}`;break;default:{let R=A.pop();T+=`one of type ${A.join(", ")}, or ${R}`}}(C.length>0||L.length>0)&&(T+=" or ")}if(C.length>0){switch(C.length){case 1:T+=`an instance of ${C[0]}`;break;case 2:T+=`an instance of ${C[0]} or ${C[1]}`;break;default:{let R=C.pop();T+=`an instance of ${C.join(", ")}, or ${R}`}}L.length>0&&(T+=" or ")}switch(L.length){case 0:break;case 1:L[0].toLowerCase()!==L[0]&&(T+="an "),T+=`${L[0]}`;break;case 2:T+=`one of ${L[0]} or ${L[1]}`;break;default:{let R=L.pop();T+=`one of ${L.join(", ")}, or ${R}`}}if(x==null)T+=`. Received ${x}`;else if(typeof x=="function"&&x.name)T+=`. Received function ${x.name}`;else if(typeof x=="object"){var j;if((j=x.constructor)!==null&&j!==void 0&&j.name)T+=`. Received an instance of ${x.constructor.name}`;else{let R=n(x,{depth:-1});T+=`. Received ${R}`}}else{let R=n(x,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),T+=`. Received type ${typeof x} (${R})`}return T},TypeError),g("ERR_INVALID_ARG_VALUE",(_,y,x="is invalid")=>{let T=n(y);return T.length>128&&(T=T.slice(0,128)+"..."),`The ${_.includes(".")?"property":"argument"} '${_}' ${x}. Received ${T}`},TypeError),g("ERR_INVALID_RETURN_VALUE",(_,y,x)=>{var T;let A=x!=null&&(T=x.constructor)!==null&&T!==void 0&&T.name?`instance of ${x.constructor.name}`:`type ${typeof x}`;return`Expected ${_} to be returned from the "${y}" function but got ${A}.`},TypeError),g("ERR_MISSING_ARGS",(..._)=>{f(_.length>0,"At least one arg needs to be specified");let y,x=_.length;switch(_=(Array.isArray(_)?_:[_]).map(T=>`"${T}"`).join(" or "),x){case 1:y+=`The ${_[0]} argument`;break;case 2:y+=`The ${_[0]} and ${_[1]} arguments`;break;default:{let T=_.pop();y+=`The ${_.join(", ")}, and ${T} arguments`}break}return`${y} must be specified`},TypeError),g("ERR_OUT_OF_RANGE",(_,y,x)=>{f(y,'Missing "range" argument');let T;return Number.isInteger(x)&&Math.abs(x)>2**32?T=d(String(x)):typeof x=="bigint"?(T=String(x),(x>2n**32n||x<-(2n**32n))&&(T=d(T)),T+="n"):T=n(x),`The value of "${_}" is out of range. It must be ${y}. Received ${T}`},RangeError),g("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),g("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),g("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),g("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),g("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),g("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),g("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),g("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),g("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),g("ERR_STREAM_WRITE_AFTER_END","write after end",Error),g("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:w,aggregateTwoErrors:b(v),hideStackFrames:b,codes:c}}),Qc=Ne((t,e)=>{Pe(),Le(),Oe();var{ArrayIsArray:r,ArrayPrototypeIncludes:n,ArrayPrototypeJoin:s,ArrayPrototypeMap:i,NumberIsInteger:a,NumberIsNaN:o,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:b}=Zt(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:_,ERR_INVALID_ARG_VALUE:y,ERR_OUT_OF_RANGE:x,ERR_UNKNOWN_SIGNAL:T}}=Dr(),{normalizeEncoding:A}=Ti(),{isAsyncFunction:C,isArrayBufferView:L}=Ti().types,j={};function R(Y){return Y===(Y|0)}function U(Y){return Y===Y>>>0}var I=/^[0-7]+$/,M="must be a 32-bit unsigned integer or an octal string";function $(Y,ie,Q){if(typeof Y>"u"&&(Y=Q),typeof Y=="string"){if(d(I,Y)===null)throw new y(ie,Y,M);Y=c(Y,8)}return re(Y,ie),Y}var Z=v((Y,ie,Q=u,oe=l)=>{if(typeof Y!="number")throw new _(ie,"number",Y);if(!a(Y))throw new x(ie,"an integer",Y);if(Yoe)throw new x(ie,`>= ${Q} && <= ${oe}`,Y)}),ne=v((Y,ie,Q=-2147483648,oe=2147483647)=>{if(typeof Y!="number")throw new _(ie,"number",Y);if(!a(Y))throw new x(ie,"an integer",Y);if(Yoe)throw new x(ie,`>= ${Q} && <= ${oe}`,Y)}),re=v((Y,ie,Q=!1)=>{if(typeof Y!="number")throw new _(ie,"number",Y);if(!a(Y))throw new x(ie,"an integer",Y);let oe=Q?1:0,me=4294967295;if(Yme)throw new x(ie,`>= ${oe} && <= ${me}`,Y)});function N(Y,ie){if(typeof Y!="string")throw new _(ie,"string",Y)}function fe(Y,ie,Q=void 0,oe){if(typeof Y!="number")throw new _(ie,"number",Y);if(Q!=null&&Yoe||(Q!=null||oe!=null)&&o(Y))throw new x(ie,`${Q!=null?`>= ${Q}`:""}${Q!=null&&oe!=null?" && ":""}${oe!=null?`<= ${oe}`:""}`,Y)}var G=v((Y,ie,Q)=>{if(!n(Q,Y)){let oe="must be one of: "+s(i(Q,me=>typeof me=="string"?`'${me}'`:p(me)),", ");throw new y(ie,Y,oe)}});function pe(Y,ie){if(typeof Y!="boolean")throw new _(ie,"boolean",Y)}function F(Y,ie,Q){return Y==null||!f(Y,ie)?Q:Y[ie]}var de=v((Y,ie,Q=null)=>{let oe=F(Q,"allowArray",!1),me=F(Q,"allowFunction",!1);if(!F(Q,"nullable",!1)&&Y===null||!oe&&r(Y)||typeof Y!="object"&&(!me||typeof Y!="function"))throw new _(ie,"Object",Y)}),Se=v((Y,ie)=>{if(Y!=null&&typeof Y!="object"&&typeof Y!="function")throw new _(ie,"a dictionary",Y)}),ee=v((Y,ie,Q=0)=>{if(!r(Y))throw new _(ie,"Array",Y);if(Y.length{if(!L(Y))throw new _(ie,["Buffer","TypedArray","DataView"],Y)});function ce(Y,ie){let Q=A(ie),oe=Y.length;if(Q==="hex"&&oe%2!==0)throw new y("encoding",ie,`is invalid for data of length ${oe}`)}function le(Y,ie="Port",Q=!0){if(typeof Y!="number"&&typeof Y!="string"||typeof Y=="string"&&b(Y).length===0||+Y!==+Y>>>0||Y>65535||Y===0&&!Q)throw new w(ie,Y,Q);return Y|0}var k=v((Y,ie)=>{if(Y!==void 0&&(Y===null||typeof Y!="object"||!("aborted"in Y)))throw new _(ie,"AbortSignal",Y)}),P=v((Y,ie)=>{if(typeof Y!="function")throw new _(ie,"Function",Y)}),V=v((Y,ie)=>{if(typeof Y!="function"||C(Y))throw new _(ie,"Function",Y)}),B=v((Y,ie)=>{if(Y!==void 0)throw new _(ie,"undefined",Y)});function H(Y,ie,Q){if(!n(Q,Y))throw new _(ie,`('${s(Q,"|")}')`,Y)}var q=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ue(Y,ie){if(typeof Y>"u"||!d(q,Y))throw new y(ie,Y,'must be an array or string of format "; rel=preload; as=style"')}function J(Y){if(typeof Y=="string")return ue(Y,"hints"),Y;if(r(Y)){let ie=Y.length,Q="";if(ie===0)return Q;for(let oe=0;oe; rel=preload; as=style"')}e.exports={isInt32:R,isUint32:U,parseFileMode:$,validateArray:ee,validateStringArray:K,validateBooleanArray:W,validateBoolean:pe,validateBuffer:X,validateDictionary:Se,validateEncoding:ce,validateFunction:P,validateInt32:ne,validateInteger:Z,validateNumber:fe,validateObject:de,validateOneOf:G,validatePlainFunction:V,validatePort:le,validateSignalName:D,validateString:N,validateUint32:re,validateUndefined:B,validateUnion:H,validateAbortSignal:k,validateLinkHeaderValue:J}}),io=Ne((t,e)=>{Pe(),Le(),Oe();var r=e.exports={},n,s;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=i}catch{n=i}try{typeof clearTimeout=="function"?s=clearTimeout:s=a}catch{s=a}})();function o(w){if(n===setTimeout)return setTimeout(w,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}function l(w){if(s===clearTimeout)return clearTimeout(w);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(w);try{return s(w)}catch{try{return s.call(null,w)}catch{return s.call(this,w)}}}var u=[],c=!1,f,d=-1;function p(){!c||!f||(c=!1,f.length?u=f.concat(u):d=-1,u.length&&g())}function g(){if(!c){var w=o(p);c=!0;for(var _=u.length;_;){for(f=u,u=[];++d<_;)f&&f[d].run();d=-1,_=u.length}f=null,c=!1,l(w)}}r.nextTick=function(w){var _=new Array(arguments.length-1);if(arguments.length>1)for(var y=1;y{Pe(),Le(),Oe();var{Symbol:r,SymbolAsyncIterator:n,SymbolIterator:s,SymbolFor:i}=Zt(),a=r("kDestroyed"),o=r("kIsErrored"),l=r("kIsReadable"),u=r("kIsDisturbed"),c=i("nodejs.webstream.isClosedPromise"),f=i("nodejs.webstream.controllerErrorFunction");function d(F,de=!1){var Se;return!!(F&&typeof F.pipe=="function"&&typeof F.on=="function"&&(!de||typeof F.pause=="function"&&typeof F.resume=="function")&&(!F._writableState||((Se=F._readableState)===null||Se===void 0?void 0:Se.readable)!==!1)&&(!F._writableState||F._readableState))}function p(F){var de;return!!(F&&typeof F.write=="function"&&typeof F.on=="function"&&(!F._readableState||((de=F._writableState)===null||de===void 0?void 0:de.writable)!==!1))}function g(F){return!!(F&&typeof F.pipe=="function"&&F._readableState&&typeof F.on=="function"&&typeof F.write=="function")}function b(F){return F&&(F._readableState||F._writableState||typeof F.write=="function"&&typeof F.on=="function"||typeof F.pipe=="function"&&typeof F.on=="function")}function v(F){return!!(F&&!b(F)&&typeof F.pipeThrough=="function"&&typeof F.getReader=="function"&&typeof F.cancel=="function")}function w(F){return!!(F&&!b(F)&&typeof F.getWriter=="function"&&typeof F.abort=="function")}function _(F){return!!(F&&!b(F)&&typeof F.readable=="object"&&typeof F.writable=="object")}function y(F){return v(F)||w(F)||_(F)}function x(F,de){return F==null?!1:de===!0?typeof F[n]=="function":de===!1?typeof F[s]=="function":typeof F[n]=="function"||typeof F[s]=="function"}function T(F){if(!b(F))return null;let de=F._writableState,Se=F._readableState,ee=de||Se;return!!(F.destroyed||F[a]||ee!=null&&ee.destroyed)}function A(F){if(!p(F))return null;if(F.writableEnded===!0)return!0;let de=F._writableState;return de!=null&&de.errored?!1:typeof(de==null?void 0:de.ended)!="boolean"?null:de.ended}function C(F,de){if(!p(F))return null;if(F.writableFinished===!0)return!0;let Se=F._writableState;return Se!=null&&Se.errored?!1:typeof(Se==null?void 0:Se.finished)!="boolean"?null:!!(Se.finished||de===!1&&Se.ended===!0&&Se.length===0)}function L(F){if(!d(F))return null;if(F.readableEnded===!0)return!0;let de=F._readableState;return!de||de.errored?!1:typeof(de==null?void 0:de.ended)!="boolean"?null:de.ended}function j(F,de){if(!d(F))return null;let Se=F._readableState;return Se!=null&&Se.errored?!1:typeof(Se==null?void 0:Se.endEmitted)!="boolean"?null:!!(Se.endEmitted||de===!1&&Se.ended===!0&&Se.length===0)}function R(F){return F&&F[l]!=null?F[l]:typeof(F==null?void 0:F.readable)!="boolean"?null:T(F)?!1:d(F)&&F.readable&&!j(F)}function U(F){return typeof(F==null?void 0:F.writable)!="boolean"?null:T(F)?!1:p(F)&&F.writable&&!A(F)}function I(F,de){return b(F)?T(F)?!0:!((de==null?void 0:de.readable)!==!1&&R(F)||(de==null?void 0:de.writable)!==!1&&U(F)):null}function M(F){var de,Se;return b(F)?F.writableErrored?F.writableErrored:(de=(Se=F._writableState)===null||Se===void 0?void 0:Se.errored)!==null&&de!==void 0?de:null:null}function $(F){var de,Se;return b(F)?F.readableErrored?F.readableErrored:(de=(Se=F._readableState)===null||Se===void 0?void 0:Se.errored)!==null&&de!==void 0?de:null:null}function Z(F){if(!b(F))return null;if(typeof F.closed=="boolean")return F.closed;let de=F._writableState,Se=F._readableState;return typeof(de==null?void 0:de.closed)=="boolean"||typeof(Se==null?void 0:Se.closed)=="boolean"?(de==null?void 0:de.closed)||(Se==null?void 0:Se.closed):typeof F._closed=="boolean"&&ne(F)?F._closed:null}function ne(F){return typeof F._closed=="boolean"&&typeof F._defaultKeepAlive=="boolean"&&typeof F._removedConnection=="boolean"&&typeof F._removedContLen=="boolean"}function re(F){return typeof F._sent100=="boolean"&&ne(F)}function N(F){var de;return typeof F._consuming=="boolean"&&typeof F._dumped=="boolean"&&((de=F.req)===null||de===void 0?void 0:de.upgradeOrConnect)===void 0}function fe(F){if(!b(F))return null;let de=F._writableState,Se=F._readableState,ee=de||Se;return!ee&&re(F)||!!(ee&&ee.autoDestroy&&ee.emitClose&&ee.closed===!1)}function G(F){var de;return!!(F&&((de=F[u])!==null&&de!==void 0?de:F.readableDidRead||F.readableAborted))}function pe(F){var de,Se,ee,K,W,D,X,ce,le,k;return!!(F&&((de=(Se=(ee=(K=(W=(D=F[o])!==null&&D!==void 0?D:F.readableErrored)!==null&&W!==void 0?W:F.writableErrored)!==null&&K!==void 0?K:(X=F._readableState)===null||X===void 0?void 0:X.errorEmitted)!==null&&ee!==void 0?ee:(ce=F._writableState)===null||ce===void 0?void 0:ce.errorEmitted)!==null&&Se!==void 0?Se:(le=F._readableState)===null||le===void 0?void 0:le.errored)!==null&&de!==void 0?de:!((k=F._writableState)===null||k===void 0)&&k.errored))}e.exports={kDestroyed:a,isDisturbed:G,kIsDisturbed:u,isErrored:pe,kIsErrored:o,isReadable:R,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:f,isClosed:Z,isDestroyed:T,isDuplexNodeStream:g,isFinished:I,isIterable:x,isReadableNodeStream:d,isReadableStream:v,isReadableEnded:L,isReadableFinished:j,isReadableErrored:$,isNodeStream:b,isWebStream:y,isWritable:U,isWritableNodeStream:p,isWritableStream:w,isWritableEnded:A,isWritableFinished:C,isWritableErrored:M,isServerRequest:N,isServerResponse:re,willEmitClose:fe,isTransformStream:_}}),ls=Ne((t,e)=>{Pe(),Le(),Oe();var r=io(),{AbortError:n,codes:s}=Dr(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:o,once:l}=Ti(),{validateAbortSignal:u,validateFunction:c,validateObject:f,validateBoolean:d}=Qc(),{Promise:p,PromisePrototypeThen:g}=Zt(),{isClosed:b,isReadable:v,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:y,isReadableErrored:x,isWritable:T,isWritableNodeStream:A,isWritableStream:C,isWritableFinished:L,isWritableErrored:j,isNodeStream:R,willEmitClose:U,kIsClosedPromise:I}=Oi();function M(N){return N.setHeader&&typeof N.abort=="function"}var $=()=>{};function Z(N,fe,G){var pe,F;if(arguments.length===2?(G=fe,fe=o):fe==null?fe=o:f(fe,"options"),c(G,"callback"),u(fe.signal,"options.signal"),G=l(G),_(N)||C(N))return ne(N,fe,G);if(!R(N))throw new i("stream",["ReadableStream","WritableStream","Stream"],N);let de=(pe=fe.readable)!==null&&pe!==void 0?pe:w(N),Se=(F=fe.writable)!==null&&F!==void 0?F:A(N),ee=N._writableState,K=N._readableState,W=()=>{N.writable||ce()},D=U(N)&&w(N)===de&&A(N)===Se,X=L(N,!1),ce=()=>{X=!0,N.destroyed&&(D=!1),!(D&&(!N.readable||de))&&(!de||le)&&G.call(N)},le=y(N,!1),k=()=>{le=!0,N.destroyed&&(D=!1),!(D&&(!N.writable||Se))&&(!Se||X)&&G.call(N)},P=J=>{G.call(N,J)},V=b(N),B=()=>{V=!0;let J=j(N)||x(N);if(J&&typeof J!="boolean")return G.call(N,J);if(de&&!le&&w(N,!0)&&!y(N,!1))return G.call(N,new a);if(Se&&!X&&!L(N,!1))return G.call(N,new a);G.call(N)},H=()=>{V=!0;let J=j(N)||x(N);if(J&&typeof J!="boolean")return G.call(N,J);G.call(N)},q=()=>{N.req.on("finish",ce)};M(N)?(N.on("complete",ce),D||N.on("abort",B),N.req?q():N.on("request",q)):Se&&!ee&&(N.on("end",W),N.on("close",W)),!D&&typeof N.aborted=="boolean"&&N.on("aborted",B),N.on("end",k),N.on("finish",ce),fe.error!==!1&&N.on("error",P),N.on("close",B),V?r.nextTick(B):ee!=null&&ee.errorEmitted||K!=null&&K.errorEmitted?D||r.nextTick(H):(!de&&(!D||v(N))&&(X||T(N)===!1)||!Se&&(!D||T(N))&&(le||v(N)===!1)||K&&N.req&&N.aborted)&&r.nextTick(H);let ue=()=>{G=$,N.removeListener("aborted",B),N.removeListener("complete",ce),N.removeListener("abort",B),N.removeListener("request",q),N.req&&N.req.removeListener("finish",ce),N.removeListener("end",W),N.removeListener("close",W),N.removeListener("finish",ce),N.removeListener("end",k),N.removeListener("error",P),N.removeListener("close",B)};if(fe.signal&&!V){let J=()=>{let Y=G;ue(),Y.call(N,new n(void 0,{cause:fe.signal.reason}))};if(fe.signal.aborted)r.nextTick(J);else{let Y=G;G=l((...ie)=>{fe.signal.removeEventListener("abort",J),Y.apply(N,ie)}),fe.signal.addEventListener("abort",J)}}return ue}function ne(N,fe,G){let pe=!1,F=$;if(fe.signal)if(F=()=>{pe=!0,G.call(N,new n(void 0,{cause:fe.signal.reason}))},fe.signal.aborted)r.nextTick(F);else{let Se=G;G=l((...ee)=>{fe.signal.removeEventListener("abort",F),Se.apply(N,ee)}),fe.signal.addEventListener("abort",F)}let de=(...Se)=>{pe||r.nextTick(()=>G.apply(N,Se))};return g(N[I].promise,de,de),$}function re(N,fe){var G;let pe=!1;return fe===null&&(fe=o),(G=fe)!==null&&G!==void 0&&G.cleanup&&(d(fe.cleanup,"cleanup"),pe=fe.cleanup),new p((F,de)=>{let Se=Z(N,fe,ee=>{pe&&Se(),ee?de(ee):F()})})}e.exports=Z,e.exports.finished=re}),aa=Ne((t,e)=>{Pe(),Le(),Oe();var r=io(),{aggregateTwoErrors:n,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:i}=Dr(),{Symbol:a}=Zt(),{kDestroyed:o,isDestroyed:l,isFinished:u,isServerRequest:c}=Oi(),f=a("kDestroy"),d=a("kConstruct");function p(I,M,$){I&&(I.stack,M&&!M.errored&&(M.errored=I),$&&!$.errored&&($.errored=I))}function g(I,M){let $=this._readableState,Z=this._writableState,ne=Z||$;return Z!=null&&Z.destroyed||$!=null&&$.destroyed?(typeof M=="function"&&M(),this):(p(I,Z,$),Z&&(Z.destroyed=!0),$&&($.destroyed=!0),ne.constructed?b(this,I,M):this.once(f,function(re){b(this,n(re,I),M)}),this)}function b(I,M,$){let Z=!1;function ne(re){if(Z)return;Z=!0;let N=I._readableState,fe=I._writableState;p(re,fe,N),fe&&(fe.closed=!0),N&&(N.closed=!0),typeof $=="function"&&$(re),re?r.nextTick(v,I,re):r.nextTick(w,I)}try{I._destroy(M||null,ne)}catch(re){ne(re)}}function v(I,M){_(I,M),w(I)}function w(I){let M=I._readableState,$=I._writableState;$&&($.closeEmitted=!0),M&&(M.closeEmitted=!0),($!=null&&$.emitClose||M!=null&&M.emitClose)&&I.emit("close")}function _(I,M){let $=I._readableState,Z=I._writableState;Z!=null&&Z.errorEmitted||$!=null&&$.errorEmitted||(Z&&(Z.errorEmitted=!0),$&&($.errorEmitted=!0),I.emit("error",M))}function y(){let I=this._readableState,M=this._writableState;I&&(I.constructed=!0,I.closed=!1,I.closeEmitted=!1,I.destroyed=!1,I.errored=null,I.errorEmitted=!1,I.reading=!1,I.ended=I.readable===!1,I.endEmitted=I.readable===!1),M&&(M.constructed=!0,M.destroyed=!1,M.closed=!1,M.closeEmitted=!1,M.errored=null,M.errorEmitted=!1,M.finalCalled=!1,M.prefinished=!1,M.ended=M.writable===!1,M.ending=M.writable===!1,M.finished=M.writable===!1)}function x(I,M,$){let Z=I._readableState,ne=I._writableState;if(ne!=null&&ne.destroyed||Z!=null&&Z.destroyed)return this;Z!=null&&Z.autoDestroy||ne!=null&&ne.autoDestroy?I.destroy(M):M&&(M.stack,ne&&!ne.errored&&(ne.errored=M),Z&&!Z.errored&&(Z.errored=M),$?r.nextTick(_,I,M):_(I,M))}function T(I,M){if(typeof I._construct!="function")return;let $=I._readableState,Z=I._writableState;$&&($.constructed=!1),Z&&(Z.constructed=!1),I.once(d,M),!(I.listenerCount(d)>1)&&r.nextTick(A,I)}function A(I){let M=!1;function $(Z){if(M){x(I,Z??new s);return}M=!0;let ne=I._readableState,re=I._writableState,N=re||ne;ne&&(ne.constructed=!0),re&&(re.constructed=!0),N.destroyed?I.emit(f,Z):Z?x(I,Z,!0):r.nextTick(C,I)}try{I._construct(Z=>{r.nextTick($,Z)})}catch(Z){r.nextTick($,Z)}}function C(I){I.emit(d)}function L(I){return(I==null?void 0:I.setHeader)&&typeof I.abort=="function"}function j(I){I.emit("close")}function R(I,M){I.emit("error",M),r.nextTick(j,I)}function U(I,M){!I||l(I)||(!M&&!u(I)&&(M=new i),c(I)?(I.socket=null,I.destroy(M)):L(I)?I.abort():L(I.req)?I.req.abort():typeof I.destroy=="function"?I.destroy(M):typeof I.close=="function"?I.close():M?r.nextTick(R,I,M):r.nextTick(j,I),I.destroyed||(I[o]=!0))}e.exports={construct:T,destroyer:U,destroy:g,undestroy:y,errorOrDestroy:x}});function Tt(){Tt.init.call(this)}function Nu(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function N1(t){return t._maxListeners===void 0?Tt.defaultMaxListeners:t._maxListeners}function Ny(t,e,r,n){var s,i,a,o;if(Nu(r),(i=t._events)===void 0?(i=t._events=Object.create(null),t._eventsCount=0):(i.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),a===void 0)a=i[e]=r,++t._eventsCount;else if(typeof a=="function"?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(s=N1(t))>0&&a.length>s&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,o=l,console&&console.warn&&console.warn(o)}return t}function V2(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Dy(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},s=V2.bind(n);return s.listener=r,n.wrapFn=s,s}function Uy(t,e,r){var n=t._events;if(n===void 0)return[];var s=n[e];return s===void 0?[]:typeof s=="function"?r?[s.listener||s]:[s]:r?function(i){for(var a=new Array(i.length),o=0;o{Pe(),Le(),Oe(),ws=typeof Reflect=="object"?Reflect:null,Wf=ws&&typeof ws.apply=="function"?ws.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)},jy=ws&&typeof ws.ownKeys=="function"?ws.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},zf=Number.isNaN||function(t){return t!=t},Vy=Tt,Tt.EventEmitter=Tt,Tt.prototype._events=void 0,Tt.prototype._eventsCount=0,Tt.prototype._maxListeners=void 0,Hf=10,Object.defineProperty(Tt,"defaultMaxListeners",{enumerable:!0,get:function(){return Hf},set:function(t){if(typeof t!="number"||t<0||zf(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Hf=t}}),Tt.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Tt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||zf(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},Tt.prototype.getMaxListeners=function(){return N1(this)},Tt.prototype.emit=function(t){for(var e=[],r=1;r0&&(i=e[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var o=s[t];if(o===void 0)return!1;if(typeof o=="function")Wf(o,this,e);else{var l=o.length,u=D1(o,l);for(r=0;r=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,s=i;break}if(s<0)return this;s===0?r.shift():function(o,l){for(;l+1=0;n--)this.removeListener(t,e[n]);return this},Tt.prototype.listeners=function(t){return Uy(this,t,!0)},Tt.prototype.rawListeners=function(t){return Uy(this,t,!1)},Tt.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Fy.call(t,e)},Tt.prototype.listenerCount=Fy,Tt.prototype.eventNames=function(){return this._eventsCount>0?jy(this._events):[]},jr=Vy,jr.EventEmitter,jr.defaultMaxListeners,jr.init,jr.listenerCount,jr.EventEmitter,jr.defaultMaxListeners,jr.init,jr.listenerCount}),so={};no(so,{EventEmitter:()=>U1,default:()=>jr,defaultMaxListeners:()=>F1,init:()=>V1,listenerCount:()=>j1,on:()=>W1,once:()=>z1});var U1,F1,V1,j1,W1,z1,la=cr(()=>{Pe(),Le(),Oe(),Wy(),Wy(),jr.once=function(t,e){return new Promise((r,n)=>{function s(...a){i!==void 0&&t.removeListener("error",i),r(a)}let i;e!=="error"&&(i=a=>{t.removeListener(name,s),n(a)},t.once("error",i)),t.once(e,s)})},jr.on=function(t,e){let r=[],n=[],s=null,i=!1,a={async next(){let u=r.shift();if(u)return createIterResult(u,!1);if(s){let c=Promise.reject(s);return s=null,c}return i?createIterResult(void 0,!0):new Promise((c,f)=>n.push({resolve:c,reject:f}))},async return(){t.removeListener(e,o),t.removeListener("error",l),i=!0;for(let u of n)u.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(u){s=u,t.removeListener(e,o),t.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return t.on(e,o),t.on("error",l),a;function o(...u){let c=n.shift();c?c.resolve(createIterResult(u,!1)):r.push(u)}function l(u){i=!0;let c=n.shift();c?c.reject(u):s=u,a.return()}},{EventEmitter:U1,defaultMaxListeners:F1,init:V1,listenerCount:j1,on:W1,once:z1}=jr}),_m=Ne((t,e)=>{Pe(),Le(),Oe();var{ArrayIsArray:r,ObjectSetPrototypeOf:n}=Zt(),{EventEmitter:s}=(la(),It(so));function i(o){s.call(this,o)}n(i.prototype,s.prototype),n(i,s),i.prototype.pipe=function(o,l){let u=this;function c(w){o.writable&&o.write(w)===!1&&u.pause&&u.pause()}u.on("data",c);function f(){u.readable&&u.resume&&u.resume()}o.on("drain",f),!o._isStdio&&(!l||l.end!==!1)&&(u.on("end",p),u.on("close",g));let d=!1;function p(){d||(d=!0,o.end())}function g(){d||(d=!0,typeof o.destroy=="function"&&o.destroy())}function b(w){v(),s.listenerCount(this,"error")===0&&this.emit("error",w)}a(u,"error",b),a(o,"error",b);function v(){u.removeListener("data",c),o.removeListener("drain",f),u.removeListener("end",p),u.removeListener("close",g),u.removeListener("error",b),o.removeListener("error",b),u.removeListener("end",v),u.removeListener("close",v),o.removeListener("close",v)}return u.on("end",v),u.on("close",v),o.on("close",v),o.emit("pipe",u),o};function a(o,l,u){if(typeof o.prependListener=="function")return o.prependListener(l,u);!o._events||!o._events[l]?o.on(l,u):r(o._events[l])?o._events[l].unshift(u):o._events[l]=[u,o._events[l]]}e.exports={Stream:i,prependListener:a}}),Jc=Ne((t,e)=>{Pe(),Le(),Oe();var{AbortError:r,codes:n}=Dr(),{isNodeStream:s,isWebStream:i,kControllerErrorFunction:a}=Oi(),o=ls(),{ERR_INVALID_ARG_TYPE:l}=n,u=(c,f)=>{if(typeof c!="object"||!("aborted"in c))throw new l(f,"AbortSignal",c)};e.exports.addAbortSignal=function(c,f){if(u(c,"signal"),!s(f)&&!i(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return e.exports.addAbortSignalNoValidate(c,f)},e.exports.addAbortSignalNoValidate=function(c,f){if(typeof c!="object"||!("aborted"in c))return f;let d=s(f)?()=>{f.destroy(new r(void 0,{cause:c.reason}))}:()=>{f[a](new r(void 0,{cause:c.reason}))};return c.aborted?d():(c.addEventListener("abort",d),o(f,()=>c.removeEventListener("abort",d))),f}}),j2=Ne((t,e)=>{Pe(),Le(),Oe();var{StringPrototypeSlice:r,SymbolIterator:n,TypedArrayPrototypeSet:s,Uint8Array:i}=Zt(),{Buffer:a}=(dr(),It(fr)),{inspect:o}=Ti();e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let u={data:l,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}unshift(l){let u={data:l,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let u=this.head,c=""+u.data;for(;(u=u.next)!==null;)c+=l+u.data;return c}concat(l){if(this.length===0)return a.alloc(0);let u=a.allocUnsafe(l>>>0),c=this.head,f=0;for(;c;)s(u,c.data,f),f+=c.data.length,c=c.next;return u}consume(l,u){let c=this.head.data;if(ld.length)u+=d,l-=d.length;else{l===d.length?(u+=d,++f,c.next?this.head=c.next:this.head=this.tail=null):(u+=r(d,0,l),this.head=c,c.data=r(d,l));break}++f}while((c=c.next)!==null);return this.length-=f,u}_getBuffer(l){let u=a.allocUnsafe(l),c=l,f=this.head,d=0;do{let p=f.data;if(l>p.length)s(u,p,c-l),l-=p.length;else{l===p.length?(s(u,p,c-l),++d,f.next?this.head=f.next:this.head=this.tail=null):(s(u,new i(p.buffer,p.byteOffset,l),c-l),this.head=f,f.data=p.slice(l));break}++d}while((f=f.next)!==null);return this.length-=d,u}[Symbol.for("nodejs.util.inspect.custom")](l,u){return o(this,{...u,depth:0,customInspect:!1})}}}),Em=Ne((t,e)=>{Pe(),Le(),Oe();var{MathFloor:r,NumberIsInteger:n}=Zt(),{ERR_INVALID_ARG_VALUE:s}=Dr().codes;function i(l,u,c){return l.highWaterMark!=null?l.highWaterMark:u?l[c]:null}function a(l){return l?16:16*1024}function o(l,u,c,f){let d=i(u,f,c);if(d!=null){if(!n(d)||d<0){let p=f?`options.${c}`:"options.highWaterMark";throw new s(p,d)}return r(d)}return a(l.objectMode)}e.exports={getHighWaterMark:o,getDefaultHighWaterMark:a}});function zy(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return r===-1&&(r=e),[r,r===e?0:4-r%4]}function W2(t,e,r){for(var n,s,i=[],a=e;a>18&63]+yn[s>>12&63]+yn[s>>6&63]+yn[63&s]);return i.join("")}function gi(t){if(t>2147483647)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,Be.prototype),e}function Be(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Jp(t)}return H1(t,e,r)}function H1(t,e,r){if(typeof t=="string")return function(i,a){if(typeof a=="string"&&a!==""||(a="utf8"),!Be.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var o=0|G1(i,a),l=gi(o),u=l.write(i,a);return u!==o&&(l=l.slice(0,u)),l}(t,e);if(ArrayBuffer.isView(t))return qf(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(mi(t,ArrayBuffer)||t&&mi(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mi(t,SharedArrayBuffer)||t&&mi(t.buffer,SharedArrayBuffer)))return z2(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return Be.from(n,e,r);var s=function(i){if(Be.isBuffer(i)){var a=0|Sm(i.length),o=gi(a);return o.length===0||i.copy(o,0,0,a),o}if(i.length!==void 0)return typeof i.length!="number"||xm(i.length)?gi(0):qf(i);if(i.type==="Buffer"&&Array.isArray(i.data))return qf(i.data)}(t);if(s)return s;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return Be.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function q1(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Jp(t){return q1(t),gi(t<0?0:0|Sm(t))}function qf(t){for(var e=t.length<0?0:0|Sm(t.length),r=gi(e),n=0;n=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function G1(t,e){if(Be.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||mi(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var s=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Zp(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q1(t).length;default:if(s)return n?-1:Zp(t).length;e=(""+e).toLowerCase(),s=!0}}function H2(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return eL(this,e,r);case"utf8":case"utf-8":return K1(this,e,r);case"ascii":return J2(this,e,r);case"latin1":case"binary":return Z2(this,e,r);case"base64":return Q2(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tL(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function vs(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Hy(t,e,r,n,s){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),xm(r=+r)&&(r=s?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(s)return-1;r=t.length-1}else if(r<0){if(!s)return-1;r=0}if(typeof e=="string"&&(e=Be.from(e,n)),Be.isBuffer(e))return e.length===0?-1:qy(t,e,r,n,s);if(typeof e=="number")return e&=255,typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):qy(t,[e],r,n,s);throw new TypeError("val must be string, number or Buffer")}function qy(t,e,r,n,s){var i,a=1,o=t.length,l=e.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,l/=2,r/=2}function u(p,g){return a===1?p[g]:p.readUInt16BE(g*a)}if(s){var c=-1;for(i=r;io&&(r=o-l),i=r;i>=0;i--){for(var f=!0,d=0;ds&&(n=s):n=s;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a>8,l=a%256,u.push(l),u.push(o);return u}(e,t.length-r),t,r,n)}function Q2(t,e,r){return e===0&&r===t.length?yc.fromByteArray(t):yc.fromByteArray(t.slice(e,r))}function K1(t,e,r){r=Math.min(t.length,r);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(i=t[s+1]))==128&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=t[s+1],a=t[s+2],(192&i)==128&&(192&a)==128&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=t[s+1],a=t[s+2],o=t[s+3],(192&i)==128&&(192&a)==128&&(192&o)==128&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(c=l)}c===null?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),s+=f}return function(d){var p=d.length;if(p<=4096)return String.fromCharCode.apply(String,d);for(var g="",b=0;bn)&&(r=n);for(var s="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function Or(t,e,r,n,s,i){if(!Be.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function X1(t,e,r,n,s,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Gy(t,e,r,n,s){return e=+e,r>>>=0,s||X1(t,0,r,4),Ms.write(t,e,r,n,23,4),r+4}function Yy(t,e,r,n,s){return e=+e,r>>>=0,s||X1(t,0,r,8),Ms.write(t,e,r,n,52,8),r+8}function Zp(t,e){var r;e=e||1/0;for(var n=t.length,s=null,i=[],a=0;a55295&&r<57344){if(!s){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(e-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Q1(t){return yc.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(J1,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function Zc(t,e,r,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+r]=t[s];return s}function mi(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function xm(t){return t!=t}function Ky(t,e){for(var r in t)e[r]=t[r]}function _s(t,e,r){return mn(t,e,r)}function Ca(t){var e;switch(this.encoding=function(r){var n=function(s){if(!s)return"utf8";for(var i;;)switch(s){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return s;default:if(i)return;s=(""+s).toLowerCase(),i=!0}}(r);if(typeof n!="string"&&(wc.isEncoding===eg||!eg(r)))throw new Error("Unknown encoding: "+r);return n||r}(t),this.encoding){case"utf16le":this.text=nL,this.end=iL,e=4;break;case"utf8":this.fillLast=rL,e=4;break;case"base64":this.text=sL,this.end=oL,e=3;break;default:return this.write=aL,this.end=lL,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=wc.allocUnsafe(e)}function Gf(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function rL(t){var e=this.lastTotal-this.lastNeed,r=function(n,s,i){if((192&s[0])!=128)return n.lastNeed=0,"�";if(n.lastNeed>1&&s.length>1){if((192&s[1])!=128)return n.lastNeed=1,"�";if(n.lastNeed>2&&s.length>2&&(192&s[2])!=128)return n.lastNeed=2,"�"}}(this,t);return r!==void 0?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length,void 0)}function nL(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function iL(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function sL(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function oL(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function aL(t){return t.toString(this.encoding)}function lL(t){return t&&t.length?this.write(t):""}var Xy,yn,Ur,Qy,Jl,Es,Jy,Zy,kn,yc,Ms,Yf,J1,Z1,Ia,Ma,mn,ew,Mo,wc,eg,tw=cr(()=>{for(Pe(),Le(),Oe(),Xy={byteLength:function(t){var e=zy(t),r=e[0],n=e[1];return 3*(r+n)/4-n},toByteArray:function(t){var e,r,n=zy(t),s=n[0],i=n[1],a=new Qy(function(u,c,f){return 3*(c+f)/4-f}(0,s,i)),o=0,l=i>0?s-4:s;for(r=0;r>16&255,a[o++]=e>>8&255,a[o++]=255&e;return i===2&&(e=Ur[t.charCodeAt(r)]<<2|Ur[t.charCodeAt(r+1)]>>4,a[o++]=255&e),i===1&&(e=Ur[t.charCodeAt(r)]<<10|Ur[t.charCodeAt(r+1)]<<4|Ur[t.charCodeAt(r+2)]>>2,a[o++]=e>>8&255,a[o++]=255&e),a},fromByteArray:function(t){for(var e,r=t.length,n=r%3,s=[],i=0,a=r-n;ia?a:i+16383));return n===1?(e=t[r-1],s.push(yn[e>>2]+yn[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],s.push(yn[e>>10]+yn[e>>4&63]+yn[e<<2&63]+"=")),s.join("")}},yn=[],Ur=[],Qy=typeof Uint8Array<"u"?Uint8Array:Array,Jl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Es=0,Jy=Jl.length;Es>1,c=-7,f=r?s-1:0,d=r?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=o;c>0;i=256*i+t[e+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+t[e+f],f+=d,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},write:function(t,e,r,n,s,i){var a,o,l,u=8*i-s-1,c=(1<>1,d=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,g=n?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(o=0,a=c):a+f>=1?(o=(e*l-1)*Math.pow(2,s),a+=f):(o=e*Math.pow(2,f-1)*Math.pow(2,s),a=0));s>=8;t[r+p]=255&o,p+=g,o/=256,s-=8);for(a=a<0;t[r+p]=255&a,p+=g,a/=256,u-=8);t[r+p-g]|=128*b}},kn={},yc=Xy,Ms=Zy,Yf=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,kn.Buffer=Be,kn.SlowBuffer=function(t){return+t!=t&&(t=0),Be.alloc(+t)},kn.INSPECT_MAX_BYTES=50,kn.kMaxLength=2147483647,Be.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}(),Be.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Be.prototype,"parent",{enumerable:!0,get:function(){if(Be.isBuffer(this))return this.buffer}}),Object.defineProperty(Be.prototype,"offset",{enumerable:!0,get:function(){if(Be.isBuffer(this))return this.byteOffset}}),Be.poolSize=8192,Be.from=function(t,e,r){return H1(t,e,r)},Object.setPrototypeOf(Be.prototype,Uint8Array.prototype),Object.setPrototypeOf(Be,Uint8Array),Be.alloc=function(t,e,r){return function(n,s,i){return q1(n),n<=0?gi(n):s!==void 0?typeof i=="string"?gi(n).fill(s,i):gi(n).fill(s):gi(n)}(t,e,r)},Be.allocUnsafe=function(t){return Jp(t)},Be.allocUnsafeSlow=function(t){return Jp(t)},Be.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Be.prototype},Be.compare=function(t,e){if(mi(t,Uint8Array)&&(t=Be.from(t,t.offset,t.byteLength)),mi(e,Uint8Array)&&(e=Be.from(e,e.offset,e.byteLength)),!Be.isBuffer(t)||!Be.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,s=0,i=Math.min(r,n);se&&(t+=" ... "),""},Yf&&(Be.prototype[Yf]=Be.prototype.inspect),Be.prototype.compare=function(t,e,r,n,s){if(mi(t,Uint8Array)&&(t=Be.from(t,t.offset,t.byteLength)),!Be.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),r===void 0&&(r=t?t.length:0),n===void 0&&(n=0),s===void 0&&(s=this.length),e<0||r>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=r)return 0;if(n>=s)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(s>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),o=Math.min(i,a),l=this.slice(n,s),u=t.slice(e,r),c=0;c>>=0,isFinite(r)?(r>>>=0,n===void 0&&(n="utf8")):(n=r,r=void 0)}var s=this.length-e;if((r===void 0||r>s)&&(r=s),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return q2(this,t,e,r);case"utf8":case"utf-8":return G2(this,t,e,r);case"ascii":return Y1(this,t,e,r);case"latin1":case"binary":return Y2(this,t,e,r);case"base64":return K2(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X2(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Be.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Be.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=e===void 0?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||tr(t,e,this.length);for(var n=this[t],s=1,i=0;++i>>=0,e>>>=0,r||tr(t,e,this.length);for(var n=this[t+--e],s=1;e>0&&(s*=256);)n+=this[t+--e]*s;return n},Be.prototype.readUInt8=function(t,e){return t>>>=0,e||tr(t,1,this.length),this[t]},Be.prototype.readUInt16LE=function(t,e){return t>>>=0,e||tr(t,2,this.length),this[t]|this[t+1]<<8},Be.prototype.readUInt16BE=function(t,e){return t>>>=0,e||tr(t,2,this.length),this[t]<<8|this[t+1]},Be.prototype.readUInt32LE=function(t,e){return t>>>=0,e||tr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Be.prototype.readUInt32BE=function(t,e){return t>>>=0,e||tr(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Be.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||tr(t,e,this.length);for(var n=this[t],s=1,i=0;++i=(s*=128)&&(n-=Math.pow(2,8*e)),n},Be.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||tr(t,e,this.length);for(var n=e,s=1,i=this[t+--n];n>0&&(s*=256);)i+=this[t+--n]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*e)),i},Be.prototype.readInt8=function(t,e){return t>>>=0,e||tr(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Be.prototype.readInt16LE=function(t,e){t>>>=0,e||tr(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Be.prototype.readInt16BE=function(t,e){t>>>=0,e||tr(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Be.prototype.readInt32LE=function(t,e){return t>>>=0,e||tr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Be.prototype.readInt32BE=function(t,e){return t>>>=0,e||tr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Be.prototype.readFloatLE=function(t,e){return t>>>=0,e||tr(t,4,this.length),Ms.read(this,t,!0,23,4)},Be.prototype.readFloatBE=function(t,e){return t>>>=0,e||tr(t,4,this.length),Ms.read(this,t,!1,23,4)},Be.prototype.readDoubleLE=function(t,e){return t>>>=0,e||tr(t,8,this.length),Ms.read(this,t,!0,52,8)},Be.prototype.readDoubleBE=function(t,e){return t>>>=0,e||tr(t,8,this.length),Ms.read(this,t,!1,52,8)},Be.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||Or(this,t,e,r,Math.pow(2,8*r)-1,0);var s=1,i=0;for(this[e]=255&t;++i>>=0,r>>>=0,n||Or(this,t,e,r,Math.pow(2,8*r)-1,0);var s=r-1,i=1;for(this[e+s]=255&t;--s>=0&&(i*=256);)this[e+s]=t/i&255;return e+r},Be.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,1,255,0),this[e]=255&t,e+1},Be.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},Be.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},Be.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},Be.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},Be.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var s=Math.pow(2,8*r-1);Or(this,t,e,r,s-1,-s)}var i=0,a=1,o=0;for(this[e]=255&t;++i>0)-o&255;return e+r},Be.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var s=Math.pow(2,8*r-1);Or(this,t,e,r,s-1,-s)}var i=r-1,a=1,o=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&o===0&&this[e+i+1]!==0&&(o=1),this[e+i]=(t/a>>0)-o&255;return e+r},Be.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},Be.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},Be.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},Be.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},Be.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Or(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},Be.prototype.writeFloatLE=function(t,e,r){return Gy(this,t,e,!0,r)},Be.prototype.writeFloatBE=function(t,e,r){return Gy(this,t,e,!1,r)},Be.prototype.writeDoubleLE=function(t,e,r){return Yy(this,t,e,!0,r)},Be.prototype.writeDoubleBE=function(t,e,r){return Yy(this,t,e,!1,r)},Be.prototype.copy=function(t,e,r,n){if(!Be.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||n===0||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return s},Be.prototype.fill=function(t,e,r,n){if(typeof t=="string"){if(typeof e=="string"?(n=e,e=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!Be.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){var s=t.charCodeAt(0);(n==="utf8"&&s<128||n==="latin1")&&(t=s)}}else typeof t=="number"?t&=255:typeof t=="boolean"&&(t=Number(t));if(e<0||this.length>>=0,r=r===void 0?this.length:r>>>0,t||(t=0),typeof t=="number")for(i=e;i=0?(l>0&&(s.lastNeed=l-1),l):--o=0?(l>0&&(s.lastNeed=l-2),l):--o=0?(l>0&&(l===2?l=0:s.lastNeed=l-3),l):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},Ca.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length},Mo.StringDecoder,Mo.StringDecoder}),eE={};no(eE,{StringDecoder:()=>tE,default:()=>Mo});var tE,uL=cr(()=>{Pe(),Le(),Oe(),tw(),tw(),tE=Mo.StringDecoder}),rE=Ne((t,e)=>{Pe(),Le(),Oe();var r=io(),{PromisePrototypeThen:n,SymbolAsyncIterator:s,SymbolIterator:i}=Zt(),{Buffer:a}=(dr(),It(fr)),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_NULL_VALUES:l}=Dr().codes;function u(c,f,d){let p;if(typeof f=="string"||f instanceof a)return new c({objectMode:!0,...d,read(){this.push(f),this.push(null)}});let g;if(f&&f[s])g=!0,p=f[s]();else if(f&&f[i])g=!1,p=f[i]();else throw new o("iterable",["Iterable"],f);let b=new c({objectMode:!0,highWaterMark:1,...d}),v=!1;b._read=function(){v||(v=!0,_())},b._destroy=function(y,x){n(w(y),()=>r.nextTick(x,y),T=>r.nextTick(x,T||y))};async function w(y){let x=y!=null,T=typeof p.throw=="function";if(x&&T){let{value:A,done:C}=await p.throw(y);if(await A,C)return}if(typeof p.return=="function"){let{value:A}=await p.return();await A}}async function _(){for(;;){try{let{value:y,done:x}=g?await p.next():p.next();if(x)b.push(null);else{let T=y&&typeof y.then=="function"?await y:y;if(T===null)throw v=!1,new l;if(b.push(T))continue;v=!1}}catch(y){b.destroy(y)}break}}return b}e.exports=u}),ef=Ne((t,e)=>{Pe(),Le(),Oe();var r=io(),{ArrayPrototypeIndexOf:n,NumberIsInteger:s,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:o,ObjectKeys:l,ObjectSetPrototypeOf:u,Promise:c,SafeSet:f,SymbolAsyncIterator:d,Symbol:p}=Zt();e.exports=F,F.ReadableState=pe;var{EventEmitter:g}=(la(),It(so)),{Stream:b,prependListener:v}=_m(),{Buffer:w}=(dr(),It(fr)),{addAbortSignal:_}=Jc(),y=ls(),x=Ti().debuglog("stream",m=>{x=m}),T=j2(),A=aa(),{getHighWaterMark:C,getDefaultHighWaterMark:L}=Em(),{aggregateTwoErrors:j,codes:{ERR_INVALID_ARG_TYPE:R,ERR_METHOD_NOT_IMPLEMENTED:U,ERR_OUT_OF_RANGE:I,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:$}}=Dr(),{validateObject:Z}=Qc(),ne=p("kPaused"),{StringDecoder:re}=(uL(),It(eE)),N=rE();u(F.prototype,b.prototype),u(F,b);var fe=()=>{},{errorOrDestroy:G}=A;function pe(m,h,E){typeof E!="boolean"&&(E=h instanceof Ai()),this.objectMode=!!(m&&m.objectMode),E&&(this.objectMode=this.objectMode||!!(m&&m.readableObjectMode)),this.highWaterMark=m?C(this,m,"readableHighWaterMark",E):L(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[ne]=null,this.errorEmitted=!1,this.emitClose=!m||m.emitClose!==!1,this.autoDestroy=!m||m.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=m&&m.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,m&&m.encoding&&(this.decoder=new re(m.encoding),this.encoding=m.encoding)}function F(m){if(!(this instanceof F))return new F(m);let h=this instanceof Ai();this._readableState=new pe(m,this,h),m&&(typeof m.read=="function"&&(this._read=m.read),typeof m.destroy=="function"&&(this._destroy=m.destroy),typeof m.construct=="function"&&(this._construct=m.construct),m.signal&&!h&&_(m.signal,this)),b.call(this,m),A.construct(this,()=>{this._readableState.needReadable&&le(this,this._readableState)})}F.prototype.destroy=A.destroy,F.prototype._undestroy=A.undestroy,F.prototype._destroy=function(m,h){h(m)},F.prototype[g.captureRejectionSymbol]=function(m){this.destroy(m)},F.prototype.push=function(m,h){return de(this,m,h,!1)},F.prototype.unshift=function(m,h){return de(this,m,h,!0)};function de(m,h,E,O){x("readableAddChunk",h);let te=m._readableState,he;if(te.objectMode||(typeof h=="string"?(E=E||te.defaultEncoding,te.encoding!==E&&(O&&te.encoding?h=w.from(h,E).toString(te.encoding):(h=w.from(h,E),E=""))):h instanceof w?E="":b._isUint8Array(h)?(h=b._uint8ArrayToBuffer(h),E=""):h!=null&&(he=new R("chunk",["string","Buffer","Uint8Array"],h))),he)G(m,he);else if(h===null)te.reading=!1,D(m,te);else if(te.objectMode||h&&h.length>0)if(O)if(te.endEmitted)G(m,new $);else{if(te.destroyed||te.errored)return!1;Se(m,te,h,!0)}else if(te.ended)G(m,new M);else{if(te.destroyed||te.errored)return!1;te.reading=!1,te.decoder&&!E?(h=te.decoder.write(h),te.objectMode||h.length!==0?Se(m,te,h,!1):le(m,te)):Se(m,te,h,!1)}else O||(te.reading=!1,le(m,te));return!te.ended&&(te.length0?(h.multiAwaitDrain?h.awaitDrainWriters.clear():h.awaitDrainWriters=null,h.dataEmitted=!0,m.emit("data",E)):(h.length+=h.objectMode?1:E.length,O?h.buffer.unshift(E):h.buffer.push(E),h.needReadable&&X(m)),le(m,h)}F.prototype.isPaused=function(){let m=this._readableState;return m[ne]===!0||m.flowing===!1},F.prototype.setEncoding=function(m){let h=new re(m);this._readableState.decoder=h,this._readableState.encoding=this._readableState.decoder.encoding;let E=this._readableState.buffer,O="";for(let te of E)O+=h.write(te);return E.clear(),O!==""&&E.push(O),this._readableState.length=O.length,this};var ee=1073741824;function K(m){if(m>ee)throw new I("size","<= 1GiB",m);return m--,m|=m>>>1,m|=m>>>2,m|=m>>>4,m|=m>>>8,m|=m>>>16,m++,m}function W(m,h){return m<=0||h.length===0&&h.ended?0:h.objectMode?1:i(m)?h.flowing&&h.length?h.buffer.first().length:h.length:m<=h.length?m:h.ended?h.length:0}F.prototype.read=function(m){x("read",m),m===void 0?m=NaN:s(m)||(m=a(m,10));let h=this._readableState,E=m;if(m>h.highWaterMark&&(h.highWaterMark=K(m)),m!==0&&(h.emittedReadable=!1),m===0&&h.needReadable&&((h.highWaterMark!==0?h.length>=h.highWaterMark:h.length>0)||h.ended))return x("read: emitReadable",h.length,h.ended),h.length===0&&h.ended?Q(this):X(this),null;if(m=W(m,h),m===0&&h.ended)return h.length===0&&Q(this),null;let O=h.needReadable;if(x("need readable",O),(h.length===0||h.length-m0?te=ie(m,h):te=null,te===null?(h.needReadable=h.length<=h.highWaterMark,m=0):(h.length-=m,h.multiAwaitDrain?h.awaitDrainWriters.clear():h.awaitDrainWriters=null),h.length===0&&(h.ended||(h.needReadable=!0),E!==m&&h.ended&&Q(this)),te!==null&&!h.errorEmitted&&!h.closeEmitted&&(h.dataEmitted=!0,this.emit("data",te)),te};function D(m,h){if(x("onEofChunk"),!h.ended){if(h.decoder){let E=h.decoder.end();E&&E.length&&(h.buffer.push(E),h.length+=h.objectMode?1:E.length)}h.ended=!0,h.sync?X(m):(h.needReadable=!1,h.emittedReadable=!0,ce(m))}}function X(m){let h=m._readableState;x("emitReadable",h.needReadable,h.emittedReadable),h.needReadable=!1,h.emittedReadable||(x("emitReadable",h.flowing),h.emittedReadable=!0,r.nextTick(ce,m))}function ce(m){let h=m._readableState;x("emitReadable_",h.destroyed,h.length,h.ended),!h.destroyed&&!h.errored&&(h.length||h.ended)&&(m.emit("readable"),h.emittedReadable=!1),h.needReadable=!h.flowing&&!h.ended&&h.length<=h.highWaterMark,ue(m)}function le(m,h){!h.readingMore&&h.constructed&&(h.readingMore=!0,r.nextTick(k,m,h))}function k(m,h){for(;!h.reading&&!h.ended&&(h.length1&&O.pipes.includes(m)&&(x("false write response, pause",O.awaitDrainWriters.size),O.awaitDrainWriters.add(m)),E.pause()),Ue||(Ue=P(E,m),m.on("drain",Ue))}E.on("data",ze);function ze(or){x("ondata");let Qt=m.write(or);x("dest.write",Qt),Qt===!1&&He()}function _t(or){if(x("onerror",or),qt(),m.removeListener("error",_t),m.listenerCount("error")===0){let Qt=m._writableState||m._readableState;Qt&&!Qt.errorEmitted?G(m,or):m.emit("error",or)}}v(m,"error",_t);function Xt(){m.removeListener("finish",Lt),qt()}m.once("close",Xt);function Lt(){x("onfinish"),m.removeListener("close",Xt),qt()}m.once("finish",Lt);function qt(){x("unpipe"),E.unpipe(m)}return m.emit("pipe",E),m.writableNeedDrain===!0?O.flowing&&He():O.flowing||(x("pipe resume"),E.resume()),m};function P(m,h){return function(){let E=m._readableState;E.awaitDrainWriters===h?(x("pipeOnDrain",1),E.awaitDrainWriters=null):E.multiAwaitDrain&&(x("pipeOnDrain",E.awaitDrainWriters.size),E.awaitDrainWriters.delete(h)),(!E.awaitDrainWriters||E.awaitDrainWriters.size===0)&&m.listenerCount("data")&&m.resume()}}F.prototype.unpipe=function(m){let h=this._readableState,E={hasUnpiped:!1};if(h.pipes.length===0)return this;if(!m){let te=h.pipes;h.pipes=[],this.pause();for(let he=0;he0,O.flowing!==!1&&this.resume()):m==="readable"&&!O.endEmitted&&!O.readableListening&&(O.readableListening=O.needReadable=!0,O.flowing=!1,O.emittedReadable=!1,x("on readable",O.length,O.reading),O.length?X(this):O.reading||r.nextTick(B,this)),E},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(m,h){let E=b.prototype.removeListener.call(this,m,h);return m==="readable"&&r.nextTick(V,this),E},F.prototype.off=F.prototype.removeListener,F.prototype.removeAllListeners=function(m){let h=b.prototype.removeAllListeners.apply(this,arguments);return(m==="readable"||m===void 0)&&r.nextTick(V,this),h};function V(m){let h=m._readableState;h.readableListening=m.listenerCount("readable")>0,h.resumeScheduled&&h[ne]===!1?h.flowing=!0:m.listenerCount("data")>0?m.resume():h.readableListening||(h.flowing=null)}function B(m){x("readable nexttick read 0"),m.read(0)}F.prototype.resume=function(){let m=this._readableState;return m.flowing||(x("resume"),m.flowing=!m.readableListening,H(this,m)),m[ne]=!1,this};function H(m,h){h.resumeScheduled||(h.resumeScheduled=!0,r.nextTick(q,m,h))}function q(m,h){x("resume",h.reading),h.reading||m.read(0),h.resumeScheduled=!1,m.emit("resume"),ue(m),h.flowing&&!h.reading&&m.read(0)}F.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ne]=!0,this};function ue(m){let h=m._readableState;for(x("flow",h.flowing);h.flowing&&m.read()!==null;);}F.prototype.wrap=function(m){let h=!1;m.on("data",O=>{!this.push(O)&&m.pause&&(h=!0,m.pause())}),m.on("end",()=>{this.push(null)}),m.on("error",O=>{G(this,O)}),m.on("close",()=>{this.destroy()}),m.on("destroy",()=>{this.destroy()}),this._read=()=>{h&&m.resume&&(h=!1,m.resume())};let E=l(m);for(let O=1;O{te=Ce?j(te,Ce):null,E(),E=fe});try{for(;;){let Ce=m.destroyed?null:m.read();if(Ce!==null)yield Ce;else{if(te)throw te;if(te===null)return;await new c(O)}}}catch(Ce){throw te=j(te,Ce),te}finally{(te||(h==null?void 0:h.destroyOnReturn)!==!1)&&(te===void 0||m._readableState.autoDestroy)?A.destroyer(m,null):(m.off("readable",O),he())}}o(F.prototype,{readable:{__proto__:null,get(){let m=this._readableState;return!!m&&m.readable!==!1&&!m.destroyed&&!m.errorEmitted&&!m.endEmitted},set(m){this._readableState&&(this._readableState.readable=!!m)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(m){this._readableState&&(this._readableState.flowing=m)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(m){this._readableState&&(this._readableState.destroyed=m)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),o(pe.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ne]!==!1},set(m){this[ne]=!!m}}}),F._fromList=ie;function ie(m,h){if(h.length===0)return null;let E;return h.objectMode?E=h.buffer.shift():!m||m>=h.length?(h.decoder?E=h.buffer.join(""):h.buffer.length===1?E=h.buffer.first():E=h.buffer.concat(h.length),h.buffer.clear()):E=h.buffer.consume(m,h.decoder),E}function Q(m){let h=m._readableState;x("endReadable",h.endEmitted),h.endEmitted||(h.ended=!0,r.nextTick(oe,h,m))}function oe(m,h){if(x("endReadableNT",m.endEmitted,m.length),!m.errored&&!m.closeEmitted&&!m.endEmitted&&m.length===0){if(m.endEmitted=!0,h.emit("end"),h.writable&&h.allowHalfOpen===!1)r.nextTick(me,h);else if(m.autoDestroy){let E=h._writableState;(!E||E.autoDestroy&&(E.finished||E.writable===!1))&&h.destroy()}}}function me(m){m.writable&&!m.writableEnded&&!m.destroyed&&m.end()}F.from=function(m,h){return N(F,m,h)};var Te;function S(){return Te===void 0&&(Te={}),Te}F.fromWeb=function(m,h){return S().newStreamReadableFromReadableStream(m,h)},F.toWeb=function(m,h){return S().newReadableStreamFromStreamReadable(m,h)},F.wrap=function(m,h){var E,O;return new F({objectMode:(E=(O=m.readableObjectMode)!==null&&O!==void 0?O:m.objectMode)!==null&&E!==void 0?E:!0,...h,destroy(te,he){A.destroyer(m,te),he(te)}}).wrap(m)}}),nE=Ne((t,e)=>{Pe(),Le(),Oe();var r=io(),{ArrayPrototypeSlice:n,Error:s,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:o,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:u,Symbol:c,SymbolHasInstance:f}=Zt();e.exports=re,re.WritableState=Z;var{EventEmitter:d}=(la(),It(so)),p=_m().Stream,{Buffer:g}=(dr(),It(fr)),b=aa(),{addAbortSignal:v}=Jc(),{getHighWaterMark:w,getDefaultHighWaterMark:_}=Em(),{ERR_INVALID_ARG_TYPE:y,ERR_METHOD_NOT_IMPLEMENTED:x,ERR_MULTIPLE_CALLBACK:T,ERR_STREAM_CANNOT_PIPE:A,ERR_STREAM_DESTROYED:C,ERR_STREAM_ALREADY_FINISHED:L,ERR_STREAM_NULL_VALUES:j,ERR_STREAM_WRITE_AFTER_END:R,ERR_UNKNOWN_ENCODING:U}=Dr().codes,{errorOrDestroy:I}=b;l(re.prototype,p.prototype),l(re,p);function M(){}var $=c("kOnFinished");function Z(B,H,q){typeof q!="boolean"&&(q=H instanceof Ai()),this.objectMode=!!(B&&B.objectMode),q&&(this.objectMode=this.objectMode||!!(B&&B.writableObjectMode)),this.highWaterMark=B?w(this,B,"writableHighWaterMark",q):_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let ue=!!(B&&B.decodeStrings===!1);this.decodeStrings=!ue,this.defaultEncoding=B&&B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,H),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,ne(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!B||B.emitClose!==!1,this.autoDestroy=!B||B.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[$]=[]}function ne(B){B.buffered=[],B.bufferedIndex=0,B.allBuffers=!0,B.allNoop=!0}Z.prototype.getBuffer=function(){return n(this.buffered,this.bufferedIndex)},a(Z.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function re(B){let H=this instanceof Ai();if(!H&&!i(re,this))return new re(B);this._writableState=new Z(B,this,H),B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final),typeof B.construct=="function"&&(this._construct=B.construct),B.signal&&v(B.signal,this)),p.call(this,B),b.construct(this,()=>{let q=this._writableState;q.writing||K(this,q),ce(this,q)})}a(re,f,{__proto__:null,value:function(B){return i(this,B)?!0:this!==re?!1:B&&B._writableState instanceof Z}}),re.prototype.pipe=function(){I(this,new A)};function N(B,H,q,ue){let J=B._writableState;if(typeof q=="function")ue=q,q=J.defaultEncoding;else{if(!q)q=J.defaultEncoding;else if(q!=="buffer"&&!g.isEncoding(q))throw new U(q);typeof ue!="function"&&(ue=M)}if(H===null)throw new j;if(!J.objectMode)if(typeof H=="string")J.decodeStrings!==!1&&(H=g.from(H,q),q="buffer");else if(H instanceof g)q="buffer";else if(p._isUint8Array(H))H=p._uint8ArrayToBuffer(H),q="buffer";else throw new y("chunk",["string","Buffer","Uint8Array"],H);let Y;return J.ending?Y=new R:J.destroyed&&(Y=new C("write")),Y?(r.nextTick(ue,Y),I(B,Y,!0),Y):(J.pendingcb++,fe(B,J,H,q,ue))}re.prototype.write=function(B,H,q){return N(this,B,H,q)===!0},re.prototype.cork=function(){this._writableState.corked++},re.prototype.uncork=function(){let B=this._writableState;B.corked&&(B.corked--,B.writing||K(this,B))},re.prototype.setDefaultEncoding=function(B){if(typeof B=="string"&&(B=u(B)),!g.isEncoding(B))throw new U(B);return this._writableState.defaultEncoding=B,this};function fe(B,H,q,ue,J){let Y=H.objectMode?1:q.length;H.length+=Y;let ie=H.lengthq.bufferedIndex&&K(B,q),ue?q.afterWriteTickInfo!==null&&q.afterWriteTickInfo.cb===J?q.afterWriteTickInfo.count++:(q.afterWriteTickInfo={count:1,cb:J,stream:B,state:q},r.nextTick(de,q.afterWriteTickInfo)):Se(B,q,1,J))}function de({stream:B,state:H,count:q,cb:ue}){return H.afterWriteTickInfo=null,Se(B,H,q,ue)}function Se(B,H,q,ue){for(!H.ending&&!B.destroyed&&H.length===0&&H.needDrain&&(H.needDrain=!1,B.emit("drain"));q-- >0;)H.pendingcb--,ue();H.destroyed&&ee(H),ce(B,H)}function ee(B){if(B.writing)return;for(let J=B.bufferedIndex;J1&&B._writev){H.pendingcb-=Y-1;let Q=H.allNoop?M:me=>{for(let Te=ie;Te256?(q.splice(0,ie),H.bufferedIndex=0):H.bufferedIndex=ie}H.bufferProcessing=!1}re.prototype._write=function(B,H,q){if(this._writev)this._writev([{chunk:B,encoding:H}],q);else throw new x("_write()")},re.prototype._writev=null,re.prototype.end=function(B,H,q){let ue=this._writableState;typeof B=="function"?(q=B,B=null,H=null):typeof H=="function"&&(q=H,H=null);let J;if(B!=null){let Y=N(this,B,H);Y instanceof s&&(J=Y)}return ue.corked&&(ue.corked=1,this.uncork()),J||(!ue.errored&&!ue.ending?(ue.ending=!0,ce(this,ue,!0),ue.ended=!0):ue.finished?J=new L("end"):ue.destroyed&&(J=new C("end"))),typeof q=="function"&&(J||ue.finished?r.nextTick(q,J):ue[$].push(q)),this};function W(B){return B.ending&&!B.destroyed&&B.constructed&&B.length===0&&!B.errored&&B.buffered.length===0&&!B.finished&&!B.writing&&!B.errorEmitted&&!B.closeEmitted}function D(B,H){let q=!1;function ue(J){if(q){I(B,J??T());return}if(q=!0,H.pendingcb--,J){let Y=H[$].splice(0);for(let ie=0;ie{W(J)?le(ue,J):J.pendingcb--},B,H)):W(H)&&(H.pendingcb++,le(B,H))))}function le(B,H){H.pendingcb--,H.finished=!0;let q=H[$].splice(0);for(let ue=0;ue{Pe(),Le(),Oe();var r=io(),n=(dr(),It(fr)),{isReadable:s,isWritable:i,isIterable:a,isNodeStream:o,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:c}=Oi(),f=ls(),{AbortError:d,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:g}}=Dr(),{destroyer:b}=aa(),v=Ai(),w=ef(),{createDeferredPromise:_}=Ti(),y=rE(),x=globalThis.Blob||n.Blob,T=typeof x<"u"?function(U){return U instanceof x}:function(U){return!1},A=globalThis.AbortController||vm().AbortController,{FunctionPrototypeCall:C}=Zt(),L=class extends v{constructor(U){super(U),(U==null?void 0:U.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(U==null?void 0:U.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};e.exports=function U(I,M){if(c(I))return I;if(l(I))return R({readable:I});if(u(I))return R({writable:I});if(o(I))return R({writable:!1,readable:!1});if(typeof I=="function"){let{value:Z,write:ne,final:re,destroy:N}=j(I);if(a(Z))return y(L,Z,{objectMode:!0,write:ne,final:re,destroy:N});let fe=Z==null?void 0:Z.then;if(typeof fe=="function"){let G,pe=C(fe,Z,F=>{if(F!=null)throw new g("nully","body",F)},F=>{b(G,F)});return G=new L({objectMode:!0,readable:!1,write:ne,final(F){re(async()=>{try{await pe,r.nextTick(F,null)}catch(de){r.nextTick(F,de)}})},destroy:N})}throw new g("Iterable, AsyncIterable or AsyncFunction",M,Z)}if(T(I))return U(I.arrayBuffer());if(a(I))return y(L,I,{objectMode:!0,writable:!1});if(typeof(I==null?void 0:I.writable)=="object"||typeof(I==null?void 0:I.readable)=="object"){let Z=I!=null&&I.readable?l(I==null?void 0:I.readable)?I==null?void 0:I.readable:U(I.readable):void 0,ne=I!=null&&I.writable?u(I==null?void 0:I.writable)?I==null?void 0:I.writable:U(I.writable):void 0;return R({readable:Z,writable:ne})}let $=I==null?void 0:I.then;if(typeof $=="function"){let Z;return C($,I,ne=>{ne!=null&&Z.push(ne),Z.push(null)},ne=>{b(Z,ne)}),Z=new L({objectMode:!0,writable:!1,read(){}})}throw new p(M,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],I)};function j(U){let{promise:I,resolve:M}=_(),$=new A,Z=$.signal;return{value:U(async function*(){for(;;){let ne=I;I=null;let{chunk:re,done:N,cb:fe}=await ne;if(r.nextTick(fe),N)return;if(Z.aborted)throw new d(void 0,{cause:Z.reason});({promise:I,resolve:M}=_()),yield re}}(),{signal:Z}),write(ne,re,N){let fe=M;M=null,fe({chunk:ne,done:!1,cb:N})},final(ne){let re=M;M=null,re({done:!0,cb:ne})},destroy(ne,re){$.abort(),re(ne)}}}function R(U){let I=U.readable&&typeof U.readable.read!="function"?w.wrap(U.readable):U.readable,M=U.writable,$=!!s(I),Z=!!i(M),ne,re,N,fe,G;function pe(F){let de=fe;fe=null,de?de(F):F&&G.destroy(F)}return G=new L({readableObjectMode:!!(I!=null&&I.readableObjectMode),writableObjectMode:!!(M!=null&&M.writableObjectMode),readable:$,writable:Z}),Z&&(f(M,F=>{Z=!1,F&&b(I,F),pe(F)}),G._write=function(F,de,Se){M.write(F,de)?Se():ne=Se},G._final=function(F){M.end(),re=F},M.on("drain",function(){if(ne){let F=ne;ne=null,F()}}),M.on("finish",function(){if(re){let F=re;re=null,F()}})),$&&(f(I,F=>{$=!1,F&&b(I,F),pe(F)}),I.on("readable",function(){if(N){let F=N;N=null,F()}}),I.on("end",function(){G.push(null)}),G._read=function(){for(;;){let F=I.read();if(F===null){N=G._read;return}if(!G.push(F))return}}),G._destroy=function(F,de){!F&&fe!==null&&(F=new d),N=null,ne=null,re=null,fe===null?de(F):(fe=de,b(M,F),b(I,F))},G}}),Ai=Ne((t,e)=>{Pe(),Le(),Oe();var{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:n,ObjectKeys:s,ObjectSetPrototypeOf:i}=Zt();e.exports=l;var a=ef(),o=nE();i(l.prototype,a.prototype),i(l,a);{let d=s(o.prototype);for(let p=0;p{Pe(),Le(),Oe();var{ObjectSetPrototypeOf:r,Symbol:n}=Zt();e.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:s}=Dr().codes,i=Ai(),{getHighWaterMark:a}=Em();r(l.prototype,i.prototype),r(l,i);var o=n("kCallback");function l(f){if(!(this instanceof l))return new l(f);let d=f?a(this,f,"readableHighWaterMark",!0):null;d===0&&(f={...f,highWaterMark:null,readableHighWaterMark:d,writableHighWaterMark:f.writableHighWaterMark||0}),i.call(this,f),this._readableState.sync=!1,this[o]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",c)}function u(f){typeof this._flush=="function"&&!this.destroyed?this._flush((d,p)=>{if(d){f?f(d):this.destroy(d);return}p!=null&&this.push(p),this.push(null),f&&f()}):(this.push(null),f&&f())}function c(){this._final!==u&&u.call(this)}l.prototype._final=u,l.prototype._transform=function(f,d,p){throw new s("_transform()")},l.prototype._write=function(f,d,p){let g=this._readableState,b=this._writableState,v=g.length;this._transform(f,d,(w,_)=>{if(w){p(w);return}_!=null&&this.push(_),b.ended||v===g.length||g.length{Pe(),Le(),Oe();var{ObjectSetPrototypeOf:r}=Zt();e.exports=s;var n=iE();r(s.prototype,n.prototype),r(s,n);function s(i){if(!(this instanceof s))return new s(i);n.call(this,i)}s.prototype._transform=function(i,a,o){o(null,i)}}),Tm=Ne((t,e)=>{Pe(),Le(),Oe();var r=io(),{ArrayIsArray:n,Promise:s,SymbolAsyncIterator:i}=Zt(),a=ls(),{once:o}=Ti(),l=aa(),u=Ai(),{aggregateTwoErrors:c,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:d,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:b},AbortError:v}=Dr(),{validateFunction:w,validateAbortSignal:_}=Qc(),{isIterable:y,isReadable:x,isReadableNodeStream:T,isNodeStream:A,isTransformStream:C,isWebStream:L,isReadableStream:j,isReadableEnded:R}=Oi(),U=globalThis.AbortController||vm().AbortController,I,M;function $(de,Se,ee){let K=!1;de.on("close",()=>{K=!0});let W=a(de,{readable:Se,writable:ee},D=>{K=!D});return{destroy:D=>{K||(K=!0,l.destroyer(de,D||new g("pipe")))},cleanup:W}}function Z(de){return w(de[de.length-1],"streams[stream.length - 1]"),de.pop()}function ne(de){if(y(de))return de;if(T(de))return re(de);throw new f("val",["Readable","Iterable","AsyncIterable"],de)}async function*re(de){M||(M=ef()),yield*M.prototype[i].call(de)}async function N(de,Se,ee,{end:K}){let W,D=null,X=k=>{if(k&&(W=k),D){let P=D;D=null,P()}},ce=()=>new s((k,P)=>{W?P(W):D=()=>{W?P(W):k()}});Se.on("drain",X);let le=a(Se,{readable:!1},X);try{Se.writableNeedDrain&&await ce();for await(let k of de)Se.write(k)||await ce();K&&Se.end(),await ce(),ee()}catch(k){ee(W!==k?c(W,k):k)}finally{le(),Se.off("drain",X)}}async function fe(de,Se,ee,{end:K}){C(Se)&&(Se=Se.writable);let W=Se.getWriter();try{for await(let D of de)await W.ready,W.write(D).catch(()=>{});await W.ready,K&&await W.close(),ee()}catch(D){try{await W.abort(D),ee(D)}catch(X){ee(X)}}}function G(...de){return pe(de,o(Z(de)))}function pe(de,Se,ee){if(de.length===1&&n(de[0])&&(de=de[0]),de.length<2)throw new p("streams");let K=new U,W=K.signal,D=ee==null?void 0:ee.signal,X=[];_(D,"options.signal");function ce(){H(new v)}D==null||D.addEventListener("abort",ce);let le,k,P=[],V=0;function B(Y){H(Y,--V===0)}function H(Y,ie){if(Y&&(!le||le.code==="ERR_STREAM_PREMATURE_CLOSE")&&(le=Y),!(!le&&!ie)){for(;P.length;)P.shift()(le);D==null||D.removeEventListener("abort",ce),K.abort(),ie&&(le||X.forEach(Q=>Q()),r.nextTick(Se,le,k))}}let q;for(let Y=0;Y0,me=Q||(ee==null?void 0:ee.end)!==!1,Te=Y===de.length-1;if(A(ie)){let S=function(m){m&&m.name!=="AbortError"&&m.code!=="ERR_STREAM_PREMATURE_CLOSE"&&B(m)};if(me){let{destroy:m,cleanup:h}=$(ie,Q,oe);P.push(m),x(ie)&&Te&&X.push(h)}ie.on("error",S),x(ie)&&Te&&X.push(()=>{ie.removeListener("error",S)})}if(Y===0)if(typeof ie=="function"){if(q=ie({signal:W}),!y(q))throw new d("Iterable, AsyncIterable or Stream","source",q)}else y(ie)||T(ie)||C(ie)?q=ie:q=u.from(ie);else if(typeof ie=="function"){if(C(q)){var ue;q=ne((ue=q)===null||ue===void 0?void 0:ue.readable)}else q=ne(q);if(q=ie(q,{signal:W}),Q){if(!y(q,!0))throw new d("AsyncIterable",`transform[${Y-1}]`,q)}else{var J;I||(I=sE());let S=new I({objectMode:!0}),m=(J=q)===null||J===void 0?void 0:J.then;if(typeof m=="function")V++,m.call(q,O=>{k=O,O!=null&&S.write(O),me&&S.end(),r.nextTick(B)},O=>{S.destroy(O),r.nextTick(B,O)});else if(y(q,!0))V++,N(q,S,B,{end:me});else if(j(q)||C(q)){let O=q.readable||q;V++,N(O,S,B,{end:me})}else throw new d("AsyncIterable or Promise","destination",q);q=S;let{destroy:h,cleanup:E}=$(q,!1,!0);P.push(h),Te&&X.push(E)}}else if(A(ie)){if(T(q)){V+=2;let S=F(q,ie,B,{end:me});x(ie)&&Te&&X.push(S)}else if(C(q)||j(q)){let S=q.readable||q;V++,N(S,ie,B,{end:me})}else if(y(q))V++,N(q,ie,B,{end:me});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],q);q=ie}else if(L(ie)){if(T(q))V++,fe(ne(q),ie,B,{end:me});else if(j(q)||y(q))V++,fe(q,ie,B,{end:me});else if(C(q))V++,fe(q.readable,ie,B,{end:me});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],q);q=ie}else q=u.from(ie)}return(W!=null&&W.aborted||D!=null&&D.aborted)&&r.nextTick(ce),q}function F(de,Se,ee,{end:K}){let W=!1;if(Se.on("close",()=>{W||ee(new b)}),de.pipe(Se,{end:!1}),K){let D=function(){W=!0,Se.end()};R(de)?r.nextTick(D):de.once("end",D)}else ee();return a(de,{readable:!0,writable:!1},D=>{let X=de._readableState;D&&D.code==="ERR_STREAM_PREMATURE_CLOSE"&&X&&X.ended&&!X.errored&&!X.errorEmitted?de.once("end",ee).once("error",ee):ee(D)}),a(Se,{readable:!1,writable:!0},ee)}e.exports={pipelineImpl:pe,pipeline:G}}),oE=Ne((t,e)=>{Pe(),Le(),Oe();var{pipeline:r}=Tm(),n=Ai(),{destroyer:s}=aa(),{isNodeStream:i,isReadable:a,isWritable:o,isWebStream:l,isTransformStream:u,isWritableStream:c,isReadableStream:f}=Oi(),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=Dr(),b=ls();e.exports=function(...v){if(v.length===0)throw new g("streams");if(v.length===1)return n.from(v[0]);let w=[...v];if(typeof v[0]=="function"&&(v[0]=n.from(v[0])),typeof v[v.length-1]=="function"){let I=v.length-1;v[I]=n.from(v[I])}for(let I=0;I0&&!(o(v[I])||c(v[I])||u(v[I])))throw new p(`streams[${I}]`,w[I],"must be writable")}let _,y,x,T,A;function C(I){let M=T;T=null,M?M(I):I?A.destroy(I):!U&&!R&&A.destroy()}let L=v[0],j=r(v,C),R=!!(o(L)||c(L)||u(L)),U=!!(a(j)||f(j)||u(j));if(A=new n({writableObjectMode:!!(L!=null&&L.writableObjectMode),readableObjectMode:!!(j!=null&&j.writableObjectMode),writable:R,readable:U}),R){if(i(L))A._write=function(M,$,Z){L.write(M,$)?Z():_=Z},A._final=function(M){L.end(),y=M},L.on("drain",function(){if(_){let M=_;_=null,M()}});else if(l(L)){let M=(u(L)?L.writable:L).getWriter();A._write=async function($,Z,ne){try{await M.ready,M.write($).catch(()=>{}),ne()}catch(re){ne(re)}},A._final=async function($){try{await M.ready,M.close().catch(()=>{}),y=$}catch(Z){$(Z)}}}let I=u(j)?j.readable:j;b(I,()=>{if(y){let M=y;y=null,M()}})}if(U){if(i(j))j.on("readable",function(){if(x){let I=x;x=null,I()}}),j.on("end",function(){A.push(null)}),A._read=function(){for(;;){let I=j.read();if(I===null){x=A._read;return}if(!A.push(I))return}};else if(l(j)){let I=(u(j)?j.readable:j).getReader();A._read=async function(){for(;;)try{let{value:M,done:$}=await I.read();if(!A.push(M))return;if($){A.push(null);return}}catch{return}}}}return A._destroy=function(I,M){!I&&T!==null&&(I=new d),x=null,_=null,y=null,T===null?M(I):(T=M,i(j)&&s(j,I))},A}}),fL=Ne((t,e)=>{Pe(),Le(),Oe();var r=globalThis.AbortController||vm().AbortController,{codes:{ERR_INVALID_ARG_VALUE:n,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:i,ERR_OUT_OF_RANGE:a},AbortError:o}=Dr(),{validateAbortSignal:l,validateInteger:u,validateObject:c}=Qc(),f=Zt().Symbol("kWeak"),{finished:d}=ls(),p=oE(),{addAbortSignalNoValidate:g}=Jc(),{isWritable:b,isNodeStream:v}=Oi(),{ArrayPrototypePush:w,MathFloor:_,Number:y,NumberIsNaN:x,Promise:T,PromiseReject:A,PromisePrototypeThen:C,Symbol:L}=Zt(),j=L("kEmpty"),R=L("kEof");function U(K,W){if(W!=null&&c(W,"options"),(W==null?void 0:W.signal)!=null&&l(W.signal,"options.signal"),v(K)&&!b(K))throw new n("stream",K,"must be writable");let D=p(this,K);return W!=null&&W.signal&&g(W.signal,D),D}function I(K,W){if(typeof K!="function")throw new s("fn",["Function","AsyncFunction"],K);W!=null&&c(W,"options"),(W==null?void 0:W.signal)!=null&&l(W.signal,"options.signal");let D=1;return(W==null?void 0:W.concurrency)!=null&&(D=_(W.concurrency)),u(D,"concurrency",1),(async function*(){var X,ce;let le=new r,k=this,P=[],V=le.signal,B={signal:V},H=()=>le.abort();W!=null&&(X=W.signal)!==null&&X!==void 0&&X.aborted&&H(),W==null||(ce=W.signal)===null||ce===void 0||ce.addEventListener("abort",H);let q,ue,J=!1;function Y(){J=!0}async function ie(){try{for await(let me of k){var Q;if(J)return;if(V.aborted)throw new o;try{me=K(me,B)}catch(Te){me=A(Te)}me!==j&&(typeof((Q=me)===null||Q===void 0?void 0:Q.catch)=="function"&&me.catch(Y),P.push(me),q&&(q(),q=null),!J&&P.length&&P.length>=D&&await new T(Te=>{ue=Te}))}P.push(R)}catch(me){let Te=A(me);C(Te,void 0,Y),P.push(Te)}finally{var oe;J=!0,q&&(q(),q=null),W==null||(oe=W.signal)===null||oe===void 0||oe.removeEventListener("abort",H)}}ie();try{for(;;){for(;P.length>0;){let Q=await P[0];if(Q===R)return;if(V.aborted)throw new o;Q!==j&&(yield Q),P.shift(),ue&&(ue(),ue=null)}await new T(Q=>{q=Q})}}finally{le.abort(),J=!0,ue&&(ue(),ue=null)}}).call(this)}function M(K=void 0){return K!=null&&c(K,"options"),(K==null?void 0:K.signal)!=null&&l(K.signal,"options.signal"),(async function*(){let W=0;for await(let X of this){var D;if(K!=null&&(D=K.signal)!==null&&D!==void 0&&D.aborted)throw new o({cause:K.signal.reason});yield[W++,X]}}).call(this)}async function $(K,W=void 0){for await(let D of N.call(this,K,W))return!0;return!1}async function Z(K,W=void 0){if(typeof K!="function")throw new s("fn",["Function","AsyncFunction"],K);return!await $.call(this,async(...D)=>!await K(...D),W)}async function ne(K,W){for await(let D of N.call(this,K,W))return D}async function re(K,W){if(typeof K!="function")throw new s("fn",["Function","AsyncFunction"],K);async function D(X,ce){return await K(X,ce),j}for await(let X of I.call(this,D,W));}function N(K,W){if(typeof K!="function")throw new s("fn",["Function","AsyncFunction"],K);async function D(X,ce){return await K(X,ce)?X:j}return I.call(this,D,W)}var fe=class extends i{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function G(K,W,D){var X;if(typeof K!="function")throw new s("reducer",["Function","AsyncFunction"],K);D!=null&&c(D,"options"),(D==null?void 0:D.signal)!=null&&l(D.signal,"options.signal");let ce=arguments.length>1;if(D!=null&&(X=D.signal)!==null&&X!==void 0&&X.aborted){let B=new o(void 0,{cause:D.signal.reason});throw this.once("error",()=>{}),await d(this.destroy(B)),B}let le=new r,k=le.signal;if(D!=null&&D.signal){let B={once:!0,[f]:this};D.signal.addEventListener("abort",()=>le.abort(),B)}let P=!1;try{for await(let B of this){var V;if(P=!0,D!=null&&(V=D.signal)!==null&&V!==void 0&&V.aborted)throw new o;ce?W=await K(W,B,{signal:k}):(W=B,ce=!0)}if(!P&&!ce)throw new fe}finally{le.abort()}return W}async function pe(K){K!=null&&c(K,"options"),(K==null?void 0:K.signal)!=null&&l(K.signal,"options.signal");let W=[];for await(let X of this){var D;if(K!=null&&(D=K.signal)!==null&&D!==void 0&&D.aborted)throw new o(void 0,{cause:K.signal.reason});w(W,X)}return W}function F(K,W){let D=I.call(this,K,W);return(async function*(){for await(let X of D)yield*X}).call(this)}function de(K){if(K=y(K),x(K))return 0;if(K<0)throw new a("number",">= 0",K);return K}function Se(K,W=void 0){return W!=null&&c(W,"options"),(W==null?void 0:W.signal)!=null&&l(W.signal,"options.signal"),K=de(K),(async function*(){var D;if(W!=null&&(D=W.signal)!==null&&D!==void 0&&D.aborted)throw new o;for await(let ce of this){var X;if(W!=null&&(X=W.signal)!==null&&X!==void 0&&X.aborted)throw new o;K--<=0&&(yield ce)}}).call(this)}function ee(K,W=void 0){return W!=null&&c(W,"options"),(W==null?void 0:W.signal)!=null&&l(W.signal,"options.signal"),K=de(K),(async function*(){var D;if(W!=null&&(D=W.signal)!==null&&D!==void 0&&D.aborted)throw new o;for await(let ce of this){var X;if(W!=null&&(X=W.signal)!==null&&X!==void 0&&X.aborted)throw new o;if(K-- >0)yield ce;else return}}).call(this)}e.exports.streamReturningOperators={asIndexedPairs:M,drop:Se,filter:N,flatMap:F,map:I,take:ee,compose:U},e.exports.promiseReturningOperators={every:Z,forEach:re,reduce:G,toArray:pe,some:$,find:ne}}),aE=Ne((t,e)=>{Pe(),Le(),Oe();var{ArrayPrototypePop:r,Promise:n}=Zt(),{isIterable:s,isNodeStream:i,isWebStream:a}=Oi(),{pipelineImpl:o}=Tm(),{finished:l}=ls();lE();function u(...c){return new n((f,d)=>{let p,g,b=c[c.length-1];if(b&&typeof b=="object"&&!i(b)&&!s(b)&&!a(b)){let v=r(c);p=v.signal,g=v.end}o(c,(v,w)=>{v?d(v):f(w)},{signal:p,end:g})})}e.exports={finished:l,pipeline:u}}),lE=Ne((t,e)=>{Pe(),Le(),Oe();var{Buffer:r}=(dr(),It(fr)),{ObjectDefineProperty:n,ObjectKeys:s,ReflectApply:i}=Zt(),{promisify:{custom:a}}=Ti(),{streamReturningOperators:o,promiseReturningOperators:l}=fL(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=Dr(),c=oE(),{pipeline:f}=Tm(),{destroyer:d}=aa(),p=ls(),g=aE(),b=Oi(),v=e.exports=_m().Stream;v.isDisturbed=b.isDisturbed,v.isErrored=b.isErrored,v.isReadable=b.isReadable,v.Readable=ef();for(let _ of s(o)){let y=function(...T){if(new.target)throw u();return v.Readable.from(i(x,this,T))},x=o[_];n(y,"name",{__proto__:null,value:x.name}),n(y,"length",{__proto__:null,value:x.length}),n(v.Readable.prototype,_,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}for(let _ of s(l)){let y=function(...T){if(new.target)throw u();return i(x,this,T)},x=l[_];n(y,"name",{__proto__:null,value:x.name}),n(y,"length",{__proto__:null,value:x.length}),n(v.Readable.prototype,_,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}v.Writable=nE(),v.Duplex=Ai(),v.Transform=iE(),v.PassThrough=sE(),v.pipeline=f;var{addAbortSignal:w}=Jc();v.addAbortSignal=w,v.finished=p,v.destroy=d,v.compose=c,n(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return g}}),n(f,a,{__proto__:null,enumerable:!0,get(){return g.pipeline}}),n(p,a,{__proto__:null,enumerable:!0,get(){return g.finished}}),v.Stream=v,v._isUint8Array=function(_){return _ instanceof Uint8Array},v._uint8ArrayToBuffer=function(_){return r.from(_.buffer,_.byteOffset,_.byteLength)}}),oo=Ne((t,e)=>{Pe(),Le(),Oe();var r=lE(),n=aE(),s=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=s,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return n}}),e.exports.Stream=r.Stream,e.exports.default=e.exports}),dL=Ne((t,e)=>{Pe(),Le(),Oe(),typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,n){if(n){r.super_=n;var s=function(){};s.prototype=n.prototype,r.prototype=new s,r.prototype.constructor=r}}}),hL=Ne((t,e)=>{Pe(),Le(),Oe();var{Buffer:r}=(dr(),It(fr)),n=Symbol.for("BufferList");function s(i){if(!(this instanceof s))return new s(i);s._init.call(this,i)}s._init=function(i){Object.defineProperty(this,n,{value:!0}),this._bufs=[],this.length=0,i&&this.append(i)},s.prototype._new=function(i){return new s(i)},s.prototype._offset=function(i){if(i===0)return[0,0];let a=0;for(let o=0;othis.length||i<0)return;let a=this._offset(i);return this._bufs[a[0]][a[1]]},s.prototype.slice=function(i,a){return typeof i=="number"&&i<0&&(i+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,i,a)},s.prototype.copy=function(i,a,o,l){if((typeof o!="number"||o<0)&&(o=0),(typeof l!="number"||l>this.length)&&(l=this.length),o>=this.length||l<=0)return i||r.alloc(0);let u=!!i,c=this._offset(o),f=l-o,d=f,p=u&&a||0,g=c[1];if(o===0&&l===this.length){if(!u)return this._bufs.length===1?this._bufs[0]:r.concat(this._bufs,this.length);for(let b=0;bv)this._bufs[b].copy(i,p,g),p+=v;else{this._bufs[b].copy(i,p,g,g+d),p+=v;break}d-=v,g&&(g=0)}return i.length>p?i.slice(0,p):i},s.prototype.shallowSlice=function(i,a){if(i=i||0,a=typeof a!="number"?this.length:a,i<0&&(i+=this.length),a<0&&(a+=this.length),i===a)return this._new();let o=this._offset(i),l=this._offset(a),u=this._bufs.slice(o[0],l[0]+1);return l[1]===0?u.pop():u[u.length-1]=u[u.length-1].slice(0,l[1]),o[1]!==0&&(u[0]=u[0].slice(o[1])),this._new(u)},s.prototype.toString=function(i,a,o){return this.slice(a,o).toString(i)},s.prototype.consume=function(i){if(i=Math.trunc(i),Number.isNaN(i)||i<=0)return this;for(;this._bufs.length;)if(i>=this._bufs[0].length)i-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(i),this.length-=i;break}return this},s.prototype.duplicate=function(){let i=this._new();for(let a=0;athis.length?this.length:a;let l=this._offset(a),u=l[0],c=l[1];for(;u=i.length){let d=f.indexOf(i,c);if(d!==-1)return this._reverseOffset([u,d]);c=f.length-i.length+1}else{let d=this._reverseOffset([u,c]);if(this._match(d,i))return d;c++}c=0}return-1},s.prototype._match=function(i,a){if(this.length-i{Pe(),Le(),Oe();var r=oo().Duplex,n=dL(),s=hL();function i(a){if(!(this instanceof i))return new i(a);if(typeof a=="function"){this._callback=a;let o=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",o)}),this.on("unpipe",function(l){l.removeListener("error",o)}),a=null}s._init.call(this,a),r.call(this)}n(i,r),Object.assign(i.prototype,s.prototype),i.prototype._new=function(a){return new i(a)},i.prototype._write=function(a,o,l){this._appendBuffer(a),typeof l=="function"&&l()},i.prototype._read=function(a){if(!this.length)return this.push(null);a=Math.min(a,this.length),this.push(this.slice(0,a)),this.consume(a)},i.prototype.end=function(a){r.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},i.prototype._destroy=function(a,o){this._bufs.length=0,this.length=0,o(a)},i.prototype._isBufferList=function(a){return a instanceof i||a instanceof s||i.isBufferList(a)},i.isBufferList=s.isBufferList,e.exports=i,e.exports.BufferListStream=i,e.exports.BufferList=s}),gL=Ne((t,e)=>{Pe(),Le(),Oe();var r=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};e.exports=r}),uE=Ne((t,e)=>{Pe(),Le(),Oe();var r=e.exports,{Buffer:n}=(dr(),It(fr));r.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},r.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},r.requiredHeaderFlagsErrors={};for(let i in r.requiredHeaderFlags){let a=r.requiredHeaderFlags[i];r.requiredHeaderFlagsErrors[i]="Invalid header flag bits, must be 0x"+a.toString(16)+" for "+r.types[i]+" packet"}r.codes={};for(let i in r.types){let a=r.types[i];r.codes[a]=i}r.CMD_SHIFT=4,r.CMD_MASK=240,r.DUP_MASK=8,r.QOS_MASK=3,r.QOS_SHIFT=1,r.RETAIN_MASK=1,r.VARBYTEINT_MASK=127,r.VARBYTEINT_FIN_MASK=128,r.VARBYTEINT_MAX=268435455,r.SESSIONPRESENT_MASK=1,r.SESSIONPRESENT_HEADER=n.from([r.SESSIONPRESENT_MASK]),r.CONNACK_HEADER=n.from([r.codes.connack<[0,1].map(o=>[0,1].map(l=>{let u=n.alloc(1);return u.writeUInt8(r.codes[i]<n.from([i])),r.EMPTY={pingreq:n.from([r.codes.pingreq<<4,0]),pingresp:n.from([r.codes.pingresp<<4,0]),disconnect:n.from([r.codes.disconnect<<4,0])},r.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},r.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},r.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},r.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),mL=Ne((t,e)=>{Pe(),Le(),Oe();var r=1e3,n=r*60,s=n*60,i=s*24,a=i*7,o=i*365.25;e.exports=function(d,p){p=p||{};var g=typeof d;if(g==="string"&&d.length>0)return l(d);if(g==="number"&&isFinite(d))return p.long?c(d):u(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function l(d){if(d=String(d),!(d.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(p){var g=parseFloat(p[1]),b=(p[2]||"ms").toLowerCase();switch(b){case"years":case"year":case"yrs":case"yr":case"y":return g*o;case"weeks":case"week":case"w":return g*a;case"days":case"day":case"d":return g*i;case"hours":case"hour":case"hrs":case"hr":case"h":return g*s;case"minutes":case"minute":case"mins":case"min":case"m":return g*n;case"seconds":case"second":case"secs":case"sec":case"s":return g*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function u(d){var p=Math.abs(d);return p>=i?Math.round(d/i)+"d":p>=s?Math.round(d/s)+"h":p>=n?Math.round(d/n)+"m":p>=r?Math.round(d/r)+"s":d+"ms"}function c(d){var p=Math.abs(d);return p>=i?f(d,p,i,"day"):p>=s?f(d,p,s,"hour"):p>=n?f(d,p,n,"minute"):p>=r?f(d,p,r,"second"):d+" ms"}function f(d,p,g,b){var v=p>=g*1.5;return Math.round(d/g)+" "+b+(v?"s":"")}}),bL=Ne((t,e)=>{Pe(),Le(),Oe();function r(n){i.debug=i,i.default=i,i.coerce=f,i.disable=l,i.enable=o,i.enabled=u,i.humanize=mL(),i.destroy=d,Object.keys(n).forEach(p=>{i[p]=n[p]}),i.names=[],i.skips=[],i.formatters={};function s(p){let g=0;for(let b=0;b{if(L==="%%")return"%";C++;let R=i.formatters[j];if(typeof R=="function"){let U=y[C];L=R.call(x,U),y.splice(C,1),C--}return L}),i.formatArgs.call(x,y),(x.log||i.log).apply(x,y)}return _.namespace=p,_.useColors=i.useColors(),_.color=i.selectColor(p),_.extend=a,_.destroy=i.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(v!==i.namespaces&&(v=i.namespaces,w=i.enabled(p)),w),set:y=>{b=y}}),typeof i.init=="function"&&i.init(_),_}function a(p,g){let b=i(this.namespace+(typeof g>"u"?":":g)+p);return b.log=this.log,b}function o(p){i.save(p),i.namespaces=p,i.names=[],i.skips=[];let g,b=(typeof p=="string"?p:"").split(/[\s,]+/),v=b.length;for(g=0;g"-"+g)].join(",");return i.enable(""),p}function u(p){if(p[p.length-1]==="*")return!0;let g,b;for(g=0,b=i.skips.length;g{Pe(),Le(),Oe(),t.formatArgs=n,t.save=s,t.load=i,t.useColors=r,t.storage=a(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;l.splice(1,0,u,"color: inherit");let c=0,f=0;l[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(c++,d==="%c"&&(f=c))}),l.splice(f,0,u)}t.log=console.debug||console.log||(()=>{});function s(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function i(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof vt<"u"&&"env"in vt&&(l=vt.env.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=bL()(t);var{formatters:o}=e.exports;o.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}),yL=Ne((t,e)=>{Pe(),Le(),Oe();var r=pL(),{EventEmitter:n}=(la(),It(so)),s=gL(),i=uE(),a=Ci()("mqtt-packet:parser"),o=class tg extends n{constructor(){super(),this.parser=this.constructor.parser}static parser(u){return this instanceof tg?(this.settings=u||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new tg().parser(u)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new s,this.error=null,this._list=r(),this._stateCounter=0}parse(u){for(this.error&&this._resetState(),this._list.append(u),a("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let u=this._list.readUInt8(0),c=u>>i.CMD_SHIFT;this.packet.cmd=i.types[c];let f=u&15,d=i.requiredHeaderFlags[c];return d!=null&&f!==d?this._emitError(new Error(i.requiredHeaderFlagsErrors[c])):(this.packet.retain=(u&i.RETAIN_MASK)!==0,this.packet.qos=u>>i.QOS_SHIFT&i.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(u&i.DUP_MASK)!==0,a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let u=this._parseVarByteNum(!0);return u&&(this.packet.length=u.value,this._list.consume(u.bytes)),a("_parseLength %d",u.value),!!u}_parsePayload(){a("_parsePayload: payload %O",this._list);let u=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}u=!0}return a("_parsePayload complete result: %s",u),u}_parseConnect(){a("_parseConnect");let u,c,f,d,p={},g=this.packet,b=this._parseString();if(b===null)return this._emitError(new Error("Cannot parse protocolId"));if(b!=="MQTT"&&b!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(g.protocolId=b,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(g.protocolVersion=this._list.readUInt8(this._pos),g.protocolVersion>=128&&(g.bridgeMode=!0,g.protocolVersion=g.protocolVersion-128),g.protocolVersion!==3&&g.protocolVersion!==4&&g.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));p.username=this._list.readUInt8(this._pos)&i.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&i.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&i.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&i.WILL_RETAIN_MASK),w=(this._list.readUInt8(this._pos)&i.WILL_QOS_MASK)>>i.WILL_QOS_SHIFT;if(p.will)g.will={},g.will.retain=v,g.will.qos=w;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(w)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(g.clean=(this._list.readUInt8(this._pos)&i.CLEAN_SESSION_MASK)!==0,this._pos++,g.keepalive=this._parseNum(),g.keepalive===-1)return this._emitError(new Error("Packet too short"));if(g.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(g.properties=y)}let _=this._parseString();if(_===null)return this._emitError(new Error("Packet too short"));if(g.clientId=_,a("_parseConnect: packet.clientId: %s",g.clientId),p.will){if(g.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(g.will.properties=y)}if(u=this._parseString(),u===null)return this._emitError(new Error("Cannot parse will topic"));if(g.will.topic=u,a("_parseConnect: packet.will.topic: %s",g.will.topic),c=this._parseBuffer(),c===null)return this._emitError(new Error("Cannot parse will payload"));g.will.payload=c,a("_parseConnect: packet.will.paylaod: %s",g.will.payload)}if(p.username){if(d=this._parseString(),d===null)return this._emitError(new Error("Cannot parse username"));g.username=d,a("_parseConnect: packet.username: %s",g.username)}if(p.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));g.password=f}return this.settings=g,a("_parseConnect: complete"),g}_parseConnack(){a("_parseConnack");let u=this.packet;if(this._list.length<1)return null;let c=this._list.readUInt8(this._pos++);if(c>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(u.sessionPresent=!!(c&i.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?u.reasonCode=this._list.readUInt8(this._pos++):u.reasonCode=0;else{if(this._list.length<2)return null;u.returnCode=this._list.readUInt8(this._pos++)}if(u.returnCode===-1||u.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(u.properties=f)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let u=this.packet;if(u.topic=this._parseString(),u.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(u.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}u.payload=this._list.slice(this._pos,u.length),a("_parsePublish: payload from buffer list: %o",u.payload)}}_parseSubscribe(){a("_parseSubscribe");let u=this.packet,c,f,d,p,g,b,v;if(u.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(u.properties=w)}if(u.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=u.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(d=f&i.SUBSCRIBE_OPTIONS_QOS_MASK,d>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(b=(f>>i.SUBSCRIBE_OPTIONS_NL_SHIFT&i.SUBSCRIBE_OPTIONS_NL_MASK)!==0,g=(f>>i.SUBSCRIBE_OPTIONS_RAP_SHIFT&i.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,p=f>>i.SUBSCRIBE_OPTIONS_RH_SHIFT&i.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:c,qos:d},this.settings.protocolVersion===5?(v.nl=b,v.rap=g,v.rh=p):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",v),u.subscriptions.push(v)}}}_parseSuback(){a("_parseSuback");let u=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}if(u.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&c!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(c)}}}_parseUnsubscribe(){a("_parseUnsubscribe");let u=this.packet;if(u.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}if(u.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(u.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!i.MQTT5_PUBACK_PUBREC_CODES[u.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!i.MQTT5_PUBREL_PUBCOMP_CODES[u.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}a("_parseConfirmation: packet.reasonCode `%d`",u.reasonCode)}else u.reasonCode=0;if(u.length>3){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}}return!0}_parseDisconnect(){let u=this.packet;if(a("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(u.reasonCode=this._parseByte(),i.MQTT5_DISCONNECT_CODES[u.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):u.reasonCode=0;let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");let u=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(u.reasonCode=this._parseByte(),!i.MQTT5_AUTH_CODES[u.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let c=this._parseProperties();return Object.getOwnPropertyNames(c).length&&(u.properties=c),a("_parseAuth: result: true"),!0}_parseMessageId(){let u=this.packet;return u.messageId=this._parseNum(),u.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",u.messageId),!0)}_parseString(u){let c=this._parseNum(),f=c+this._pos;if(c===-1||f>this._list.length||f>this.packet.length)return null;let d=this._list.toString("utf8",this._pos,f);return this._pos+=c,a("_parseString: result: %s",d),d}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let u=this._parseNum(),c=u+this._pos;if(u===-1||c>this._list.length||c>this.packet.length)return null;let f=this._list.slice(this._pos,c);return this._pos+=u,a("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let u=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",u),u}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let u=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",u),u}_parseVarByteNum(u){a("_parseVarByteNum");let c=4,f=0,d=1,p=0,g=!1,b,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),g?u?g={bytes:f,value:p}:g=p:g=!1,a("_parseVarByteNum: result: %o",g),g}_parseByte(){let u;return this._pos{Pe(),Le(),Oe();var{Buffer:r}=(dr(),It(fr)),n=65536,s={},i=r.isBuffer(r.from([1,2]).subarray(0,1));function a(c){let f=r.allocUnsafe(2);return f.writeUInt8(c>>8,0),f.writeUInt8(c&255,1),f}function o(){for(let c=0;c0&&(f=f|128),p.writeUInt8(f,d++);while(c>0&&d<4);return c>0&&(d=0),i?p.subarray(0,d):p.slice(0,d)}function u(c){let f=r.allocUnsafe(4);return f.writeUInt32BE(c,0),f}e.exports={cache:s,generateCache:o,generateNumber:a,genBufVariableByteInt:l,generate4ByteBuffer:u}}),vL=Ne((t,e)=>{Pe(),Le(),Oe(),typeof vt>"u"||!vt.version||vt.version.indexOf("v0.")===0||vt.version.indexOf("v1.")===0&&vt.version.indexOf("v1.8.")!==0?e.exports={nextTick:r}:e.exports=vt;function r(n,s,i,a){if(typeof n!="function")throw new TypeError('"callback" argument must be a function');var o=arguments.length,l,u;switch(o){case 0:case 1:return vt.nextTick(n);case 2:return vt.nextTick(function(){n.call(null,s)});case 3:return vt.nextTick(function(){n.call(null,s,i)});case 4:return vt.nextTick(function(){n.call(null,s,i,a)});default:for(l=new Array(o-1),u=0;u{Pe(),Le(),Oe();var r=uE(),{Buffer:n}=(dr(),It(fr)),s=n.allocUnsafe(0),i=n.from([0]),a=wL(),o=vL().nextTick,l=Ci()("mqtt-packet:writeToStream"),u=a.cache,c=a.generateNumber,f=a.generateCache,d=a.genBufVariableByteInt,p=a.generate4ByteBuffer,g=re,b=!0;function v(W,D,X){switch(l("generate called"),D.cork&&(D.cork(),o(w,D)),b&&(b=!1,f()),l("generate: packet.cmd: %s",W.cmd),W.cmd){case"connect":return _(W,D);case"connack":return y(W,D,X);case"publish":return x(W,D,X);case"puback":case"pubrec":case"pubrel":case"pubcomp":return T(W,D,X);case"subscribe":return A(W,D,X);case"suback":return C(W,D,X);case"unsubscribe":return L(W,D,X);case"unsuback":return j(W,D,X);case"pingreq":case"pingresp":return R(W,D);case"disconnect":return U(W,D,X);case"auth":return I(W,D,X);default:return D.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return g===re},set(W){W?((!u||Object.keys(u).length===0)&&(b=!0),g=re):(b=!1,g=N)}});function w(W){W.uncork()}function _(W,D,X){let ce=W||{},le=ce.protocolId||"MQTT",k=ce.protocolVersion||4,P=ce.will,V=ce.clean,B=ce.keepalive||0,H=ce.clientId||"",q=ce.username,ue=ce.password,J=ce.properties;V===void 0&&(V=!0);let Y=0;if(!le||typeof le!="string"&&!n.isBuffer(le))return D.destroy(new Error("Invalid protocolId")),!1;if(Y+=le.length+2,k!==3&&k!==4&&k!==5)return D.destroy(new Error("Invalid protocol version")),!1;if(Y+=1,(typeof H=="string"||n.isBuffer(H))&&(H||k>=4)&&(H||V))Y+=n.byteLength(H)+2;else{if(k<4)return D.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(V*1===0)return D.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof B!="number"||B<0||B>65535||B%1!==0)return D.destroy(new Error("Invalid keepalive")),!1;Y+=2,Y+=1;let ie,Q;if(k===5){if(ie=pe(D,J),!ie)return!1;Y+=ie.length}if(P){if(typeof P!="object")return D.destroy(new Error("Invalid will")),!1;if(!P.topic||typeof P.topic!="string")return D.destroy(new Error("Invalid will topic")),!1;if(Y+=n.byteLength(P.topic)+2,Y+=2,P.payload)if(P.payload.length>=0)typeof P.payload=="string"?Y+=n.byteLength(P.payload):Y+=P.payload.length;else return D.destroy(new Error("Invalid will payload")),!1;if(Q={},k===5){if(Q=pe(D,P.properties),!Q)return!1;Y+=Q.length}}let oe=!1;if(q!=null)if(K(q))oe=!0,Y+=n.byteLength(q)+2;else return D.destroy(new Error("Invalid username")),!1;if(ue!=null){if(!oe)return D.destroy(new Error("Username is required to use password")),!1;if(K(ue))Y+=ee(ue)+2;else return D.destroy(new Error("Invalid password")),!1}D.write(r.CONNECT_HEADER),$(D,Y),G(D,le),ce.bridgeMode&&(k+=128),D.write(k===131?r.VERSION131:k===132?r.VERSION132:k===4?r.VERSION4:k===5?r.VERSION5:r.VERSION3);let me=0;return me|=q!=null?r.USERNAME_MASK:0,me|=ue!=null?r.PASSWORD_MASK:0,me|=P&&P.retain?r.WILL_RETAIN_MASK:0,me|=P&&P.qos?P.qos<0&&g(D,H),J==null||J.write(),l("publish: payload: %o",B),D.write(B)}function T(W,D,X){let ce=X?X.protocolVersion:4,le=W||{},k=le.cmd||"puback",P=le.messageId,V=le.dup&&k==="pubrel"?r.DUP_MASK:0,B=0,H=le.reasonCode,q=le.properties,ue=ce===5?3:2;if(k==="pubrel"&&(B=1),typeof P!="number")return D.destroy(new Error("Invalid messageId")),!1;let J=null;if(ce===5&&typeof q=="object"){if(J=F(D,q,X,ue),!J)return!1;ue+=J.length}return D.write(r.ACKS[k][B][V][0]),ue===3&&(ue+=H!==0?1:-1),$(D,ue),g(D,P),ce===5&&ue!==2&&D.write(n.from([H])),J!==null?J.write():ue===4&&D.write(n.from([0])),!0}function A(W,D,X){l("subscribe: packet: ");let ce=X?X.protocolVersion:4,le=W||{},k=le.dup?r.DUP_MASK:0,P=le.messageId,V=le.subscriptions,B=le.properties,H=0;if(typeof P!="number")return D.destroy(new Error("Invalid messageId")),!1;H+=2;let q=null;if(ce===5){if(q=pe(D,B),!q)return!1;H+=q.length}if(typeof V=="object"&&V.length)for(let J=0;J2)return D.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}H+=n.byteLength(Y)+2+1}else return D.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",r.SUBSCRIBE_HEADER),D.write(r.SUBSCRIBE_HEADER[1][k?1:0][0]),$(D,H),g(D,P),q!==null&&q.write();let ue=!0;for(let J of V){let Y=J.topic,ie=J.qos,Q=+J.nl,oe=+J.rap,me=J.rh,Te;Z(D,Y),Te=r.SUBSCRIBE_OPTIONS_QOS[ie],ce===5&&(Te|=Q?r.SUBSCRIBE_OPTIONS_NL:0,Te|=oe?r.SUBSCRIBE_OPTIONS_RAP:0,Te|=me?r.SUBSCRIBE_OPTIONS_RH[me]:0),ue=D.write(n.from([Te]))}return ue}function C(W,D,X){let ce=X?X.protocolVersion:4,le=W||{},k=le.messageId,P=le.granted,V=le.properties,B=0;if(typeof k!="number")return D.destroy(new Error("Invalid messageId")),!1;if(B+=2,typeof P=="object"&&P.length)for(let q=0;qr.VARBYTEINT_MAX)return W.destroy(new Error(`Invalid variable byte integer: ${D}`)),!1;let X=M[D];return X||(X=d(D),D<16384&&(M[D]=X)),l("writeVarByteInt: writing to stream: %o",X),W.write(X)}function Z(W,D){let X=n.byteLength(D);return g(W,X),l("writeString: %s",D),W.write(D,"utf8")}function ne(W,D,X){Z(W,D),Z(W,X)}function re(W,D){return l("writeNumberCached: number: %d",D),l("writeNumberCached: %o",u[D]),W.write(u[D])}function N(W,D){let X=c(D);return l("writeNumberGenerated: %o",X),W.write(X)}function fe(W,D){let X=p(D);return l("write4ByteNumber: %o",X),W.write(X)}function G(W,D){typeof D=="string"?Z(W,D):D?(g(W,D.length),W.write(D)):g(W,0)}function pe(W,D){if(typeof D!="object"||D.length!=null)return{length:1,write(){Se(W,{},0)}};let X=0;function ce(le,k){let P=r.propertiesTypes[le],V=0;switch(P){case"byte":{if(typeof k!="boolean")return W.destroy(new Error(`Invalid ${le}: ${k}`)),!1;V+=2;break}case"int8":{if(typeof k!="number"||k<0||k>255)return W.destroy(new Error(`Invalid ${le}: ${k}`)),!1;V+=2;break}case"binary":{if(k&&k===null)return W.destroy(new Error(`Invalid ${le}: ${k}`)),!1;V+=1+n.byteLength(k)+2;break}case"int16":{if(typeof k!="number"||k<0||k>65535)return W.destroy(new Error(`Invalid ${le}: ${k}`)),!1;V+=3;break}case"int32":{if(typeof k!="number"||k<0||k>4294967295)return W.destroy(new Error(`Invalid ${le}: ${k}`)),!1;V+=5;break}case"var":{if(typeof k!="number"||k<0||k>268435455)return W.destroy(new Error(`Invalid ${le}: ${k}`)),!1;V+=1+n.byteLength(d(k));break}case"string":{if(typeof k!="string")return W.destroy(new Error(`Invalid ${le}: ${k}`)),!1;V+=3+n.byteLength(k.toString());break}case"pair":{if(typeof k!="object")return W.destroy(new Error(`Invalid ${le}: ${k}`)),!1;V+=Object.getOwnPropertyNames(k).reduce((B,H)=>{let q=k[H];return Array.isArray(q)?B+=q.reduce((ue,J)=>(ue+=3+n.byteLength(H.toString())+2+n.byteLength(J.toString()),ue),0):B+=3+n.byteLength(H.toString())+2+n.byteLength(k[H].toString()),B},0);break}default:return W.destroy(new Error(`Invalid property ${le}: ${k}`)),!1}return V}if(D)for(let le in D){let k=0,P=0,V=D[le];if(Array.isArray(V))for(let B=0;Bk;){let V=le.shift();if(V&&D[V])delete D[V],P=pe(W,D);else return!1}return P}function de(W,D,X){switch(r.propertiesTypes[D]){case"byte":{W.write(n.from([r.properties[D]])),W.write(n.from([+X]));break}case"int8":{W.write(n.from([r.properties[D]])),W.write(n.from([X]));break}case"binary":{W.write(n.from([r.properties[D]])),G(W,X);break}case"int16":{W.write(n.from([r.properties[D]])),g(W,X);break}case"int32":{W.write(n.from([r.properties[D]])),fe(W,X);break}case"var":{W.write(n.from([r.properties[D]])),$(W,X);break}case"string":{W.write(n.from([r.properties[D]])),Z(W,X);break}case"pair":{Object.getOwnPropertyNames(X).forEach(ce=>{let le=X[ce];Array.isArray(le)?le.forEach(k=>{W.write(n.from([r.properties[D]])),ne(W,ce.toString(),k.toString())}):(W.write(n.from([r.properties[D]])),ne(W,ce.toString(),le.toString()))});break}default:return W.destroy(new Error(`Invalid property ${D} value: ${X}`)),!1}}function Se(W,D,X){$(W,X);for(let ce in D)if(Object.prototype.hasOwnProperty.call(D,ce)&&D[ce]!==null){let le=D[ce];if(Array.isArray(le))for(let k=0;k{Pe(),Le(),Oe();var r=cE(),{EventEmitter:n}=(la(),It(so)),{Buffer:s}=(dr(),It(fr));function i(o,l){let u=new a;return r(o,u,l),u.concat()}var a=class extends n{constructor(){super(),this._array=new Array(20),this._i=0}write(o){return this._array[this._i++]=o,!0}concat(){let o=0,l=new Array(this._array.length),u=this._array,c=0,f;for(f=0;f{Pe(),Le(),Oe(),t.parser=yL().parser,t.generate=_L(),t.writeToStream=cE()}),fE=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let r=this.nextId++;return this.nextId===65536&&(this.nextId=1),r}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(r){return!0}deallocate(r){}clear(){}};t.default=e}),SL=Ne((t,e)=>{Pe(),Le(),Oe(),e.exports=n;function r(i){return i instanceof bc?bc.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function n(i){if(i=i||{},i.circles)return s(i);return i.proto?l:o;function a(u,c){for(var f=Object.keys(u),d=new Array(f.length),p=0;p{Pe(),Le(),Oe(),e.exports=SL()()}),TL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0}),t.validateTopics=t.validateTopic=void 0;function e(n){let s=n.split("/");for(let i=0;i{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=oo(),r={objectMode:!0},n={clean:!0},s=class{constructor(i){this.options=i||{},this.options=Object.assign(Object.assign({},n),i),this._inflights=new Map}put(i,a){return this._inflights.set(i.messageId,i),a&&a(),this}createStream(){let i=new e.Readable(r),a=[],o=!1,l=0;return this._inflights.forEach((u,c)=>{a.push(u)}),i._read=()=>{!o&&l{if(!o)return o=!0,setTimeout(()=>{i.emit("close")},0),i},i}del(i,a){let o=this._inflights.get(i.messageId);return o?(this._inflights.delete(i.messageId),a(null,o)):a&&a(new Error("missing packet")),this}get(i,a){let o=this._inflights.get(i.messageId);return o?a(null,o):a&&a(new Error("missing packet")),this}close(i){this.options.clean&&(this._inflights=null),i&&i()}};t.default=s}),AL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=[0,16,128,131,135,144,145,151,153],r=(n,s,i)=>{n.log("handlePublish: packet %o",s),i=typeof i<"u"?i:n.noop;let a=s.topic.toString(),o=s.payload,{qos:l}=s,{messageId:u}=s,{options:c}=n;if(n.options.protocolVersion===5){let f;if(s.properties&&(f=s.properties.topicAlias),typeof f<"u")if(a.length===0)if(f>0&&f<=65535){let d=n.topicAliasRecv.getTopicByAlias(f);if(d)a=d,n.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,f);else{n.log("handlePublish :: unregistered topic alias. alias: %d",f),n.emit("error",new Error("Received unregistered Topic Alias"));return}}else{n.log("handlePublish :: topic alias out of range. alias: %d",f),n.emit("error",new Error("Received Topic Alias is out of range"));return}else if(n.topicAliasRecv.put(a,f))n.log("handlePublish :: registered topic: %s - alias: %d",a,f);else{n.log("handlePublish :: topic alias out of range. alias: %d",f),n.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(n.log("handlePublish: qos %d",l),l){case 2:{c.customHandleAcks(a,o,s,(f,d)=>{if(typeof f=="number"&&(d=f,f=null),f)return n.emit("error",f);if(e.indexOf(d)===-1)return n.emit("error",new Error("Wrong reason code for pubrec"));d?n._sendPacket({cmd:"pubrec",messageId:u,reasonCode:d},i):n.incomingStore.put(s,()=>{n._sendPacket({cmd:"pubrec",messageId:u},i)})});break}case 1:{c.customHandleAcks(a,o,s,(f,d)=>{if(typeof f=="number"&&(d=f,f=null),f)return n.emit("error",f);if(e.indexOf(d)===-1)return n.emit("error",new Error("Wrong reason code for puback"));d||n.emit("message",a,o,s),n.handleMessage(s,p=>{if(p)return i&&i(p);n._sendPacket({cmd:"puback",messageId:u,reasonCode:d},i)})});break}case 0:n.emit("message",a,o,s),n.handleMessage(s,i);break;default:n.log("handlePublish: unknown QoS. Doing nothing.");break}};t.default=r}),CL=Ne((t,e)=>{e.exports={version:"5.10.3"}}),ua=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0}),t.MQTTJS_VERSION=t.nextTick=t.applyMixin=t.ErrorWithReasonCode=void 0;var e=class hE extends Error{constructor(s,i){super(s),this.code=i,Object.setPrototypeOf(this,hE.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};t.ErrorWithReasonCode=e;function r(n,s,i=!1){var a;let o=[s];for(;;){let l=o[0],u=Object.getPrototypeOf(l);if(u!=null&&u.prototype)o.unshift(u);else break}for(let l of o)for(let u of Object.getOwnPropertyNames(l.prototype))(i||u!=="constructor")&&Object.defineProperty(n.prototype,u,(a=Object.getOwnPropertyDescriptor(l.prototype,u))!==null&&a!==void 0?a:Object.create(null))}t.applyMixin=r,t.nextTick=typeof(vt==null?void 0:vt.nextTick)=="function"?vt.nextTick:n=>{setTimeout(n,0)},t.MQTTJS_VERSION=CL().version}),tf=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=void 0;var e=ua();t.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var r=(n,s)=>{let{messageId:i}=s,a=s.cmd,o=null,l=n.outgoing[i]?n.outgoing[i].cb:null,u=null;if(!l){n.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(n.log("_handleAck :: packet type",a),a){case"pubcomp":case"puback":{let c=s.reasonCode;c&&c>0&&c!==16?(u=new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[c]}`,c),n._removeOutgoingAndStoreMessage(i,()=>{l(u,s)})):n._removeOutgoingAndStoreMessage(i,l);break}case"pubrec":{o={cmd:"pubrel",qos:2,messageId:i};let c=s.reasonCode;c&&c>0&&c!==16?(u=new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[c]}`,c),n._removeOutgoingAndStoreMessage(i,()=>{l(u,s)})):n._sendPacket(o);break}case"suback":{delete n.outgoing[i],n.messageIdProvider.deallocate(i);let c=s.granted;for(let f=0;f{delete n._resubscribeTopics[g]})}}delete n.messageIdToTopic[i],n._invokeStoreProcessingQueue(),l(u,s);break}case"unsuback":{delete n.outgoing[i],n.messageIdProvider.deallocate(i),n._invokeStoreProcessingQueue(),l(null,s);break}default:n.emit("error",new Error("unrecognized packet type"))}n.disconnecting&&Object.keys(n.outgoing).length===0&&n.emit("outgoingEmpty")};t.default=r}),IL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=ua(),r=tf(),n=(s,i)=>{let{options:a}=s,o=a.protocolVersion,l=o===5?i.reasonCode:i.returnCode;if(o!==5){let u=new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${o}`,l);s.emit("error",u);return}s.handleAuth(i,(u,c)=>{if(u){s.emit("error",u);return}if(l===24)s.reconnecting=!1,s._sendPacket(c);else{let f=new e.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[l]}`,l);s.emit("error",f)}})};t.default=n}),ML=Ne(t=>{var p,g,b,v,w,_,y,x,T,A,C,L,j,R,U,I,M,$,Z,ne,re,N,fe,G,pe,F,rg,Se,ee,K,W,pE,X,ce,le,Ui,Fi,ng,Du,Uu,Rt,ig,za,Y;Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,n=typeof vt=="object"&&vt?vt:{},s=(ie,Q,oe,me)=>{typeof n.emitWarning=="function"?n.emitWarning(ie,Q,oe,me):console.error(`[${oe}] ${Q}: ${ie}`)},i=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof i>"u"){a=class{constructor(){ve(this,"onabort");ve(this,"_onabort",[]);ve(this,"reason");ve(this,"aborted",!1)}addEventListener(oe,me){this._onabort.push(me)}},i=class{constructor(){ve(this,"signal",new a);Q()}abort(oe){var me,Te;if(!this.signal.aborted){this.signal.reason=oe,this.signal.aborted=!0;for(let S of this.signal._onabort)S(oe);(Te=(me=this.signal).onabort)==null||Te.call(me,oe)}}};let ie=((p=n.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",Q=()=>{ie&&(ie=!1,s("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",Q))}}var o=ie=>!r.has(ie),l=ie=>ie&&ie===Math.floor(ie)&&ie>0&&isFinite(ie),u=ie=>l(ie)?ie<=Math.pow(2,8)?Uint8Array:ie<=Math.pow(2,16)?Uint16Array:ie<=Math.pow(2,32)?Uint32Array:ie<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(ie){super(ie),this.fill(0)}},f=(g=class{constructor(Q,oe){ve(this,"heap");ve(this,"length");if(!ye(g,b))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new oe(Q),this.length=0}static create(Q){let oe=u(Q);if(!oe)return[];Ze(g,b,!0);let me=new g(Q,oe);return Ze(g,b,!1),me}push(Q){this.heap[this.length++]=Q}pop(){return this.heap[--this.length]}},b=new WeakMap,gt(g,b,!1),g),d=(Y=class{constructor(Q){gt(this,F);gt(this,v);gt(this,w);gt(this,_);gt(this,y);gt(this,x);ve(this,"ttl");ve(this,"ttlResolution");ve(this,"ttlAutopurge");ve(this,"updateAgeOnGet");ve(this,"updateAgeOnHas");ve(this,"allowStale");ve(this,"noDisposeOnSet");ve(this,"noUpdateTTL");ve(this,"maxEntrySize");ve(this,"sizeCalculation");ve(this,"noDeleteOnFetchRejection");ve(this,"noDeleteOnStaleGet");ve(this,"allowStaleOnFetchAbort");ve(this,"allowStaleOnFetchRejection");ve(this,"ignoreFetchAbort");gt(this,T);gt(this,A);gt(this,C);gt(this,L);gt(this,j);gt(this,R);gt(this,U);gt(this,I);gt(this,M);gt(this,$);gt(this,Z);gt(this,ne);gt(this,re);gt(this,N);gt(this,fe);gt(this,G);gt(this,pe);gt(this,Se,()=>{});gt(this,ee,()=>{});gt(this,K,()=>{});gt(this,W,()=>!1);gt(this,X,Q=>{});gt(this,ce,(Q,oe,me)=>{});gt(this,le,(Q,oe,me,Te)=>{if(me||Te)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:oe=0,ttl:me,ttlResolution:Te=1,ttlAutopurge:S,updateAgeOnGet:m,updateAgeOnHas:h,allowStale:E,dispose:O,disposeAfter:te,noDisposeOnSet:he,noUpdateTTL:Ce,maxSize:Ue=0,maxEntrySize:We=0,sizeCalculation:De,fetchMethod:He,noDeleteOnFetchRejection:ze,noDeleteOnStaleGet:_t,allowStaleOnFetchRejection:Xt,allowStaleOnFetchAbort:Lt,ignoreFetchAbort:qt}=Q;if(oe!==0&&!l(oe))throw new TypeError("max option must be a nonnegative integer");let or=oe?u(oe):Array;if(!or)throw new Error("invalid max value: "+oe);if(Ze(this,v,oe),Ze(this,w,Ue),this.maxEntrySize=We||ye(this,w),this.sizeCalculation=De,this.sizeCalculation){if(!ye(this,w)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(He!==void 0&&typeof He!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ze(this,x,He),Ze(this,G,!!He),Ze(this,C,new Map),Ze(this,L,new Array(oe).fill(void 0)),Ze(this,j,new Array(oe).fill(void 0)),Ze(this,R,new or(oe)),Ze(this,U,new or(oe)),Ze(this,I,0),Ze(this,M,0),Ze(this,$,f.create(oe)),Ze(this,T,0),Ze(this,A,0),typeof O=="function"&&Ze(this,_,O),typeof te=="function"?(Ze(this,y,te),Ze(this,Z,[])):(Ze(this,y,void 0),Ze(this,Z,void 0)),Ze(this,fe,!!ye(this,_)),Ze(this,pe,!!ye(this,y)),this.noDisposeOnSet=!!he,this.noUpdateTTL=!!Ce,this.noDeleteOnFetchRejection=!!ze,this.allowStaleOnFetchRejection=!!Xt,this.allowStaleOnFetchAbort=!!Lt,this.ignoreFetchAbort=!!qt,this.maxEntrySize!==0){if(ye(this,w)!==0&&!l(ye(this,w)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Xe(this,F,pE).call(this)}if(this.allowStale=!!E,this.noDeleteOnStaleGet=!!_t,this.updateAgeOnGet=!!m,this.updateAgeOnHas=!!h,this.ttlResolution=l(Te)||Te===0?Te:1,this.ttlAutopurge=!!S,this.ttl=me||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Xe(this,F,rg).call(this)}if(ye(this,v)===0&&this.ttl===0&&ye(this,w)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!ye(this,v)&&!ye(this,w)){let Qt="LRU_CACHE_UNBOUNDED";o(Qt)&&(r.add(Qt),s("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Qt,Y))}}static unsafeExposeInternals(Q){return{starts:ye(Q,re),ttls:ye(Q,N),sizes:ye(Q,ne),keyMap:ye(Q,C),keyList:ye(Q,L),valList:ye(Q,j),next:ye(Q,R),prev:ye(Q,U),get head(){return ye(Q,I)},get tail(){return ye(Q,M)},free:ye(Q,$),isBackgroundFetch:oe=>{var me;return Xe(me=Q,F,Rt).call(me,oe)},backgroundFetch:(oe,me,Te,S)=>{var m;return Xe(m=Q,F,Uu).call(m,oe,me,Te,S)},moveToTail:oe=>{var me;return Xe(me=Q,F,za).call(me,oe)},indexes:oe=>{var me;return Xe(me=Q,F,Ui).call(me,oe)},rindexes:oe=>{var me;return Xe(me=Q,F,Fi).call(me,oe)},isStale:oe=>{var me;return ye(me=Q,W).call(me,oe)}}}get max(){return ye(this,v)}get maxSize(){return ye(this,w)}get calculatedSize(){return ye(this,A)}get size(){return ye(this,T)}get fetchMethod(){return ye(this,x)}get dispose(){return ye(this,_)}get disposeAfter(){return ye(this,y)}getRemainingTTL(Q){return ye(this,C).has(Q)?1/0:0}*entries(){for(let Q of Xe(this,F,Ui).call(this))ye(this,j)[Q]!==void 0&&ye(this,L)[Q]!==void 0&&!Xe(this,F,Rt).call(this,ye(this,j)[Q])&&(yield[ye(this,L)[Q],ye(this,j)[Q]])}*rentries(){for(let Q of Xe(this,F,Fi).call(this))ye(this,j)[Q]!==void 0&&ye(this,L)[Q]!==void 0&&!Xe(this,F,Rt).call(this,ye(this,j)[Q])&&(yield[ye(this,L)[Q],ye(this,j)[Q]])}*keys(){for(let Q of Xe(this,F,Ui).call(this)){let oe=ye(this,L)[Q];oe!==void 0&&!Xe(this,F,Rt).call(this,ye(this,j)[Q])&&(yield oe)}}*rkeys(){for(let Q of Xe(this,F,Fi).call(this)){let oe=ye(this,L)[Q];oe!==void 0&&!Xe(this,F,Rt).call(this,ye(this,j)[Q])&&(yield oe)}}*values(){for(let Q of Xe(this,F,Ui).call(this))ye(this,j)[Q]!==void 0&&!Xe(this,F,Rt).call(this,ye(this,j)[Q])&&(yield ye(this,j)[Q])}*rvalues(){for(let Q of Xe(this,F,Fi).call(this))ye(this,j)[Q]!==void 0&&!Xe(this,F,Rt).call(this,ye(this,j)[Q])&&(yield ye(this,j)[Q])}[Symbol.iterator](){return this.entries()}find(Q,oe={}){for(let me of Xe(this,F,Ui).call(this)){let Te=ye(this,j)[me],S=Xe(this,F,Rt).call(this,Te)?Te.__staleWhileFetching:Te;if(S!==void 0&&Q(S,ye(this,L)[me],this))return this.get(ye(this,L)[me],oe)}}forEach(Q,oe=this){for(let me of Xe(this,F,Ui).call(this)){let Te=ye(this,j)[me],S=Xe(this,F,Rt).call(this,Te)?Te.__staleWhileFetching:Te;S!==void 0&&Q.call(oe,S,ye(this,L)[me],this)}}rforEach(Q,oe=this){for(let me of Xe(this,F,Fi).call(this)){let Te=ye(this,j)[me],S=Xe(this,F,Rt).call(this,Te)?Te.__staleWhileFetching:Te;S!==void 0&&Q.call(oe,S,ye(this,L)[me],this)}}purgeStale(){let Q=!1;for(let oe of Xe(this,F,Fi).call(this,{allowStale:!0}))ye(this,W).call(this,oe)&&(this.delete(ye(this,L)[oe]),Q=!0);return Q}dump(){let Q=[];for(let oe of Xe(this,F,Ui).call(this,{allowStale:!0})){let me=ye(this,L)[oe],Te=ye(this,j)[oe],S=Xe(this,F,Rt).call(this,Te)?Te.__staleWhileFetching:Te;if(S===void 0||me===void 0)continue;let m={value:S};if(ye(this,N)&&ye(this,re)){m.ttl=ye(this,N)[oe];let h=e.now()-ye(this,re)[oe];m.start=Math.floor(Date.now()-h)}ye(this,ne)&&(m.size=ye(this,ne)[oe]),Q.unshift([me,m])}return Q}load(Q){this.clear();for(let[oe,me]of Q){if(me.start){let Te=Date.now()-me.start;me.start=e.now()-Te}this.set(oe,me.value,me)}}set(Q,oe,me={}){var Ce,Ue,We,De,He;if(oe===void 0)return this.delete(Q),this;let{ttl:Te=this.ttl,start:S,noDisposeOnSet:m=this.noDisposeOnSet,sizeCalculation:h=this.sizeCalculation,status:E}=me,{noUpdateTTL:O=this.noUpdateTTL}=me,te=ye(this,le).call(this,Q,oe,me.size||0,h);if(this.maxEntrySize&&te>this.maxEntrySize)return E&&(E.set="miss",E.maxEntrySizeExceeded=!0),this.delete(Q),this;let he=ye(this,T)===0?void 0:ye(this,C).get(Q);if(he===void 0)he=ye(this,T)===0?ye(this,M):ye(this,$).length!==0?ye(this,$).pop():ye(this,T)===ye(this,v)?Xe(this,F,Du).call(this,!1):ye(this,T),ye(this,L)[he]=Q,ye(this,j)[he]=oe,ye(this,C).set(Q,he),ye(this,R)[ye(this,M)]=he,ye(this,U)[he]=ye(this,M),Ze(this,M,he),Vl(this,T)._++,ye(this,ce).call(this,he,te,E),E&&(E.set="add"),O=!1;else{Xe(this,F,za).call(this,he);let ze=ye(this,j)[he];if(oe!==ze){if(ye(this,G)&&Xe(this,F,Rt).call(this,ze)){ze.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:_t}=ze;_t!==void 0&&!m&&(ye(this,fe)&&((Ce=ye(this,_))==null||Ce.call(this,_t,Q,"set")),ye(this,pe)&&((Ue=ye(this,Z))==null||Ue.push([_t,Q,"set"])))}else m||(ye(this,fe)&&((We=ye(this,_))==null||We.call(this,ze,Q,"set")),ye(this,pe)&&((De=ye(this,Z))==null||De.push([ze,Q,"set"])));if(ye(this,X).call(this,he),ye(this,ce).call(this,he,te,E),ye(this,j)[he]=oe,E){E.set="replace";let _t=ze&&Xe(this,F,Rt).call(this,ze)?ze.__staleWhileFetching:ze;_t!==void 0&&(E.oldValue=_t)}}else E&&(E.set="update")}if(Te!==0&&!ye(this,N)&&Xe(this,F,rg).call(this),ye(this,N)&&(O||ye(this,K).call(this,he,Te,S),E&&ye(this,ee).call(this,E,he)),!m&&ye(this,pe)&&ye(this,Z)){let ze=ye(this,Z),_t;for(;_t=ze==null?void 0:ze.shift();)(He=ye(this,y))==null||He.call(this,..._t)}return this}pop(){var Q;try{for(;ye(this,T);){let oe=ye(this,j)[ye(this,I)];if(Xe(this,F,Du).call(this,!0),Xe(this,F,Rt).call(this,oe)){if(oe.__staleWhileFetching)return oe.__staleWhileFetching}else if(oe!==void 0)return oe}}finally{if(ye(this,pe)&&ye(this,Z)){let oe=ye(this,Z),me;for(;me=oe==null?void 0:oe.shift();)(Q=ye(this,y))==null||Q.call(this,...me)}}}has(Q,oe={}){let{updateAgeOnHas:me=this.updateAgeOnHas,status:Te}=oe,S=ye(this,C).get(Q);if(S!==void 0){let m=ye(this,j)[S];if(Xe(this,F,Rt).call(this,m)&&m.__staleWhileFetching===void 0)return!1;if(ye(this,W).call(this,S))Te&&(Te.has="stale",ye(this,ee).call(this,Te,S));else return me&&ye(this,Se).call(this,S),Te&&(Te.has="hit",ye(this,ee).call(this,Te,S)),!0}else Te&&(Te.has="miss");return!1}peek(Q,oe={}){let{allowStale:me=this.allowStale}=oe,Te=ye(this,C).get(Q);if(Te!==void 0&&(me||!ye(this,W).call(this,Te))){let S=ye(this,j)[Te];return Xe(this,F,Rt).call(this,S)?S.__staleWhileFetching:S}}async fetch(Q,oe={}){let{allowStale:me=this.allowStale,updateAgeOnGet:Te=this.updateAgeOnGet,noDeleteOnStaleGet:S=this.noDeleteOnStaleGet,ttl:m=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:E=0,sizeCalculation:O=this.sizeCalculation,noUpdateTTL:te=this.noUpdateTTL,noDeleteOnFetchRejection:he=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Ce=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ue=this.ignoreFetchAbort,allowStaleOnFetchAbort:We=this.allowStaleOnFetchAbort,context:De,forceRefresh:He=!1,status:ze,signal:_t}=oe;if(!ye(this,G))return ze&&(ze.fetch="get"),this.get(Q,{allowStale:me,updateAgeOnGet:Te,noDeleteOnStaleGet:S,status:ze});let Xt={allowStale:me,updateAgeOnGet:Te,noDeleteOnStaleGet:S,ttl:m,noDisposeOnSet:h,size:E,sizeCalculation:O,noUpdateTTL:te,noDeleteOnFetchRejection:he,allowStaleOnFetchRejection:Ce,allowStaleOnFetchAbort:We,ignoreFetchAbort:Ue,status:ze,signal:_t},Lt=ye(this,C).get(Q);if(Lt===void 0){ze&&(ze.fetch="miss");let qt=Xe(this,F,Uu).call(this,Q,Lt,Xt,De);return qt.__returned=qt}else{let qt=ye(this,j)[Lt];if(Xe(this,F,Rt).call(this,qt)){let ba=me&&qt.__staleWhileFetching!==void 0;return ze&&(ze.fetch="inflight",ba&&(ze.returnedStale=!0)),ba?qt.__staleWhileFetching:qt.__returned=qt}let or=ye(this,W).call(this,Lt);if(!He&&!or)return ze&&(ze.fetch="hit"),Xe(this,F,za).call(this,Lt),Te&&ye(this,Se).call(this,Lt),ze&&ye(this,ee).call(this,ze,Lt),qt;let Qt=Xe(this,F,Uu).call(this,Q,Lt,Xt,De),po=Qt.__staleWhileFetching!==void 0&&me;return ze&&(ze.fetch=or?"stale":"refresh",po&&or&&(ze.returnedStale=!0)),po?Qt.__staleWhileFetching:Qt.__returned=Qt}}get(Q,oe={}){let{allowStale:me=this.allowStale,updateAgeOnGet:Te=this.updateAgeOnGet,noDeleteOnStaleGet:S=this.noDeleteOnStaleGet,status:m}=oe,h=ye(this,C).get(Q);if(h!==void 0){let E=ye(this,j)[h],O=Xe(this,F,Rt).call(this,E);return m&&ye(this,ee).call(this,m,h),ye(this,W).call(this,h)?(m&&(m.get="stale"),O?(m&&me&&E.__staleWhileFetching!==void 0&&(m.returnedStale=!0),me?E.__staleWhileFetching:void 0):(S||this.delete(Q),m&&me&&(m.returnedStale=!0),me?E:void 0)):(m&&(m.get="hit"),O?E.__staleWhileFetching:(Xe(this,F,za).call(this,h),Te&&ye(this,Se).call(this,h),E))}else m&&(m.get="miss")}delete(Q){var me,Te,S,m;let oe=!1;if(ye(this,T)!==0){let h=ye(this,C).get(Q);if(h!==void 0)if(oe=!0,ye(this,T)===1)this.clear();else{ye(this,X).call(this,h);let E=ye(this,j)[h];Xe(this,F,Rt).call(this,E)?E.__abortController.abort(new Error("deleted")):(ye(this,fe)||ye(this,pe))&&(ye(this,fe)&&((me=ye(this,_))==null||me.call(this,E,Q,"delete")),ye(this,pe)&&((Te=ye(this,Z))==null||Te.push([E,Q,"delete"]))),ye(this,C).delete(Q),ye(this,L)[h]=void 0,ye(this,j)[h]=void 0,h===ye(this,M)?Ze(this,M,ye(this,U)[h]):h===ye(this,I)?Ze(this,I,ye(this,R)[h]):(ye(this,R)[ye(this,U)[h]]=ye(this,R)[h],ye(this,U)[ye(this,R)[h]]=ye(this,U)[h]),Vl(this,T)._--,ye(this,$).push(h)}}if(ye(this,pe)&&((S=ye(this,Z))!=null&&S.length)){let h=ye(this,Z),E;for(;E=h==null?void 0:h.shift();)(m=ye(this,y))==null||m.call(this,...E)}return oe}clear(){var Q,oe,me;for(let Te of Xe(this,F,Fi).call(this,{allowStale:!0})){let S=ye(this,j)[Te];if(Xe(this,F,Rt).call(this,S))S.__abortController.abort(new Error("deleted"));else{let m=ye(this,L)[Te];ye(this,fe)&&((Q=ye(this,_))==null||Q.call(this,S,m,"delete")),ye(this,pe)&&((oe=ye(this,Z))==null||oe.push([S,m,"delete"]))}}if(ye(this,C).clear(),ye(this,j).fill(void 0),ye(this,L).fill(void 0),ye(this,N)&&ye(this,re)&&(ye(this,N).fill(0),ye(this,re).fill(0)),ye(this,ne)&&ye(this,ne).fill(0),Ze(this,I,0),Ze(this,M,0),ye(this,$).length=0,Ze(this,A,0),Ze(this,T,0),ye(this,pe)&&ye(this,Z)){let Te=ye(this,Z),S;for(;S=Te==null?void 0:Te.shift();)(me=ye(this,y))==null||me.call(this,...S)}}},v=new WeakMap,w=new WeakMap,_=new WeakMap,y=new WeakMap,x=new WeakMap,T=new WeakMap,A=new WeakMap,C=new WeakMap,L=new WeakMap,j=new WeakMap,R=new WeakMap,U=new WeakMap,I=new WeakMap,M=new WeakMap,$=new WeakMap,Z=new WeakMap,ne=new WeakMap,re=new WeakMap,N=new WeakMap,fe=new WeakMap,G=new WeakMap,pe=new WeakMap,F=new WeakSet,rg=function(){let Q=new c(ye(this,v)),oe=new c(ye(this,v));Ze(this,N,Q),Ze(this,re,oe),Ze(this,K,(S,m,h=e.now())=>{if(oe[S]=m!==0?h:0,Q[S]=m,m!==0&&this.ttlAutopurge){let E=setTimeout(()=>{ye(this,W).call(this,S)&&this.delete(ye(this,L)[S])},m+1);E.unref&&E.unref()}}),Ze(this,Se,S=>{oe[S]=Q[S]!==0?e.now():0}),Ze(this,ee,(S,m)=>{if(Q[m]){let h=Q[m],E=oe[m];S.ttl=h,S.start=E,S.now=me||Te();let O=S.now-E;S.remainingTTL=h-O}});let me=0,Te=()=>{let S=e.now();if(this.ttlResolution>0){me=S;let m=setTimeout(()=>me=0,this.ttlResolution);m.unref&&m.unref()}return S};this.getRemainingTTL=S=>{let m=ye(this,C).get(S);if(m===void 0)return 0;let h=Q[m],E=oe[m];if(h===0||E===0)return 1/0;let O=(me||Te())-E;return h-O},Ze(this,W,S=>Q[S]!==0&&oe[S]!==0&&(me||Te())-oe[S]>Q[S])},Se=new WeakMap,ee=new WeakMap,K=new WeakMap,W=new WeakMap,pE=function(){let Q=new c(ye(this,v));Ze(this,A,0),Ze(this,ne,Q),Ze(this,X,oe=>{Ze(this,A,ye(this,A)-Q[oe]),Q[oe]=0}),Ze(this,le,(oe,me,Te,S)=>{if(Xe(this,F,Rt).call(this,me))return 0;if(!l(Te))if(S){if(typeof S!="function")throw new TypeError("sizeCalculation must be a function");if(Te=S(me,oe),!l(Te))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Te}),Ze(this,ce,(oe,me,Te)=>{if(Q[oe]=me,ye(this,w)){let S=ye(this,w)-Q[oe];for(;ye(this,A)>S;)Xe(this,F,Du).call(this,!0)}Ze(this,A,ye(this,A)+Q[oe]),Te&&(Te.entrySize=me,Te.totalCalculatedSize=ye(this,A))})},X=new WeakMap,ce=new WeakMap,le=new WeakMap,Ui=function*({allowStale:Q=this.allowStale}={}){if(ye(this,T))for(let oe=ye(this,M);!(!Xe(this,F,ng).call(this,oe)||((Q||!ye(this,W).call(this,oe))&&(yield oe),oe===ye(this,I)));)oe=ye(this,U)[oe]},Fi=function*({allowStale:Q=this.allowStale}={}){if(ye(this,T))for(let oe=ye(this,I);!(!Xe(this,F,ng).call(this,oe)||((Q||!ye(this,W).call(this,oe))&&(yield oe),oe===ye(this,M)));)oe=ye(this,R)[oe]},ng=function(Q){return Q!==void 0&&ye(this,C).get(ye(this,L)[Q])===Q},Du=function(Q){var S,m;let oe=ye(this,I),me=ye(this,L)[oe],Te=ye(this,j)[oe];return ye(this,G)&&Xe(this,F,Rt).call(this,Te)?Te.__abortController.abort(new Error("evicted")):(ye(this,fe)||ye(this,pe))&&(ye(this,fe)&&((S=ye(this,_))==null||S.call(this,Te,me,"evict")),ye(this,pe)&&((m=ye(this,Z))==null||m.push([Te,me,"evict"]))),ye(this,X).call(this,oe),Q&&(ye(this,L)[oe]=void 0,ye(this,j)[oe]=void 0,ye(this,$).push(oe)),ye(this,T)===1?(Ze(this,I,Ze(this,M,0)),ye(this,$).length=0):Ze(this,I,ye(this,R)[oe]),ye(this,C).delete(me),Vl(this,T)._--,oe},Uu=function(Q,oe,me,Te){let S=oe===void 0?void 0:ye(this,j)[oe];if(Xe(this,F,Rt).call(this,S))return S;let m=new i,{signal:h}=me;h==null||h.addEventListener("abort",()=>m.abort(h.reason),{signal:m.signal});let E={signal:m.signal,options:me,context:Te},O=(De,He=!1)=>{let{aborted:ze}=m.signal,_t=me.ignoreFetchAbort&&De!==void 0;if(me.status&&(ze&&!He?(me.status.fetchAborted=!0,me.status.fetchError=m.signal.reason,_t&&(me.status.fetchAbortIgnored=!0)):me.status.fetchResolved=!0),ze&&!_t&&!He)return he(m.signal.reason);let Xt=Ue;return ye(this,j)[oe]===Ue&&(De===void 0?Xt.__staleWhileFetching?ye(this,j)[oe]=Xt.__staleWhileFetching:this.delete(Q):(me.status&&(me.status.fetchUpdated=!0),this.set(Q,De,E.options))),De},te=De=>(me.status&&(me.status.fetchRejected=!0,me.status.fetchError=De),he(De)),he=De=>{let{aborted:He}=m.signal,ze=He&&me.allowStaleOnFetchAbort,_t=ze||me.allowStaleOnFetchRejection,Xt=_t||me.noDeleteOnFetchRejection,Lt=Ue;if(ye(this,j)[oe]===Ue&&(!Xt||Lt.__staleWhileFetching===void 0?this.delete(Q):ze||(ye(this,j)[oe]=Lt.__staleWhileFetching)),_t)return me.status&&Lt.__staleWhileFetching!==void 0&&(me.status.returnedStale=!0),Lt.__staleWhileFetching;if(Lt.__returned===Lt)throw De},Ce=(De,He)=>{var _t;let ze=(_t=ye(this,x))==null?void 0:_t.call(this,Q,S,E);ze&&ze instanceof Promise&&ze.then(Xt=>De(Xt===void 0?void 0:Xt),He),m.signal.addEventListener("abort",()=>{(!me.ignoreFetchAbort||me.allowStaleOnFetchAbort)&&(De(void 0),me.allowStaleOnFetchAbort&&(De=Xt=>O(Xt,!0)))})};me.status&&(me.status.fetchDispatched=!0);let Ue=new Promise(Ce).then(O,te),We=Object.assign(Ue,{__abortController:m,__staleWhileFetching:S,__returned:void 0});return oe===void 0?(this.set(Q,We,{...E.options,status:void 0}),oe=ye(this,C).get(Q)):ye(this,j)[oe]=We,We},Rt=function(Q){if(!ye(this,G))return!1;let oe=Q;return!!oe&&oe instanceof Promise&&oe.hasOwnProperty("__staleWhileFetching")&&oe.__abortController instanceof i},ig=function(Q,oe){ye(this,U)[oe]=Q,ye(this,R)[Q]=oe},za=function(Q){Q!==ye(this,M)&&(Q===ye(this,I)?Ze(this,I,ye(this,R)[Q]):Xe(this,F,ig).call(this,ye(this,U)[Q],ye(this,R)[Q]),Xe(this,F,ig).call(this,ye(this,M),Q),Ze(this,M,Q))},Y);t.LRUCache=d}),Li=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.ContainerIterator=t.Container=t.Base=void 0;var e=class{constructor(s=0){this.iteratorType=s}equals(s){return this.o===s.o}};t.ContainerIterator=e;var r=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};t.Base=r;var n=class extends r{};t.Container=n}),kL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=Li(),r=class extends e.Base{constructor(s=[]){super(),this.S=[];let i=this;s.forEach(function(a){i.push(a)})}clear(){this.i=0,this.S=[]}push(s){return this.S.push(s),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},n=r;t.default=n}),PL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=Li(),r=class extends e.Base{constructor(s=[]){super(),this.j=0,this.q=[];let i=this;s.forEach(function(a){i.push(a)})}clear(){this.q=[],this.i=this.j=0}push(s){let i=this.q.length;if(this.j/i>.5&&this.j+this.i>=i&&i>4096){let a=this.i;for(let o=0;o{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=Li(),r=class extends e.Base{constructor(s=[],i=function(o,l){return o>l?-1:o>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,o)}m(s){let i=this.C[s];for(;s>0;){let a=s-1>>1,o=this.C[a];if(this.v(o,i)<=0)break;this.C[s]=o,s=a}this.C[s]=i}k(s,i){let a=this.C[s];for(;s0&&(o=l,u=this.C[l]),this.v(u,a)>=0)break;this.C[s]=u,s=o}this.C[s]=a}clear(){this.i=0,this.C.length=0}push(s){this.C.push(s),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let s=this.C[0],i=this.C.pop();return this.i-=1,this.i&&(this.C[0]=i,this.k(0,this.i>>1)),s}top(){return this.C[0]}find(s){return this.C.indexOf(s)>=0}remove(s){let i=this.C.indexOf(s);return i<0?!1:(i===0?this.pop():i===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(i,1,this.C.pop()),this.i-=1,this.m(i),this.k(i,this.i>>1)),!0)}updateItem(s){let i=this.C.indexOf(s);return i<0?!1:(this.m(i),this.k(i,this.i>>1),!0)}toArray(){return[...this.C]}},n=r;t.default=n}),Am=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=Li(),r=class extends e.Container{},n=r;t.default=n}),Ri=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.throwIteratorAccessError=e;function e(){throw new RangeError("Iterator access denied!")}}),gE=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.RandomIterator=void 0;var e=Li(),r=Ri(),n=class extends e.ContainerIterator{constructor(s,i){super(i),this.o=s,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,r.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,r.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,r.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,r.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(s){this.container.setElementByPos(this.o,s)}};t.RandomIterator=n}),LL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=n(Am()),r=gE();function n(o){return o&&o.t?o:{default:o}}var s=class mE extends r.RandomIterator{constructor(l,u,c){super(l,c),this.container=u}copy(){return new mE(this.o,this.container,this.iteratorType)}},i=class extends e.default{constructor(o=[],l=!0){if(super(),Array.isArray(o))this.J=l?[...o]:o,this.i=o.length;else{this.J=[];let u=this;o.forEach(function(c){u.pushBack(c)})}}clear(){this.i=0,this.J.length=0}begin(){return new s(0,this)}end(){return new s(this.i,this)}rBegin(){return new s(this.i-1,this,1)}rEnd(){return new s(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;return this.J[o]}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;return this.J.splice(o,1),this.i-=1,this.i}eraseElementByValue(o){let l=0;for(let u=0;uthis.i-1)throw new RangeError;this.J[o]=l}insert(o,l,u=1){if(o<0||o>this.i)throw new RangeError;return this.J.splice(o,0,...new Array(u).fill(l)),this.i+=u,this.i}find(o){for(let l=0;l{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=s(Am()),r=Li(),n=Ri();function s(l){return l&&l.t?l:{default:l}}var i=class bE extends r.ContainerIterator{constructor(u,c,f,d){super(d),this.o=u,this.h=c,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.l}set pointer(u){this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.l=u}copy(){return new bE(this.o,this.h,this.container,this.iteratorType)}},a=class extends e.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let u=this;l.forEach(function(c){u.pushBack(c)})}V(l){let{L:u,B:c}=l;u.B=c,c.L=u,l===this.p&&(this.p=c),l===this._&&(this._=u),this.i-=1}G(l,u){let c=u.B,f={l,L:u,B:c};u.B=f,c.L=f,u===this.h&&(this.p=f),c===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;return u.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;return this.V(u),this.i}eraseElementByValue(l){let u=this.p;for(;u!==this.h;)u.l===l&&this.V(u),u=u.B;return this.i}eraseElementByIterator(l){let u=l.o;return u===this.h&&(0,n.throwIteratorAccessError)(),l=l.next(),this.V(u),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,u){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;c.l=u}insert(l,u,c=1){if(l<0||l>this.i)throw new RangeError;if(c<=0)return this.i;if(l===0)for(;c--;)this.pushFront(u);else if(l===this.i)for(;c--;)this.pushBack(u);else{let f=this.p;for(let p=1;p{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=n(Am()),r=gE();function n(o){return o&&o.t?o:{default:o}}var s=class yE extends r.RandomIterator{constructor(l,u,c){super(l,c),this.container=u}copy(){return new yE(this.o,this.container,this.iteratorType)}},i=class extends e.default{constructor(o=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let u=(()=>{if(typeof o.length=="number")return o.length;if(typeof o.size=="number")return o.size;if(typeof o.size=="function")return o.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(u/this.F),1);for(let d=0;d>1)-(c>>1),this.D=this.N=this.F-u%this.F>>1;let f=this;o.forEach(function(d){f.pushBack(d)})}T(){let o=[],l=Math.max(this.P>>1,1);for(let u=0;u>1}begin(){return new s(0,this)}end(){return new s(this.i,this)}rBegin(){return new s(this.i-1,this,1)}rEnd(){return new s(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(o){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,o}pushFront(o){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=o,this.i}popFront(){if(this.i===0)return;let o=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:u}=this.O(o);return this.A[l][u]}setElementByPos(o,l){if(o<0||o>this.i-1)throw new RangeError;let{curNodeBucketIndex:u,curNodePointerIndex:c}=this.O(o);this.A[u][c]=l}insert(o,l,u=1){if(o<0||o>this.i)throw new RangeError;if(o===0)for(;u--;)this.pushFront(l);else if(o===this.i)for(;u--;)this.pushBack(l);else{let c=[];for(let f=o;fthis.i-1)throw new RangeError;if(o===0)this.popFront();else if(o===this.i-1)this.popBack();else{let l=[];for(let c=o+1;co;)this.popBack();return this.i}sort(o){let l=[];for(let u=0;u{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.TreeNodeEnableIndex=t.TreeNode=void 0;var e=class{constructor(n,s){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=n,this.l=s}L(){let n=this;if(n.ee===1&&n.tt.tt===n)n=n.W;else if(n.U)for(n=n.U;n.W;)n=n.W;else{let s=n.tt;for(;s.U===n;)n=s,s=n.tt;n=s}return n}B(){let n=this;if(n.W){for(n=n.W;n.U;)n=n.U;return n}else{let s=n.tt;for(;s.W===n;)n=s,s=n.tt;return n.W!==s?s:n}}te(){let n=this.tt,s=this.W,i=s.U;return n.tt===this?n.tt=s:n.U===this?n.U=s:n.W=s,s.tt=n,s.U=this,this.tt=s,this.W=i,i&&(i.tt=this),s}se(){let n=this.tt,s=this.U,i=s.W;return n.tt===this?n.tt=s:n.U===this?n.U=s:n.W=s,s.tt=n,s.W=this,this.tt=s,this.U=i,i&&(i.tt=this),s}};t.TreeNode=e;var r=class extends e{constructor(){super(...arguments),this.rt=1}te(){let n=super.te();return this.ie(),n.ie(),n}se(){let n=super.se();return this.ie(),n.ie(),n}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};t.TreeNodeEnableIndex=r}),wE=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=$L(),r=Li(),n=Ri(),s=class extends r.Container{constructor(a=function(l,u){return lu?1:0},o=!1){super(),this.Y=void 0,this.v=a,o?(this.re=e.TreeNodeEnableIndex,this.M=function(l,u,c){let f=this.ne(l,u,c);if(f){let d=f.tt;for(;d!==this.h;)d.rt+=1,d=d.tt;let p=this.he(f);if(p){let{parentNode:g,grandParent:b,curNode:v}=p;g.ie(),b.ie(),v.ie()}}return this.i},this.V=function(l){let u=this.fe(l);for(;u!==this.h;)u.rt-=1,u=u.tt}):(this.re=e.TreeNode,this.M=function(l,u,c){let f=this.ne(l,u,c);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(a,o){let l=this.h;for(;a;){let u=this.v(a.u,o);if(u<0)a=a.W;else if(u>0)l=a,a=a.U;else return a}return l}Z(a,o){let l=this.h;for(;a;)this.v(a.u,o)<=0?a=a.W:(l=a,a=a.U);return l}$(a,o){let l=this.h;for(;a;){let u=this.v(a.u,o);if(u<0)l=a,a=a.W;else if(u>0)a=a.U;else return a}return l}rr(a,o){let l=this.h;for(;a;)this.v(a.u,o)<0?(l=a,a=a.W):a=a.U;return l}ue(a){for(;;){let o=a.tt;if(o===this.h)return;if(a.ee===1){a.ee=0;return}if(a===o.U){let l=o.W;if(l.ee===1)l.ee=0,o.ee=1,o===this.Y?this.Y=o.te():o.te();else if(l.W&&l.W.ee===1){l.ee=o.ee,o.ee=0,l.W.ee=0,o===this.Y?this.Y=o.te():o.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,a=o)}else{let l=o.U;if(l.ee===1)l.ee=0,o.ee=1,o===this.Y?this.Y=o.se():o.se();else if(l.U&&l.U.ee===1){l.ee=o.ee,o.ee=0,l.U.ee=0,o===this.Y?this.Y=o.se():o.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,a=o)}}}fe(a){if(this.i===1)return this.clear(),this.h;let o=a;for(;o.U||o.W;){if(o.W)for(o=o.W;o.U;)o=o.U;else o=o.U;[a.u,o.u]=[o.u,a.u],[a.l,o.l]=[o.l,a.l],a=o}this.h.U===o?this.h.U=o.tt:this.h.W===o&&(this.h.W=o.tt),this.ue(o);let l=o.tt;return o===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(a,o){return a===void 0?!1:this.oe(a.U,o)||o(a)?!0:this.oe(a.W,o)}he(a){for(;;){let o=a.tt;if(o.ee===0)return;let l=o.tt;if(o===l.U){let u=l.W;if(u&&u.ee===1){if(u.ee=o.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===o.W){if(a.ee=0,a.U&&(a.U.tt=o),a.W&&(a.W.tt=l),o.W=a.U,l.U=a.W,a.U=o,a.W=l,l===this.Y)this.Y=a,this.h.tt=a;else{let c=l.tt;c.U===l?c.U=a:c.W=a}return a.tt=l.tt,o.tt=a,l.tt=a,l.ee=1,{parentNode:o,grandParent:l,curNode:a}}else o.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let u=l.U;if(u&&u.ee===1){if(u.ee=o.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===o.U){if(a.ee=0,a.U&&(a.U.tt=l),a.W&&(a.W.tt=o),l.W=a.U,o.U=a.W,a.U=l,a.W=o,l===this.Y)this.Y=a,this.h.tt=a;else{let c=l.tt;c.U===l?c.U=a:c.W=a}return a.tt=l.tt,o.tt=a,l.tt=a,l.ee=1,{parentNode:o,grandParent:l,curNode:a}}else o.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(a,o,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(a,o),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let u,c=this.h.U,f=this.v(c.u,a);if(f===0){c.l=o;return}else if(f>0)c.U=new this.re(a,o),c.U.tt=c,u=c.U,this.h.U=u;else{let d=this.h.W,p=this.v(d.u,a);if(p===0){d.l=o;return}else if(p<0)d.W=new this.re(a,o),d.W.tt=d,u=d.W,this.h.W=u;else{if(l!==void 0){let g=l.o;if(g!==this.h){let b=this.v(g.u,a);if(b===0){g.l=o;return}else if(b>0){let v=g.L(),w=this.v(v.u,a);if(w===0){v.l=o;return}else w<0&&(u=new this.re(a,o),v.W===void 0?(v.W=u,u.tt=v):(g.U=u,u.tt=g))}}}if(u===void 0)for(u=this.Y;;){let g=this.v(u.u,a);if(g>0){if(u.U===void 0){u.U=new this.re(a,o),u.U.tt=u,u=u.U;break}u=u.U}else if(g<0){if(u.W===void 0){u.W=new this.re(a,o),u.W.tt=u,u=u.W;break}u=u.W}else{u.l=o;return}}}}return this.i+=1,u}I(a,o){for(;a;){let l=this.v(a.u,o);if(l<0)a=a.W;else if(l>0)a=a.U;else return a}return a||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(a,o){let l=a.o;if(l===this.h&&(0,n.throwIteratorAccessError)(),this.i===1)return l.u=o,!0;if(l===this.h.U)return this.v(l.B().u,o)>0?(l.u=o,!0):!1;if(l===this.h.W)return this.v(l.L().u,o)<0?(l.u=o,!0):!1;let u=l.L().u;if(this.v(u,o)>=0)return!1;let c=l.B().u;return this.v(c,o)<=0?!1:(l.u=o,!0)}eraseElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let o=0,l=this;return this.oe(this.Y,function(u){return a===o?(l.V(u),!0):(o+=1,!1)}),this.i}eraseElementByKey(a){if(this.i===0)return!1;let o=this.I(this.Y,a);return o===this.h?!1:(this.V(o),!0)}eraseElementByIterator(a){let o=a.o;o===this.h&&(0,n.throwIteratorAccessError)();let l=o.W===void 0;return a.iteratorType===0?l&&a.next():(!l||o.U===void 0)&&a.next(),this.V(o),a}forEach(a){let o=0;for(let l of this)a(l,o++,this)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let o,l=0;for(let u of this){if(l===a){o=u;break}l+=1}return o}getHeight(){if(this.i===0)return 0;let a=function(o){return o?Math.max(a(o.U),a(o.W))+1:0};return a(this.Y)}},i=s;t.default=i}),vE=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=Li(),r=Ri(),n=class extends e.ContainerIterator{constructor(i,a,o){super(o),this.o=i,this.h=a,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let i=this.o,a=this.h.tt;if(i===this.h)return a?a.rt-1:0;let o=0;for(i.U&&(o+=i.U.rt);i!==a;){let l=i.tt;i===l.W&&(o+=1,l.U&&(o+=l.U.rt)),i=l}return o}},s=n;t.default=s}),NL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=s(wE()),r=s(vE()),n=Ri();function s(l){return l&&l.t?l:{default:l}}var i=class _E extends r.default{constructor(u,c,f,d){super(u,c,d),this.container=f}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new _E(this.o,this.h,this.container,this.iteratorType)}},a=class extends e.default{constructor(l=[],u,c){super(u,c);let f=this;l.forEach(function(d){f.insert(d)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,u){return this.M(l,void 0,u)}find(l){let u=this.I(this.Y,l);return new i(u,this.h,this)}lowerBound(l){let u=this.X(this.Y,l);return new i(u,this.h,this)}upperBound(l){let u=this.Z(this.Y,l);return new i(u,this.h,this)}reverseLowerBound(l){let u=this.$(this.Y,l);return new i(u,this.h,this)}reverseUpperBound(l){let u=this.rr(this.Y,l);return new i(u,this.h,this)}union(l){let u=this;return l.forEach(function(c){u.insert(c)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},o=a;t.default=o}),DL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=s(wE()),r=s(vE()),n=Ri();function s(l){return l&&l.t?l:{default:l}}var i=class EE extends r.default{constructor(u,c,f,d){super(u,c,d),this.container=f}get pointer(){this.o===this.h&&(0,n.throwIteratorAccessError)();let u=this;return new Proxy([],{get(c,f){if(f==="0")return u.o.u;if(f==="1")return u.o.l},set(c,f,d){if(f!=="1")throw new TypeError("props must be 1");return u.o.l=d,!0}})}copy(){return new EE(this.o,this.h,this.container,this.iteratorType)}},a=class extends e.default{constructor(l=[],u,c){super(u,c);let f=this;l.forEach(function(d){f.setElement(d[0],d[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let u=this.X(this.Y,l);return new i(u,this.h,this)}upperBound(l){let u=this.Z(this.Y,l);return new i(u,this.h,this)}reverseLowerBound(l){let u=this.$(this.Y,l);return new i(u,this.h,this)}reverseUpperBound(l){let u=this.rr(this.Y,l);return new i(u,this.h,this)}setElement(l,u,c){return this.M(l,u,c)}find(l){let u=this.I(this.Y,l);return new i(u,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let u=this;return l.forEach(function(c){u.setElement(c[0],c[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},o=a;t.default=o}),SE=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=e;function e(r){let n=typeof r;return n==="object"&&r!==null||n==="function"}}),xE=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.HashContainerIterator=t.HashContainer=void 0;var e=Li(),r=s(SE()),n=Ri();function s(o){return o&&o.t?o:{default:o}}var i=class extends e.ContainerIterator{constructor(o,l,u){super(u),this.o=o,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this})}};t.HashContainerIterator=i;var a=class extends e.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(o){let{L:l,B:u}=o;l.B=u,u.L=l,o===this.p&&(this.p=u),o===this._&&(this._=l),this.i-=1}M(o,l,u){u===void 0&&(u=(0,r.default)(o));let c;if(u){let f=o[this.HASH_TAG];if(f!==void 0)return this.H[f].l=l,this.i;Object.defineProperty(o,this.HASH_TAG,{value:this.H.length,configurable:!0}),c={u:o,l,L:this._,B:this.h},this.H.push(c)}else{let f=this.g[o];if(f)return f.l=l,this.i;c={u:o,l,L:this._,B:this.h},this.g[o]=c}return this.i===0?(this.p=c,this.h.B=c):this._.B=c,this._=c,this.h.L=c,++this.i}I(o,l){if(l===void 0&&(l=(0,r.default)(o)),l){let u=o[this.HASH_TAG];return u===void 0?this.h:this.H[u]}else return this.g[o]||this.h}clear(){let o=this.HASH_TAG;this.H.forEach(function(l){delete l.u[o]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(o,l){let u;if(l===void 0&&(l=(0,r.default)(o)),l){let c=o[this.HASH_TAG];if(c===void 0)return!1;delete o[this.HASH_TAG],u=this.H[c],delete this.H[c]}else{if(u=this.g[o],u===void 0)return!1;delete this.g[o]}return this.V(u),!0}eraseElementByIterator(o){let l=o.o;return l===this.h&&(0,n.throwIteratorAccessError)(),this.V(l),o.next()}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let l=this.p;for(;o--;)l=l.B;return this.V(l),this.i}};t.HashContainer=a}),UL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=xE(),r=Ri(),n=class TE extends e.HashContainerIterator{constructor(o,l,u,c){super(o,l,c),this.container=u}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new TE(this.o,this.h,this.container,this.iteratorType)}},s=class extends e.HashContainer{constructor(a=[]){super();let o=this;a.forEach(function(l){o.insert(l)})}begin(){return new n(this.p,this.h,this)}end(){return new n(this.h,this.h,this)}rBegin(){return new n(this._,this.h,this,1)}rEnd(){return new n(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(a,o){return this.M(a,void 0,o)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let o=this.p;for(;a--;)o=o.B;return o.u}find(a,o){let l=this.I(a,o);return new n(l,this.h,this)}forEach(a){let o=0,l=this.p;for(;l!==this.h;)a(l.u,o++,this),l=l.B}[Symbol.iterator](){return(function*(){let a=this.p;for(;a!==this.h;)yield a.u,a=a.B}).bind(this)()}},i=s;t.default=i}),FL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=xE(),r=s(SE()),n=Ri();function s(l){return l&&l.t?l:{default:l}}var i=class AE extends e.HashContainerIterator{constructor(u,c,f,d){super(u,c,d),this.container=f}get pointer(){this.o===this.h&&(0,n.throwIteratorAccessError)();let u=this;return new Proxy([],{get(c,f){if(f==="0")return u.o.u;if(f==="1")return u.o.l},set(c,f,d){if(f!=="1")throw new TypeError("props must be 1");return u.o.l=d,!0}})}copy(){return new AE(this.o,this.h,this.container,this.iteratorType)}},a=class extends e.HashContainer{constructor(l=[]){super();let u=this;l.forEach(function(c){u.setElement(c[0],c[1])})}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,u,c){return this.M(l,u,c)}getElementByKey(l,u){if(u===void 0&&(u=(0,r.default)(l)),u){let f=l[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let c=this.g[l];return c?c.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;return[u.u,u.l]}find(l,u){let c=this.I(l,u);return new i(c,this.h,this)}forEach(l){let u=0,c=this.p;for(;c!==this.h;)l([c.u,c.l],u++,this),c=c.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},o=a;t.default=o}),VL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"t",{value:!0}),Object.defineProperty(t,"Deque",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"HashMap",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"HashSet",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"LinkList",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"OrderedSet",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PriorityQueue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Queue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Stack",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Vector",{enumerable:!0,get:function(){return s.default}});var e=f(kL()),r=f(PL()),n=f(OL()),s=f(LL()),i=f(RL()),a=f(BL()),o=f(NL()),l=f(DL()),u=f(UL()),c=f(FL());function f(d){return d&&d.t?d:{default:d}}}),jL=Ne((t,e)=>{Pe(),Le(),Oe();var r=VL().OrderedSet,n=Ci()("number-allocator:trace"),s=Ci()("number-allocator:error");function i(o,l){this.low=o,this.high=l}i.prototype.equals=function(o){return this.low===o.low&&this.high===o.high},i.prototype.compare=function(o){return this.lowu.compare(c)),n("Create"),this.clear()}a.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},a.prototype.alloc=function(){if(this.ss.size()===0)return n("alloc():empty"),null;let o=this.ss.begin(),l=o.pointer.low,u=o.pointer.high,c=l;return c+1<=u?this.ss.updateKeyByIterator(o,new i(l+1,u)):this.ss.eraseElementByPos(0),n("alloc():"+c),c},a.prototype.use=function(o){let l=new i(o,o),u=this.ss.lowerBound(l);if(!u.equals(this.ss.end())){let c=u.pointer.low,f=u.pointer.high;return u.pointer.equals(l)?(this.ss.eraseElementByIterator(u),n("use():"+o),!0):c>o?!1:c===o?(this.ss.updateKeyByIterator(u,new i(c+1,f)),n("use():"+o),!0):f===o?(this.ss.updateKeyByIterator(u,new i(c,f-1)),n("use():"+o),!0):(this.ss.updateKeyByIterator(u,new i(o+1,f)),this.ss.insert(new i(c,o-1)),n("use():"+o),!0)}return n("use():failed"),!1},a.prototype.free=function(o){if(othis.max){s("free():"+o+" is out of range");return}let l=new i(o,o),u=this.ss.upperBound(l);if(u.equals(this.ss.end())){if(u.equals(this.ss.begin())){this.ss.insert(l);return}u.pre();let c=u.pointer.high;u.pointer.high+1===o?this.ss.updateKeyByIterator(u,new i(c,o)):this.ss.insert(l)}else if(u.equals(this.ss.begin()))if(o+1===u.pointer.low){let c=u.pointer.high;this.ss.updateKeyByIterator(u,new i(o,c))}else this.ss.insert(l);else{let c=u.pointer.low,f=u.pointer.high;u.pre();let d=u.pointer.low;u.pointer.high+1===o?o+1===c?(this.ss.eraseElementByIterator(u),this.ss.updateKeyByIterator(u,new i(d,f))):this.ss.updateKeyByIterator(u,new i(d,o)):o+1===c?(this.ss.eraseElementByIterator(u.next()),this.ss.insert(new i(o,f))):this.ss.insert(l)}n("free():"+o)},a.prototype.clear=function(){n("clear()"),this.ss.clear(),this.ss.insert(new i(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(let o of this.ss)console.log(o)},e.exports=a}),CE=Ne((t,e)=>{Pe(),Le(),Oe();var r=jL();e.exports.NumberAllocator=r}),WL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=ML(),r=CE(),n=class{constructor(s){s>0&&(this.aliasToTopic=new e.LRUCache({max:s}),this.topicToAlias={},this.numberAllocator=new r.NumberAllocator(1,s),this.max=s,this.length=0)}put(s,i){if(i===0||i>this.max)return!1;let a=this.aliasToTopic.get(i);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(i,s),this.topicToAlias[s]=i,this.numberAllocator.use(i),this.length=this.aliasToTopic.size,!0}getTopicByAlias(s){return this.aliasToTopic.get(s)}getAliasByTopic(s){let i=this.topicToAlias[s];return typeof i<"u"&&this.aliasToTopic.get(i),i}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};t.default=n}),zL=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var r=tf(),n=e(WL()),s=ua(),i=(a,o)=>{a.log("_handleConnack");let{options:l}=a,u=l.protocolVersion===5?o.reasonCode:o.returnCode;if(clearTimeout(a.connackTimer),delete a.topicAliasSend,o.properties){if(o.properties.topicAliasMaximum){if(o.properties.topicAliasMaximum>65535){a.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}o.properties.topicAliasMaximum>0&&(a.topicAliasSend=new n.default(o.properties.topicAliasMaximum))}o.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=o.properties.serverKeepAlive),o.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=o.properties.maximumPacketSize)}if(u===0)a.reconnecting=!1,a._onConnect(o);else if(u>0){let c=new s.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[u]}`,u);a.emit("error",c),a.options.reconnectOnConnackError&&a._cleanUp(!0)}};t.default=i}),HL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=(r,n,s)=>{r.log("handling pubrel packet");let i=typeof s<"u"?s:r.noop,{messageId:a}=n,o={cmd:"pubcomp",messageId:a};r.incomingStore.get(n,(l,u)=>{l?r._sendPacket(o,i):(r.emit("message",u.topic,u.payload,u),r.handleMessage(u,c=>{if(c)return i(c);r.incomingStore.del(u,r.noop),r._sendPacket(o,i)}))})};t.default=e}),qL=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(AL()),n=e(IL()),s=e(zL()),i=e(tf()),a=e(HL()),o=(l,u,c)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{Pe(),Le(),Oe();var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var r=e((la(),It(so))),n=ua(),s=class{};t.TypedEventEmitter=s,(0,n.applyMixin)(s,r.default)}),rf=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0}),t.isReactNativeBrowser=t.isWebWorker=void 0;var e=()=>{var i;return typeof window<"u"?typeof navigator<"u"&&((i=navigator.userAgent)===null||i===void 0?void 0:i.toLowerCase().indexOf(" electron/"))>-1&&vt!=null&&vt.versions?!Object.prototype.hasOwnProperty.call(vt.versions,"electron"):typeof window.document<"u":!1},r=()=>{var i,a;return!!(typeof self=="object"&&!((a=(i=self==null?void 0:self.constructor)===null||i===void 0?void 0:i.name)===null||a===void 0)&&a.includes("WorkerGlobalScope"))},n=()=>typeof navigator<"u"&&navigator.product==="ReactNative",s=e()||r()||n();t.isWebWorker=r(),t.isReactNativeBrowser=n(),t.default=s}),YL=Ne((t,e)=>{Pe(),Le(),Oe(),function(r,n){typeof t=="object"&&typeof e<"u"?n(t):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.fastUniqueNumbers={}))}(t,function(r){var n=function(p){return function(g){var b=p(g);return g.add(b),b}},s=function(p){return function(g,b){return p.set(g,b),b}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,o=a*2,l=function(p,g){return function(b){var v=g.get(b),w=v===void 0?b.size:vi)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;b.has(w);)w=Math.floor(Math.random()*i);return p(b,w)}},u=new WeakMap,c=s(u),f=l(c,u),d=n(f);r.addUniqueNumber=d,r.generateUniqueNumber=f})}),KL=Ne((t,e)=>{Pe(),Le(),Oe(),function(r,n){typeof t=="object"&&typeof e<"u"?n(t,YL()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.workerTimersBroker={},r.fastUniqueNumbers))}(t,function(r,n){var s=function(o){return o.method!==void 0&&o.method==="call"},i=function(o){return o.error===null&&typeof o.id=="number"},a=function(o){var l=new Map([[0,function(){}]]),u=new Map([[0,function(){}]]),c=new Map,f=new Worker(o);f.addEventListener("message",function(v){var w=v.data;if(s(w)){var _=w.params,y=_.timerId,x=_.timerType;if(x==="interval"){var T=l.get(y);if(typeof T=="number"){var A=c.get(T);if(A===void 0||A.timerId!==y||A.timerType!==x)throw new Error("The timer is in an undefined state.")}else if(typeof T<"u")T();else throw new Error("The timer is in an undefined state.")}else if(x==="timeout"){var C=u.get(y);if(typeof C=="number"){var L=c.get(C);if(L===void 0||L.timerId!==y||L.timerType!==x)throw new Error("The timer is in an undefined state.")}else if(typeof C<"u")C(),u.delete(y);else throw new Error("The timer is in an undefined state.")}}else if(i(w)){var j=w.id,R=c.get(j);if(R===void 0)throw new Error("The timer is in an undefined state.");var U=R.timerId,I=R.timerType;c.delete(j),I==="interval"?l.delete(U):u.delete(U)}else{var M=w.error.message;throw new Error(M)}});var d=function(v){var w=n.generateUniqueNumber(c);c.set(w,{timerId:v,timerType:"interval"}),l.set(v,w),f.postMessage({id:w,method:"clear",params:{timerId:v,timerType:"interval"}})},p=function(v){var w=n.generateUniqueNumber(c);c.set(w,{timerId:v,timerType:"timeout"}),u.set(v,w),f.postMessage({id:w,method:"clear",params:{timerId:v,timerType:"timeout"}})},g=function(v){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=n.generateUniqueNumber(l);return l.set(_,function(){v(),typeof l.get(_)=="function"&&f.postMessage({id:null,method:"set",params:{delay:w,now:performance.now(),timerId:_,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:w,now:performance.now(),timerId:_,timerType:"interval"}}),_},b=function(v){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=n.generateUniqueNumber(u);return u.set(_,v),f.postMessage({id:null,method:"set",params:{delay:w,now:performance.now(),timerId:_,timerType:"timeout"}}),_};return{clearInterval:d,clearTimeout:p,setInterval:g,setTimeout:b}};r.load=a})}),XL=Ne((t,e)=>{Pe(),Le(),Oe(),function(r,n){typeof t=="object"&&typeof e<"u"?n(t,KL()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.workerTimers={},r.workerTimersBroker))}(t,function(r,n){var s=function(f,d){var p=null;return function(){if(p!==null)return p;var g=new Blob([d],{type:"application/javascript; charset=utf-8"}),b=URL.createObjectURL(g);return p=f(b),setTimeout(function(){return URL.revokeObjectURL(b)}),p}},i=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,a=s(n.load,i),o=function(f){return a().clearInterval(f)},l=function(f){return a().clearTimeout(f)},u=function(){var f;return(f=a()).setInterval.apply(f,arguments)},c=function(){var f;return(f=a()).setTimeout.apply(f,arguments)};r.clearInterval=o,r.clearTimeout=l,r.setInterval=u,r.setTimeout=c})}),QL=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__createBinding||(Object.create?function(u,c,f,d){d===void 0&&(d=f);var p=Object.getOwnPropertyDescriptor(c,f);(!p||("get"in p?!c.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,d,p)}:function(u,c,f,d){d===void 0&&(d=f),u[d]=c[f]}),r=t&&t.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),n=t&&t.__importStar||function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&e(c,u,f);return r(c,u),c};Object.defineProperty(t,"__esModule",{value:!0});var s=n(rf()),i=XL(),a={set:i.setInterval,clear:i.clearInterval},o={set:(u,c)=>setInterval(u,c),clear:u=>clearInterval(u)},l=u=>{switch(u){case"native":return o;case"worker":return a;case"auto":default:return s.default&&!s.isWebWorker&&!s.isReactNativeBrowser?a:o}};t.default=l}),IE=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(QL()),n=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(s,i){this.destroyed=!1,this.client=s,this.timer=typeof i=="object"&&"set"in i&&"clear"in i?i:(0,r.default)(i),this.setKeepalive(s.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(s){if(s*=1e3,isNaN(s)||s<=0||s>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${s}`);this._keepalive=s,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${s}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let s=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+s,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};t.default=n}),sg=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__createBinding||(Object.create?function(T,A,C,L){L===void 0&&(L=C);var j=Object.getOwnPropertyDescriptor(A,C);(!j||("get"in j?!A.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return A[C]}}),Object.defineProperty(T,L,j)}:function(T,A,C,L){L===void 0&&(L=C),T[L]=A[C]}),r=t&&t.__setModuleDefault||(Object.create?function(T,A){Object.defineProperty(T,"default",{enumerable:!0,value:A})}:function(T,A){T.default=A}),n=t&&t.__importStar||function(T){if(T&&T.__esModule)return T;var A={};if(T!=null)for(var C in T)C!=="default"&&Object.prototype.hasOwnProperty.call(T,C)&&e(A,T,C);return r(A,T),A},s=t&&t.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(t,"__esModule",{value:!0});var i=s(F2()),a=s(EL()),o=s(fE()),l=oo(),u=s(xL()),c=n(TL()),f=s(Ci()),d=s(dE()),p=s(qL()),g=ua(),b=GL(),v=s(IE()),w=n(rf()),_=globalThis.setImmediate||((...T)=>{let A=T.shift();(0,g.nextTick)(()=>{A(...T)})}),y={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},x=class og extends b.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(A,C){super(),this.options=C||{};for(let L in y)typeof this.options[L]>"u"?this.options[L]=y[L]:this.options[L]=C[L];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",og.VERSION),w.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",w.default?"browser":"node"),this.log("MqttClient :: options.protocol",C.protocol),this.log("MqttClient :: options.protocolVersion",C.protocolVersion),this.log("MqttClient :: options.username",C.username),this.log("MqttClient :: options.keepalive",C.keepalive),this.log("MqttClient :: options.reconnectPeriod",C.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",C.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",C.properties?C.properties.topicAliasMaximum:void 0),this.options.clientId=typeof C.clientId=="string"?C.clientId:og.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=C.protocolVersion===5&&C.customHandleAcks?C.customHandleAcks:(...L)=>{L[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=A,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new o.default:this.options.messageIdProvider,this.outgoingStore=C.outgoingStore||new d.default,this.incomingStore=C.incomingStore||new d.default,this.queueQoSZero=C.queueQoSZero===void 0?!0:C.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,C.properties&&C.properties.topicAliasMaximum>0&&(C.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new i.default(C.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:L}=this,j=()=>{let R=L.shift();this.log("deliver :: entry %o",R);let U=null;if(!R){this._resubscribe();return}U=R.packet,this.log("deliver :: call _sendPacket for %o",U);let I=!0;U.messageId&&U.messageId!==0&&(this.messageIdProvider.register(U.messageId)||(I=!1)),I?this._sendPacket(U,M=>{R.cb&&R.cb(M),j()}):(this.log("messageId: %d has already used. The message is skipped and removed.",U.messageId),j())};this.log("connect :: sending queued packets"),j()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(A,C){C()}handleMessage(A,C){C()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var A;let C=new l.Writable,L=a.default.parser(this.options),j=null,R=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),L.on("packet",Z=>{this.log("parser :: on packet push to packets array."),R.push(Z)});let U=()=>{this.log("work :: getting next packet in queue");let Z=R.shift();if(Z)this.log("work :: packet pulled from queue"),(0,p.default)(this,Z,I);else{this.log("work :: no packets in queue");let ne=j;j=null,this.log("work :: done flag is %s",!!ne),ne&&ne()}},I=()=>{if(R.length)(0,g.nextTick)(U);else{let Z=j;j=null,Z()}};C._write=(Z,ne,re)=>{j=re,this.log("writable stream :: parsing buffer"),L.parse(Z),U()};let M=Z=>{this.log("streamErrorHandler :: error",Z.message),Z.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",Z)):this.noop(Z)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(C),this.stream.on("error",M),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let $={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&($.will=Object.assign(Object.assign({},this.options.will),{payload:(A=this.options.will)===null||A===void 0?void 0:A.payload})),this.topicAliasRecv&&($.properties||($.properties={}),this.topicAliasRecv&&($.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket($),L.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let Z=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(Z)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(A,C,L,j){this.log("publish :: message `%s` to topic `%s`",C,A);let{options:R}=this;typeof L=="function"&&(j=L,L=null),L=L||{},L=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),L);let{qos:U,retain:I,dup:M,properties:$,cbStorePut:Z}=L;if(this._checkDisconnecting(j))return this;let ne=()=>{let re=0;if((U===1||U===2)&&(re=this._nextId(),re===null))return this.log("No messageId left"),!1;let N={cmd:"publish",topic:A,payload:C,qos:U,retain:I,messageId:re,dup:M};switch(R.protocolVersion===5&&(N.properties=$),this.log("publish :: qos",U),U){case 1:case 2:this.outgoing[N.messageId]={volatile:!1,cb:j||this.noop},this.log("MqttClient:publish: packet cmd: %s",N.cmd),this._sendPacket(N,void 0,Z);break;default:this.log("MqttClient:publish: packet cmd: %s",N.cmd),this._sendPacket(N,j,Z);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!ne())&&this._storeProcessingQueue.push({invoke:ne,cbStorePut:L.cbStorePut,callback:j}),this}publishAsync(A,C,L){return new Promise((j,R)=>{this.publish(A,C,L,(U,I)=>{U?R(U):j(I)})})}subscribe(A,C,L){let j=this.options.protocolVersion;typeof C=="function"&&(L=C),L=L||this.noop;let R=!1,U=[];typeof A=="string"?(A=[A],U=A):Array.isArray(A)?U=A:typeof A=="object"&&(R=A.resubscribe,delete A.resubscribe,U=Object.keys(A));let I=c.validateTopics(U);if(I!==null)return _(L,new Error(`Invalid topic ${I}`)),this;if(this._checkDisconnecting(L))return this.log("subscribe: discconecting true"),this;let M={qos:0};j===5&&(M.nl=!1,M.rap=!1,M.rh=0),C=Object.assign(Object.assign({},M),C);let $=C.properties,Z=[],ne=(N,fe)=>{if(fe=fe||C,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,N)||this._resubscribeTopics[N].qos{this.log("subscribe: array topic %s",N),ne(N)}):Object.keys(A).forEach(N=>{this.log("subscribe: object topic %s, %o",N,A[N]),ne(N,A[N])}),!Z.length)return L(null,[]),this;let re=()=>{let N=this._nextId();if(N===null)return this.log("No messageId left"),!1;let fe={cmd:"subscribe",subscriptions:Z,messageId:N};if($&&(fe.properties=$),this.options.resubscribe){this.log("subscribe :: resubscribe true");let G=[];Z.forEach(pe=>{if(this.options.reconnectPeriod>0){let F={qos:pe.qos};j===5&&(F.nl=pe.nl||!1,F.rap=pe.rap||!1,F.rh=pe.rh||0,F.properties=pe.properties),this._resubscribeTopics[pe.topic]=F,G.push(pe.topic)}}),this.messageIdToTopic[fe.messageId]=G}return this.outgoing[fe.messageId]={volatile:!0,cb(G,pe){if(!G){let{granted:F}=pe;for(let de=0;de0||!re())&&this._storeProcessingQueue.push({invoke:re,callback:L}),this}subscribeAsync(A,C){return new Promise((L,j)=>{this.subscribe(A,C,(R,U)=>{R?j(R):L(U)})})}unsubscribe(A,C,L){typeof A=="string"&&(A=[A]),typeof C=="function"&&(L=C),L=L||this.noop;let j=c.validateTopics(A);if(j!==null)return _(L,new Error(`Invalid topic ${j}`)),this;if(this._checkDisconnecting(L))return this;let R=()=>{let U=this._nextId();if(U===null)return this.log("No messageId left"),!1;let I={cmd:"unsubscribe",messageId:U,unsubscriptions:[]};return typeof A=="string"?I.unsubscriptions=[A]:Array.isArray(A)&&(I.unsubscriptions=A),this.options.resubscribe&&I.unsubscriptions.forEach(M=>{delete this._resubscribeTopics[M]}),typeof C=="object"&&C.properties&&(I.properties=C.properties),this.outgoing[I.messageId]={volatile:!0,cb:L},this.log("unsubscribe: call _sendPacket"),this._sendPacket(I),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!R())&&this._storeProcessingQueue.push({invoke:R,callback:L}),this}unsubscribeAsync(A,C){return new Promise((L,j)=>{this.unsubscribe(A,C,(R,U)=>{R?j(R):L(U)})})}end(A,C,L){this.log("end :: (%s)",this.options.clientId),(A==null||typeof A!="boolean")&&(L=L||C,C=A,A=!1),typeof C!="object"&&(L=L||C,C=null),this.log("end :: cb? %s",!!L),(!L||typeof L!="function")&&(L=this.noop);let j=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(U=>{this.outgoingStore.close(I=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),L){let M=U||I;this.log("end :: closeStores: invoking callback with args"),L(M)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},R=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,A),this._cleanUp(A,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,g.nextTick)(j)},C)};return this.disconnecting?(L(),this):(this._clearReconnect(),this.disconnecting=!0,!A&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,R,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),R()),this)}endAsync(A,C){return new Promise((L,j)=>{this.end(A,C,R=>{R?j(R):L()})})}removeOutgoingMessage(A){if(this.outgoing[A]){let{cb:C}=this.outgoing[A];this._removeOutgoingAndStoreMessage(A,()=>{C(new Error("Message removed"))})}return this}reconnect(A){this.log("client reconnect");let C=()=>{A?(this.options.incomingStore=A.incomingStore,this.options.outgoingStore=A.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=C:C(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(A=>{this.outgoing[A].volatile&&typeof this.outgoing[A].cb=="function"&&(this.outgoing[A].cb(new Error("Connection closed")),delete this.outgoing[A])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(A=>{typeof this.outgoing[A].cb=="function"&&(this.outgoing[A].cb(new Error("Connection closed")),delete this.outgoing[A])}))}_removeTopicAliasAndRecoverTopicName(A){let C;A.properties&&(C=A.properties.topicAlias);let L=A.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",C,L),L.length===0){if(typeof C>"u")return new Error("Unregistered Topic Alias");if(L=this.topicAliasSend.getTopicByAlias(C),typeof L>"u")return new Error("Unregistered Topic Alias");A.topic=L}C&&delete A.properties.topicAlias}_checkDisconnecting(A){return this.disconnecting&&(A&&A!==this.noop?A(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(A,C,L={}){if(C&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",C)),this.log("_cleanUp :: forced? %s",A),A)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let j=Object.assign({cmd:"disconnect"},L);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(j,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),_(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),C&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",C),C())}_storeAndSend(A,C,L){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",A.cmd);let j=A,R;if(j.cmd==="publish"&&(j=(0,u.default)(A),R=this._removeTopicAliasAndRecoverTopicName(j),R))return C&&C(R);this.outgoingStore.put(j,U=>{if(U)return C&&C(U);L(),this._writePacket(A,C)})}_applyTopicAlias(A){if(this.options.protocolVersion===5&&A.cmd==="publish"){let C;A.properties&&(C=A.properties.topicAlias);let L=A.topic.toString();if(this.topicAliasSend)if(C){if(L.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",L,C),!this.topicAliasSend.put(L,C)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",L,C),new Error("Sending Topic Alias out of range")}else L.length!==0&&(this.options.autoAssignTopicAlias?(C=this.topicAliasSend.getAliasByTopic(L),C?(A.topic="",A.properties=Object.assign(Object.assign({},A.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",L,C)):(C=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(L,C),A.properties=Object.assign(Object.assign({},A.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",L,C))):this.options.autoUseTopicAlias&&(C=this.topicAliasSend.getAliasByTopic(L),C&&(A.topic="",A.properties=Object.assign(Object.assign({},A.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",L,C))));else if(C)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",L,C),new Error("Sending Topic Alias out of range")}}_noop(A){this.log("noop ::",A)}_writePacket(A,C){this.log("_writePacket :: packet: %O",A),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",A),this.log("_writePacket :: writing to stream");let L=a.default.writeToStream(A,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",L),!L&&C&&C!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",C)):C&&(this.log("_writePacket :: invoking cb"),C())}_sendPacket(A,C,L,j){this.log("_sendPacket :: (%s) :: start",this.options.clientId),L=L||this.noop,C=C||this.noop;let R=this._applyTopicAlias(A);if(R){C(R);return}if(!this.connected){if(A.cmd==="auth"){this._writePacket(A,C);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(A,C,L);return}if(j){this._writePacket(A,C);return}switch(A.cmd){case"publish":break;case"pubrel":this._storeAndSend(A,C,L);return;default:this._writePacket(A,C);return}switch(A.qos){case 2:case 1:this._storeAndSend(A,C,L);break;case 0:default:this._writePacket(A,C);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(A,C,L){this.log("_storePacket :: packet: %o",A),this.log("_storePacket :: cb? %s",!!C),L=L||this.noop;let j=A;if(j.cmd==="publish"){j=(0,u.default)(A);let U=this._removeTopicAliasAndRecoverTopicName(j);if(U)return C&&C(U)}let R=j.qos||0;R===0&&this.queueQoSZero||j.cmd!=="publish"?this.queue.push({packet:j,cb:C}):R>0?(C=this.outgoing[j.messageId]?this.outgoing[j.messageId].cb:null,this.outgoingStore.put(j,U=>{if(U)return C&&C(U);L()})):C&&C(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(A=!1){this.keepaliveManager&&this.options.keepalive&&(A||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let A=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&A.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let C=0;C{let L=this.outgoingStore.createStream(),j=()=>{L.destroy(),L=null,this._flushStoreProcessingQueue(),R()},R=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",j),L.on("error",I=>{R(),this._flushStoreProcessingQueue(),this.removeListener("close",j),this.emit("error",I)});let U=()=>{if(!L)return;let I=L.read(1),M;if(!I){L.once("readable",U);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[I.messageId]){U();return}!this.disconnecting&&!this.reconnectTimer?(M=this.outgoing[I.messageId]?this.outgoing[I.messageId].cb:null,this.outgoing[I.messageId]={volatile:!1,cb($,Z){M&&M($,Z),U()}},this._packetIdsDuringStoreProcessing[I.messageId]=!0,this.messageIdProvider.register(I.messageId)?this._sendPacket(I,void 0,void 0,!0):this.log("messageId: %d has already used.",I.messageId)):L.destroy&&L.destroy()};L.on("end",()=>{let I=!0;for(let M in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[M]){I=!1;break}this.removeListener("close",j),I?(R(),this._invokeAllStoreProcessingQueue(),this.emit("connect",A)):C()}),U()};C()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let A=this._storeProcessingQueue[0];if(A&&A.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let A of this._storeProcessingQueue)A.cbStorePut&&A.cbStorePut(new Error("Connection closed")),A.callback&&A.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(A,C){delete this.outgoing[A],this.outgoingStore.del({messageId:A},(L,j)=>{C(L,j),this.messageIdProvider.deallocate(A),this._invokeStoreProcessingQueue()})}};x.VERSION=g.MQTTJS_VERSION,t.default=x}),JL=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=CE(),r=class{constructor(){this.numberAllocator=new e.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(n){return this.numberAllocator.use(n)}deallocate(n){this.numberAllocator.free(n)}clear(){this.numberAllocator.clear()}};t.default=r});function Ss(t){throw new RangeError(kE[t])}function rw(t,e){let r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]);let s=function(i,a){let o=[],l=i.length;for(;l--;)o[l]=a(i[l]);return o}((t=t.replace(ME,".")).split("."),e).join(".");return n+s}function nw(t){let e=[],r=0,n=t.length;for(;r=55296&&s<=56319&&r{Pe(),Le(),Oe(),iw=/^xn--/,sw=/[^\0-\x7E]/,ME=/[\x2E\u3002\uFF0E\uFF61]/g,kE={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pn=Math.floor,Zl=String.fromCharCode,Kf=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Xf=function(t,e,r){let n=0;for(t=r?pn(t/700):t>>1,t+=pn(t/e);t>455;n+=36)t=pn(t/35);return pn(n+36*t/(t+38))},Qf=function(t){let e=[],r=t.length,n=0,s=128,i=72,a=t.lastIndexOf("-");a<0&&(a=0);for(let l=0;l=128&&Ss("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l=r&&Ss("invalid-input");let p=(o=t.charCodeAt(l++))-48<10?o-22:o-65<26?o-65:o-97<26?o-97:36;(p>=36||p>pn((2147483647-n)/f))&&Ss("overflow"),n+=p*f;let g=d<=i?1:d>=i+26?26:d-i;if(ppn(2147483647/b)&&Ss("overflow"),f*=b}let c=e.length+1;i=Xf(n-u,c,u==0),pn(n/c)>2147483647-s&&Ss("overflow"),s+=pn(n/c),n%=c,e.splice(n++,0,s)}var o;return String.fromCodePoint(...e)},Jf=function(t){let e=[],r=(t=nw(t)).length,n=128,s=0,i=72;for(let l of t)l<128&&e.push(Zl(l));let a=e.length,o=a;for(a&&e.push("-");o=n&&cpn((2147483647-s)/u)&&Ss("overflow"),s+=(l-n)*u,n=l;for(let c of t)if(c2147483647&&Ss("overflow"),c==n){let f=s;for(let d=36;;d+=36){let p=d<=i?1:d>=i+26?26:d-i;if(fString.fromCodePoint(...t)},decode:Qf,encode:Jf,toASCII:function(t){return rw(t,function(e){return sw.test(e)?"xn--"+Jf(e):e})},toUnicode:function(t){return rw(t,function(e){return iw.test(e)?Qf(e.slice(4).toLowerCase()):e})}},Vi.decode,Vi.encode,Vi.toASCII,Vi.toUnicode,Vi.ucs2,Vi.version});function eR(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var ow,bo,aw,On,tR=cr(()=>{Pe(),Le(),Oe(),ow=function(t,e,r,n){e=e||"&",r=r||"=";var s={};if(typeof t!="string"||t.length===0)return s;var i=/\+/g;t=t.split(e);var a=1e3;n&&typeof n.maxKeys=="number"&&(a=n.maxKeys);var o=t.length;a>0&&o>a&&(o=a);for(var l=0;l=0?(u=p.substr(0,g),c=p.substr(g+1)):(u=p,c=""),f=decodeURIComponent(u),d=decodeURIComponent(c),eR(s,f)?Array.isArray(s[f])?s[f].push(d):s[f]=[s[f],d]:s[f]=d}return s},bo=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}},aw=function(t,e,r,n){return e=e||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(s){var i=encodeURIComponent(bo(s))+r;return Array.isArray(t[s])?t[s].map(function(a){return i+encodeURIComponent(bo(a))}).join(e):i+encodeURIComponent(bo(t[s]))}).join(e):n?encodeURIComponent(bo(n))+r+encodeURIComponent(bo(t)):""},On={},On.decode=On.parse=ow,On.encode=On.stringify=aw,On.decode,On.encode,On.parse,On.stringify});function ag(){throw new Error("setTimeout has not been defined")}function lg(){throw new Error("clearTimeout has not been defined")}function PE(t){if(si===setTimeout)return setTimeout(t,0);if((si===ag||!si)&&setTimeout)return si=setTimeout,setTimeout(t,0);try{return si(t,0)}catch{try{return si.call(null,t,0)}catch{return si.call(this||Fs,t,0)}}}function rR(){Vs&&Ls&&(Vs=!1,Ls.length?Un=Ls.concat(Un):rl=-1,Un.length&&OE())}function OE(){if(!Vs){var t=PE(rR);Vs=!0;for(var e=Un.length;e;){for(Ls=Un,Un=[];++rl{Pe(),Le(),Oe(),Fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:qs,Wt=uw={},function(){try{si=typeof setTimeout=="function"?setTimeout:ag}catch{si=ag}try{oi=typeof clearTimeout=="function"?clearTimeout:lg}catch{oi=lg}}(),Un=[],Vs=!1,rl=-1,Wt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r1)for(var w=1;w{Pe(),Le(),Oe(),Fu={},ug=!1,Is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:qs,Bt=iR(),Bt.platform="browser",Bt.addListener,Bt.argv,Bt.binding,Bt.browser,Bt.chdir,Bt.cwd,Bt.emit,Bt.env,Bt.listeners,Bt.nextTick,Bt.off,Bt.on,Bt.once,Bt.prependListener,Bt.prependOnceListener,Bt.removeAllListeners,Bt.removeListener,Bt.title,Bt.umask,Bt.version,Bt.versions});function sR(){if(cg)return Vu;cg=!0;var t=Bt;function e(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function r(i,a){for(var o="",l=0,u=-1,c=0,f,d=0;d<=i.length;++d){if(d2){var p=o.lastIndexOf("/");if(p!==o.length-1){p===-1?(o="",l=0):(o=o.slice(0,p),l=o.length-1-o.lastIndexOf("/")),u=d,c=0;continue}}else if(o.length===2||o.length===1){o="",l=0,u=d,c=0;continue}}a&&(o.length>0?o+="/..":o="..",l=2)}else o.length>0?o+="/"+i.slice(u+1,d):o=i.slice(u+1,d),l=d-u-1;u=d,c=0}else f===46&&c!==-1?++c:c=-1}return o}function n(i,a){var o=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return o?o===a.root?o+l:o+i+l:l}var s={resolve:function(){for(var i="",a=!1,o,l=arguments.length-1;l>=-1&&!a;l--){var u;l>=0?u=arguments[l]:(o===void 0&&(o=t.cwd()),u=o),e(u),u.length!==0&&(i=u+"/"+i,a=u.charCodeAt(0)===47)}return i=r(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,o=i.charCodeAt(i.length-1)===47;return i=r(i,!a),i.length===0&&!a&&(i="."),i.length>0&&o&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=o:i+="/"+o)}return i===void 0?".":s.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=s.resolve(i),a=s.resolve(a),i===a))return"";for(var o=1;op){if(a.charCodeAt(c+b)===47)return a.slice(c+b+1);if(b===0)return a.slice(c+b)}else u>p&&(i.charCodeAt(o+b)===47?g=b:b===0&&(g=0));break}var v=i.charCodeAt(o+b),w=a.charCodeAt(c+b);if(v!==w)break;v===47&&(g=b)}var _="";for(b=o+g+1;b<=l;++b)(b===l||i.charCodeAt(b)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+a.slice(c+g):(c+=g,a.charCodeAt(c)===47&&++c,a.slice(c))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),o=a===47,l=-1,u=!0,c=i.length-1;c>=1;--c)if(a=i.charCodeAt(c),a===47){if(!u){l=c;break}}else u=!1;return l===-1?o?"/":".":o&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var o=0,l=-1,u=!0,c;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,d=-1;for(c=i.length-1;c>=0;--c){var p=i.charCodeAt(c);if(p===47){if(!u){o=c+1;break}}else d===-1&&(u=!1,d=c+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=c):(f=-1,l=d))}return o===l?l=d:l===-1&&(l=i.length),i.slice(o,l)}else{for(c=i.length-1;c>=0;--c)if(i.charCodeAt(c)===47){if(!u){o=c+1;break}}else l===-1&&(u=!1,l=c+1);return l===-1?"":i.slice(o,l)}},extname:function(i){e(i);for(var a=-1,o=0,l=-1,u=!0,c=0,f=i.length-1;f>=0;--f){var d=i.charCodeAt(f);if(d===47){if(!u){o=f+1;break}continue}l===-1&&(u=!1,l=f+1),d===46?a===-1?a=f:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||l===-1||c===0||c===1&&a===l-1&&a===o+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var o=i.charCodeAt(0),l=o===47,u;l?(a.root="/",u=1):u=0;for(var c=-1,f=0,d=-1,p=!0,g=i.length-1,b=0;g>=u;--g){if(o=i.charCodeAt(g),o===47){if(!p){f=g+1;break}continue}d===-1&&(p=!1,d=g+1),o===46?c===-1?c=g:b!==1&&(b=1):c!==-1&&(b=-1)}return c===-1||d===-1||b===0||b===1&&c===d-1&&c===f+1?d!==-1&&(f===0&&l?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(f,d)):(f===0&&l?(a.name=i.slice(1,c),a.base=i.slice(1,d)):(a.name=i.slice(f,c),a.base=i.slice(f,d)),a.ext=i.slice(c,d)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return s.posix=s,Vu=s,Vu}var Vu,cg,fg,oR=cr(()=>{Pe(),Le(),Oe(),LE(),Vu={},cg=!1,fg=sR()}),RE={};no(RE,{URL:()=>JE,Url:()=>GE,default:()=>xt,fileURLToPath:()=>BE,format:()=>YE,parse:()=>QE,pathToFileURL:()=>$E,resolve:()=>KE,resolveObject:()=>XE});function rn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function ka(t,e,r){if(t&&bn.isObject(t)&&t instanceof rn)return t;var n=new rn;return n.parse(t,e,r),n}function aR(){if(dg)return ju;dg=!0;var t=Ut;function e(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function r(i,a){for(var o="",l=0,u=-1,c=0,f,d=0;d<=i.length;++d){if(d2){var p=o.lastIndexOf("/");if(p!==o.length-1){p===-1?(o="",l=0):(o=o.slice(0,p),l=o.length-1-o.lastIndexOf("/")),u=d,c=0;continue}}else if(o.length===2||o.length===1){o="",l=0,u=d,c=0;continue}}a&&(o.length>0?o+="/..":o="..",l=2)}else o.length>0?o+="/"+i.slice(u+1,d):o=i.slice(u+1,d),l=d-u-1;u=d,c=0}else f===46&&c!==-1?++c:c=-1}return o}function n(i,a){var o=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return o?o===a.root?o+l:o+i+l:l}var s={resolve:function(){for(var i="",a=!1,o,l=arguments.length-1;l>=-1&&!a;l--){var u;l>=0?u=arguments[l]:(o===void 0&&(o=t.cwd()),u=o),e(u),u.length!==0&&(i=u+"/"+i,a=u.charCodeAt(0)===47)}return i=r(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,o=i.charCodeAt(i.length-1)===47;return i=r(i,!a),i.length===0&&!a&&(i="."),i.length>0&&o&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=o:i+="/"+o)}return i===void 0?".":s.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=s.resolve(i),a=s.resolve(a),i===a))return"";for(var o=1;op){if(a.charCodeAt(c+b)===47)return a.slice(c+b+1);if(b===0)return a.slice(c+b)}else u>p&&(i.charCodeAt(o+b)===47?g=b:b===0&&(g=0));break}var v=i.charCodeAt(o+b),w=a.charCodeAt(c+b);if(v!==w)break;v===47&&(g=b)}var _="";for(b=o+g+1;b<=l;++b)(b===l||i.charCodeAt(b)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+a.slice(c+g):(c+=g,a.charCodeAt(c)===47&&++c,a.slice(c))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),o=a===47,l=-1,u=!0,c=i.length-1;c>=1;--c)if(a=i.charCodeAt(c),a===47){if(!u){l=c;break}}else u=!1;return l===-1?o?"/":".":o&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var o=0,l=-1,u=!0,c;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,d=-1;for(c=i.length-1;c>=0;--c){var p=i.charCodeAt(c);if(p===47){if(!u){o=c+1;break}}else d===-1&&(u=!1,d=c+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=c):(f=-1,l=d))}return o===l?l=d:l===-1&&(l=i.length),i.slice(o,l)}else{for(c=i.length-1;c>=0;--c)if(i.charCodeAt(c)===47){if(!u){o=c+1;break}}else l===-1&&(u=!1,l=c+1);return l===-1?"":i.slice(o,l)}},extname:function(i){e(i);for(var a=-1,o=0,l=-1,u=!0,c=0,f=i.length-1;f>=0;--f){var d=i.charCodeAt(f);if(d===47){if(!u){o=f+1;break}continue}l===-1&&(u=!1,l=f+1),d===46?a===-1?a=f:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||l===-1||c===0||c===1&&a===l-1&&a===o+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var o=i.charCodeAt(0),l=o===47,u;l?(a.root="/",u=1):u=0;for(var c=-1,f=0,d=-1,p=!0,g=i.length-1,b=0;g>=u;--g){if(o=i.charCodeAt(g),o===47){if(!p){f=g+1;break}continue}d===-1&&(p=!1,d=g+1),o===46?c===-1?c=g:b!==1&&(b=1):c!==-1&&(b=-1)}return c===-1||d===-1||b===0||b===1&&c===d-1&&c===f+1?d!==-1&&(f===0&&l?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(f,d)):(f===0&&l?(a.name=i.slice(1,c),a.base=i.slice(1,d)):(a.name=i.slice(f,c),a.base=i.slice(f,d)),a.ext=i.slice(c,d)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return s.posix=s,ju=s,ju}function lR(t){if(typeof t=="string")t=new URL(t);else if(!(t instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(t.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return vc?uR(t):cR(t)}function uR(t){let e=t.hostname,r=t.pathname;for(let n=0;nFE||s!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function cR(t){if(t.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let e=t.pathname;for(let r=0;rrS||s!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function hR(t){if(t.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let e=t.pathname;for(let r=0;r{Pe(),Le(),Oe(),ZL(),tR(),nR(),oR(),LE(),xt={},cw=Vi,bn={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}},xt.parse=ka,xt.resolve=function(t,e){return ka(t,!1,!0).resolve(e)},xt.resolveObject=function(t,e){return t?ka(t,!1,!0).resolveObject(e):e},xt.format=function(t){return bn.isString(t)&&(t=ka(t)),t instanceof rn?t.format():rn.prototype.format.call(t)},xt.Url=rn,fw=/^([a-z0-9.+-]+:)/i,dw=/:[0-9]*$/,hw=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,pw=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),eu=["'"].concat(pw),Zf=["%","/","?",";","#"].concat(eu),ed=["/","?","#"],td=/^[+a-z0-9A-Z_-]{0,63}$/,gw=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mw={javascript:!0,"javascript:":!0},tu={javascript:!0,"javascript:":!0},xs={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ru=On,rn.prototype.parse=function(t,e,r){if(!bn.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),s=n!==-1&&n127?x+="x":x+=y[T];if(!x.match(td)){var C=w.slice(0,g),L=w.slice(g+1),j=y.match(gw);j&&(C.push(j[1]),L.unshift(j[2])),L.length&&(a="/"+L.join(".")+a),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=cw.toASCII(this.hostname));var R=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+R,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!mw[u])for(g=0,_=eu.length;g<_;g++){var I=eu[g];if(a.indexOf(I)!==-1){var M=encodeURIComponent(I);M===I&&(M=escape(I)),a=a.split(I).join(M)}}var $=a.indexOf("#");$!==-1&&(this.hash=a.substr($),a=a.slice(0,$));var Z=a.indexOf("?");if(Z!==-1?(this.search=a.substr(Z),this.query=a.substr(Z+1),e&&(this.query=ru.parse(this.query)),a=a.slice(0,Z)):e&&(this.search="",this.query={}),a&&(this.pathname=a),xs[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){R=this.pathname||"";var ne=this.search||"";this.path=R+ne}return this.href=this.format(),this},rn.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",s=!1,i="";this.host?s=t+this.host:this.hostname&&(s=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&bn.isObject(this.query)&&Object.keys(this.query).length&&(i=ru.stringify(this.query));var a=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||xs[e])&&s!==!1?(s="//"+(s||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):s||(s=""),n&&n.charAt(0)!=="#"&&(n="#"+n),a&&a.charAt(0)!=="?"&&(a="?"+a),e+s+(r=r.replace(/[?#]/g,function(o){return encodeURIComponent(o)}))+(a=a.replace("#","%23"))+n},rn.prototype.resolve=function(t){return this.resolveObject(ka(t,!1,!0)).format()},rn.prototype.resolveObject=function(t){if(bn.isString(t)){var e=new rn;e.parse(t,!1,!0),t=e}for(var r=new rn,n=Object.keys(this),s=0;s0)&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift())),r.search=t.search,r.query=t.query,bn.isNull(r.pathname)&&bn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var T=y.slice(-1)[0],A=(r.host||t.host||y.length>1)&&(T==="."||T==="..")||T==="",C=0,L=y.length;L>=0;L--)(T=y[L])==="."?y.splice(L,1):T===".."?(y.splice(L,1),C++):C&&(y.splice(L,1),C--);if(!w&&!_)for(;C--;C)y.unshift("..");!w||y[0]===""||y[0]&&y[0].charAt(0)==="/"||y.unshift(""),A&&y.join("/").substr(-1)!=="/"&&y.push("");var j,R=y[0]===""||y[0]&&y[0].charAt(0)==="/";return x&&(r.hostname=r.host=R?"":y.length?y.shift():"",(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift())),(w=w||r.host&&y.length)&&!R&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),bn.isNull(r.pathname)&&bn.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},rn.prototype.parseHost=function(){var t=this.host,e=dw.exec(t);e&&((e=e[0])!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},xt.Url,xt.format,xt.resolve,xt.resolveObject,ju={},dg=!1,hg=aR(),bw=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,xt.URL=typeof URL<"u"?URL:null,xt.pathToFileURL=fR,xt.fileURLToPath=lR,xt.Url,xt.format,xt.resolve,xt.resolveObject,xt.URL,NE=92,DE=47,UE=97,FE=122,vc=bw==="win32",VE=/\//g,jE=/%/g,WE=/\\/g,zE=/\n/g,HE=/\r/g,qE=/\t/g,yw=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,xt.URL=typeof URL<"u"?URL:null,xt.pathToFileURL=$E,xt.fileURLToPath=BE,GE=xt.Url,YE=xt.format,KE=xt.resolve,XE=xt.resolveObject,QE=xt.parse,JE=xt.URL,ZE=92,eS=47,tS=97,rS=122,_c=yw==="win32",nS=/\//g,iS=/%/g,sS=/\\/g,oS=/\n/g,aS=/\r/g,lS=/\t/g}),gR=Ne((t,e)=>{Pe(),Le(),Oe(),e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),Cm=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0}),t.BufferedDuplex=t.writev=void 0;var e=oo(),r=(dr(),It(fr));function n(i,a){let o=new Array(i.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(i){this.proxy.read(i)}_write(i,a,o){this.isSocketOpen?this.writeToProxy(i,a,o):this.writeQueue.push({chunk:i,encoding:a,cb:o})}_final(i){this.writeQueue=[],this.proxy.end(i)}_destroy(i,a){this.writeQueue=[],this.proxy.destroy(),a(i)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(i,a,o){this.proxy.write(i,a)===!1?this.proxy.once("drain",o):o()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:i,encoding:a,cb:o}=this.writeQueue.shift();this.writeToProxy(i,a,o)}}};t.BufferedDuplex=s}),nu=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0}),t.streamBuilder=t.browserStreamBuilder=void 0;var r=(dr(),It(fr)),n=e(gR()),s=e(Ci()),i=oo(),a=e(rf()),o=Cm(),l=(0,s.default)("mqttjs:ws"),u=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function c(w,_){let y=`${w.protocol}://${w.hostname}:${w.port}${w.path}`;return typeof w.transformWsUrl=="function"&&(y=w.transformWsUrl(y,w,_)),y}function f(w){let _=w;return w.port||(w.protocol==="wss"?_.port=443:_.port=80),w.path||(_.path="/"),w.wsOptions||(_.wsOptions={}),!a.default&&!w.forceNativeWebSocket&&w.protocol==="wss"&&u.forEach(y=>{Object.prototype.hasOwnProperty.call(w,y)&&!Object.prototype.hasOwnProperty.call(w.wsOptions,y)&&(_.wsOptions[y]=w[y])}),_}function d(w){let _=f(w);if(_.hostname||(_.hostname=_.host),!_.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let y=new URL(document.URL);_.hostname=y.hostname,_.port||(_.port=Number(y.port))}return _.objectMode===void 0&&(_.objectMode=!(_.binary===!0||_.binary===void 0)),_}function p(w,_,y){l("createWebSocket"),l(`protocol: ${y.protocolId} ${y.protocolVersion}`);let x=y.protocolId==="MQIsdp"&&y.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${_} and protocol: ${x}`);let T;return y.createWebsocket?T=y.createWebsocket(_,[x],y):T=new n.default(_,[x],y.wsOptions),T}function g(w,_){let y=_.protocolId==="MQIsdp"&&_.protocolVersion===3?"mqttv3.1":"mqtt",x=c(_,w),T;return _.createWebsocket?T=_.createWebsocket(x,[y],_):T=new WebSocket(x,[y]),T.binaryType="arraybuffer",T}var b=(w,_)=>{l("streamBuilder");let y=f(_);y.hostname=y.hostname||y.host||"localhost";let x=c(y,w),T=p(w,x,y),A=n.default.createWebSocketStream(T,y.wsOptions);return A.url=x,T.on("close",()=>{A.destroy()}),A};t.streamBuilder=b;var v=(w,_)=>{l("browserStreamBuilder");let y,x=d(_).browserBufferSize||1024*512,T=_.browserBufferTimeout||1e3,A=!_.objectMode,C=g(w,_),L=R(_,Z,ne);_.objectMode||(L._writev=o.writev.bind(L)),L.on("close",()=>{C.close()});let j=typeof C.addEventListener<"u";C.readyState===C.OPEN?(y=L,y.socket=C):(y=new o.BufferedDuplex(_,L,C),j?C.addEventListener("open",U):C.onopen=U),j?(C.addEventListener("close",I),C.addEventListener("error",M),C.addEventListener("message",$)):(C.onclose=I,C.onerror=M,C.onmessage=$);function R(re,N,fe){let G=new i.Transform({objectMode:re.objectMode});return G._write=N,G._flush=fe,G}function U(){l("WebSocket onOpen"),y instanceof o.BufferedDuplex&&y.socketReady()}function I(re){l("WebSocket onClose",re),y.end(),y.destroy()}function M(re){l("WebSocket onError",re);let N=new Error("WebSocket error");N.event=re,y.destroy(N)}async function $(re){let{data:N}=re;N instanceof ArrayBuffer?N=r.Buffer.from(N):N instanceof Blob?N=r.Buffer.from(await new Response(N).arrayBuffer()):N=r.Buffer.from(N,"utf8"),L&&!L.destroyed&&L.push(N)}function Z(re,N,fe){if(C.bufferedAmount>x){setTimeout(Z,T,re,N,fe);return}A&&typeof re=="string"&&(re=r.Buffer.from(re,"utf8"));try{C.send(re)}catch(G){return fe(G)}fe()}function ne(re){C.close(),re()}return y};t.browserStreamBuilder=v}),Im={};no(Im,{Server:()=>$t,Socket:()=>$t,Stream:()=>$t,_createServerHandle:()=>$t,_normalizeArgs:()=>$t,_setSimultaneousAccepts:()=>$t,connect:()=>$t,createConnection:()=>$t,createServer:()=>$t,default:()=>uS,isIP:()=>$t,isIPv4:()=>$t,isIPv6:()=>$t});function $t(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var uS,cS=cr(()=>{Pe(),Le(),Oe(),uS={_createServerHandle:$t,_normalizeArgs:$t,_setSimultaneousAccepts:$t,connect:$t,createConnection:$t,createServer:$t,isIP:$t,isIPv4:$t,isIPv6:$t,Server:$t,Socket:$t,Stream:$t}}),ww=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var r=e((cS(),It(Im))),n=e(Ci()),s=(0,n.default)("mqttjs:tcp"),i=(a,o)=>{o.port=o.port||1883,o.hostname=o.hostname||o.host||"localhost";let{port:l,path:u}=o,c=o.hostname;return s("port %d and host %s",l,c),r.default.createConnection({port:l,host:c,path:u})};t.default=i}),fS={};no(fS,{default:()=>dS});var dS,mR=cr(()=>{Pe(),Le(),Oe(),dS={}}),vw=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var r=e((mR(),It(fS))),n=e((cS(),It(Im))),s=e(Ci()),i=(0,s.default)("mqttjs:tls"),a=(o,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",n.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,i("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let u=r.default.connect(l);u.on("secureConnect",()=>{l.rejectUnauthorized&&!u.authorized?u.emit("error",new Error("TLS not authorized")):u.removeListener("error",c)});function c(f){l.rejectUnauthorized&&o.emit("error",f),u.end()}return u.on("error",c),u};t.default=a}),_w=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=(dr(),It(fr)),r=oo(),n=Cm(),s,i,a;function o(){let d=new r.Transform;return d._write=(p,g,b)=>{s.send({data:p.buffer,success(){b()},fail(v){b(new Error(v))}})},d._flush=p=>{s.close({success(){p()}})},d}function l(d){d.hostname||(d.hostname="localhost"),d.path||(d.path="/"),d.wsOptions||(d.wsOptions={})}function u(d,p){let g=d.protocol==="wxs"?"wss":"ws",b=`${g}://${d.hostname}${d.path}`;return d.port&&d.port!==80&&d.port!==443&&(b=`${g}://${d.hostname}:${d.port}${d.path}`),typeof d.transformWsUrl=="function"&&(b=d.transformWsUrl(b,d,p)),b}function c(){s.onOpen(()=>{a.socketReady()}),s.onMessage(d=>{let{data:p}=d;p instanceof ArrayBuffer?p=e.Buffer.from(p):p=e.Buffer.from(p,"utf8"),i.push(p)}),s.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),s.onError(d=>{let p=new Error(d.errMsg);a.destroy(p)})}var f=(d,p)=>{if(p.hostname=p.hostname||p.host,!p.hostname)throw new Error("Could not determine host. Specify host manually.");let g=p.protocolId==="MQIsdp"&&p.protocolVersion===3?"mqttv3.1":"mqtt";l(p);let b=u(p,d);s=wx.connectSocket({url:b,protocols:[g]}),i=o(),a=new n.BufferedDuplex(p,i,s),a._destroy=(w,_)=>{s.close({success(){_&&_(w)}})};let v=a.destroy;return a.destroy=(w,_)=>(a.destroy=v,setTimeout(()=>{s.close({fail(){a._destroy(w,_)}})},0),a),c(),a};t.default=f}),Ew=Ne(t=>{Pe(),Le(),Oe(),Object.defineProperty(t,"__esModule",{value:!0});var e=(dr(),It(fr)),r=oo(),n=Cm(),s,i,a,o=!1;function l(){let p=new r.Transform;return p._write=(g,b,v)=>{s.sendSocketMessage({data:g.buffer,success(){v()},fail(){v(new Error)}})},p._flush=g=>{s.closeSocket({success(){g()}})},p}function u(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function c(p,g){let b=p.protocol==="alis"?"wss":"ws",v=`${b}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(v=`${b}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(v=p.transformWsUrl(v,p,g)),v}function f(){o||(o=!0,s.onSocketOpen(()=>{a.socketReady()}),s.onSocketMessage(p=>{if(typeof p.data=="string"){let g=e.Buffer.from(p.data,"base64");i.push(g)}else{let g=new FileReader;g.addEventListener("load",()=>{let b=g.result;b instanceof ArrayBuffer?b=e.Buffer.from(b):b=e.Buffer.from(b,"utf8"),i.push(b)}),g.readAsArrayBuffer(p.data)}}),s.onSocketClose(()=>{a.end(),a.destroy()}),s.onSocketError(p=>{a.destroy(p)}))}var d=(p,g)=>{if(g.hostname=g.hostname||g.host,!g.hostname)throw new Error("Could not determine host. Specify host manually.");let b=g.protocolId==="MQIsdp"&&g.protocolVersion===3?"mqttv3.1":"mqtt";u(g);let v=c(g,p);return s=g.my,s.connectSocket({url:v,protocols:b}),i=l(),a=new n.BufferedDuplex(g,i,s),f(),a};t.default=d}),bR=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.connectAsync=void 0;var r=e(Ci()),n=e((pR(),It(RE))),s=e(sg()),i=e(rf());typeof(vt==null?void 0:vt.nextTick)!="function"&&(vt.nextTick=setImmediate);var a=(0,r.default)("mqttjs"),o=null;function l(f){let d;f.auth&&(d=f.auth.match(/^(.+):(.+)$/),d?(f.username=d[1],f.password=d[2]):f.username=f.auth)}function u(f,d){var p,g,b,v;if(a("connecting to an MQTT broker..."),typeof f=="object"&&!d&&(d=f,f=""),d=d||{},f&&typeof f=="string"){let y=n.default.parse(f,!0),x={};if(y.port!=null&&(x.port=Number(y.port)),x.host=y.hostname,x.query=y.query,x.auth=y.auth,x.protocol=y.protocol,x.path=y.path,x.protocol=(p=x.protocol)===null||p===void 0?void 0:p.replace(/:$/,""),d=Object.assign(Object.assign({},x),d),!d.protocol)throw new Error("Missing protocol")}if(d.unixSocket=d.unixSocket||((g=d.protocol)===null||g===void 0?void 0:g.includes("+unix")),d.unixSocket?d.protocol=d.protocol.replace("+unix",""):!(!((b=d.protocol)===null||b===void 0)&&b.startsWith("ws"))&&!(!((v=d.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete d.path,l(d),d.query&&typeof d.query.clientId=="string"&&(d.clientId=d.query.clientId),d.cert&&d.key)if(d.protocol){if(["mqtts","wss","wxs","alis"].indexOf(d.protocol)===-1)switch(d.protocol){case"mqtt":d.protocol="mqtts";break;case"ws":d.protocol="wss";break;case"wx":d.protocol="wxs";break;case"ali":d.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${d.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(o||(o={},!i.default&&!d.forceNativeWebSocket?(o.ws=nu().streamBuilder,o.wss=nu().streamBuilder,o.mqtt=ww().default,o.tcp=ww().default,o.ssl=vw().default,o.tls=o.ssl,o.mqtts=vw().default):(o.ws=nu().browserStreamBuilder,o.wss=nu().browserStreamBuilder,o.wx=_w().default,o.wxs=_w().default,o.ali=Ew().default,o.alis=Ew().default)),!o[d.protocol]){let y=["mqtts","wss"].indexOf(d.protocol)!==-1;d.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((x,T)=>y&&T%2===0?!1:typeof o[x]=="function")[0]}if(d.clean===!1&&!d.clientId)throw new Error("Missing clientId for unclean clients");d.protocol&&(d.defaultProtocol=d.protocol);function w(y){return d.servers&&((!y._reconnectCount||y._reconnectCount===d.servers.length)&&(y._reconnectCount=0),d.host=d.servers[y._reconnectCount].host,d.port=d.servers[y._reconnectCount].port,d.protocol=d.servers[y._reconnectCount].protocol?d.servers[y._reconnectCount].protocol:d.defaultProtocol,d.hostname=d.host,y._reconnectCount++),a("calling streambuilder for",d.protocol),o[d.protocol](y,d)}let _=new s.default(w,d);return _.on("error",()=>{}),_}function c(f,d,p=!0){return new Promise((g,b)=>{let v=u(f,d),w={connect:y=>{_(),g(v)},end:()=>{_(),g(v)},error:y=>{_(),v.end(),b(y)}};p===!1&&(w.close=()=>{w.error(new Error("Couldn't connect to server"))});function _(){Object.keys(w).forEach(y=>{v.off(y,w[y])})}Object.keys(w).forEach(y=>{v.on(y,w[y])})})}t.connectAsync=c,t.default=u}),Sw=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__createBinding||(Object.create?function(p,g,b,v){v===void 0&&(v=b);var w=Object.getOwnPropertyDescriptor(g,b);(!w||("get"in w?!g.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return g[b]}}),Object.defineProperty(p,v,w)}:function(p,g,b,v){v===void 0&&(v=b),p[v]=g[b]}),r=t&&t.__setModuleDefault||(Object.create?function(p,g){Object.defineProperty(p,"default",{enumerable:!0,value:g})}:function(p,g){p.default=g}),n=t&&t.__importStar||function(p){if(p&&p.__esModule)return p;var g={};if(p!=null)for(var b in p)b!=="default"&&Object.prototype.hasOwnProperty.call(p,b)&&e(g,p,b);return r(g,p),g},s=t&&t.__exportStar||function(p,g){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(g,b)&&e(g,p,b)},i=t&&t.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=t.KeepaliveManager=t.UniqueMessageIdProvider=t.DefaultMessageIdProvider=t.Store=t.MqttClient=t.connectAsync=t.connect=t.Client=void 0;var a=i(sg());t.MqttClient=a.default;var o=i(fE());t.DefaultMessageIdProvider=o.default;var l=i(JL());t.UniqueMessageIdProvider=l.default;var u=i(dE());t.Store=u.default;var c=n(bR());t.connect=c.default,Object.defineProperty(t,"connectAsync",{enumerable:!0,get:function(){return c.connectAsync}});var f=i(IE());t.KeepaliveManager=f.default,t.Client=a.default,s(sg(),t),s(ua(),t);var d=tf();Object.defineProperty(t,"ReasonCodes",{enumerable:!0,get:function(){return d.ReasonCodes}})}),yR=Ne(t=>{Pe(),Le(),Oe();var e=t&&t.__createBinding||(Object.create?function(a,o,l,u){u===void 0&&(u=l);var c=Object.getOwnPropertyDescriptor(o,l);(!c||("get"in c?!o.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return o[l]}}),Object.defineProperty(a,u,c)}:function(a,o,l,u){u===void 0&&(u=l),a[u]=o[l]}),r=t&&t.__setModuleDefault||(Object.create?function(a,o){Object.defineProperty(a,"default",{enumerable:!0,value:o})}:function(a,o){a.default=o}),n=t&&t.__importStar||function(a){if(a&&a.__esModule)return a;var o={};if(a!=null)for(var l in a)l!=="default"&&Object.prototype.hasOwnProperty.call(a,l)&&e(o,a,l);return r(o,a),o},s=t&&t.__exportStar||function(a,o){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&e(o,a,l)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(Sw());t.default=i,s(Sw(),t)});const wR=yR();/*! Bundled license information: + +@jspm/core/nodelibs/browser/buffer.js: + (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) +*/var Pa={},Oa={exports:{}},rd={exports:{}},nd={exports:{}},id={},La={},xw;function vR(){if(xw)return La;xw=1,La.byteLength=o,La.toByteArray=u,La.fromByteArray=d;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,i=n.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var b=p.indexOf("=");b===-1&&(b=g);var v=b===g?0:4-b%4;return[b,v]}function o(p){var g=a(p),b=g[0],v=g[1];return(b+v)*3/4-v}function l(p,g,b){return(g+b)*3/4-b}function u(p){var g,b=a(p),v=b[0],w=b[1],_=new r(l(p,v,w)),y=0,x=w>0?v-4:v,T;for(T=0;T>16&255,_[y++]=g>>8&255,_[y++]=g&255;return w===2&&(g=e[p.charCodeAt(T)]<<2|e[p.charCodeAt(T+1)]>>4,_[y++]=g&255),w===1&&(g=e[p.charCodeAt(T)]<<10|e[p.charCodeAt(T+1)]<<4|e[p.charCodeAt(T+2)]>>2,_[y++]=g>>8&255,_[y++]=g&255),_}function c(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function f(p,g,b){for(var v,w=[],_=g;_x?x:y+_));return v===1?(g=p[b-1],w.push(t[g>>2]+t[g<<4&63]+"==")):v===2&&(g=(p[b-2]<<8)+p[b-1],w.push(t[g>>10]+t[g>>4&63]+t[g<<2&63]+"=")),w.join("")}return La}var iu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var Tw;function _R(){return Tw||(Tw=1,iu.read=function(t,e,r,n,s){var i,a,o=s*8-n-1,l=(1<>1,c=-7,f=r?s-1:0,d=r?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=o;c>0;i=i*256+t[e+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=a*256+t[e+f],f+=d,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-u}return(p?-1:1)*a*Math.pow(2,i-n)},iu.write=function(t,e,r,n,s,i){var a,o,l,u=i*8-s-1,c=(1<>1,d=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,g=n?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?e+=d/l:e+=d*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=c?(o=0,a=c):a+f>=1?(o=(e*l-1)*Math.pow(2,s),a=a+f):(o=e*Math.pow(2,f-1)*Math.pow(2,s),a=0));s>=8;t[r+p]=o&255,p+=g,o/=256,s-=8);for(a=a<0;t[r+p]=a&255,p+=g,a/=256,u-=8);t[r+p-g]|=b*128}),iu}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var Aw;function Zr(){return Aw||(Aw=1,function(t){const e=vR(),r=_R(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;const s=2147483647;t.kMaxLength=s,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const m=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(m,h),m.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(m){if(m>s)throw new RangeError('The value "'+m+'" is invalid for option "size"');const h=new Uint8Array(m);return Object.setPrototypeOf(h,o.prototype),h}function o(m,h,E){if(typeof m=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(m)}return l(m,h,E)}o.poolSize=8192;function l(m,h,E){if(typeof m=="string")return d(m,h);if(ArrayBuffer.isView(m))return g(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Q(m,ArrayBuffer)||m&&Q(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(m,SharedArrayBuffer)||m&&Q(m.buffer,SharedArrayBuffer)))return b(m,h,E);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const O=m.valueOf&&m.valueOf();if(O!=null&&O!==m)return o.from(O,h,E);const te=v(m);if(te)return te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return o.from(m[Symbol.toPrimitive]("string"),h,E);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}o.from=function(m,h,E){return l(m,h,E)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function u(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function c(m,h,E){return u(m),m<=0?a(m):h!==void 0?typeof E=="string"?a(m).fill(h,E):a(m).fill(h):a(m)}o.alloc=function(m,h,E){return c(m,h,E)};function f(m){return u(m),a(m<0?0:w(m)|0)}o.allocUnsafe=function(m){return f(m)},o.allocUnsafeSlow=function(m){return f(m)};function d(m,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);const E=y(m,h)|0;let O=a(E);const te=O.write(m,h);return te!==E&&(O=O.slice(0,te)),O}function p(m){const h=m.length<0?0:w(m.length)|0,E=a(h);for(let O=0;O=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return m|0}function _(m){return+m!=m&&(m=0),o.alloc(+m)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,E){if(Q(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),Q(E,Uint8Array)&&(E=o.from(E,E.offset,E.byteLength)),!o.isBuffer(h)||!o.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===E)return 0;let O=h.length,te=E.length;for(let he=0,Ce=Math.min(O,te);hete.length?(o.isBuffer(Ce)||(Ce=o.from(Ce)),Ce.copy(te,he)):Uint8Array.prototype.set.call(te,Ce,he);else if(o.isBuffer(Ce))Ce.copy(te,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=Ce.length}return te};function y(m,h){if(o.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||Q(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const E=m.length,O=arguments.length>2&&arguments[2]===!0;if(!O&&E===0)return 0;let te=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":return q(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E*2;case"hex":return E>>>1;case"base64":return Y(m).length;default:if(te)return O?-1:q(m).length;h=(""+h).toLowerCase(),te=!0}}o.byteLength=y;function x(m,h,E){let O=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0,h>>>=0,E<=h))return"";for(m||(m="utf8");;)switch(m){case"hex":return fe(this,h,E);case"utf8":case"utf-8":return $(this,h,E);case"ascii":return re(this,h,E);case"latin1":case"binary":return N(this,h,E);case"base64":return M(this,h,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,h,E);default:if(O)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),O=!0}}o.prototype._isBuffer=!0;function T(m,h,E){const O=m[h];m[h]=m[E],m[E]=O}o.prototype.swap16=function(){const h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let E=0;EE&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,E,O,te,he){if(Q(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(E===void 0&&(E=0),O===void 0&&(O=h?h.length:0),te===void 0&&(te=0),he===void 0&&(he=this.length),E<0||O>h.length||te<0||he>this.length)throw new RangeError("out of range index");if(te>=he&&E>=O)return 0;if(te>=he)return-1;if(E>=O)return 1;if(E>>>=0,O>>>=0,te>>>=0,he>>>=0,this===h)return 0;let Ce=he-te,Ue=O-E;const We=Math.min(Ce,Ue),De=this.slice(te,he),He=h.slice(E,O);for(let ze=0;ze2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,oe(E)&&(E=te?0:m.length-1),E<0&&(E=m.length+E),E>=m.length){if(te)return-1;E=m.length-1}else if(E<0)if(te)E=0;else return-1;if(typeof h=="string"&&(h=o.from(h,O)),o.isBuffer(h))return h.length===0?-1:C(m,h,E,O,te);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?te?Uint8Array.prototype.indexOf.call(m,h,E):Uint8Array.prototype.lastIndexOf.call(m,h,E):C(m,[h],E,O,te);throw new TypeError("val must be string, number or Buffer")}function C(m,h,E,O,te){let he=1,Ce=m.length,Ue=h.length;if(O!==void 0&&(O=String(O).toLowerCase(),O==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le")){if(m.length<2||h.length<2)return-1;he=2,Ce/=2,Ue/=2,E/=2}function We(He,ze){return he===1?He[ze]:He.readUInt16BE(ze*he)}let De;if(te){let He=-1;for(De=E;DeCe&&(E=Ce-Ue),De=E;De>=0;De--){let He=!0;for(let ze=0;zete&&(O=te)):O=te;const he=h.length;O>he/2&&(O=he/2);let Ce;for(Ce=0;Ce>>0,isFinite(O)?(O=O>>>0,te===void 0&&(te="utf8")):(te=O,O=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const he=this.length-E;if((O===void 0||O>he)&&(O=he),h.length>0&&(O<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let Ce=!1;for(;;)switch(te){case"hex":return L(this,h,E,O);case"utf8":case"utf-8":return j(this,h,E,O);case"ascii":case"latin1":case"binary":return R(this,h,E,O);case"base64":return U(this,h,E,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,h,E,O);default:if(Ce)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),Ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(m,h,E){return h===0&&E===m.length?e.fromByteArray(m):e.fromByteArray(m.slice(h,E))}function $(m,h,E){E=Math.min(m.length,E);const O=[];let te=h;for(;te239?4:he>223?3:he>191?2:1;if(te+Ue<=E){let We,De,He,ze;switch(Ue){case 1:he<128&&(Ce=he);break;case 2:We=m[te+1],(We&192)===128&&(ze=(he&31)<<6|We&63,ze>127&&(Ce=ze));break;case 3:We=m[te+1],De=m[te+2],(We&192)===128&&(De&192)===128&&(ze=(he&15)<<12|(We&63)<<6|De&63,ze>2047&&(ze<55296||ze>57343)&&(Ce=ze));break;case 4:We=m[te+1],De=m[te+2],He=m[te+3],(We&192)===128&&(De&192)===128&&(He&192)===128&&(ze=(he&15)<<18|(We&63)<<12|(De&63)<<6|He&63,ze>65535&&ze<1114112&&(Ce=ze))}}Ce===null?(Ce=65533,Ue=1):Ce>65535&&(Ce-=65536,O.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),O.push(Ce),te+=Ue}return ne(O)}const Z=4096;function ne(m){const h=m.length;if(h<=Z)return String.fromCharCode.apply(String,m);let E="",O=0;for(;OO)&&(E=O);let te="";for(let he=h;heO&&(h=O),E<0?(E+=O,E<0&&(E=0)):E>O&&(E=O),EE)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,E,O){h=h>>>0,E=E>>>0,O||pe(h,E,this.length);let te=this[h],he=1,Ce=0;for(;++Ce>>0,E=E>>>0,O||pe(h,E,this.length);let te=this[h+--E],he=1;for(;E>0&&(he*=256);)te+=this[h+--E]*he;return te},o.prototype.readUint8=o.prototype.readUInt8=function(h,E){return h=h>>>0,E||pe(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,E){return h=h>>>0,E||pe(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,E){return h=h>>>0,E||pe(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,E){return h=h>>>0,E||pe(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(h,E){return h=h>>>0,E||pe(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=Te(function(h){h=h>>>0,P(h,"offset");const E=this[h],O=this[h+7];(E===void 0||O===void 0)&&V(h,this.length-8);const te=E+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24,he=this[++h]+this[++h]*2**8+this[++h]*2**16+O*2**24;return BigInt(te)+(BigInt(he)<>>0,P(h,"offset");const E=this[h],O=this[h+7];(E===void 0||O===void 0)&&V(h,this.length-8);const te=E*2**24+this[++h]*2**16+this[++h]*2**8+this[++h],he=this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+O;return(BigInt(te)<>>0,E=E>>>0,O||pe(h,E,this.length);let te=this[h],he=1,Ce=0;for(;++Ce=he&&(te-=Math.pow(2,8*E)),te},o.prototype.readIntBE=function(h,E,O){h=h>>>0,E=E>>>0,O||pe(h,E,this.length);let te=E,he=1,Ce=this[h+--te];for(;te>0&&(he*=256);)Ce+=this[h+--te]*he;return he*=128,Ce>=he&&(Ce-=Math.pow(2,8*E)),Ce},o.prototype.readInt8=function(h,E){return h=h>>>0,E||pe(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,E){h=h>>>0,E||pe(h,2,this.length);const O=this[h]|this[h+1]<<8;return O&32768?O|4294901760:O},o.prototype.readInt16BE=function(h,E){h=h>>>0,E||pe(h,2,this.length);const O=this[h+1]|this[h]<<8;return O&32768?O|4294901760:O},o.prototype.readInt32LE=function(h,E){return h=h>>>0,E||pe(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,E){return h=h>>>0,E||pe(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=Te(function(h){h=h>>>0,P(h,"offset");const E=this[h],O=this[h+7];(E===void 0||O===void 0)&&V(h,this.length-8);const te=this[h+4]+this[h+5]*2**8+this[h+6]*2**16+(O<<24);return(BigInt(te)<>>0,P(h,"offset");const E=this[h],O=this[h+7];(E===void 0||O===void 0)&&V(h,this.length-8);const te=(E<<24)+this[++h]*2**16+this[++h]*2**8+this[++h];return(BigInt(te)<>>0,E||pe(h,4,this.length),r.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,E){return h=h>>>0,E||pe(h,4,this.length),r.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,E){return h=h>>>0,E||pe(h,8,this.length),r.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,E){return h=h>>>0,E||pe(h,8,this.length),r.read(this,h,!1,52,8)};function F(m,h,E,O,te,he){if(!o.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>te||hm.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,E,O,te){if(h=+h,E=E>>>0,O=O>>>0,!te){const Ue=Math.pow(2,8*O)-1;F(this,h,E,O,Ue,0)}let he=1,Ce=0;for(this[E]=h&255;++Ce>>0,O=O>>>0,!te){const Ue=Math.pow(2,8*O)-1;F(this,h,E,O,Ue,0)}let he=O-1,Ce=1;for(this[E+he]=h&255;--he>=0&&(Ce*=256);)this[E+he]=h/Ce&255;return E+O},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,1,255,0),this[E]=h&255,E+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,2,65535,0),this[E]=h&255,this[E+1]=h>>>8,E+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,2,65535,0),this[E]=h>>>8,this[E+1]=h&255,E+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,4,4294967295,0),this[E+3]=h>>>24,this[E+2]=h>>>16,this[E+1]=h>>>8,this[E]=h&255,E+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,4,4294967295,0),this[E]=h>>>24,this[E+1]=h>>>16,this[E+2]=h>>>8,this[E+3]=h&255,E+4};function de(m,h,E,O,te){k(h,O,te,m,E,7);let he=Number(h&BigInt(4294967295));m[E++]=he,he=he>>8,m[E++]=he,he=he>>8,m[E++]=he,he=he>>8,m[E++]=he;let Ce=Number(h>>BigInt(32)&BigInt(4294967295));return m[E++]=Ce,Ce=Ce>>8,m[E++]=Ce,Ce=Ce>>8,m[E++]=Ce,Ce=Ce>>8,m[E++]=Ce,E}function Se(m,h,E,O,te){k(h,O,te,m,E,7);let he=Number(h&BigInt(4294967295));m[E+7]=he,he=he>>8,m[E+6]=he,he=he>>8,m[E+5]=he,he=he>>8,m[E+4]=he;let Ce=Number(h>>BigInt(32)&BigInt(4294967295));return m[E+3]=Ce,Ce=Ce>>8,m[E+2]=Ce,Ce=Ce>>8,m[E+1]=Ce,Ce=Ce>>8,m[E]=Ce,E+8}o.prototype.writeBigUInt64LE=Te(function(h,E=0){return de(this,h,E,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Te(function(h,E=0){return Se(this,h,E,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,E,O,te){if(h=+h,E=E>>>0,!te){const We=Math.pow(2,8*O-1);F(this,h,E,O,We-1,-We)}let he=0,Ce=1,Ue=0;for(this[E]=h&255;++he>0)-Ue&255;return E+O},o.prototype.writeIntBE=function(h,E,O,te){if(h=+h,E=E>>>0,!te){const We=Math.pow(2,8*O-1);F(this,h,E,O,We-1,-We)}let he=O-1,Ce=1,Ue=0;for(this[E+he]=h&255;--he>=0&&(Ce*=256);)h<0&&Ue===0&&this[E+he+1]!==0&&(Ue=1),this[E+he]=(h/Ce>>0)-Ue&255;return E+O},o.prototype.writeInt8=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,1,127,-128),h<0&&(h=255+h+1),this[E]=h&255,E+1},o.prototype.writeInt16LE=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,2,32767,-32768),this[E]=h&255,this[E+1]=h>>>8,E+2},o.prototype.writeInt16BE=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,2,32767,-32768),this[E]=h>>>8,this[E+1]=h&255,E+2},o.prototype.writeInt32LE=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,4,2147483647,-2147483648),this[E]=h&255,this[E+1]=h>>>8,this[E+2]=h>>>16,this[E+3]=h>>>24,E+4},o.prototype.writeInt32BE=function(h,E,O){return h=+h,E=E>>>0,O||F(this,h,E,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[E]=h>>>24,this[E+1]=h>>>16,this[E+2]=h>>>8,this[E+3]=h&255,E+4},o.prototype.writeBigInt64LE=Te(function(h,E=0){return de(this,h,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Te(function(h,E=0){return Se(this,h,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ee(m,h,E,O,te,he){if(E+O>m.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function K(m,h,E,O,te){return h=+h,E=E>>>0,te||ee(m,h,E,4),r.write(m,h,E,O,23,4),E+4}o.prototype.writeFloatLE=function(h,E,O){return K(this,h,E,!0,O)},o.prototype.writeFloatBE=function(h,E,O){return K(this,h,E,!1,O)};function W(m,h,E,O,te){return h=+h,E=E>>>0,te||ee(m,h,E,8),r.write(m,h,E,O,52,8),E+8}o.prototype.writeDoubleLE=function(h,E,O){return W(this,h,E,!0,O)},o.prototype.writeDoubleBE=function(h,E,O){return W(this,h,E,!1,O)},o.prototype.copy=function(h,E,O,te){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(O||(O=0),!te&&te!==0&&(te=this.length),E>=h.length&&(E=h.length),E||(E=0),te>0&&te=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),h.length-E>>0,O=O===void 0?this.length:O>>>0,h||(h=0);let he;if(typeof h=="number")for(he=E;he2**32?te=ce(String(E)):typeof E=="bigint"&&(te=String(E),(E>BigInt(2)**BigInt(32)||E<-(BigInt(2)**BigInt(32)))&&(te=ce(te)),te+="n"),O+=` It must be ${h}. Received ${te}`,O},RangeError);function ce(m){let h="",E=m.length;const O=m[0]==="-"?1:0;for(;E>=O+4;E-=3)h=`_${m.slice(E-3,E)}${h}`;return`${m.slice(0,E)}${h}`}function le(m,h,E){P(h,"offset"),(m[h]===void 0||m[h+E]===void 0)&&V(h,m.length-(E+1))}function k(m,h,E,O,te,he){if(m>E||m= 0${Ce} and < 2${Ce} ** ${(he+1)*8}${Ce}`:Ue=`>= -(2${Ce} ** ${(he+1)*8-1}${Ce}) and < 2 ** ${(he+1)*8-1}${Ce}`,new D.ERR_OUT_OF_RANGE("value",Ue,m)}le(O,te,he)}function P(m,h){if(typeof m!="number")throw new D.ERR_INVALID_ARG_TYPE(h,"number",m)}function V(m,h,E){throw Math.floor(m)!==m?(P(m,E),new D.ERR_OUT_OF_RANGE("offset","an integer",m)):h<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${h}`,m)}const B=/[^+/0-9A-Za-z-_]/g;function H(m){if(m=m.split("=")[0],m=m.trim().replace(B,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function q(m,h){h=h||1/0;let E;const O=m.length;let te=null;const he=[];for(let Ce=0;Ce55295&&E<57344){if(!te){if(E>56319){(h-=3)>-1&&he.push(239,191,189);continue}else if(Ce+1===O){(h-=3)>-1&&he.push(239,191,189);continue}te=E;continue}if(E<56320){(h-=3)>-1&&he.push(239,191,189),te=E;continue}E=(te-55296<<10|E-56320)+65536}else te&&(h-=3)>-1&&he.push(239,191,189);if(te=null,E<128){if((h-=1)<0)break;he.push(E)}else if(E<2048){if((h-=2)<0)break;he.push(E>>6|192,E&63|128)}else if(E<65536){if((h-=3)<0)break;he.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((h-=4)<0)break;he.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return he}function ue(m){const h=[];for(let E=0;E>8,te=E%256,he.push(te),he.push(O);return he}function Y(m){return e.toByteArray(H(m))}function ie(m,h,E,O){let te;for(te=0;te=h.length||te>=m.length);++te)h[te+E]=m[te];return te}function Q(m,h){return m instanceof h||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===h.name}function oe(m){return m!==m}const me=function(){const m="0123456789abcdef",h=new Array(256);for(let E=0;E<16;++E){const O=E*16;for(let te=0;te<16;++te)h[O+te]=m[E]+m[te]}return h}();function Te(m){return typeof BigInt>"u"?S:m}function S(){throw new Error("BigInt not supported")}}(id)),id}var sd,Cw;function jt(){if(Cw)return sd;Cw=1;class t extends Error{constructor(r){if(!Array.isArray(r))throw new TypeError(`Expected input to be an Array, got ${typeof r}`);let n="";for(let s=0;s=y+4;_-=3)w=`_${v.slice(_-3,_)}${w}`;return`${v.slice(0,_)}${w}`}function f(v,w,_){if(typeof w=="function")return u(w.length<=_.length,`Code: ${v}; The provided arguments length (${_.length}) does not match the required ones (${w.length}).`),w(..._);const y=(w.match(/%[dfijoOs]/g)||[]).length;return u(y===_.length,`Code: ${v}; The provided arguments length (${_.length}) does not match the required ones (${y}).`),_.length===0?w:t(w,..._)}function d(v,w,_){_||(_=Error);class y extends _{constructor(...T){super(f(v,w,T))}toString(){return`${this.name} [${v}]: ${this.message}`}}Object.defineProperties(y.prototype,{name:{value:_.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${v}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),y.prototype.code=v,y.prototype[s]=!0,l[v]=y}function p(v){const w=o+v.name;return Object.defineProperty(v,"name",{value:w}),v}function g(v,w){if(v&&w&&v!==w){if(Array.isArray(w.errors))return w.errors.push(v),w;const _=new n([w,v],w.message);return _.code=w.code,_}return v||w}class b extends Error{constructor(w="The operation was aborted",_=void 0){if(_!==void 0&&typeof _!="object")throw new l.ERR_INVALID_ARG_TYPE("options","Object",_);super(w,_),this.code="ABORT_ERR",this.name="AbortError"}}return d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",(v,w,_)=>{u(typeof v=="string","'name' must be a string"),Array.isArray(w)||(w=[w]);let y="The ";v.endsWith(" argument")?y+=`${v} `:y+=`"${v}" ${v.includes(".")?"property":"argument"} `,y+="must be ";const x=[],T=[],A=[];for(const L of w)u(typeof L=="string","All expected entries have to be of type string"),i.includes(L)?x.push(L.toLowerCase()):a.test(L)?T.push(L):(u(L!=="object",'The value "object" should be written as "Object"'),A.push(L));if(T.length>0){const L=x.indexOf("object");L!==-1&&(x.splice(x,L,1),T.push("Object"))}if(x.length>0){switch(x.length){case 1:y+=`of type ${x[0]}`;break;case 2:y+=`one of type ${x[0]} or ${x[1]}`;break;default:{const L=x.pop();y+=`one of type ${x.join(", ")}, or ${L}`}}(T.length>0||A.length>0)&&(y+=" or ")}if(T.length>0){switch(T.length){case 1:y+=`an instance of ${T[0]}`;break;case 2:y+=`an instance of ${T[0]} or ${T[1]}`;break;default:{const L=T.pop();y+=`an instance of ${T.join(", ")}, or ${L}`}}A.length>0&&(y+=" or ")}switch(A.length){case 0:break;case 1:A[0].toLowerCase()!==A[0]&&(y+="an "),y+=`${A[0]}`;break;case 2:y+=`one of ${A[0]} or ${A[1]}`;break;default:{const L=A.pop();y+=`one of ${A.join(", ")}, or ${L}`}}if(_==null)y+=`. Received ${_}`;else if(typeof _=="function"&&_.name)y+=`. Received function ${_.name}`;else if(typeof _=="object"){var C;if((C=_.constructor)!==null&&C!==void 0&&C.name)y+=`. Received an instance of ${_.constructor.name}`;else{const L=e(_,{depth:-1});y+=`. Received ${L}`}}else{let L=e(_,{colors:!1});L.length>25&&(L=`${L.slice(0,25)}...`),y+=`. Received type ${typeof _} (${L})`}return y},TypeError),d("ERR_INVALID_ARG_VALUE",(v,w,_="is invalid")=>{let y=e(w);return y.length>128&&(y=y.slice(0,128)+"..."),`The ${v.includes(".")?"property":"argument"} '${v}' ${_}. Received ${y}`},TypeError),d("ERR_INVALID_RETURN_VALUE",(v,w,_)=>{var y;const x=_!=null&&(y=_.constructor)!==null&&y!==void 0&&y.name?`instance of ${_.constructor.name}`:`type ${typeof _}`;return`Expected ${v} to be returned from the "${w}" function but got ${x}.`},TypeError),d("ERR_MISSING_ARGS",(...v)=>{u(v.length>0,"At least one arg needs to be specified");let w;const _=v.length;switch(v=(Array.isArray(v)?v:[v]).map(y=>`"${y}"`).join(" or "),_){case 1:w+=`The ${v[0]} argument`;break;case 2:w+=`The ${v[0]} and ${v[1]} arguments`;break;default:{const y=v.pop();w+=`The ${v.join(", ")}, and ${y} arguments`}break}return`${w} must be specified`},TypeError),d("ERR_OUT_OF_RANGE",(v,w,_)=>{u(w,'Missing "range" argument');let y;if(Number.isInteger(_)&&Math.abs(_)>2**32)y=c(String(_));else if(typeof _=="bigint"){y=String(_);const x=BigInt(2)**BigInt(32);(_>x||_<-x)&&(y=c(y)),y+="n"}else y=e(_);return`The value of "${v}" is out of range. It must be ${w}. Received ${y}`},RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),ld={AbortError:b,aggregateTwoErrors:p(g),hideStackFrames:p,codes:l},ld}var Ra={exports:{}},kw;function bl(){if(kw)return Ra.exports;kw=1;const{AbortController:t,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Ra.exports=t,Ra.exports.AbortSignal=e,Ra.exports.default=t,Ra.exports}var su={exports:{}},Pw;function ca(){if(Pw)return su.exports;Pw=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(T,A,C){return Function.prototype.apply.call(T,A,C)},r;t&&typeof t.ownKeys=="function"?r=t.ownKeys:Object.getOwnPropertySymbols?r=function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:r=function(T){return Object.getOwnPropertyNames(T)};function n(x){console&&console.warn&&console.warn(x)}var s=Number.isNaN||function(T){return T!==T};function i(){i.init.call(this)}su.exports=i,su.exports.once=w,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function o(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(x){if(typeof x!="number"||x<0||s(x))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+x+".");a=x}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||s(T))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+T+".");return this._maxListeners=T,this};function l(x){return x._maxListeners===void 0?i.defaultMaxListeners:x._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(T){for(var A=[],C=1;C0&&(R=A[0]),R instanceof Error)throw R;var U=new Error("Unhandled error."+(R?" ("+R.message+")":""));throw U.context=R,U}var I=j[T];if(I===void 0)return!1;if(typeof I=="function")e(I,this,A);else for(var M=I.length,$=g(I,M),C=0;C0&&R.length>L&&!R.warned){R.warned=!0;var U=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");U.name="MaxListenersExceededWarning",U.emitter=x,U.type=T,U.count=R.length,n(U)}return x}i.prototype.addListener=function(T,A){return u(this,T,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(T,A){return u(this,T,A,!0)};function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(x,T,A){var C={fired:!1,wrapFn:void 0,target:x,type:T,listener:A},L=c.bind(C);return L.listener=A,C.wrapFn=L,L}i.prototype.once=function(T,A){return o(A),this.on(T,f(this,T,A)),this},i.prototype.prependOnceListener=function(T,A){return o(A),this.prependListener(T,f(this,T,A)),this},i.prototype.removeListener=function(T,A){var C,L,j,R,U;if(o(A),L=this._events,L===void 0)return this;if(C=L[T],C===void 0)return this;if(C===A||C.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete L[T],L.removeListener&&this.emit("removeListener",T,C.listener||A));else if(typeof C!="function"){for(j=-1,R=C.length-1;R>=0;R--)if(C[R]===A||C[R].listener===A){U=C[R].listener,j=R;break}if(j<0)return this;j===0?C.shift():b(C,j),C.length===1&&(L[T]=C[0]),L.removeListener!==void 0&&this.emit("removeListener",T,U||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(T){var A,C,L;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[T]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[T]),this;if(arguments.length===0){var j=Object.keys(C),R;for(L=0;L=0;L--)this.removeListener(T,A[L]);return this};function d(x,T,A){var C=x._events;if(C===void 0)return[];var L=C[T];return L===void 0?[]:typeof L=="function"?A?[L.listener||L]:[L]:A?v(L):g(L,L.length)}i.prototype.listeners=function(T){return d(this,T,!0)},i.prototype.rawListeners=function(T){return d(this,T,!1)},i.listenerCount=function(x,T){return typeof x.listenerCount=="function"?x.listenerCount(T):p.call(x,T)},i.prototype.listenerCount=p;function p(x){var T=this._events;if(T!==void 0){var A=T[x];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function g(x,T){for(var A=new Array(T),C=0;C{if(b!==void 0&&(b===null||typeof b!="object"||!("aborted"in b)))throw new s(v,"AbortSignal",b)},g=(b,v)=>{if(typeof b!="function")throw new s(v,"Function",b)};t.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(b){let v=!1;return function(...w){v||(v=!0,b.apply(this,w))}},createDeferredPromise:function(){let b,v;return{promise:new Promise((_,y)=>{b=_,v=y}),resolve:b,reject:v}},promisify(b){return new Promise((v,w)=>{b((_,...y)=>_?w(_):v(...y))})},debuglog(){return function(){}},format:r,inspect:n,types:{isAsyncFunction(b){return b instanceof c},isArrayBufferView(b){return ArrayBuffer.isView(b)}},isBlob:d,deprecate(b,v){return b},addAbortListener:ca().addAbortListener||function(v,w){if(v===void 0)throw new s("signal","AbortSignal",v);p(v,"signal"),g(w,"listener");let _;return v.aborted?queueMicrotask(()=>w()):(v.addEventListener("abort",w,{__proto__:null,once:!0,[i]:!0}),_=()=>{v.removeEventListener("abort",w)}),{__proto__:null,[o](){var y;(y=_)===null||y===void 0||y()}}},AbortSignalAny:l.any||function(v){if(v.length===1)return v[0];const w=new u,_=()=>w.abort();return v.forEach(y=>{p(y,"signals"),y.addEventListener("abort",_,{once:!0})}),w.signal.addEventListener("abort",()=>{v.forEach(y=>y.removeEventListener("abort",_))},{once:!0}),w.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}(od)),od.exports}var ou={},ud,Lw;function Pl(){if(Lw)return ud;Lw=1;const{ArrayIsArray:t,ArrayPrototypeIncludes:e,ArrayPrototypeJoin:r,ArrayPrototypeMap:n,NumberIsInteger:s,NumberIsNaN:i,NumberMAX_SAFE_INTEGER:a,NumberMIN_SAFE_INTEGER:o,NumberParseInt:l,ObjectPrototypeHasOwnProperty:u,RegExpPrototypeExec:c,String:f,StringPrototypeToUpperCase:d,StringPrototypeTrim:p}=jt(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:y}}=Pr(),{normalizeEncoding:x}=Nr(),{isAsyncFunction:T,isArrayBufferView:A}=Nr().types,C={};function L(J){return J===(J|0)}function j(J){return J===J>>>0}const R=/^[0-7]+$/,U="must be a 32-bit unsigned integer or an octal string";function I(J,Y,ie){if(typeof J>"u"&&(J=ie),typeof J=="string"){if(c(R,J)===null)throw new w(Y,J,U);J=l(J,8)}return Z(J,Y),J}const M=g((J,Y,ie=o,Q=a)=>{if(typeof J!="number")throw new v(Y,"number",J);if(!s(J))throw new _(Y,"an integer",J);if(JQ)throw new _(Y,`>= ${ie} && <= ${Q}`,J)}),$=g((J,Y,ie=-2147483648,Q=2147483647)=>{if(typeof J!="number")throw new v(Y,"number",J);if(!s(J))throw new _(Y,"an integer",J);if(JQ)throw new _(Y,`>= ${ie} && <= ${Q}`,J)}),Z=g((J,Y,ie=!1)=>{if(typeof J!="number")throw new v(Y,"number",J);if(!s(J))throw new _(Y,"an integer",J);const Q=ie?1:0,oe=4294967295;if(Joe)throw new _(Y,`>= ${Q} && <= ${oe}`,J)});function ne(J,Y){if(typeof J!="string")throw new v(Y,"string",J)}function re(J,Y,ie=void 0,Q){if(typeof J!="number")throw new v(Y,"number",J);if(ie!=null&&JQ||(ie!=null||Q!=null)&&i(J))throw new _(Y,`${ie!=null?`>= ${ie}`:""}${ie!=null&&Q!=null?" && ":""}${Q!=null?`<= ${Q}`:""}`,J)}const N=g((J,Y,ie)=>{if(!e(ie,J)){const oe="must be one of: "+r(n(ie,me=>typeof me=="string"?`'${me}'`:f(me)),", ");throw new w(Y,J,oe)}});function fe(J,Y){if(typeof J!="boolean")throw new v(Y,"boolean",J)}function G(J,Y,ie){return J==null||!u(J,Y)?ie:J[Y]}const pe=g((J,Y,ie=null)=>{const Q=G(ie,"allowArray",!1),oe=G(ie,"allowFunction",!1);if(!G(ie,"nullable",!1)&&J===null||!Q&&t(J)||typeof J!="object"&&(!oe||typeof J!="function"))throw new v(Y,"Object",J)}),F=g((J,Y)=>{if(J!=null&&typeof J!="object"&&typeof J!="function")throw new v(Y,"a dictionary",J)}),de=g((J,Y,ie=0)=>{if(!t(J))throw new v(Y,"Array",J);if(J.length{if(!A(J))throw new v(Y,["Buffer","TypedArray","DataView"],J)});function X(J,Y){const ie=x(Y),Q=J.length;if(ie==="hex"&&Q%2!==0)throw new w("encoding",Y,`is invalid for data of length ${Q}`)}function ce(J,Y="Port",ie=!0){if(typeof J!="number"&&typeof J!="string"||typeof J=="string"&&p(J).length===0||+J!==+J>>>0||J>65535||J===0&&!ie)throw new b(Y,J,ie);return J|0}const le=g((J,Y)=>{if(J!==void 0&&(J===null||typeof J!="object"||!("aborted"in J)))throw new v(Y,"AbortSignal",J)}),k=g((J,Y)=>{if(typeof J!="function")throw new v(Y,"Function",J)}),P=g((J,Y)=>{if(typeof J!="function"||T(J))throw new v(Y,"Function",J)}),V=g((J,Y)=>{if(J!==void 0)throw new v(Y,"undefined",J)});function B(J,Y,ie){if(!e(ie,J))throw new v(Y,`('${r(ie,"|")}')`,J)}const H=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function q(J,Y){if(typeof J>"u"||!c(H,J))throw new w(Y,J,'must be an array or string of format "; rel=preload; as=style"')}function ue(J){if(typeof J=="string")return q(J,"hints"),J;if(t(J)){const Y=J.length;let ie="";if(Y===0)return ie;for(let Q=0;Q; rel=preload; as=style"')}return ud={isInt32:L,isUint32:j,parseFileMode:I,validateArray:de,validateStringArray:Se,validateBooleanArray:ee,validateAbortSignalArray:K,validateBoolean:fe,validateBuffer:D,validateDictionary:F,validateEncoding:X,validateFunction:k,validateInt32:$,validateInteger:M,validateNumber:re,validateObject:pe,validateOneOf:N,validatePlainFunction:P,validatePort:ce,validateSignalName:W,validateString:ne,validateUint32:Z,validateUndefined:V,validateUnion:B,validateAbortSignal:le,validateLinkHeaderValue:ue},ud}var au={exports:{}},cd={exports:{}},Rw;function ao(){if(Rw)return cd.exports;Rw=1;var t=cd.exports={},e,r;function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=n}catch{e=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=s}catch{r=s}})();function i(b){if(e===setTimeout)return setTimeout(b,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(b,0);try{return e(b,0)}catch{try{return e.call(null,b,0)}catch{return e.call(this,b,0)}}}function a(b){if(r===clearTimeout)return clearTimeout(b);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{return r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}var o=[],l=!1,u,c=-1;function f(){!l||!u||(l=!1,u.length?o=u.concat(o):c=-1,o.length&&d())}function d(){if(!l){var b=i(f);l=!0;for(var v=o.length;v;){for(u=o,o=[];++c1)for(var w=1;w{};function Z(N,fe,G){var pe,F;if(arguments.length===2?(G=fe,fe=i):fe==null?fe=i:u(fe,"options"),l(G,"callback"),o(fe.signal,"options.signal"),G=a(G),w(N)||A(N))return ne(N,fe,G);if(!j(N))throw new n("stream",["ReadableStream","WritableStream","Stream"],N);const de=(pe=fe.readable)!==null&&pe!==void 0?pe:v(N),Se=(F=fe.writable)!==null&&F!==void 0?F:T(N),ee=N._writableState,K=N._readableState,W=()=>{N.writable||ce()};let D=R(N)&&v(N)===de&&T(N)===Se,X=C(N,!1);const ce=()=>{X=!0,N.destroyed&&(D=!1),!(D&&(!N.readable||de))&&(!de||le)&&G.call(N)};let le=_(N,!1);const k=()=>{le=!0,N.destroyed&&(D=!1),!(D&&(!N.writable||Se))&&(!Se||X)&&G.call(N)},P=J=>{G.call(N,J)};let V=g(N);const B=()=>{V=!0;const J=L(N)||y(N);if(J&&typeof J!="boolean")return G.call(N,J);if(de&&!le&&v(N,!0)&&!_(N,!1))return G.call(N,new s);if(Se&&!X&&!C(N,!1))return G.call(N,new s);G.call(N)},H=()=>{V=!0;const J=L(N)||y(N);if(J&&typeof J!="boolean")return G.call(N,J);G.call(N)},q=()=>{N.req.on("finish",ce)};M(N)?(N.on("complete",ce),D||N.on("abort",B),N.req?q():N.on("request",q)):Se&&!ee&&(N.on("end",W),N.on("close",W)),!D&&typeof N.aborted=="boolean"&&N.on("aborted",B),N.on("end",k),N.on("finish",ce),fe.error!==!1&&N.on("error",P),N.on("close",B),V?t.nextTick(B):ee!=null&&ee.errorEmitted||K!=null&&K.errorEmitted?D||t.nextTick(H):(!de&&(!D||b(N))&&(X||x(N)===!1)||!Se&&(!D||x(N))&&(le||b(N)===!1)||K&&N.req&&N.aborted)&&t.nextTick(H);const ue=()=>{G=$,N.removeListener("aborted",B),N.removeListener("complete",ce),N.removeListener("abort",B),N.removeListener("request",q),N.req&&N.req.removeListener("finish",ce),N.removeListener("end",W),N.removeListener("close",W),N.removeListener("finish",ce),N.removeListener("end",k),N.removeListener("error",P),N.removeListener("close",B)};if(fe.signal&&!V){const J=()=>{const Y=G;ue(),Y.call(N,new e(void 0,{cause:fe.signal.reason}))};if(fe.signal.aborted)t.nextTick(J);else{I=I||Nr().addAbortListener;const Y=I(fe.signal,J),ie=G;G=a((...Q)=>{Y[p](),ie.apply(N,Q)})}}return ue}function ne(N,fe,G){let pe=!1,F=$;if(fe.signal)if(F=()=>{pe=!0,G.call(N,new e(void 0,{cause:fe.signal.reason}))},fe.signal.aborted)t.nextTick(F);else{I=I||Nr().addAbortListener;const Se=I(fe.signal,F),ee=G;G=a((...K)=>{Se[p](),ee.apply(N,K)})}const de=(...Se)=>{pe||t.nextTick(()=>G.apply(N,Se))};return d(N[U].promise,de,de),$}function re(N,fe){var G;let pe=!1;return fe===null&&(fe=i),(G=fe)!==null&&G!==void 0&&G.cleanup&&(c(fe.cleanup,"cleanup"),pe=fe.cleanup),new f((F,de)=>{const Se=Z(N,fe,ee=>{pe&&Se(),ee?de(ee):F()})})}return au.exports=Z,au.exports.finished=re,au.exports}var dd,Nw;function fa(){if(Nw)return dd;Nw=1;const t=ao(),{aggregateTwoErrors:e,codes:{ERR_MULTIPLE_CALLBACK:r},AbortError:n}=Pr(),{Symbol:s}=jt(),{kIsDestroyed:i,isDestroyed:a,isFinished:o,isServerRequest:l}=Bi(),u=s("kDestroy"),c=s("kConstruct");function f(R,U,I){R&&(R.stack,U&&!U.errored&&(U.errored=R),I&&!I.errored&&(I.errored=R))}function d(R,U){const I=this._readableState,M=this._writableState,$=M||I;return M!=null&&M.destroyed||I!=null&&I.destroyed?(typeof U=="function"&&U(),this):(f(R,M,I),M&&(M.destroyed=!0),I&&(I.destroyed=!0),$.constructed?p(this,R,U):this.once(u,function(Z){p(this,e(Z,R),U)}),this)}function p(R,U,I){let M=!1;function $(Z){if(M)return;M=!0;const ne=R._readableState,re=R._writableState;f(Z,re,ne),re&&(re.closed=!0),ne&&(ne.closed=!0),typeof I=="function"&&I(Z),Z?t.nextTick(g,R,Z):t.nextTick(b,R)}try{R._destroy(U||null,$)}catch(Z){$(Z)}}function g(R,U){v(R,U),b(R)}function b(R){const U=R._readableState,I=R._writableState;I&&(I.closeEmitted=!0),U&&(U.closeEmitted=!0),(I!=null&&I.emitClose||U!=null&&U.emitClose)&&R.emit("close")}function v(R,U){const I=R._readableState,M=R._writableState;M!=null&&M.errorEmitted||I!=null&&I.errorEmitted||(M&&(M.errorEmitted=!0),I&&(I.errorEmitted=!0),R.emit("error",U))}function w(){const R=this._readableState,U=this._writableState;R&&(R.constructed=!0,R.closed=!1,R.closeEmitted=!1,R.destroyed=!1,R.errored=null,R.errorEmitted=!1,R.reading=!1,R.ended=R.readable===!1,R.endEmitted=R.readable===!1),U&&(U.constructed=!0,U.destroyed=!1,U.closed=!1,U.closeEmitted=!1,U.errored=null,U.errorEmitted=!1,U.finalCalled=!1,U.prefinished=!1,U.ended=U.writable===!1,U.ending=U.writable===!1,U.finished=U.writable===!1)}function _(R,U,I){const M=R._readableState,$=R._writableState;if($!=null&&$.destroyed||M!=null&&M.destroyed)return this;M!=null&&M.autoDestroy||$!=null&&$.autoDestroy?R.destroy(U):U&&(U.stack,$&&!$.errored&&($.errored=U),M&&!M.errored&&(M.errored=U),I?t.nextTick(v,R,U):v(R,U))}function y(R,U){if(typeof R._construct!="function")return;const I=R._readableState,M=R._writableState;I&&(I.constructed=!1),M&&(M.constructed=!1),R.once(c,U),!(R.listenerCount(c)>1)&&t.nextTick(x,R)}function x(R){let U=!1;function I(M){if(U){_(R,M??new r);return}U=!0;const $=R._readableState,Z=R._writableState,ne=Z||$;$&&($.constructed=!0),Z&&(Z.constructed=!0),ne.destroyed?R.emit(u,M):M?_(R,M,!0):t.nextTick(T,R)}try{R._construct(M=>{t.nextTick(I,M)})}catch(M){t.nextTick(I,M)}}function T(R){R.emit(c)}function A(R){return(R==null?void 0:R.setHeader)&&typeof R.abort=="function"}function C(R){R.emit("close")}function L(R,U){R.emit("error",U),t.nextTick(C,R)}function j(R,U){!R||a(R)||(!U&&!o(R)&&(U=new n),l(R)?(R.socket=null,R.destroy(U)):A(R)?R.abort():A(R.req)?R.req.abort():typeof R.destroy=="function"?R.destroy(U):typeof R.close=="function"?R.close():U?t.nextTick(L,R,U):t.nextTick(C,R),R.destroyed||(R[i]=!0))}return dd={construct:y,destroyer:j,destroy:d,undestroy:w,errorOrDestroy:_},dd}var hd,Dw;function Mm(){if(Dw)return hd;Dw=1;const{ArrayIsArray:t,ObjectSetPrototypeOf:e}=jt(),{EventEmitter:r}=ca();function n(i){r.call(this,i)}e(n.prototype,r.prototype),e(n,r),n.prototype.pipe=function(i,a){const o=this;function l(b){i.writable&&i.write(b)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}i.on("drain",u),!i._isStdio&&(!a||a.end!==!1)&&(o.on("end",f),o.on("close",d));let c=!1;function f(){c||(c=!0,i.end())}function d(){c||(c=!0,typeof i.destroy=="function"&&i.destroy())}function p(b){g(),r.listenerCount(this,"error")===0&&this.emit("error",b)}s(o,"error",p),s(i,"error",p);function g(){o.removeListener("data",l),i.removeListener("drain",u),o.removeListener("end",f),o.removeListener("close",d),o.removeListener("error",p),i.removeListener("error",p),o.removeListener("end",g),o.removeListener("close",g),i.removeListener("close",g)}return o.on("end",g),o.on("close",g),i.on("close",g),i.emit("pipe",o),i};function s(i,a,o){if(typeof i.prependListener=="function")return i.prependListener(a,o);!i._events||!i._events[a]?i.on(a,o):t(i._events[a])?i._events[a].unshift(o):i._events[a]=[o,i._events[a]]}return hd={Stream:n,prependListener:s},hd}var pd={exports:{}},Uw;function nf(){return Uw||(Uw=1,function(t){const{SymbolDispose:e}=jt(),{AbortError:r,codes:n}=Pr(),{isNodeStream:s,isWebStream:i,kControllerErrorFunction:a}=Bi(),o=us(),{ERR_INVALID_ARG_TYPE:l}=n;let u;const c=(f,d)=>{if(typeof f!="object"||!("aborted"in f))throw new l(d,"AbortSignal",f)};t.exports.addAbortSignal=function(d,p){if(c(d,"signal"),!s(p)&&!i(p))throw new l("stream",["ReadableStream","WritableStream","Stream"],p);return t.exports.addAbortSignalNoValidate(d,p)},t.exports.addAbortSignalNoValidate=function(f,d){if(typeof f!="object"||!("aborted"in f))return d;const p=s(d)?()=>{d.destroy(new r(void 0,{cause:f.reason}))}:()=>{d[a](new r(void 0,{cause:f.reason}))};if(f.aborted)p();else{u=u||Nr().addAbortListener;const g=u(f,p);o(d,g[e])}return d}}(pd)),pd.exports}var gd,Fw;function ER(){if(Fw)return gd;Fw=1;const{StringPrototypeSlice:t,SymbolIterator:e,TypedArrayPrototypeSet:r,Uint8Array:n}=jt(),{Buffer:s}=Zr(),{inspect:i}=Nr();return gd=class{constructor(){this.head=null,this.tail=null,this.length=0}push(o){const l={data:o,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length}unshift(o){const l={data:o,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length}shift(){if(this.length===0)return;const o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}clear(){this.head=this.tail=null,this.length=0}join(o){if(this.length===0)return"";let l=this.head,u=""+l.data;for(;(l=l.next)!==null;)u+=o+l.data;return u}concat(o){if(this.length===0)return s.alloc(0);const l=s.allocUnsafe(o>>>0);let u=this.head,c=0;for(;u;)r(l,u.data,c),c+=u.data.length,u=u.next;return l}consume(o,l){const u=this.head.data;if(of.length)l+=f,o-=f.length;else{o===f.length?(l+=f,++c,u.next?this.head=u.next:this.head=this.tail=null):(l+=t(f,0,o),this.head=u,u.data=t(f,o));break}++c}while((u=u.next)!==null);return this.length-=c,l}_getBuffer(o){const l=s.allocUnsafe(o),u=o;let c=this.head,f=0;do{const d=c.data;if(o>d.length)r(l,d,u-o),o-=d.length;else{o===d.length?(r(l,d,u-o),++f,c.next?this.head=c.next:this.head=this.tail=null):(r(l,new n(d.buffer,d.byteOffset,o),u-o),this.head=c,c.data=d.slice(o));break}++f}while((c=c.next)!==null);return this.length-=f,l}[Symbol.for("nodejs.util.inspect.custom")](o,l){return i(this,{...l,depth:0,customInspect:!1})}},gd}var md,Vw;function sf(){if(Vw)return md;Vw=1;const{MathFloor:t,NumberIsInteger:e}=jt(),{validateInteger:r}=Pl(),{ERR_INVALID_ARG_VALUE:n}=Pr().codes;let s=16*1024,i=16;function a(c,f,d){return c.highWaterMark!=null?c.highWaterMark:f?c[d]:null}function o(c){return c?i:s}function l(c,f){r(f,"value",0),c?i=f:s=f}function u(c,f,d,p){const g=a(f,p,d);if(g!=null){if(!e(g)||g<0){const b=p?`options.${d}`:"options.highWaterMark";throw new n(b,g)}return t(g)}return o(c.objectMode)}return md={getHighWaterMark:u,getDefaultHighWaterMark:o,setDefaultHighWaterMark:l},md}var bd={},lu={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */var jw;function SR(){return jw||(jw=1,function(t,e){var r=Zr(),n=r.Buffer;function s(a,o){for(var l in a)o[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(s(r,e),e.Buffer=i);function i(a,o,l){return n(a,o,l)}i.prototype=Object.create(n.prototype),s(n,i),i.from=function(a,o,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,o,l)},i.alloc=function(a,o,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=n(a);return o!==void 0?typeof l=="string"?u.fill(o,l):u.fill(o):u.fill(0),u},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(lu,lu.exports)),lu.exports}var Ww;function xR(){if(Ww)return bd;Ww=1;var t=SR().Buffer,e=t.isEncoding||function(w){switch(w=""+w,w&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(w){if(!w)return"utf8";for(var _;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(_)return;w=(""+w).toLowerCase(),_=!0}}function n(w){var _=r(w);if(typeof _!="string"&&(t.isEncoding===e||!e(w)))throw new Error("Unknown encoding: "+w);return _||w}bd.StringDecoder=s;function s(w){this.encoding=n(w);var _;switch(this.encoding){case"utf16le":this.text=f,this.end=d,_=4;break;case"utf8":this.fillLast=l,_=4;break;case"base64":this.text=p,this.end=g,_=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(_)}s.prototype.write=function(w){if(w.length===0)return"";var _,y;if(this.lastNeed){if(_=this.fillLast(w),_===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y>5===6?2:w>>4===14?3:w>>3===30?4:w>>6===2?-1:-2}function a(w,_,y){var x=_.length-1;if(x=0?(T>0&&(w.lastNeed=T-1),T):--x=0?(T>0&&(w.lastNeed=T-2),T):--x=0?(T>0&&(T===2?T=0:w.lastNeed=T-3),T):0))}function o(w,_,y){if((_[0]&192)!==128)return w.lastNeed=0,"�";if(w.lastNeed>1&&_.length>1){if((_[1]&192)!==128)return w.lastNeed=1,"�";if(w.lastNeed>2&&_.length>2&&(_[2]&192)!==128)return w.lastNeed=2,"�"}}function l(w){var _=this.lastTotal-this.lastNeed,y=o(this,w);if(y!==void 0)return y;if(this.lastNeed<=w.length)return w.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,_,0,w.length),this.lastNeed-=w.length}function u(w,_){var y=a(this,w,_);if(!this.lastNeed)return w.toString("utf8",_);this.lastTotal=y;var x=w.length-(y-this.lastNeed);return w.copy(this.lastChar,0,x),w.toString("utf8",_,x)}function c(w){var _=w&&w.length?this.write(w):"";return this.lastNeed?_+"�":_}function f(w,_){if((w.length-_)%2===0){var y=w.toString("utf16le",_);if(y){var x=y.charCodeAt(y.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",_,w.length-1)}function d(w){var _=w&&w.length?this.write(w):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,y)}return _}function p(w,_){var y=(w.length-_)%3;return y===0?w.toString("base64",_):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",_,w.length-y))}function g(w){var _=w&&w.length?this.write(w):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function b(w){return w.toString(this.encoding)}function v(w){return w&&w.length?this.write(w):""}return bd}var yd,zw;function pS(){if(zw)return yd;zw=1;const t=ao(),{PromisePrototypeThen:e,SymbolAsyncIterator:r,SymbolIterator:n}=jt(),{Buffer:s}=Zr(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_NULL_VALUES:a}=Pr().codes;function o(l,u,c){let f;if(typeof u=="string"||u instanceof s)return new l({objectMode:!0,...c,read(){this.push(u),this.push(null)}});let d;if(u&&u[r])d=!0,f=u[r]();else if(u&&u[n])d=!1,f=u[n]();else throw new i("iterable",["Iterable"],u);const p=new l({objectMode:!0,highWaterMark:1,...c});let g=!1;p._read=function(){g||(g=!0,v())},p._destroy=function(w,_){e(b(w),()=>t.nextTick(_,w),y=>t.nextTick(_,y||w))};async function b(w){const _=w!=null,y=typeof f.throw=="function";if(_&&y){const{value:x,done:T}=await f.throw(w);if(await x,T)return}if(typeof f.return=="function"){const{value:x}=await f.return();await x}}async function v(){for(;;){try{const{value:w,done:_}=d?await f.next():f.next();if(_)p.push(null);else{const y=w&&typeof w.then=="function"?await w:w;if(y===null)throw g=!1,new a;if(p.push(y))continue;g=!1}}catch(w){p.destroy(w)}break}}return p}return yd=o,yd}var wd,Hw;function of(){if(Hw)return wd;Hw=1;const t=ao(),{ArrayPrototypeIndexOf:e,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:s,ObjectDefineProperties:i,ObjectKeys:a,ObjectSetPrototypeOf:o,Promise:l,SafeSet:u,SymbolAsyncDispose:c,SymbolAsyncIterator:f,Symbol:d}=jt();wd=Q,Q.ReadableState=ie;const{EventEmitter:p}=ca(),{Stream:g,prependListener:b}=Mm(),{Buffer:v}=Zr(),{addAbortSignal:w}=nf(),_=us();let y=Nr().debuglog("stream",ge=>{y=ge});const x=ER(),T=fa(),{getHighWaterMark:A,getDefaultHighWaterMark:C}=sf(),{aggregateTwoErrors:L,codes:{ERR_INVALID_ARG_TYPE:j,ERR_METHOD_NOT_IMPLEMENTED:R,ERR_OUT_OF_RANGE:U,ERR_STREAM_PUSH_AFTER_EOF:I,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:M},AbortError:$}=Pr(),{validateObject:Z}=Pl(),ne=d("kPaused"),{StringDecoder:re}=xR(),N=pS();o(Q.prototype,g.prototype),o(Q,g);const fe=()=>{},{errorOrDestroy:G}=T,pe=1,F=2,de=4,Se=8,ee=16,K=32,W=64,D=128,X=256,ce=512,le=1024,k=2048,P=4096,V=8192,B=16384,H=32768,q=65536,ue=1<<17,J=1<<18;function Y(ge){return{enumerable:!1,get(){return(this.state&ge)!==0},set(be){be?this.state|=ge:this.state&=~ge}}}i(ie.prototype,{objectMode:Y(pe),ended:Y(F),endEmitted:Y(de),reading:Y(Se),constructed:Y(ee),sync:Y(K),needReadable:Y(W),emittedReadable:Y(D),readableListening:Y(X),resumeScheduled:Y(ce),errorEmitted:Y(le),emitClose:Y(k),autoDestroy:Y(P),destroyed:Y(V),closed:Y(B),closeEmitted:Y(H),multiAwaitDrain:Y(q),readingMore:Y(ue),dataEmitted:Y(J)});function ie(ge,be,Fe){typeof Fe!="boolean"&&(Fe=be instanceof Ii()),this.state=k|P|ee|K,ge&&ge.objectMode&&(this.state|=pe),Fe&&ge&&ge.readableObjectMode&&(this.state|=pe),this.highWaterMark=ge?A(this,ge,"readableHighWaterMark",Fe):C(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this[ne]=null,ge&&ge.emitClose===!1&&(this.state&=-2049),ge&&ge.autoDestroy===!1&&(this.state&=-4097),this.errored=null,this.defaultEncoding=ge&&ge.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,ge&&ge.encoding&&(this.decoder=new re(ge.encoding),this.encoding=ge.encoding)}function Q(ge){if(!(this instanceof Q))return new Q(ge);const be=this instanceof Ii();this._readableState=new ie(ge,this,be),ge&&(typeof ge.read=="function"&&(this._read=ge.read),typeof ge.destroy=="function"&&(this._destroy=ge.destroy),typeof ge.construct=="function"&&(this._construct=ge.construct),ge.signal&&!be&&w(ge.signal,this)),g.call(this,ge),T.construct(this,()=>{this._readableState.needReadable&&te(this,this._readableState)})}Q.prototype.destroy=T.destroy,Q.prototype._undestroy=T.undestroy,Q.prototype._destroy=function(ge,be){be(ge)},Q.prototype[p.captureRejectionSymbol]=function(ge){this.destroy(ge)},Q.prototype[c]=function(){let ge;return this.destroyed||(ge=this.readableEnded?null:new $,this.destroy(ge)),new l((be,Fe)=>_(this,Ve=>Ve&&Ve!==ge?Fe(Ve):be(null)))},Q.prototype.push=function(ge,be){return oe(this,ge,be,!1)},Q.prototype.unshift=function(ge,be){return oe(this,ge,be,!0)};function oe(ge,be,Fe,Ve){y("readableAddChunk",be);const Ke=ge._readableState;let hr;if(Ke.state&pe||(typeof be=="string"?(Fe=Fe||Ke.defaultEncoding,Ke.encoding!==Fe&&(Ve&&Ke.encoding?be=v.from(be,Fe).toString(Ke.encoding):(be=v.from(be,Fe),Fe=""))):be instanceof v?Fe="":g._isUint8Array(be)?(be=g._uint8ArrayToBuffer(be),Fe=""):be!=null&&(hr=new j("chunk",["string","Buffer","Uint8Array"],be))),hr)G(ge,hr);else if(be===null)Ke.state&=-9,h(ge,Ke);else if(Ke.state&pe||be&&be.length>0)if(Ve)if(Ke.state&de)G(ge,new M);else{if(Ke.destroyed||Ke.errored)return!1;me(ge,Ke,be,!0)}else if(Ke.ended)G(ge,new I);else{if(Ke.destroyed||Ke.errored)return!1;Ke.state&=-9,Ke.decoder&&!Fe?(be=Ke.decoder.write(be),Ke.objectMode||be.length!==0?me(ge,Ke,be,!1):te(ge,Ke)):me(ge,Ke,be,!1)}else Ve||(Ke.state&=-9,te(ge,Ke));return!Ke.ended&&(Ke.length0?(be.state&q?be.awaitDrainWriters.clear():be.awaitDrainWriters=null,be.dataEmitted=!0,ge.emit("data",Fe)):(be.length+=be.objectMode?1:Fe.length,Ve?be.buffer.unshift(Fe):be.buffer.push(Fe),be.state&W&&E(ge)),te(ge,be)}Q.prototype.isPaused=function(){const ge=this._readableState;return ge[ne]===!0||ge.flowing===!1},Q.prototype.setEncoding=function(ge){const be=new re(ge);this._readableState.decoder=be,this._readableState.encoding=this._readableState.decoder.encoding;const Fe=this._readableState.buffer;let Ve="";for(const Ke of Fe)Ve+=be.write(Ke);return Fe.clear(),Ve!==""&&Fe.push(Ve),this._readableState.length=Ve.length,this};const Te=1073741824;function S(ge){if(ge>Te)throw new U("size","<= 1GiB",ge);return ge--,ge|=ge>>>1,ge|=ge>>>2,ge|=ge>>>4,ge|=ge>>>8,ge|=ge>>>16,ge++,ge}function m(ge,be){return ge<=0||be.length===0&&be.ended?0:be.state&pe?1:n(ge)?be.flowing&&be.length?be.buffer.first().length:be.length:ge<=be.length?ge:be.ended?be.length:0}Q.prototype.read=function(ge){y("read",ge),ge===void 0?ge=NaN:r(ge)||(ge=s(ge,10));const be=this._readableState,Fe=ge;if(ge>be.highWaterMark&&(be.highWaterMark=S(ge)),ge!==0&&(be.state&=-129),ge===0&&be.needReadable&&((be.highWaterMark!==0?be.length>=be.highWaterMark:be.length>0)||be.ended))return y("read: emitReadable",be.length,be.ended),be.length===0&&be.ended?qt(this):E(this),null;if(ge=m(ge,be),ge===0&&be.ended)return be.length===0&&qt(this),null;let Ve=(be.state&W)!==0;if(y("need readable",Ve),(be.length===0||be.length-ge0?Ke=Lt(ge,be):Ke=null,Ke===null?(be.needReadable=be.length<=be.highWaterMark,ge=0):(be.length-=ge,be.multiAwaitDrain?be.awaitDrainWriters.clear():be.awaitDrainWriters=null),be.length===0&&(be.ended||(be.needReadable=!0),Fe!==ge&&be.ended&&qt(this)),Ke!==null&&!be.errorEmitted&&!be.closeEmitted&&(be.dataEmitted=!0,this.emit("data",Ke)),Ke};function h(ge,be){if(y("onEofChunk"),!be.ended){if(be.decoder){const Fe=be.decoder.end();Fe&&Fe.length&&(be.buffer.push(Fe),be.length+=be.objectMode?1:Fe.length)}be.ended=!0,be.sync?E(ge):(be.needReadable=!1,be.emittedReadable=!0,O(ge))}}function E(ge){const be=ge._readableState;y("emitReadable",be.needReadable,be.emittedReadable),be.needReadable=!1,be.emittedReadable||(y("emitReadable",be.flowing),be.emittedReadable=!0,t.nextTick(O,ge))}function O(ge){const be=ge._readableState;y("emitReadable_",be.destroyed,be.length,be.ended),!be.destroyed&&!be.errored&&(be.length||be.ended)&&(ge.emit("readable"),be.emittedReadable=!1),be.needReadable=!be.flowing&&!be.ended&&be.length<=be.highWaterMark,ze(ge)}function te(ge,be){!be.readingMore&&be.constructed&&(be.readingMore=!0,t.nextTick(he,ge,be))}function he(ge,be){for(;!be.reading&&!be.ended&&(be.length1&&Ve.pipes.includes(ge)&&(y("false write response, pause",Ve.awaitDrainWriters.size),Ve.awaitDrainWriters.add(ge)),Fe.pause()),hs||(hs=Ce(Fe,ge),ge.on("drain",hs))}Fe.on("data",db);function db(ps){y("ondata");const Qn=ge.write(ps);y("dest.write",Qn),Qn===!1&&fb()}function vf(ps){if(y("onerror",ps),ya(),ge.removeListener("error",vf),ge.listenerCount("error")===0){const Qn=ge._writableState||ge._readableState;Qn&&!Qn.errorEmitted?G(ge,ps):ge.emit("error",ps)}}b(ge,"error",vf);function _f(){ge.removeListener("finish",Ef),ya()}ge.once("close",_f);function Ef(){y("onfinish"),ge.removeListener("close",_f),ya()}ge.once("finish",Ef);function ya(){y("unpipe"),Fe.unpipe(ge)}return ge.emit("pipe",Fe),ge.writableNeedDrain===!0?fb():Ve.flowing||(y("pipe resume"),Fe.resume()),ge};function Ce(ge,be){return function(){const Ve=ge._readableState;Ve.awaitDrainWriters===be?(y("pipeOnDrain",1),Ve.awaitDrainWriters=null):Ve.multiAwaitDrain&&(y("pipeOnDrain",Ve.awaitDrainWriters.size),Ve.awaitDrainWriters.delete(be)),(!Ve.awaitDrainWriters||Ve.awaitDrainWriters.size===0)&&ge.listenerCount("data")&&ge.resume()}}Q.prototype.unpipe=function(ge){const be=this._readableState,Fe={hasUnpiped:!1};if(be.pipes.length===0)return this;if(!ge){const Ke=be.pipes;be.pipes=[],this.pause();for(let hr=0;hr0,Ve.flowing!==!1&&this.resume()):ge==="readable"&&!Ve.endEmitted&&!Ve.readableListening&&(Ve.readableListening=Ve.needReadable=!0,Ve.flowing=!1,Ve.emittedReadable=!1,y("on readable",Ve.length,Ve.reading),Ve.length?E(this):Ve.reading||t.nextTick(We,this)),Fe},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(ge,be){const Fe=g.prototype.removeListener.call(this,ge,be);return ge==="readable"&&t.nextTick(Ue,this),Fe},Q.prototype.off=Q.prototype.removeListener,Q.prototype.removeAllListeners=function(ge){const be=g.prototype.removeAllListeners.apply(this,arguments);return(ge==="readable"||ge===void 0)&&t.nextTick(Ue,this),be};function Ue(ge){const be=ge._readableState;be.readableListening=ge.listenerCount("readable")>0,be.resumeScheduled&&be[ne]===!1?be.flowing=!0:ge.listenerCount("data")>0?ge.resume():be.readableListening||(be.flowing=null)}function We(ge){y("readable nexttick read 0"),ge.read(0)}Q.prototype.resume=function(){const ge=this._readableState;return ge.flowing||(y("resume"),ge.flowing=!ge.readableListening,De(this,ge)),ge[ne]=!1,this};function De(ge,be){be.resumeScheduled||(be.resumeScheduled=!0,t.nextTick(He,ge,be))}function He(ge,be){y("resume",be.reading),be.reading||ge.read(0),be.resumeScheduled=!1,ge.emit("resume"),ze(ge),be.flowing&&!be.reading&&ge.read(0)}Q.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ne]=!0,this};function ze(ge){const be=ge._readableState;for(y("flow",be.flowing);be.flowing&&ge.read()!==null;);}Q.prototype.wrap=function(ge){let be=!1;ge.on("data",Ve=>{!this.push(Ve)&&ge.pause&&(be=!0,ge.pause())}),ge.on("end",()=>{this.push(null)}),ge.on("error",Ve=>{G(this,Ve)}),ge.on("close",()=>{this.destroy()}),ge.on("destroy",()=>{this.destroy()}),this._read=()=>{be&&ge.resume&&(be=!1,ge.resume())};const Fe=a(ge);for(let Ve=1;Ve{Ke=en?L(Ke,en):null,Fe(),Fe=fe});try{for(;;){const en=ge.destroyed?null:ge.read();if(en!==null)yield en;else{if(Ke)throw Ke;if(Ke===null)return;await new l(Ve)}}}catch(en){throw Ke=L(Ke,en),Ke}finally{(Ke||(be==null?void 0:be.destroyOnReturn)!==!1)&&(Ke===void 0||ge._readableState.autoDestroy)?T.destroyer(ge,null):(ge.off("readable",Ve),hr())}}i(Q.prototype,{readable:{__proto__:null,get(){const ge=this._readableState;return!!ge&&ge.readable!==!1&&!ge.destroyed&&!ge.errorEmitted&&!ge.endEmitted},set(ge){this._readableState&&(this._readableState.readable=!!ge)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(ge){this._readableState&&(this._readableState.flowing=ge)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(ge){this._readableState&&(this._readableState.destroyed=ge)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),i(ie.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ne]!==!1},set(ge){this[ne]=!!ge}}}),Q._fromList=Lt;function Lt(ge,be){if(be.length===0)return null;let Fe;return be.objectMode?Fe=be.buffer.shift():!ge||ge>=be.length?(be.decoder?Fe=be.buffer.join(""):be.buffer.length===1?Fe=be.buffer.first():Fe=be.buffer.concat(be.length),be.buffer.clear()):Fe=be.buffer.consume(ge,be.decoder),Fe}function qt(ge){const be=ge._readableState;y("endReadable",be.endEmitted),be.endEmitted||(be.ended=!0,t.nextTick(or,be,ge))}function or(ge,be){if(y("endReadableNT",ge.endEmitted,ge.length),!ge.errored&&!ge.closeEmitted&&!ge.endEmitted&&ge.length===0){if(ge.endEmitted=!0,be.emit("end"),be.writable&&be.allowHalfOpen===!1)t.nextTick(Qt,be);else if(ge.autoDestroy){const Fe=be._writableState;(!Fe||Fe.autoDestroy&&(Fe.finished||Fe.writable===!1))&&be.destroy()}}}function Qt(ge){ge.writable&&!ge.writableEnded&&!ge.destroyed&&ge.end()}Q.from=function(ge,be){return N(Q,ge,be)};let po;function ba(){return po===void 0&&(po={}),po}return Q.fromWeb=function(ge,be){return ba().newStreamReadableFromReadableStream(ge,be)},Q.toWeb=function(ge,be){return ba().newReadableStreamFromStreamReadable(ge,be)},Q.wrap=function(ge,be){var Fe,Ve;return new Q({objectMode:(Fe=(Ve=ge.readableObjectMode)!==null&&Ve!==void 0?Ve:ge.objectMode)!==null&&Fe!==void 0?Fe:!0,...be,destroy(Ke,hr){T.destroyer(ge,Ke),hr(Ke)}}).wrap(ge)},wd}var vd,qw;function km(){if(qw)return vd;qw=1;const t=ao(),{ArrayPrototypeSlice:e,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:s,ObjectDefineProperties:i,ObjectSetPrototypeOf:a,StringPrototypeToLowerCase:o,Symbol:l,SymbolHasInstance:u}=jt();vd=Z,Z.WritableState=M;const{EventEmitter:c}=ca(),f=Mm().Stream,{Buffer:d}=Zr(),p=fa(),{addAbortSignal:g}=nf(),{getHighWaterMark:b,getDefaultHighWaterMark:v}=sf(),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:_,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:x,ERR_STREAM_DESTROYED:T,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:C,ERR_STREAM_WRITE_AFTER_END:L,ERR_UNKNOWN_ENCODING:j}=Pr().codes,{errorOrDestroy:R}=p;a(Z.prototype,f.prototype),a(Z,f);function U(){}const I=l("kOnFinished");function M(P,V,B){typeof B!="boolean"&&(B=V instanceof Ii()),this.objectMode=!!(P&&P.objectMode),B&&(this.objectMode=this.objectMode||!!(P&&P.writableObjectMode)),this.highWaterMark=P?b(this,P,"writableHighWaterMark",B):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const H=!!(P&&P.decodeStrings===!1);this.decodeStrings=!H,this.defaultEncoding=P&&P.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=G.bind(void 0,V),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,$(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!P||P.emitClose!==!1,this.autoDestroy=!P||P.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[I]=[]}function $(P){P.buffered=[],P.bufferedIndex=0,P.allBuffers=!0,P.allNoop=!0}M.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},s(M.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Z(P){const V=this instanceof Ii();if(!V&&!n(Z,this))return new Z(P);this._writableState=new M(P,this,V),P&&(typeof P.write=="function"&&(this._write=P.write),typeof P.writev=="function"&&(this._writev=P.writev),typeof P.destroy=="function"&&(this._destroy=P.destroy),typeof P.final=="function"&&(this._final=P.final),typeof P.construct=="function"&&(this._construct=P.construct),P.signal&&g(P.signal,this)),f.call(this,P),p.construct(this,()=>{const B=this._writableState;B.writing||Se(this,B),D(this,B)})}s(Z,u,{__proto__:null,value:function(P){return n(this,P)?!0:this!==Z?!1:P&&P._writableState instanceof M}}),Z.prototype.pipe=function(){R(this,new x)};function ne(P,V,B,H){const q=P._writableState;if(typeof B=="function")H=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!d.isEncoding(B))throw new j(B);typeof H!="function"&&(H=U)}if(V===null)throw new C;if(!q.objectMode)if(typeof V=="string")q.decodeStrings!==!1&&(V=d.from(V,B),B="buffer");else if(V instanceof d)B="buffer";else if(f._isUint8Array(V))V=f._uint8ArrayToBuffer(V),B="buffer";else throw new w("chunk",["string","Buffer","Uint8Array"],V);let ue;return q.ending?ue=new L:q.destroyed&&(ue=new T("write")),ue?(t.nextTick(H,ue),R(P,ue,!0),ue):(q.pendingcb++,re(P,q,V,B,H))}Z.prototype.write=function(P,V,B){return ne(this,P,V,B)===!0},Z.prototype.cork=function(){this._writableState.corked++},Z.prototype.uncork=function(){const P=this._writableState;P.corked&&(P.corked--,P.writing||Se(this,P))},Z.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=o(V)),!d.isEncoding(V))throw new j(V);return this._writableState.defaultEncoding=V,this};function re(P,V,B,H,q){const ue=V.objectMode?1:B.length;V.length+=ue;const J=V.lengthB.bufferedIndex&&Se(P,B),H?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:P,state:B},t.nextTick(pe,B.afterWriteTickInfo)):F(P,B,1,q))}function pe({stream:P,state:V,count:B,cb:H}){return V.afterWriteTickInfo=null,F(P,V,B,H)}function F(P,V,B,H){for(!V.ending&&!P.destroyed&&V.length===0&&V.needDrain&&(V.needDrain=!1,P.emit("drain"));B-- >0;)V.pendingcb--,H();V.destroyed&&de(V),D(P,V)}function de(P){if(P.writing)return;for(let q=P.bufferedIndex;q1&&P._writev){V.pendingcb-=ue-1;const Y=V.allNoop?U:Q=>{for(let oe=J;oe256?(B.splice(0,J),V.bufferedIndex=0):V.bufferedIndex=J}V.bufferProcessing=!1}Z.prototype._write=function(P,V,B){if(this._writev)this._writev([{chunk:P,encoding:V}],B);else throw new _("_write()")},Z.prototype._writev=null,Z.prototype.end=function(P,V,B){const H=this._writableState;typeof P=="function"?(B=P,P=null,V=null):typeof V=="function"&&(B=V,V=null);let q;if(P!=null){const ue=ne(this,P,V);ue instanceof r&&(q=ue)}return H.corked&&(H.corked=1,this.uncork()),q||(!H.errored&&!H.ending?(H.ending=!0,D(this,H,!0),H.ended=!0):H.finished?q=new A("end"):H.destroyed&&(q=new T("end"))),typeof B=="function"&&(q||H.finished?t.nextTick(B,q):H[I].push(B)),this};function ee(P){return P.ending&&!P.destroyed&&P.constructed&&P.length===0&&!P.errored&&P.buffered.length===0&&!P.finished&&!P.writing&&!P.errorEmitted&&!P.closeEmitted}function K(P,V){let B=!1;function H(q){if(B){R(P,q??y());return}if(B=!0,V.pendingcb--,q){const ue=V[I].splice(0);for(let J=0;J{ee(q)?X(H,q):q.pendingcb--},P,V)):ee(V)&&(V.pendingcb++,X(P,V))))}function X(P,V){V.pendingcb--,V.finished=!0;const B=V[I].splice(0);for(let H=0;H{if(de!=null)throw new g("nully","body",de)},de=>{b(pe,de)});return pe=new j({objectMode:!0,readable:!1,write:re,final(de){N(async()=>{try{await F,t.nextTick(de,null)}catch(Se){t.nextTick(de,Se)}})},destroy:fe})}throw new g("Iterable, AsyncIterable or AsyncFunction",$,ne)}if(A(M))return I(M.arrayBuffer());if(s(M))return x(j,M,{objectMode:!0,writable:!1});if(u(M==null?void 0:M.readable)&&c(M==null?void 0:M.writable))return j.fromWeb(M);if(typeof(M==null?void 0:M.writable)=="object"||typeof(M==null?void 0:M.readable)=="object"){const ne=M!=null&&M.readable?a(M==null?void 0:M.readable)?M==null?void 0:M.readable:I(M.readable):void 0,re=M!=null&&M.writable?o(M==null?void 0:M.writable)?M==null?void 0:M.writable:I(M.writable):void 0;return U({readable:ne,writable:re})}const Z=M==null?void 0:M.then;if(typeof Z=="function"){let ne;return L(Z,M,re=>{re!=null&&ne.push(re),ne.push(null)},re=>{b(ne,re)}),ne=new j({objectMode:!0,writable:!1,read(){}})}throw new p($,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],M)};function R(I){let{promise:M,resolve:$}=y();const Z=new C,ne=Z.signal;return{value:I(async function*(){for(;;){const N=M;M=null;const{chunk:fe,done:G,cb:pe}=await N;if(t.nextTick(pe),G)return;if(ne.aborted)throw new d(void 0,{cause:ne.reason});({promise:M,resolve:$}=y()),yield fe}}(),{signal:ne}),write(N,fe,G){const pe=$;$=null,pe({chunk:N,done:!1,cb:G})},final(N){const fe=$;$=null,fe({done:!0,cb:N})},destroy(N,fe){Z.abort(),fe(N)}}}function U(I){const M=I.readable&&typeof I.readable.read!="function"?w.wrap(I.readable):I.readable,$=I.writable;let Z=!!r(M),ne=!!n($),re,N,fe,G,pe;function F(de){const Se=G;G=null,Se?Se(de):de&&pe.destroy(de)}return pe=new j({readableObjectMode:!!(M!=null&&M.readableObjectMode),writableObjectMode:!!($!=null&&$.writableObjectMode),readable:Z,writable:ne}),ne&&(f($,de=>{ne=!1,de&&b(M,de),F(de)}),pe._write=function(de,Se,ee){$.write(de,Se)?ee():re=ee},pe._final=function(de){$.end(),N=de},$.on("drain",function(){if(re){const de=re;re=null,de()}}),$.on("finish",function(){if(N){const de=N;N=null,de()}})),Z&&(f(M,de=>{Z=!1,de&&b(M,de),F(de)}),M.on("readable",function(){if(fe){const de=fe;fe=null,de()}}),M.on("end",function(){pe.push(null)}),pe._read=function(){for(;;){const de=M.read();if(de===null){fe=pe._read;return}if(!pe.push(de))return}}),pe._destroy=function(de,Se){!de&&G!==null&&(de=new d),fe=null,re=null,N=null,G===null?Se(de):(G=Se,b($,de),b(M,de))},pe}return _d}var Ed,Yw;function Ii(){if(Yw)return Ed;Yw=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:r,ObjectSetPrototypeOf:n}=jt();Ed=a;const s=of(),i=km();n(a.prototype,s.prototype),n(a,s);{const c=r(i.prototype);for(let f=0;f{if(c){u?u(c):this.destroy(c);return}f!=null&&this.push(f),this.push(null),u&&u()}):(this.push(null),u&&u())}function l(){this._final!==o&&o.call(this)}return a.prototype._final=o,a.prototype._transform=function(u,c,f){throw new r("_transform()")},a.prototype._write=function(u,c,f){const d=this._readableState,p=this._writableState,g=d.length;this._transform(u,c,(b,v)=>{if(b){f(b);return}v!=null&&this.push(v),p.ended||g===d.length||d.length{K=!0});const W=i(de,{readable:Se,writable:ee},D=>{K=!D});return{destroy:D=>{K||(K=!0,o.destroyer(de,D||new p("pipe")))},cleanup:W}}function Z(de){return v(de[de.length-1],"streams[stream.length - 1]"),de.pop()}function ne(de){if(_(de))return de;if(x(de))return re(de);throw new c("val",["Readable","Iterable","AsyncIterable"],de)}async function*re(de){I||(I=of()),yield*I.prototype[n].call(de)}async function N(de,Se,ee,{end:K}){let W,D=null;const X=k=>{if(k&&(W=k),D){const P=D;D=null,P()}},ce=()=>new r((k,P)=>{W?P(W):D=()=>{W?P(W):k()}});Se.on("drain",X);const le=i(Se,{readable:!1},X);try{Se.writableNeedDrain&&await ce();for await(const k of de)Se.write(k)||await ce();K&&(Se.end(),await ce()),ee()}catch(k){ee(W!==k?u(W,k):k)}finally{le(),Se.off("drain",X)}}async function fe(de,Se,ee,{end:K}){A(Se)&&(Se=Se.writable);const W=Se.getWriter();try{for await(const D of de)await W.ready,W.write(D).catch(()=>{});await W.ready,K&&await W.close(),ee()}catch(D){try{await W.abort(D),ee(D)}catch(X){ee(X)}}}function G(...de){return pe(de,a(Z(de)))}function pe(de,Se,ee){if(de.length===1&&e(de[0])&&(de=de[0]),de.length<2)throw new d("streams");const K=new R,W=K.signal,D=ee==null?void 0:ee.signal,X=[];w(D,"options.signal");function ce(){q(new b)}M=M||Nr().addAbortListener;let le;D&&(le=M(D,ce));let k,P;const V=[];let B=0;function H(Q){q(Q,--B===0)}function q(Q,oe){var me;if(Q&&(!k||k.code==="ERR_STREAM_PREMATURE_CLOSE")&&(k=Q),!(!k&&!oe)){for(;V.length;)V.shift()(k);(me=le)===null||me===void 0||me[s](),K.abort(),oe&&(k||X.forEach(Te=>Te()),t.nextTick(Se,k,P))}}let ue;for(let Q=0;Q0,S=me||(ee==null?void 0:ee.end)!==!1,m=Q===de.length-1;if(T(oe)){let h=function(E){E&&E.name!=="AbortError"&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"&&H(E)};var ie=h;if(S){const{destroy:E,cleanup:O}=$(oe,me,Te);V.push(E),y(oe)&&m&&X.push(O)}oe.on("error",h),y(oe)&&m&&X.push(()=>{oe.removeListener("error",h)})}if(Q===0)if(typeof oe=="function"){if(ue=oe({signal:W}),!_(ue))throw new f("Iterable, AsyncIterable or Stream","source",ue)}else _(oe)||x(oe)||A(oe)?ue=oe:ue=l.from(oe);else if(typeof oe=="function"){if(A(ue)){var J;ue=ne((J=ue)===null||J===void 0?void 0:J.readable)}else ue=ne(ue);if(ue=oe(ue,{signal:W}),me){if(!_(ue,!0))throw new f("AsyncIterable",`transform[${Q-1}]`,ue)}else{var Y;U||(U=mS());const h=new U({objectMode:!0}),E=(Y=ue)===null||Y===void 0?void 0:Y.then;if(typeof E=="function")B++,E.call(ue,he=>{P=he,he!=null&&h.write(he),S&&h.end(),t.nextTick(H)},he=>{h.destroy(he),t.nextTick(H,he)});else if(_(ue,!0))B++,N(ue,h,H,{end:S});else if(L(ue)||A(ue)){const he=ue.readable||ue;B++,N(he,h,H,{end:S})}else throw new f("AsyncIterable or Promise","destination",ue);ue=h;const{destroy:O,cleanup:te}=$(ue,!1,!0);V.push(O),m&&X.push(te)}}else if(T(oe)){if(x(ue)){B+=2;const h=F(ue,oe,H,{end:S});y(oe)&&m&&X.push(h)}else if(A(ue)||L(ue)){const h=ue.readable||ue;B++,N(h,oe,H,{end:S})}else if(_(ue))B++,N(ue,oe,H,{end:S});else throw new c("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ue);ue=oe}else if(C(oe)){if(x(ue))B++,fe(ne(ue),oe,H,{end:S});else if(L(ue)||_(ue))B++,fe(ue,oe,H,{end:S});else if(A(ue))B++,fe(ue.readable,oe,H,{end:S});else throw new c("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ue);ue=oe}else ue=l.from(oe)}return(W!=null&&W.aborted||D!=null&&D.aborted)&&t.nextTick(ce),ue}function F(de,Se,ee,{end:K}){let W=!1;if(Se.on("close",()=>{W||ee(new g)}),de.pipe(Se,{end:!1}),K){let X=function(){W=!0,Se.end()};var D=X;j(de)?t.nextTick(X):de.once("end",X)}else ee();return i(de,{readable:!0,writable:!1},X=>{const ce=de._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&ce&&ce.ended&&!ce.errored&&!ce.errorEmitted?de.once("end",ee).once("error",ee):ee(X)}),i(Se,{readable:!1,writable:!0},ee)}return Td={pipelineImpl:pe,pipeline:G},Td}var Ad,Jw;function bS(){if(Jw)return Ad;Jw=1;const{pipeline:t}=Pm(),e=Ii(),{destroyer:r}=fa(),{isNodeStream:n,isReadable:s,isWritable:i,isWebStream:a,isTransformStream:o,isWritableStream:l,isReadableStream:u}=Bi(),{AbortError:c,codes:{ERR_INVALID_ARG_VALUE:f,ERR_MISSING_ARGS:d}}=Pr(),p=us();return Ad=function(...b){if(b.length===0)throw new d("streams");if(b.length===1)return e.from(b[0]);const v=[...b];if(typeof b[0]=="function"&&(b[0]=e.from(b[0])),typeof b[b.length-1]=="function"){const U=b.length-1;b[U]=e.from(b[U])}for(let U=0;U0&&!(i(b[U])||l(b[U])||o(b[U])))throw new f(`streams[${U}]`,v[U],"must be writable")}let w,_,y,x,T;function A(U){const I=x;x=null,I?I(U):U?T.destroy(U):!R&&!j&&T.destroy()}const C=b[0],L=t(b,A),j=!!(i(C)||l(C)||o(C)),R=!!(s(L)||u(L)||o(L));if(T=new e({writableObjectMode:!!(C!=null&&C.writableObjectMode),readableObjectMode:!!(L!=null&&L.readableObjectMode),writable:j,readable:R}),j){if(n(C))T._write=function(I,M,$){C.write(I,M)?$():w=$},T._final=function(I){C.end(),_=I},C.on("drain",function(){if(w){const I=w;w=null,I()}});else if(a(C)){const M=(o(C)?C.writable:C).getWriter();T._write=async function($,Z,ne){try{await M.ready,M.write($).catch(()=>{}),ne()}catch(re){ne(re)}},T._final=async function($){try{await M.ready,M.close().catch(()=>{}),_=$}catch(Z){$(Z)}}}const U=o(L)?L.readable:L;p(U,()=>{if(_){const I=_;_=null,I()}})}if(R){if(n(L))L.on("readable",function(){if(y){const U=y;y=null,U()}}),L.on("end",function(){T.push(null)}),T._read=function(){for(;;){const U=L.read();if(U===null){y=T._read;return}if(!T.push(U))return}};else if(a(L)){const I=(o(L)?L.readable:L).getReader();T._read=async function(){for(;;)try{const{value:M,done:$}=await I.read();if(!T.push(M))return;if($){T.push(null);return}}catch{return}}}}return T._destroy=function(U,I){!U&&x!==null&&(U=new c),y=null,w=null,_=null,x===null?I(U):(x=I,n(L)&&r(L,U))},T},Ad}var Zw;function AR(){if(Zw)return ou;Zw=1;const t=globalThis.AbortController||bl().AbortController,{codes:{ERR_INVALID_ARG_VALUE:e,ERR_INVALID_ARG_TYPE:r,ERR_MISSING_ARGS:n,ERR_OUT_OF_RANGE:s},AbortError:i}=Pr(),{validateAbortSignal:a,validateInteger:o,validateObject:l}=Pl(),u=jt().Symbol("kWeak"),c=jt().Symbol("kResistStopPropagation"),{finished:f}=us(),d=bS(),{addAbortSignalNoValidate:p}=nf(),{isWritable:g,isNodeStream:b}=Bi(),{deprecate:v}=Nr(),{ArrayPrototypePush:w,Boolean:_,MathFloor:y,Number:x,NumberIsNaN:T,Promise:A,PromiseReject:C,PromiseResolve:L,PromisePrototypeThen:j,Symbol:R}=jt(),U=R("kEmpty"),I=R("kEof");function M(D,X){if(X!=null&&l(X,"options"),(X==null?void 0:X.signal)!=null&&a(X.signal,"options.signal"),b(D)&&!g(D))throw new e("stream",D,"must be writable");const ce=d(this,D);return X!=null&&X.signal&&p(X.signal,ce),ce}function $(D,X){if(typeof D!="function")throw new r("fn",["Function","AsyncFunction"],D);X!=null&&l(X,"options"),(X==null?void 0:X.signal)!=null&&a(X.signal,"options.signal");let ce=1;(X==null?void 0:X.concurrency)!=null&&(ce=y(X.concurrency));let le=ce-1;return(X==null?void 0:X.highWaterMark)!=null&&(le=y(X.highWaterMark)),o(ce,"options.concurrency",1),o(le,"options.highWaterMark",0),le+=ce,(async function*(){const P=Nr().AbortSignalAny([X==null?void 0:X.signal].filter(_)),V=this,B=[],H={signal:P};let q,ue,J=!1,Y=0;function ie(){J=!0,Q()}function Q(){Y-=1,oe()}function oe(){ue&&!J&&Y=le||Y>=ce)&&await new A(S=>{ue=S})}B.push(I)}catch(Te){const S=C(Te);j(S,Q,ie),B.push(S)}finally{J=!0,q&&(q(),q=null)}}me();try{for(;;){for(;B.length>0;){const Te=await B[0];if(Te===I)return;if(P.aborted)throw new i;Te!==U&&(yield Te),B.shift(),oe()}await new A(Te=>{q=Te})}}finally{J=!0,ue&&(ue(),ue=null)}}).call(this)}function Z(D=void 0){return D!=null&&l(D,"options"),(D==null?void 0:D.signal)!=null&&a(D.signal,"options.signal"),(async function*(){let ce=0;for await(const k of this){var le;if(D!=null&&(le=D.signal)!==null&&le!==void 0&&le.aborted)throw new i({cause:D.signal.reason});yield[ce++,k]}}).call(this)}async function ne(D,X=void 0){for await(const ce of G.call(this,D,X))return!0;return!1}async function re(D,X=void 0){if(typeof D!="function")throw new r("fn",["Function","AsyncFunction"],D);return!await ne.call(this,async(...ce)=>!await D(...ce),X)}async function N(D,X){for await(const ce of G.call(this,D,X))return ce}async function fe(D,X){if(typeof D!="function")throw new r("fn",["Function","AsyncFunction"],D);async function ce(le,k){return await D(le,k),U}for await(const le of $.call(this,ce,X));}function G(D,X){if(typeof D!="function")throw new r("fn",["Function","AsyncFunction"],D);async function ce(le,k){return await D(le,k)?le:U}return $.call(this,ce,X)}class pe extends n{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function F(D,X,ce){var le;if(typeof D!="function")throw new r("reducer",["Function","AsyncFunction"],D);ce!=null&&l(ce,"options"),(ce==null?void 0:ce.signal)!=null&&a(ce.signal,"options.signal");let k=arguments.length>1;if(ce!=null&&(le=ce.signal)!==null&&le!==void 0&&le.aborted){const q=new i(void 0,{cause:ce.signal.reason});throw this.once("error",()=>{}),await f(this.destroy(q)),q}const P=new t,V=P.signal;if(ce!=null&&ce.signal){const q={once:!0,[u]:this,[c]:!0};ce.signal.addEventListener("abort",()=>P.abort(),q)}let B=!1;try{for await(const q of this){var H;if(B=!0,ce!=null&&(H=ce.signal)!==null&&H!==void 0&&H.aborted)throw new i;k?X=await D(X,q,{signal:V}):(X=q,k=!0)}if(!B&&!k)throw new pe}finally{P.abort()}return X}async function de(D){D!=null&&l(D,"options"),(D==null?void 0:D.signal)!=null&&a(D.signal,"options.signal");const X=[];for await(const le of this){var ce;if(D!=null&&(ce=D.signal)!==null&&ce!==void 0&&ce.aborted)throw new i(void 0,{cause:D.signal.reason});w(X,le)}return X}function Se(D,X){const ce=$.call(this,D,X);return(async function*(){for await(const k of ce)yield*k}).call(this)}function ee(D){if(D=x(D),T(D))return 0;if(D<0)throw new s("number",">= 0",D);return D}function K(D,X=void 0){return X!=null&&l(X,"options"),(X==null?void 0:X.signal)!=null&&a(X.signal,"options.signal"),D=ee(D),(async function*(){var le;if(X!=null&&(le=X.signal)!==null&&le!==void 0&&le.aborted)throw new i;for await(const P of this){var k;if(X!=null&&(k=X.signal)!==null&&k!==void 0&&k.aborted)throw new i;D--<=0&&(yield P)}}).call(this)}function W(D,X=void 0){return X!=null&&l(X,"options"),(X==null?void 0:X.signal)!=null&&a(X.signal,"options.signal"),D=ee(D),(async function*(){var le;if(X!=null&&(le=X.signal)!==null&&le!==void 0&&le.aborted)throw new i;for await(const P of this){var k;if(X!=null&&(k=X.signal)!==null&&k!==void 0&&k.aborted)throw new i;if(D-- >0&&(yield P),D<=0)return}}).call(this)}return ou.streamReturningOperators={asIndexedPairs:v(Z,"readable.asIndexedPairs will be removed in a future version."),drop:K,filter:G,flatMap:Se,map:$,take:W,compose:M},ou.promiseReturningOperators={every:re,forEach:fe,reduce:F,toArray:de,some:ne,find:N},ou}var Cd,ev;function yS(){if(ev)return Cd;ev=1;const{ArrayPrototypePop:t,Promise:e}=jt(),{isIterable:r,isNodeStream:n,isWebStream:s}=Bi(),{pipelineImpl:i}=Pm(),{finished:a}=us();wS();function o(...l){return new e((u,c)=>{let f,d;const p=l[l.length-1];if(p&&typeof p=="object"&&!n(p)&&!r(p)&&!s(p)){const g=t(l);f=g.signal,d=g.end}i(l,(g,b)=>{g?c(g):u(b)},{signal:f,end:d})})}return Cd={finished:a,pipeline:o},Cd}var tv;function wS(){if(tv)return nd.exports;tv=1;const{Buffer:t}=Zr(),{ObjectDefineProperty:e,ObjectKeys:r,ReflectApply:n}=jt(),{promisify:{custom:s}}=Nr(),{streamReturningOperators:i,promiseReturningOperators:a}=AR(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:o}}=Pr(),l=bS(),{setDefaultHighWaterMark:u,getDefaultHighWaterMark:c}=sf(),{pipeline:f}=Pm(),{destroyer:d}=fa(),p=us(),g=yS(),b=Bi(),v=nd.exports=Mm().Stream;v.isDestroyed=b.isDestroyed,v.isDisturbed=b.isDisturbed,v.isErrored=b.isErrored,v.isReadable=b.isReadable,v.isWritable=b.isWritable,v.Readable=of();for(const y of r(i)){let T=function(...A){if(new.target)throw o();return v.Readable.from(n(x,this,A))};var _=T;const x=i[y];e(T,"name",{__proto__:null,value:x.name}),e(T,"length",{__proto__:null,value:x.length}),e(v.Readable.prototype,y,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}for(const y of r(a)){let T=function(...C){if(new.target)throw o();return n(x,this,C)};var _=T;const x=a[y];e(T,"name",{__proto__:null,value:x.name}),e(T,"length",{__proto__:null,value:x.length}),e(v.Readable.prototype,y,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}v.Writable=km(),v.Duplex=Ii(),v.Transform=gS(),v.PassThrough=mS(),v.pipeline=f;const{addAbortSignal:w}=nf();return v.addAbortSignal=w,v.finished=p,v.destroy=d,v.compose=l,v.setDefaultHighWaterMark=u,v.getDefaultHighWaterMark=c,e(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return g}}),e(f,s,{__proto__:null,enumerable:!0,get(){return g.pipeline}}),e(p,s,{__proto__:null,enumerable:!0,get(){return g.finished}}),v.Stream=v,v._isUint8Array=function(x){return x instanceof Uint8Array},v._uint8ArrayToBuffer=function(x){return t.from(x.buffer,x.byteOffset,x.byteLength)},nd.exports}var rv;function CR(){return rv||(rv=1,function(t){const e=wS(),r=yS(),n=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=n,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=e.Stream,t.exports.default=t.exports}(rd)),rd.exports}var uu={exports:{}},nv;function IR(){return nv||(nv=1,typeof Object.create=="function"?uu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:uu.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}),uu.exports}var Id,iv;function MR(){if(iv)return Id;iv=1;const{Buffer:t}=Zr(),e=Symbol.for("BufferList");function r(n){if(!(this instanceof r))return new r(n);r._init.call(this,n)}return r._init=function(s){Object.defineProperty(this,e,{value:!0}),this._bufs=[],this.length=0,s&&this.append(s)},r.prototype._new=function(s){return new r(s)},r.prototype._offset=function(s){if(s===0)return[0,0];let i=0;for(let a=0;athis.length||s<0)return;const i=this._offset(s);return this._bufs[i[0]][i[1]]},r.prototype.slice=function(s,i){return typeof s=="number"&&s<0&&(s+=this.length),typeof i=="number"&&i<0&&(i+=this.length),this.copy(null,0,s,i)},r.prototype.copy=function(s,i,a,o){if((typeof a!="number"||a<0)&&(a=0),(typeof o!="number"||o>this.length)&&(o=this.length),a>=this.length||o<=0)return s||t.alloc(0);const l=!!s,u=this._offset(a),c=o-a;let f=c,d=l&&i||0,p=u[1];if(a===0&&o===this.length){if(!l)return this._bufs.length===1?this._bufs[0]:t.concat(this._bufs,this.length);for(let g=0;gb)this._bufs[g].copy(s,d,p),d+=b;else{this._bufs[g].copy(s,d,p,p+f),d+=b;break}f-=b,p&&(p=0)}return s.length>d?s.slice(0,d):s},r.prototype.shallowSlice=function(s,i){if(s=s||0,i=typeof i!="number"?this.length:i,s<0&&(s+=this.length),i<0&&(i+=this.length),s===i)return this._new();const a=this._offset(s),o=this._offset(i),l=this._bufs.slice(a[0],o[0]+1);return o[1]===0?l.pop():l[l.length-1]=l[l.length-1].slice(0,o[1]),a[1]!==0&&(l[0]=l[0].slice(a[1])),this._new(l)},r.prototype.toString=function(s,i,a){return this.slice(i,a).toString(s)},r.prototype.consume=function(s){if(s=Math.trunc(s),Number.isNaN(s)||s<=0)return this;for(;this._bufs.length;)if(s>=this._bufs[0].length)s-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(s),this.length-=s;break}return this},r.prototype.duplicate=function(){const s=this._new();for(let i=0;ithis.length?this.length:s;const a=this._offset(s);let o=a[0],l=a[1];for(;o=n.length){const f=u.indexOf(n,l);if(f!==-1)return this._reverseOffset([o,f]);l=u.length-n.length+1}else{const f=this._reverseOffset([o,l]);if(this._match(f,n))return f;l++}l=0}return-1},r.prototype._match=function(n,s){if(this.length-n[0,1].map(a=>[0,1].map(o=>{const l=r.alloc(1);return l.writeUInt8(e.codes[s]<r.from([s])),e.EMPTY={pingreq:r.from([e.codes.pingreq<<4,0]),pingresp:r.from([e.codes.pingresp<<4,0]),disconnect:r.from([e.codes.disconnect<<4,0])},e.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},e.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},e.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},e.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},e.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},e.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}(kd)),kd.exports}function _S(){throw new Error("setTimeout has not been defined")}function ES(){throw new Error("clearTimeout has not been defined")}var ji=_S,Wi=ES;typeof qs.setTimeout=="function"&&(ji=setTimeout);typeof qs.clearTimeout=="function"&&(Wi=clearTimeout);function SS(t){if(ji===setTimeout)return setTimeout(t,0);if((ji===_S||!ji)&&setTimeout)return ji=setTimeout,setTimeout(t,0);try{return ji(t,0)}catch{try{return ji.call(null,t,0)}catch{return ji.call(this,t,0)}}}function OR(t){if(Wi===clearTimeout)return clearTimeout(t);if((Wi===ES||!Wi)&&clearTimeout)return Wi=clearTimeout,clearTimeout(t);try{return Wi(t)}catch{try{return Wi.call(null,t)}catch{return Wi.call(this,t)}}}var bi=[],Fo=!1,Rs,Wu=-1;function LR(){!Fo||!Rs||(Fo=!1,Rs.length?bi=Rs.concat(bi):Wu=-1,bi.length&&xS())}function xS(){if(!Fo){var t=SS(LR);Fo=!0;for(var e=bi.length;e;){for(Rs=bi,bi=[];++Wu1)for(var r=1;r0)return a(c);if(d==="number"&&isFinite(c))return f.long?l(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(f){var d=parseFloat(f[1]),p=(f[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"weeks":case"week":case"w":return d*s;case"days":case"day":case"d":return d*n;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*e;case"seconds":case"second":case"secs":case"sec":case"s":return d*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function o(c){var f=Math.abs(c);return f>=n?Math.round(c/n)+"d":f>=r?Math.round(c/r)+"h":f>=e?Math.round(c/e)+"m":f>=t?Math.round(c/t)+"s":c+"ms"}function l(c){var f=Math.abs(c);return f>=n?u(c,f,n,"day"):f>=r?u(c,f,r,"hour"):f>=e?u(c,f,e,"minute"):f>=t?u(c,f,t,"second"):c+" ms"}function u(c,f,d,p){var g=f>=d*1.5;return Math.round(c/d)+" "+p+(g?"s":"")}return Pd}var Od,uv;function oB(){if(uv)return Od;uv=1;function t(e){n.debug=n,n.default=n,n.coerce=u,n.disable=o,n.enable=i,n.enabled=l,n.humanize=sB(),n.destroy=c,Object.keys(e).forEach(f=>{n[f]=e[f]}),n.names=[],n.skips=[],n.formatters={};function r(f){let d=0;for(let p=0;p{if(C==="%%")return"%";T++;const j=n.formatters[L];if(typeof j=="function"){const R=w[T];C=j.call(_,R),w.splice(T,1),T--}return C}),n.formatArgs.call(_,w),(_.log||n.log).apply(_,w)}return v.namespace=f,v.useColors=n.useColors(),v.color=n.selectColor(f),v.extend=s,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(g!==n.namespaces&&(g=n.namespaces,b=n.enabled(f)),b),set:w=>{p=w}}),typeof n.init=="function"&&n.init(v),v}function s(f,d){const p=n(this.namespace+(typeof d>"u"?":":d)+f);return p.log=this.log,p}function i(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];const d=(typeof f=="string"?f:"").trim().replace(" ",",").split(",").filter(Boolean);for(const p of d)p[0]==="-"?n.skips.push(p.slice(1)):n.names.push(p)}function a(f,d){let p=0,g=0,b=-1,v=0;for(;p"-"+d)].join(",");return n.enable(""),f}function l(f){for(const d of n.skips)if(a(f,d))return!1;for(const d of n.names)if(a(f,d))return!0;return!1}function u(f){return f instanceof Error?f.stack||f.message:f}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Od=t,Od}var cv;function AS(){return cv||(cv=1,function(t,e){var r={};e.formatArgs=s,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;u.splice(1,0,c,"color: inherit");let f=0,d=0;u[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(f++,p==="%c"&&(d=f))}),u.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function i(u){try{u?e.storage.setItem("debug",u):e.storage.removeItem("debug")}catch{}}function a(){let u;try{u=e.storage.getItem("debug")}catch{}return!u&&typeof Fr<"u"&&"env"in Fr&&(u=r.DEBUG),u}function o(){try{return localStorage}catch{}}t.exports=oB()(e);const{formatters:l}=t.exports;l.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}(cu,cu.exports)),cu.exports}var Ld,fv;function aB(){if(fv)return Ld;fv=1;const t=kR(),{EventEmitter:e}=ca(),r=PR(),n=vS(),s=AS()("mqtt-packet:parser");class i extends e{constructor(){super(),this.parser=this.constructor.parser}static parser(o){return this instanceof i?(this.settings=o||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new i().parser(o)}_resetState(){s("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new r,this.error=null,this._list=t(),this._stateCounter=0}parse(o){for(this.error&&this._resetState(),this._list.append(o),s("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,s("parse: state complete. _stateCounter is now: %d",this._stateCounter),s("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return s("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const o=this._list.readUInt8(0),l=o>>n.CMD_SHIFT;this.packet.cmd=n.types[l];const u=o&15,c=n.requiredHeaderFlags[l];return c!=null&&u!==c?this._emitError(new Error(n.requiredHeaderFlagsErrors[l])):(this.packet.retain=(o&n.RETAIN_MASK)!==0,this.packet.qos=o>>n.QOS_SHIFT&n.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(o&n.DUP_MASK)!==0,s("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){const o=this._parseVarByteNum(!0);return o&&(this.packet.length=o.value,this._list.consume(o.bytes)),s("_parseLength %d",o.value),!!o}_parsePayload(){s("_parsePayload: payload %O",this._list);let o=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}o=!0}return s("_parsePayload complete result: %s",o),o}_parseConnect(){s("_parseConnect");let o,l,u,c;const f={},d=this.packet,p=this._parseString();if(p===null)return this._emitError(new Error("Cannot parse protocolId"));if(p!=="MQTT"&&p!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(d.protocolId=p,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(d.protocolVersion=this._list.readUInt8(this._pos),d.protocolVersion>=128&&(d.bridgeMode=!0,d.protocolVersion=d.protocolVersion-128),d.protocolVersion!==3&&d.protocolVersion!==4&&d.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));f.username=this._list.readUInt8(this._pos)&n.USERNAME_MASK,f.password=this._list.readUInt8(this._pos)&n.PASSWORD_MASK,f.will=this._list.readUInt8(this._pos)&n.WILL_FLAG_MASK;const g=!!(this._list.readUInt8(this._pos)&n.WILL_RETAIN_MASK),b=(this._list.readUInt8(this._pos)&n.WILL_QOS_MASK)>>n.WILL_QOS_SHIFT;if(f.will)d.will={},d.will.retain=g,d.will.qos=b;else{if(g)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(b)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(d.clean=(this._list.readUInt8(this._pos)&n.CLEAN_SESSION_MASK)!==0,this._pos++,d.keepalive=this._parseNum(),d.keepalive===-1)return this._emitError(new Error("Packet too short"));if(d.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(d.properties=w)}const v=this._parseString();if(v===null)return this._emitError(new Error("Packet too short"));if(d.clientId=v,s("_parseConnect: packet.clientId: %s",d.clientId),f.will){if(d.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(d.will.properties=w)}if(o=this._parseString(),o===null)return this._emitError(new Error("Cannot parse will topic"));if(d.will.topic=o,s("_parseConnect: packet.will.topic: %s",d.will.topic),l=this._parseBuffer(),l===null)return this._emitError(new Error("Cannot parse will payload"));d.will.payload=l,s("_parseConnect: packet.will.paylaod: %s",d.will.payload)}if(f.username){if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse username"));d.username=c,s("_parseConnect: packet.username: %s",d.username)}if(f.password){if(u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse password"));d.password=u}return this.settings=d,s("_parseConnect: complete"),d}_parseConnack(){s("_parseConnack");const o=this.packet;if(this._list.length<1)return null;const l=this._list.readUInt8(this._pos++);if(l>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(o.sessionPresent=!!(l&n.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?o.reasonCode=this._list.readUInt8(this._pos++):o.reasonCode=0;else{if(this._list.length<2)return null;o.returnCode=this._list.readUInt8(this._pos++)}if(o.returnCode===-1||o.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(o.properties=u)}s("_parseConnack: complete")}_parsePublish(){s("_parsePublish");const o=this.packet;if(o.topic=this._parseString(),o.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(o.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}o.payload=this._list.slice(this._pos,o.length),s("_parsePublish: payload from buffer list: %o",o.payload)}}_parseSubscribe(){s("_parseSubscribe");const o=this.packet;let l,u,c,f,d,p,g;if(o.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(o.properties=b)}if(o.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=o.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(u=this._parseByte(),this.settings.protocolVersion===5){if(u&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(u&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(c=u&n.SUBSCRIBE_OPTIONS_QOS_MASK,c>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(p=(u>>n.SUBSCRIBE_OPTIONS_NL_SHIFT&n.SUBSCRIBE_OPTIONS_NL_MASK)!==0,d=(u>>n.SUBSCRIBE_OPTIONS_RAP_SHIFT&n.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,f=u>>n.SUBSCRIBE_OPTIONS_RH_SHIFT&n.SUBSCRIBE_OPTIONS_RH_MASK,f>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));g={topic:l,qos:c},this.settings.protocolVersion===5?(g.nl=p,g.rap=d,g.rh=f):this.settings.bridgeMode&&(g.rh=0,g.rap=!0,g.nl=!0),s("_parseSubscribe: push subscription `%s` to subscription",g),o.subscriptions.push(g)}}}_parseSuback(){s("_parseSuback");const o=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}if(o.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&l!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(l)}}}_parseUnsubscribe(){s("_parseUnsubscribe");const o=this.packet;if(o.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}if(o.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(o.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!n.MQTT5_PUBACK_PUBREC_CODES[o.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!n.MQTT5_PUBREL_PUBCOMP_CODES[o.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}s("_parseConfirmation: packet.reasonCode `%d`",o.reasonCode)}else o.reasonCode=0;if(o.length>3){const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}}return!0}_parseDisconnect(){const o=this.packet;if(s("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(o.reasonCode=this._parseByte(),n.MQTT5_DISCONNECT_CODES[o.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):o.reasonCode=0;const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}return s("_parseDisconnect result: true"),!0}_parseAuth(){s("_parseAuth");const o=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(o.reasonCode=this._parseByte(),!n.MQTT5_AUTH_CODES[o.reasonCode])return this._emitError(new Error("Invalid auth reason code"));const l=this._parseProperties();return Object.getOwnPropertyNames(l).length&&(o.properties=l),s("_parseAuth: result: true"),!0}_parseMessageId(){const o=this.packet;return o.messageId=this._parseNum(),o.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(s("_parseMessageId: packet.messageId %d",o.messageId),!0)}_parseString(o){const l=this._parseNum(),u=l+this._pos;if(l===-1||u>this._list.length||u>this.packet.length)return null;const c=this._list.toString("utf8",this._pos,u);return this._pos+=l,s("_parseString: result: %s",c),c}_parseStringPair(){return s("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const o=this._parseNum(),l=o+this._pos;if(o===-1||l>this._list.length||l>this.packet.length)return null;const u=this._list.slice(this._pos,l);return this._pos+=o,s("_parseBuffer: result: %o",u),u}_parseNum(){if(this._list.length-this._pos<2)return-1;const o=this._list.readUInt16BE(this._pos);return this._pos+=2,s("_parseNum: result: %s",o),o}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const o=this._list.readUInt32BE(this._pos);return this._pos+=4,s("_parse4ByteNum: result: %s",o),o}_parseVarByteNum(o){s("_parseVarByteNum");const l=4;let u=0,c=1,f=0,d=!1,p;const g=this._pos?this._pos:0;for(;u=u&&this._emitError(new Error("Invalid variable byte integer")),g&&(this._pos+=u),d?o?d={bytes:u,value:f}:d=f:d=!1,s("_parseVarByteNum: result: %o",d),d}_parseByte(){let o;return this._pos>8,0),u.writeUInt8(l&255,1),u}function i(){for(let l=0;l0&&(c=c|128),d.writeUInt8(c,f++);while(l>0&&f<4);return l>0&&(f=0),n?d.subarray(0,f):d.slice(0,f)}function o(l){const u=t.allocUnsafe(4);return u.writeUInt32BE(l,0),u}return Rd={cache:r,generateCache:i,generateNumber:s,genBufVariableByteInt:a,generate4ByteBuffer:o},Rd}var fu={exports:{}},hv;function uB(){if(hv)return fu.exports;hv=1,typeof Fr>"u"||!Fr.version||Fr.version.indexOf("v0.")===0||Fr.version.indexOf("v1.")===0&&Fr.version.indexOf("v1.8.")!==0?fu.exports={nextTick:t}:fu.exports=Fr;function t(e,r,n,s){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,a,o;switch(i){case 0:case 1:return Fr.nextTick(e);case 2:return Fr.nextTick(function(){e.call(null,r)});case 3:return Fr.nextTick(function(){e.call(null,r,n)});case 4:return Fr.nextTick(function(){e.call(null,r,n,s)});default:for(a=new Array(i-1),o=0;o=4)&&(V||k))ue+=e.byteLength(V)+2;else{if(ce<4)return K.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(k*1===0)return K.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof P!="number"||P<0||P>65535||P%1!==0)return K.destroy(new Error("Invalid keepalive")),!1;ue+=2,ue+=1;let J,Y;if(ce===5){if(J=fe(K,q),!J)return!1;ue+=J.length}if(le){if(typeof le!="object")return K.destroy(new Error("Invalid will")),!1;if(!le.topic||typeof le.topic!="string")return K.destroy(new Error("Invalid will topic")),!1;if(ue+=e.byteLength(le.topic)+2,ue+=2,le.payload)if(le.payload.length>=0)typeof le.payload=="string"?ue+=e.byteLength(le.payload):ue+=le.payload.length;else return K.destroy(new Error("Invalid will payload")),!1;if(Y={},ce===5){if(Y=fe(K,le.properties),!Y)return!1;ue+=Y.length}}let ie=!1;if(B!=null)if(Se(B))ie=!0,ue+=e.byteLength(B)+2;else return K.destroy(new Error("Invalid username")),!1;if(H!=null){if(!ie)return K.destroy(new Error("Username is required to use password")),!1;if(Se(H))ue+=de(H)+2;else return K.destroy(new Error("Invalid password")),!1}K.write(t.CONNECT_HEADER),I(K,ue),N(K,X),D.bridgeMode&&(ce+=128),K.write(ce===131?t.VERSION131:ce===132?t.VERSION132:ce===4?t.VERSION4:ce===5?t.VERSION5:t.VERSION3);let Q=0;return Q|=B!=null?t.USERNAME_MASK:0,Q|=H!=null?t.PASSWORD_MASK:0,Q|=le&&le.retain?t.WILL_RETAIN_MASK:0,Q|=le&&le.qos?le.qos<0&&d(K,V),q!=null&&q.write(),a("publish: payload: %o",P),K.write(P)}function y(ee,K,W){const D=W?W.protocolVersion:4,X=ee||{},ce=X.cmd||"puback",le=X.messageId,k=X.dup&&ce==="pubrel"?t.DUP_MASK:0;let P=0;const V=X.reasonCode,B=X.properties;let H=D===5?3:2;if(ce==="pubrel"&&(P=1),typeof le!="number")return K.destroy(new Error("Invalid messageId")),!1;let q=null;if(D===5&&typeof B=="object"){if(q=G(K,B,W,H),!q)return!1;H+=q.length}return K.write(t.ACKS[ce][P][k][0]),H===3&&(H+=V!==0?1:-1),I(K,H),d(K,le),D===5&&H!==2&&K.write(e.from([V])),q!==null?q.write():H===4&&K.write(e.from([0])),!0}function x(ee,K,W){a("subscribe: packet: ");const D=W?W.protocolVersion:4,X=ee||{},ce=X.dup?t.DUP_MASK:0,le=X.messageId,k=X.subscriptions,P=X.properties;let V=0;if(typeof le!="number")return K.destroy(new Error("Invalid messageId")),!1;V+=2;let B=null;if(D===5){if(B=fe(K,P),!B)return!1;V+=B.length}if(typeof k=="object"&&k.length)for(let q=0;q2)return K.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}V+=e.byteLength(ue)+2+1}else return K.destroy(new Error("Invalid subscriptions")),!1;a("subscribe: writing to stream: %o",t.SUBSCRIBE_HEADER),K.write(t.SUBSCRIBE_HEADER[1][ce?1:0][0]),I(K,V),d(K,le),B!==null&&B.write();let H=!0;for(const q of k){const ue=q.topic,J=q.qos,Y=+q.nl,ie=+q.rap,Q=q.rh;let oe;M(K,ue),oe=t.SUBSCRIBE_OPTIONS_QOS[J],D===5&&(oe|=Y?t.SUBSCRIBE_OPTIONS_NL:0,oe|=ie?t.SUBSCRIBE_OPTIONS_RAP:0,oe|=Q?t.SUBSCRIBE_OPTIONS_RH[Q]:0),H=K.write(e.from([oe]))}return H}function T(ee,K,W){const D=W?W.protocolVersion:4,X=ee||{},ce=X.messageId,le=X.granted,k=X.properties;let P=0;if(typeof ce!="number")return K.destroy(new Error("Invalid messageId")),!1;if(P+=2,typeof le=="object"&&le.length)for(let B=0;Bt.VARBYTEINT_MAX)return ee.destroy(new Error(`Invalid variable byte integer: ${K}`)),!1;let W=U[K];return W||(W=c(K),K<16384&&(U[K]=W)),a("writeVarByteInt: writing to stream: %o",W),ee.write(W)}function M(ee,K){const W=e.byteLength(K);return d(ee,W),a("writeString: %s",K),ee.write(K,"utf8")}function $(ee,K,W){M(ee,K),M(ee,W)}function Z(ee,K){return a("writeNumberCached: number: %d",K),a("writeNumberCached: %o",o[K]),ee.write(o[K])}function ne(ee,K){const W=l(K);return a("writeNumberGenerated: %o",W),ee.write(W)}function re(ee,K){const W=f(K);return a("write4ByteNumber: %o",W),ee.write(W)}function N(ee,K){typeof K=="string"?M(ee,K):K?(d(ee,K.length),ee.write(K)):d(ee,0)}function fe(ee,K){if(typeof K!="object"||K.length!=null)return{length:1,write(){F(ee,{},0)}};let W=0;function D(ce,le){const k=t.propertiesTypes[ce];let P=0;switch(k){case"byte":{if(typeof le!="boolean")return ee.destroy(new Error(`Invalid ${ce}: ${le}`)),!1;P+=2;break}case"int8":{if(typeof le!="number"||le<0||le>255)return ee.destroy(new Error(`Invalid ${ce}: ${le}`)),!1;P+=2;break}case"binary":{if(le&&le===null)return ee.destroy(new Error(`Invalid ${ce}: ${le}`)),!1;P+=1+e.byteLength(le)+2;break}case"int16":{if(typeof le!="number"||le<0||le>65535)return ee.destroy(new Error(`Invalid ${ce}: ${le}`)),!1;P+=3;break}case"int32":{if(typeof le!="number"||le<0||le>4294967295)return ee.destroy(new Error(`Invalid ${ce}: ${le}`)),!1;P+=5;break}case"var":{if(typeof le!="number"||le<0||le>268435455)return ee.destroy(new Error(`Invalid ${ce}: ${le}`)),!1;P+=1+e.byteLength(c(le));break}case"string":{if(typeof le!="string")return ee.destroy(new Error(`Invalid ${ce}: ${le}`)),!1;P+=3+e.byteLength(le.toString());break}case"pair":{if(typeof le!="object")return ee.destroy(new Error(`Invalid ${ce}: ${le}`)),!1;P+=Object.getOwnPropertyNames(le).reduce((V,B)=>{const H=le[B];return Array.isArray(H)?V+=H.reduce((q,ue)=>(q+=3+e.byteLength(B.toString())+2+e.byteLength(ue.toString()),q),0):V+=3+e.byteLength(B.toString())+2+e.byteLength(le[B].toString()),V},0);break}default:return ee.destroy(new Error(`Invalid property ${ce}: ${le}`)),!1}return P}if(K)for(const ce in K){let le=0,k=0;const P=K[ce];if(Array.isArray(P))for(let V=0;Vce;){const k=X.shift();if(k&&K[k])delete K[k],le=fe(ee,K);else return!1}return le}function pe(ee,K,W){switch(t.propertiesTypes[K]){case"byte":{ee.write(e.from([t.properties[K]])),ee.write(e.from([+W]));break}case"int8":{ee.write(e.from([t.properties[K]])),ee.write(e.from([W]));break}case"binary":{ee.write(e.from([t.properties[K]])),N(ee,W);break}case"int16":{ee.write(e.from([t.properties[K]])),d(ee,W);break}case"int32":{ee.write(e.from([t.properties[K]])),re(ee,W);break}case"var":{ee.write(e.from([t.properties[K]])),I(ee,W);break}case"string":{ee.write(e.from([t.properties[K]])),M(ee,W);break}case"pair":{Object.getOwnPropertyNames(W).forEach(X=>{const ce=W[X];Array.isArray(ce)?ce.forEach(le=>{ee.write(e.from([t.properties[K]])),$(ee,X.toString(),le.toString())}):(ee.write(e.from([t.properties[K]])),$(ee,X.toString(),ce.toString()))});break}default:return ee.destroy(new Error(`Invalid property ${K} value: ${W}`)),!1}}function F(ee,K,W){I(ee,W);for(const D in K)if(Object.prototype.hasOwnProperty.call(K,D)&&K[D]!==null){const X=K[D];if(Array.isArray(X))for(let ce=0;ce{console.info("MQTT connection successful")}),_n.on("disconnect",()=>{console.info("MQTT disconnected")}),_n.on("error",t=>{console.error("MQTT connection failed: ",t)})}catch(t){console.error("MQTT connect error: ",t)}function mB(t){_n?_n.on("message",t):console.error("MqttRegister: MQTT client not available")}function js(t){Ec.topic=t;const{topic:e,qos:r}=Ec;_n.subscribe(e,{qos:r},n=>{if(n){console.error("MQTT Subscription error: "+n);return}})}function Vo(t){Ec.topic=t;const{topic:e}=Ec;_n.unsubscribe(e,r=>{if(r){console.error("MQTT Unsubscribe from "+t+" failed: "+r);return}})}async function Sc(t,e){let n=_n.connected,s=0;for(;!n&&s<20;)console.warn("MQTT publish: Not connected. Waiting 0.1 seconds"),await bB(100),n=_n.connected,s+=1;if(s<20)try{_n.publish(t,e,{qos:0},i=>{i&&console.warn("MQTT publish error: ",i),console.info("MQTT publish: Message sent: ["+t+"]("+e+")")})}catch(i){console.warn("MQTT publish: caught error: "+i)}else console.error("MQTT publish: Lost connection to MQTT server. Please reload the page")}function Om(){return IS.clientId}function bB(t){return new Promise(e=>setTimeout(e,t))}class yB{constructor(e){ve(this,"id");ve(this,"name","Ladepunkt");ve(this,"icon","Ladepunkt");ve(this,"type",pt.chargepoint);ve(this,"ev",0);ve(this,"template",0);ve(this,"connectedPhases",0);ve(this,"phase_1",0);ve(this,"autoPhaseSwitchHw",!1);ve(this,"controlPilotInterruptionHw",!1);ve(this,"isEnabled",!0);ve(this,"isPluggedIn",!1);ve(this,"isCharging",!1);ve(this,"_isLocked",!1);ve(this,"_connectedVehicle",0);ve(this,"chargeTemplate",null);ve(this,"evTemplate",0);ve(this,"_chargeMode",Hr.pv_charging);ve(this,"_hasPriority",!1);ve(this,"currentPlan","");ve(this,"averageConsumption",0);ve(this,"vehicleName","");ve(this,"rangeCharged",0);ve(this,"rangeUnit","");ve(this,"counter",0);ve(this,"dailyYield",0);ve(this,"energyPv",0);ve(this,"energyBat",0);ve(this,"pvPercentage",0);ve(this,"faultState",0);ve(this,"faultStr","");ve(this,"phasesInUse",0);ve(this,"power",0);ve(this,"chargedSincePlugged",0);ve(this,"stateStr","");ve(this,"current",0);ve(this,"currents",[0,0,0]);ve(this,"phasesToUse",0);ve(this,"isSocConfigured",!0);ve(this,"isSocManual",!1);ve(this,"waitingForSoc",!1);ve(this,"color","white");ve(this,"energy",0);ve(this,"showInGraph",!0);ve(this,"_timedCharging",!1);ve(this,"_instantChargeLimitMode","");ve(this,"_instantTargetCurrent",0);ve(this,"_instantTargetSoc",0);ve(this,"_instantMaxEnergy",0);ve(this,"_instantTargetPhases",0);ve(this,"_pvFeedInLimit",!1);ve(this,"_pvMinCurrent",0);ve(this,"_pvMaxSoc",0);ve(this,"_pvMinSoc",0);ve(this,"_pvMinSocCurrent",0);ve(this,"_pvMinSocPhases",1);ve(this,"_pvChargeLimitMode","");ve(this,"_pvTargetSoc",0);ve(this,"_pvMaxEnergy",0);ve(this,"_pvTargetPhases",0);ve(this,"_ecoMinCurrent",0);ve(this,"_ecoTargetPhases",0);ve(this,"_ecoChargeLimitMode","");ve(this,"_ecoTargetSoc",0);ve(this,"_ecoMaxEnergy",0);ve(this,"_etActive",!1);ve(this,"_etMaxPrice",20);this.id=e}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked=e,vr("cpLock",e,this.id)}updateIsLocked(e){this._isLocked=e}get connectedVehicle(){return this._connectedVehicle}set connectedVehicle(e){this._connectedVehicle=e,vr("cpVehicle",e,this.id)}updateConnectedVehicle(e){this._connectedVehicle=e}get soc(){return dt[this.connectedVehicle]?dt[this.connectedVehicle].soc:0}set soc(e){dt[this.connectedVehicle]&&(dt[this.connectedVehicle].soc=e)}get chargeMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.selected)??Hr.stop}set chargeMode(e){console.log("set mode"),this.chargeTemplate&&(console.log("active"),this.chargeTemplate.chargemode.selected=e,Ft(this.id))}get hasPriority(){var e;return((e=this.chargeTemplate)==null?void 0:e.prio)??!1}set hasPriority(e){this.chargeTemplate&&(this.chargeTemplate.prio=e,vr("cpPriority",e,this.id))}get timedCharging(){return this.chargeTemplate?this.chargeTemplate.time_charging.active:!1}set timedCharging(e){this.chargeTemplate.time_charging.active=e,vr("cpTimedCharging",e,this.id)}get instantTargetCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.current)??0}set instantTargetCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.current=e,Ft(this.id))}get instantChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.selected)??"none"}set instantChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.selected=e,Ft(this.id))}get instantTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.soc)??0}set instantTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.soc=e,Ft(this.id))}get instantMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.amount)??0}set instantMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.amount=e,Ft(this.id))}get instantTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.phases_to_use)??0}set instantTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.phases_to_use=e,Ft(this.id))}get pvFeedInLimit(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.feed_in_limit)??!1}set pvFeedInLimit(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.feed_in_limit=e,Ft(this.id))}get pvMinCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_current)??0}set pvMinCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_current=e,Ft(this.id))}get pvMaxSoc(){return this._pvMaxSoc}set pvMaxSoc(e){this._pvMaxSoc=e,vr("cpPvMaxSoc",e,this.id)}updatePvMaxSoc(e){this._pvMaxSoc=e}get pvMinSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_soc)??0}set pvMinSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_soc=e,Ft(this.id))}get pvMinSocCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_soc_current)??0}set pvMinSocCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_soc_current=e,Ft(this.id))}set pvMinSocPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.phases_to_use_min_soc=e,Ft(this.id))}get pvMinSocPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.phases_to_use_min_soc)??0}get pvChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.selected)??"none"}set pvChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.selected=e,Ft(this.id))}get pvTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.soc)??0}set pvTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.soc=e,Ft(this.id))}get pvMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.amount)??0}set pvMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.amount=e,Ft(this.id))}get pvTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.phases_to_use)??0}set pvTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.phases_to_use=e,Ft(this.id))}get ecoMinCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.current)??0}set ecoMinCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.current=e,Ft(this.id))}get ecoTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.phases_to_use)??0}set ecoTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.phases_to_use=e,Ft(this.id))}get ecoChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.selected)??"none"}set ecoChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.selected=e,Ft(this.id))}get ecoTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.soc)??0}set ecoTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.soc=e,Ft(this.id))}get ecoMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.amount)??0}set ecoMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.amount=e,Ft(this.id))}get etMaxPrice(){var e;return(((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.max_price)??0)*1e5}set etMaxPrice(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.max_price=Math.ceil(e*1e3)/1e8,Ft(this.id))}get etActive(){return this.chargeTemplate&&this.chargeTemplate.chargemode.selected==Hr.eco_charging}get realCurrent(){switch(this.phasesInUse){case 0:return 0;case 1:return this.currents[0];case 2:return(this.currents[0]+this.currents[1])/2;case 3:return(this.currents[0]+this.currents[1]+this.currents[2])/3;default:return 0}}toPowerItem(){return{name:this.name,type:pt.chargepoint,power:this.power,energy:this.dailyYield,energyPv:this.energyPv,energyBat:this.energyBat,pvPercentage:this.pvPercentage,color:this.color,icon:this.icon,showInGraph:!0}}}class wB{constructor(e){ve(this,"id");ve(this,"name","__invalid");ve(this,"tags",[]);ve(this,"config",{});ve(this,"soc",0);ve(this,"range",0);ve(this,"_chargeTemplateId",0);ve(this,"isSocConfigured",!1);ve(this,"isSocManual",!1);ve(this,"_evTemplateId",0);this.id=e}get chargeTemplateId(){return this._chargeTemplateId}set chargeTemplateId(e){this._chargeTemplateId=e,vr("vhChargeTemplateId",e,this.id)}updateChargeTemplateId(e){this._chargeTemplateId=e}get evTemplateId(){return this._evTemplateId}set evTemplateId(e){this._evTemplateId=e,vr("vhEvTemplateId",e,this.id)}updateEvTemplateId(e){this._evTemplateId=e}get chargepoint(){for(const e of Object.values(Ge))if(e.connectedVehicle==this.id)return e}get visible(){return this.name!="__invalid"&&(this.id!=0||_e.showStandardVehicle)}}const Ge=Dt({}),dt=Dt({}),pg=Dt({}),vB=Dt({});function _B(t){if(!(t in Ge)){Ge[t]=new yB(t);const e="var(--color-cp"+(Object.values(Ge).length-1)+")";Ge[t].color=e;const r="cp"+t;Vt[r]?Vt["cp"+t].color=e:Vt[r]={name:"Ladepunkt",color:e,icon:"Ladepunkt"}}}function EB(){Object.keys(Ge).forEach(t=>{delete Ge[parseInt(t)]})}const rr=we(()=>{const t=[],e=Object.values(Ge),r=Object.values(dt).filter(i=>i.visible);let n=-1;switch(e.length){case 0:n=r[0]?r[0].id:-1;break;default:n=e[0].connectedVehicle}let s=-1;switch(e.length){case 0:case 1:s=r[0]?r[0].id:-1;break;default:s=e[1].connectedVehicle}return n==s&&(s=r[1]?r[1].id:-1),n!=-1&&t.push(n),s!=-1&&t.push(s),t}),Lm=[{name:"keine",id:"none"},{name:"Ladestand",id:"soc"},{name:"Energie",id:"amount"}],kS={cpLock:"openWB/set/chargepoint/%/set/manual_lock",chargeMode:"openWB/set/vehicle/template/charge_template/%/chargemode/selected",cpPriority:"openWB/set/vehicle/template/charge_template/%/prio",cpTimedCharging:"openWB/set/vehicle/template/charge_template/%/time_charging/active",pvBatteryPriority:"openWB/set/general/chargemode_config/pv_charging/bat_mode",cpVehicle:"openWB/set/chargepoint/%/config/ev",cpInstantChargeLimitMode:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/selected",cpInstantTargetCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/current",cpInstantTargetSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/soc",cpInstantMaxEnergy:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/amount",cpPvFeedInLimit:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/feed_in_limit",cpPvMinCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_current",cpPvMaxSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/max_soc",cpPvMinSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc",cpPvMinSocCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc_current",cpEtMaxPrice:"openWB/set/vehicle/template/charge_template/%/et/max_price",vhChargeTemplateId:"openWB/set/vehicle/%/charge_template",vhEvTemplateId:"openWB/set/vehicle/%/ev_template",shSetManual:"openWB/set/LegacySmartHome/config/set/Devices/%/mode",shSwitchOn:"openWB/set/LegacySmartHome/config/set/Devices/%/device_manual_control",socUpdate:"openWB/set/vehicle/%/get/force_soc_update",setSoc:"openWB/set/vehicle/%/soc_module/calculated_soc_state/manual_soc",priceCharging:"openWB/set/vehicle/template/charge_template/%/et/active",chargeTemplate:"openWB/set/chargepoint/%/set/charge_template"};function vr(t,e,r=0){if(isNaN(r)){console.warn("Invalid index");return}let n=kS[t];if(!n){console.warn("No topic for update type "+t);return}switch(t){default:n=n.replace("%",String(r))}switch(typeof e){case"number":Sc(n,JSON.stringify(+e));break;default:Sc(n,JSON.stringify(e))}}function Rm(t){Sc("openWB/set/command/"+Om()+"/todo",JSON.stringify(t))}function Ft(t){Sc(kS.chargeTemplate.replace("%",String(t)),JSON.stringify(Ge[t].chargeTemplate))}const Tr=500,tn=500,it={top:15,right:20,bottom:10,left:25},Bm=["charging","house","batIn","devices"];class SB{constructor(){ve(this,"data",[]);ve(this,"_graphMode","");ve(this,"waitForData",!0)}get graphMode(){return this._graphMode}set graphMode(e){this._graphMode=e}}const Ae=Dt(new SB),PS=ct(gm),Zi=we(()=>[0,Tr-it.left-2*it.right].map(t=>PS.value.applyX(t)));let yl=!0,Ko=!0;function yv(){yl=!1}function wv(){yl=!0}function vv(){Ko=!1}function _v(){Ko=!0}function xB(t){Ko=t}function Ol(t){Ae.data=t,Ae.waitForData=!1}const Jt=Dt({refreshTopicPrefix:"openWB/graph/alllivevaluesJson",updateTopic:"openWB/graph/lastlivevaluesJson",configTopic:"openWB/graph/config/#",initialized:!1,initCounter:0,graphRefreshCounter:0,rawDataPacks:[],duration:0,activate(t){this.unsubscribeUpdates(),this.subscribeRefresh(),t&&(Ae.data=[]),Ae.waitForData=!0,js(this.configTopic),this.initialized=!1,this.initCounter=0,this.graphRefreshCounter=0,this.rawDataPacks=[],MB(),Xo.value=!0},deactivate(){this.unsubscribeRefresh(),this.unsubscribeUpdates(),Vo(this.configTopic)},subscribeRefresh(){for(let t=1;t<17;t++)js(this.refreshTopicPrefix+t)},unsubscribeRefresh(){for(let t=1;t<17;t++)Vo(this.refreshTopicPrefix+t)},subscribeUpdates(){js(this.updateTopic)},unsubscribeUpdates(){Vo(this.updateTopic)}}),Ht=Dt({topic:"openWB/log/daily/#",date:new Date,activate(t){if(Ae.graphMode=="day"||Ae.graphMode=="today"){Ae.graphMode=="today"&&(this.date=new Date);const e=this.date.getFullYear().toString()+(this.date.getMonth()+1).toString().padStart(2,"0")+this.date.getDate().toString().padStart(2,"0");this.topic="openWB/log/daily/"+e,js(this.topic),t&&(Ae.data=[]),Ae.waitForData=!0,Rm({command:"getDailyLog",data:{date:e}})}},deactivate(){Vo(this.topic)},back(){this.date=new Date(this.date.setTime(this.date.getTime()-864e5))},forward(){this.date=new Date(this.date.setTime(this.date.getTime()+864e5))},setDate(t){this.date=t},getDate(){return this.date}}),Bn=Dt({topic:"openWB/log/monthly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(t){const e=this.year.toString()+this.month.toString().padStart(2,"0");Ae.data=[],js(this.topic),t&&(Ae.data=[]),Ae.waitForData=!0,Rm({command:"getMonthlyLog",data:{date:e}})},deactivate(){Vo(this.topic)},back(){this.month-=1,this.month<1&&(this.month=12,this.year-=1),this.activate()},forward(){const t=new Date;t.getFullYear()==this.year?this.month-112&&(this.month=1,this.year+=1)),this.activate()},getDate(){return new Date(this.year,this.month)}}),Ki=Dt({topic:"openWB/log/yearly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(t){const e=this.year.toString();js(this.topic),t&&(Ae.data=[]),Ae.waitForData=!0,Rm({command:"getYearlyLog",data:{date:e}})},deactivate(){Vo(this.topic)},back(){this.year-=1,this.activate()},forward(){this.year0&&(qe.items[t].energyPv+=1e3/12*(e[t]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),qe.items[t].energyBat+=1e3/12*(e[t]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}function CB(t,e){e[t]>0&&(qe.items[t].energyPv+=1e3*(e[t]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),qe.items[t].energyBat+=1e3*(e[t]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}const IB=["evuIn","pv","batOut","evuOut"],es=ct(!1);function $m(t,e){Object.entries(t).length>0?(es.value=!1,Object.entries(t.counter).forEach(([r,n])=>{(e.length==0||e.includes(r))&&(qe.items.evuIn.energy+=n.energy_imported,qe.items.evuOut.energy+=n.energy_exported)}),qe.items.pv.energy=t.pv.all.energy_exported,t.bat.all&&(qe.items.batIn.energy=t.bat.all.energy_imported,qe.items.batOut.energy=t.bat.all.energy_exported),Object.entries(t.cp).forEach(([r,n])=>{r=="all"?(qe.setEnergy("charging",n.energy_imported),n.energy_imported_pv!=null&&(qe.setEnergyPv("charging",n.energy_imported_pv),qe.setEnergyBat("charging",n.energy_imported_bat))):qe.setEnergy(r,n.energy_imported)}),qe.setEnergy("devices",0),Object.entries(t.sh).forEach(([r,n])=>{qe.setEnergy(r,n.energy_imported);const s=r.substring(2);St.get(+s).countAsHouse||(qe.items.devices.energy+=n.energy_imported)}),t.hc&&t.hc.all?(qe.setEnergy("house",t.hc.all.energy_imported),t.hc.all.energy_imported_pv!=null&&(qe.setEnergyPv("house",t.hc.all.energy_imported_pv),qe.setEnergyBat("house",t.hc.all.energy_imported_bat))):qe.calculateHouseEnergy(),qe.keys().forEach(r=>{IB.includes(r)||(qe.setPvPercentage(r,Math.round((qe.items[r].energyPv+qe.items[r].energyBat)/qe.items[r].energy*100)),Bm.includes(r)&&(tt[r].energy=qe.items[r].energy,tt[r].energyPv=qe.items[r].energyPv,tt[r].energyBat=qe.items[r].energyBat,tt[r].pvPercentage=qe.items[r].pvPercentage))}),Ae.graphMode=="today"&&(Object.values(Ge).forEach(r=>{const n=qe.items["cp"+r.id];n&&(r.energyPv=n.energyPv,r.energyBat=n.energyBat,r.pvPercentage=n.pvPercentage)}),St.forEach(r=>{const n=qe.items["sh"+r.id];n&&(r.energy=n.energy,r.energyPv=n.energyPv,r.energyBat=n.energyBat,r.pvPercentage=n.pvPercentage)}))):es.value=!0,Xo.value=!0}const En=we(()=>{const t=Tn(Ae.data,e=>new Date(e.date));return t[0]&&t[1]?Hh().domain(t).range([0,Tr-it.left-2*it.right]):Xs().range([0,0])});function MB(){qe.keys().forEach(t=>{Bm.includes(t)&&(tt[t].energy=qe.items[t].energy,tt[t].energyPv=0,tt[t].energyBat=0,tt[t].pvPercentage=0)}),Object.values(Ge).forEach(t=>{t.energyPv=0,t.energyBat=0,t.pvPercentage=0}),St.forEach(t=>{t.energyPv=0,t.energyBat=0,t.pvPercentage=0})}const Xi=we(()=>{const t=Tn(Ae.data,e=>e.date);return t[1]?gl().domain(Array.from({length:t[1]},(e,r)=>r+1)).paddingInner(.4).range([0,Tr-it.left-2]):gl().range([0,0])});function af(){switch(Ae.graphMode){case"live":Ae.graphMode="today",_e.showRightButton=!0,nr();break;case"today":Ae.graphMode="day",Ht.deactivate(),Ht.back(),Ht.activate(),nr();break;case"day":Ht.back(),nr();break;case"month":Bn.back();break;case"year":Ki.back();break}}function Nm(){const t=new Date;switch(Ae.graphMode){case"live":break;case"today":Ae.graphMode="live",_e.showRightButton=!1,nr();break;case"day":Ht.forward(),Ht.date.getDate()==t.getDate()&&Ht.date.getMonth()==t.getMonth()&&Ht.date.getFullYear()==t.getFullYear()&&(Ae.graphMode="today"),nr();break;case"month":Bn.forward();break;case"year":Ki.forward();break}}function Dm(){switch(Ae.graphMode){case"live":af();break;case"day":case"today":Ae.graphMode="month",nr();break;case"month":Ae.graphMode="year",nr();break}}function Um(){switch(Ae.graphMode){case"year":Ae.graphMode="month",nr();break;case"month":Ae.graphMode="today",nr();break;case"today":case"day":Ae.graphMode="live",nr();break}}function Ev(t){if(Ae.graphMode=="day"||Ae.graphMode=="today"){Ht.setDate(t);const e=new Date;Ht.date.getDate()==e.getDate()&&Ht.date.getMonth()==e.getMonth()&&Ht.date.getFullYear()==e.getFullYear()?Ae.graphMode="today":Ae.graphMode="day",nr()}}const li=ct(new Map);let kB=class{constructor(){ve(this,"_showRelativeArcs",!1);ve(this,"showTodayGraph",!0);ve(this,"_graphPreference","today");ve(this,"_usageStackOrder",0);ve(this,"_displayMode","dark");ve(this,"_showGrid",!1);ve(this,"_smartHomeColors","normal");ve(this,"_decimalPlaces",1);ve(this,"_showQuickAccess",!0);ve(this,"_simpleCpList",!1);ve(this,"_shortCpList","no");ve(this,"_showAnimations",!0);ve(this,"_preferWideBoxes",!1);ve(this,"_maxPower",4e3);ve(this,"_fluidDisplay",!1);ve(this,"_showClock","no");ve(this,"_showButtonBar",!0);ve(this,"_showCounters",!1);ve(this,"_showVehicles",!1);ve(this,"_showStandardVehicle",!0);ve(this,"_showPrices",!1);ve(this,"_showInverters",!1);ve(this,"_alternativeEnergy",!1);ve(this,"_sslPrefs",!1);ve(this,"_debug",!1);ve(this,"_lowerPriceBound",0);ve(this,"_upperPriceBound",0);ve(this,"_showPmLabels",!0);ve(this,"isEtEnabled",!1);ve(this,"etPrice",20.5);ve(this,"showRightButton",!0);ve(this,"showLeftButton",!0);ve(this,"animationDuration",300);ve(this,"animationDelay",100);ve(this,"zoomGraph",!1);ve(this,"zoomedWidget",1)}get showRelativeArcs(){return this._showRelativeArcs}set showRelativeArcs(e){this._showRelativeArcs=e,Et()}setShowRelativeArcs(e){this._showRelativeArcs=e}get graphPreference(){return this._graphPreference}set graphPreference(e){this._graphPreference=e,Et()}setGraphPreference(e){this._graphPreference=e}get usageStackOrder(){return this._usageStackOrder}set usageStackOrder(e){this._usageStackOrder=e,Et()}setUsageStackOrder(e){this._usageStackOrder=e}get displayMode(){return this._displayMode}set displayMode(e){this._displayMode=e,RB(e)}setDisplayMode(e){this._displayMode=e}get showGrid(){return this._showGrid}set showGrid(e){this._showGrid=e,Et()}setShowGrid(e){this._showGrid=e}get decimalPlaces(){return this._decimalPlaces}set decimalPlaces(e){this._decimalPlaces=e,Et()}setDecimalPlaces(e){this._decimalPlaces=e}get smartHomeColors(){return this._smartHomeColors}set smartHomeColors(e){this._smartHomeColors=e,Sv(e),Et()}setSmartHomeColors(e){this._smartHomeColors=e,Sv(e)}get showQuickAccess(){return this._showQuickAccess}set showQuickAccess(e){this._showQuickAccess=e,Et()}setShowQuickAccess(e){this._showQuickAccess=e}get simpleCpList(){return this._simpleCpList}set simpleCpList(e){this._simpleCpList=e,Et()}setSimpleCpList(e){this._simpleCpList=e}get shortCpList(){return this._shortCpList}set shortCpList(e){this._shortCpList=e,Et()}setShortCpList(e){this._shortCpList=e}get showAnimations(){return this._showAnimations}set showAnimations(e){this._showAnimations=e,Et()}setShowAnimations(e){this._showAnimations=e}get preferWideBoxes(){return this._preferWideBoxes}set preferWideBoxes(e){this._preferWideBoxes=e,Et()}setPreferWideBoxes(e){this._preferWideBoxes=e}get maxPower(){return this._maxPower}set maxPower(e){this._maxPower=e,Et()}setMaxPower(e){this._maxPower=e}get fluidDisplay(){return this._fluidDisplay}set fluidDisplay(e){this._fluidDisplay=e,Et()}setFluidDisplay(e){this._fluidDisplay=e}get showClock(){return this._showClock}set showClock(e){this._showClock=e,Et()}setShowClock(e){this._showClock=e}get sslPrefs(){return this._sslPrefs}set sslPrefs(e){this._sslPrefs=e,Et()}setSslPrefs(e){this.sslPrefs=e}get debug(){return this._debug}set debug(e){this._debug=e,Et()}setDebug(e){this._debug=e}get showButtonBar(){return this._showButtonBar}set showButtonBar(e){this._showButtonBar=e,Et()}setShowButtonBar(e){this._showButtonBar=e}get showCounters(){return this._showCounters}set showCounters(e){this._showCounters=e,Et()}setShowCounters(e){this._showCounters=e}get showVehicles(){return this._showVehicles}set showVehicles(e){this._showVehicles=e,Et()}setShowVehicles(e){this._showVehicles=e}get showStandardVehicle(){return this._showStandardVehicle}set showStandardVehicle(e){this._showStandardVehicle=e,Et()}setShowStandardVehicle(e){this._showStandardVehicle=e}get showPrices(){return this._showPrices}set showPrices(e){this._showPrices=e,Et()}setShowPrices(e){this._showPrices=e}get showInverters(){return this._showInverters}set showInverters(e){this._showInverters=e,wv(),_v(),Et()}setShowInverters(e){this._showInverters=e}get alternativeEnergy(){return this._alternativeEnergy}set alternativeEnergy(e){this._alternativeEnergy=e,wv(),_v(),Et()}setAlternativeEnergy(e){this._alternativeEnergy=e}get lowerPriceBound(){return this._lowerPriceBound}set lowerPriceBound(e){this._lowerPriceBound=e,Et()}setLowerPriceBound(e){this._lowerPriceBound=e}get upperPriceBound(){return this._upperPriceBound}set upperPriceBound(e){this._upperPriceBound=e,Et()}setUpperPriceBound(e){this._upperPriceBound=e}get showPmLabels(){return this._showPmLabels}set showPmLabels(e){this._showPmLabels=e,Et()}setShowPmLabels(e){this._showPmLabels=e}};const _e=Dt(new kB);function OS(){NB();const t=Ct("html");t.classed("theme-dark",_e.displayMode=="dark"),t.classed("theme-light",_e.displayMode=="light"),t.classed("theme-blue",_e.displayMode=="blue"),t.classed("shcolors-standard",_e.smartHomeColors=="standard"),t.classed("shcolors-advanced",_e.smartHomeColors=="advanced"),t.classed("shcolors-normal",_e.smartHomeColors=="normal")}const PB=992,xc=Dt({x:document.documentElement.clientWidth,y:document.documentElement.clientHeight});function OB(){xc.x=document.documentElement.clientWidth,xc.y=document.documentElement.clientHeight,OS()}const jn=we(()=>xc.x>=PB),yr={instant_charging:{mode:Hr.instant_charging,name:"Sofort",color:"var(--color-charging)",icon:"fa-bolt"},pv_charging:{mode:Hr.pv_charging,name:"PV",color:"var(--color-pv)",icon:"fa-solar-panel"},scheduled_charging:{mode:Hr.scheduled_charging,name:"Zielladen",color:"var(--color-battery)",icon:"fa-bullseye"},eco_charging:{mode:Hr.eco_charging,name:"Eco",color:"var(--color-devices)",icon:"fa-coins"},stop:{mode:Hr.stop,name:"Stop",color:"var(--color-fg)",icon:"fa-power-off"}};class LB{constructor(){ve(this,"batterySoc",0);ve(this,"isBatteryConfigured",!0);ve(this,"chargeMode","0");ve(this,"_pvBatteryPriority","ev_mode");ve(this,"displayLiveGraph",!0);ve(this,"isEtEnabled",!0);ve(this,"etMaxPrice",0);ve(this,"etCurrentPrice",0);ve(this,"cpDailyExported",0);ve(this,"evuId",0);ve(this,"etProvider","")}get pvBatteryPriority(){return this._pvBatteryPriority}set pvBatteryPriority(e){this._pvBatteryPriority=e,vr("pvBatteryPriority",e)}updatePvBatteryPriority(e){this._pvBatteryPriority=e}}function Et(){$B()}function RB(t){const e=Ct("html");e.classed("theme-dark",t=="dark"),e.classed("theme-light",t=="light"),e.classed("theme-blue",t=="blue"),Et()}function BB(){_e.maxPower=ot.evuIn.power+ot.pv.power+ot.batOut.power,Et()}function Sv(t){const e=Ct("html");e.classed("shcolors-normal",t=="normal"),e.classed("shcolors-standard",t=="standard"),e.classed("shcolors-advanced",t=="advanced")}const Gi={chargemode:"Der Lademodus für das Fahrzeug an diesem Ladepunkt",vehicle:"Das Fahrzeug, das an diesem Ladepounkt geladen wird",locked:"Für das Laden sperren",priority:"Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar",timeplan:"Das Laden nach Zeitplan für dieses Fahrzeug aktivieren",minsoc:"Immer mindestens bis zum eingestellten Ladestand laden. Wenn notwendig mit Netzstrom.",minpv:"Durchgehend mit mindestens dem eingestellten Strom laden. Wenn notwendig mit Netzstrom.",pricebased:"Laden bei dynamischem Stromtarif, wenn eingestellter Maximalpreis unterboten wird.",pvpriority:"Ladepriorität bei PV-Produktion. Bevorzung von Fahzeugen, Speicher, oder Fahrzeugen bis zum eingestellten Mindest-Ladestand. Die Einstellung ist für alle Ladepunkte gleich."};function $B(){const t={};t.hideSH=[...St.values()].filter(e=>!e.showInGraph).map(e=>e.id),t.showLG=_e.graphPreference=="live",t.displayM=_e.displayMode,t.stackO=_e.usageStackOrder,t.showGr=_e.showGrid,t.decimalP=_e.decimalPlaces,t.smartHomeC=_e.smartHomeColors,t.relPM=_e.showRelativeArcs,t.maxPow=_e.maxPower,t.showQA=_e.showQuickAccess,t.simpleCP=_e.simpleCpList,t.shortCP=_e.shortCpList,t.animation=_e.showAnimations,t.wideB=_e.preferWideBoxes,t.fluidD=_e.fluidDisplay,t.clock=_e.showClock,t.showButtonBar=_e.showButtonBar,t.showCounters=_e.showCounters,t.showVehicles=_e.showVehicles,t.showStandardV=_e.showStandardVehicle,t.showPrices=_e.showPrices,t.showInv=_e.showInverters,t.altEngy=_e.alternativeEnergy,t.lowerP=_e.lowerPriceBound,t.upperP=_e.upperPriceBound,t.sslPrefs=_e.sslPrefs,t.pmLabels=_e.showPmLabels,t.debug=_e.debug,document.cookie="openWBColorTheme="+JSON.stringify(t)+";max-age=16000000;"+(_e.sslPrefs?"SameSite=None;Secure":"SameSite=Strict")}function NB(){const e=document.cookie.split(";").filter(r=>r.split("=")[0]==="openWBColorTheme");if(e.length>0){const r=JSON.parse(e[0].split("=")[1]);r.decimalP!==void 0&&_e.setDecimalPlaces(+r.decimalP),r.smartHomeC!==void 0&&_e.setSmartHomeColors(r.smartHomeC),r.hideSH!==void 0&&r.hideSH.forEach(n=>{St.get(n)==null&&mm(n),St.get(n).setShowInGraph(!1)}),r.showLG!==void 0&&_e.setGraphPreference(r.showLG?"live":"today"),r.maxPow!==void 0&&_e.setMaxPower(+r.maxPow),r.relPM!==void 0&&_e.setShowRelativeArcs(r.relPM),r.displayM!==void 0&&_e.setDisplayMode(r.displayM),r.stackO!==void 0&&_e.setUsageStackOrder(r.stackO),r.showGr!==void 0&&_e.setShowGrid(r.showGr),r.showQA!==void 0&&_e.setShowQuickAccess(r.showQA),r.simpleCP!==void 0&&_e.setSimpleCpList(r.simpleCP),r.shortCP!==void 0&&_e.setShortCpList(r.shortCP),r.animation!=null&&_e.setShowAnimations(r.animation),r.wideB!=null&&_e.setPreferWideBoxes(r.wideB),r.fluidD!=null&&_e.setFluidDisplay(r.fluidD),r.clock!=null&&_e.setShowClock(r.clock),r.showButtonBar!==void 0&&_e.setShowButtonBar(r.showButtonBar),r.showCounters!==void 0&&_e.setShowCounters(r.showCounters),r.showVehicles!==void 0&&_e.setShowVehicles(r.showVehicles),r.showStandardV!==void 0&&_e.setShowStandardVehicle(r.showStandardV),r.showPrices!==void 0&&_e.setShowPrices(r.showPrices),r.showInv!==void 0&&_e.setShowInverters(r.showInv),r.altEngy!==void 0&&_e.setAlternativeEnergy(r.altEngy),r.lowerP!==void 0&&_e.setLowerPriceBound(r.lowerP),r.upperP!==void 0&&_e.setUpperPriceBound(r.upperP),r.sslPrefs!==void 0&&_e.setSslPrefs(r.sslPrefs),r.pmLabels!==void 0&&_e.setShowPmLabels(r.pmLabels),r.debug!==void 0&&_e.setDebug(r.debug)}}const Vt=Dt({evuIn:{name:"Netz",color:"var(--color-evu)",icon:""},pv:{name:"PV",color:"var(--color-pv",icon:""},batOut:{name:"Bat >",color:"var(--color-battery)",icon:""},evuOut:{name:"Export",color:"var(--color-export)",icon:""},charging:{name:"Laden",color:"var(--color-charging)",icon:""},devices:{name:"Geräte",color:"var(--color-devices)",icon:""},batIn:{name:"> Bat",color:"var(--color-battery)",icon:""},house:{name:"Haus",color:"var(--color-house)",icon:""},cp1:{name:"Ladepunkt",color:"var(--color-cp1)",icon:"Ladepunkt"},cp2:{name:"Ladepunkt",color:"var(--color-cp2)",icon:"Ladepunkt"},cp3:{name:"Ladepunkt",color:"var(--color-cp3)",icon:"Ladepunkt"},cp4:{name:"Ladepunkt",color:"var(--color-cp4)",icon:"Ladepunkt"},cp5:{name:"Ladepunkt",color:"var(--color-cp5)",icon:"Ladepunkt"},cp6:{name:"Ladepunkt",color:"var(--color-cp6)",icon:"Ladepunkt"},cp7:{name:"Ladepunkt",color:"var(--color-cp7)",icon:"Ladepunkt"},cp8:{name:"Ladepunkt",color:"var(--color-cp8)",icon:"Ladepunkt"},sh1:{name:"Gerät",color:"var(--color-sh1)",icon:"Gerät"},sh2:{name:"Gerät",color:"var(--color-sh2)",icon:"Gerät"},sh3:{name:"Gerät",color:"var(--color-sh3)",icon:"Gerät"},sh4:{name:"Gerät",color:"var(--color-sh4)",icon:"Gerät"},sh5:{name:"Gerät",color:"var(--color-sh5)",icon:"Gerät"},sh6:{name:"Gerät",color:"var(--color-sh6)",icon:"Gerät"},sh7:{name:"Gerät",color:"var(--color-sh7)",icon:"Gerät"},sh8:{name:"Gerät",color:"var(--color-sh8)",icon:"Gerät"},sh9:{name:"Gerät",color:"var(--color-sh9)",icon:"Gerät"},pv1:{name:"PV",color:"var(--color-pv1)",icon:"Wechselrichter"},pv2:{name:"PV",color:"var(--color-pv2)",icon:"Wechselrichter"},pv3:{name:"PV",color:"var(--color-pv3)",icon:"Wechselrichter"},pv4:{name:"PV",color:"var(--color-pv4)",icon:"Wechselrichter"},pv5:{name:"PV",color:"var(--color-pv5)",icon:"Wechselrichter"},pv6:{name:"PV",color:"var(--color-pv6)",icon:"Wechselrichter"},pv7:{name:"PV",color:"var(--color-pv7)",icon:"Wechselrichter"},pv8:{name:"PV",color:"var(--color-pv8)",icon:"Wechselrichter"},pv9:{name:"PV",color:"var(--color-pv9)",icon:"Wechselrichter"},bat1:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat2:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat3:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat4:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat5:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat6:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat7:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat8:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat9:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"}});class LS{constructor(){ve(this,"_items",{});this.addItem("evuIn"),this.addItem("pv"),this.addItem("batOut"),this.addItem("evuOut"),this.addItem("charging"),this.addItem("devices"),this.addItem("batIn"),this.addItem("house")}get items(){return this._items}keys(){return Object.keys(this._items)}values(){return Object.values(this._items)}addItem(e,r,n){let s;if(r)s=r;else switch(e){case"evuIn":s=pt.counter;break;case"pv":s=pt.inverter;break;case"batOut":s=pt.battery;break;case"evuOut":s=pt.counter;break;case"charging":s=pt.chargepoint;break;case"devices":s=pt.device;break;case"batIn":s=pt.battery;break;case"house":s=pt.house;break;default:s=pt.counter}this._items[e]=n?$n(e,s,n):$n(e,s)}setEnergy(e,r){this.keys().includes(e)||this.addItem(e),this._items[e].energy=r}setEnergyPv(e,r){this.keys().includes(e)||this.addItem(e),this._items[e].energyPv=r}setEnergyBat(e,r){this.keys().includes(e)||this.addItem(e),this._items[e].energyBat=r}setPvPercentage(e,r){this.keys().includes(e)||this.addItem(e),this._items[e].pvPercentage=r<=100?r:100}calculateHouseEnergy(){this._items.house.energy=this._items.evuIn.energy+this._items.pv.energy+this._items.batOut.energy-this._items.evuOut.energy-this._items.batIn.energy-this._items.charging.energy-this._items.devices.energy}}let qe=Dt(new LS);function Fm(){qe=new LS}const ot=Dt({evuIn:$n("evuIn",pt.counter),pv:$n("pv",pt.pvSummary),batOut:$n("batOut",pt.batterySummary)}),tt=Dt({evuOut:$n("evuOut",pt.counter),charging:$n("charging",pt.chargeSummary),devices:$n("devices",pt.deviceSummary),batIn:$n("batIn",pt.batterySummary),house:$n("house",pt.house)}),Yt=Dt(new LB);ct("");const Xo=ct(!1);function $n(t,e,r){return{name:Vt[t]?Vt[t].name:"item",type:e,power:0,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:r||(Vt[t]?Vt[t].color:"var(--color-charging)"),icon:Vt[t]?Vt[t].icon:"",showInGraph:!0}}const gg=ct(new Date),ar=ct(new Map),DB=t=>{ar.value.set(t,new S1(t)),UB()};function UB(){[...ar.value.values()].sort((e,r)=>e.id-r.id).forEach((e,r)=>{e.color=Vt["pv"+(r+1)].color})}class FB{constructor(e){ve(this,"id");ve(this,"name","Speicher");ve(this,"type",pt.battery);ve(this,"color","var(--color-battery)");ve(this,"dailyYieldExport",0);ve(this,"dailyYieldImport",0);ve(this,"monthlyYieldExport",0);ve(this,"monthlyYieldImport",0);ve(this,"yearlyYieldExport",0);ve(this,"yearlyYieldImport",0);ve(this,"exported",0);ve(this,"faultState",0);ve(this,"faultStr","");ve(this,"imported",0);ve(this,"power",0);ve(this,"soc",0);ve(this,"energy",0);ve(this,"energyPv",0);ve(this,"energyBat",0);ve(this,"pvPercentage",0);ve(this,"showInGraph",!0);ve(this,"icon","Speicher");this.id=e}}class VB{constructor(){ve(this,"dailyExport",0);ve(this,"dailyImport",0);ve(this,"exported",0);ve(this,"imported",0);ve(this,"power",0);ve(this,"soc",0)}}Dt(new VB);const kt=ct(new Map),RS=t=>{kt.value.set(t,new FB(t)),kt.value.get(t).color=Vt["bat"+kt.value.size].color};function jB(){kt.value=new Map}function Yr(t,e=1){let r;if(t>=1e3&&e<4){switch(e){case 0:r=Math.round(t/1e3);break;case 1:r=Math.round(t/100)/10;break;case 2:r=Math.round(t/10)/100;break;case 3:r=Math.round(t)/1e3;break;default:r=Math.round(t/100)/10;break}return(r==null?void 0:r.toLocaleString(void 0,{minimumFractionDigits:e}))+" kW"}else return Math.round(t).toLocaleString()+" W"}function Mi(t,e=1,r=!1){let n;if(t>1e6&&(r=!0,t=t/1e3),t>=1e3&&e<4){switch(e){case 0:n=Math.round(t/1e3);break;case 1:n=Math.round(t/100)/10;break;case 2:n=Math.round(t/10)/100;break;case 3:n=Math.round(t)/1e3;break;default:n=Math.round(t/100)/10;break}return n.toLocaleString(void 0,{minimumFractionDigits:e})+(r?" MWh":" kWh")}else return Math.round(t).toLocaleString()+(r?" kWh":" Wh")}function WB(t){const e=Math.floor(t/3600),r=(t%3600/60).toFixed(0);return e>0?e+"h "+r+" min":r+" min"}function BS(t){return t.toLocaleTimeString(["de-DE"],{hour:"2-digit",minute:"2-digit"})}function zB(t,e){return["Jan","Feb","März","April","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Dez"][t]+" "+e}function HB(t){return t!=999?(Math.round(t*10)/10).toLocaleString(void 0,{minimumFractionDigits:1})+"°":"-"}function qB(t){const e=document.documentElement,r=getComputedStyle(e);t=t.slice(4,-1);const n=r.getPropertyValue(t).trim(),s=parseInt(n.slice(1,3),16),i=parseInt(n.slice(3,5),16),a=parseInt(n.slice(5,7),16);return(s*299+i*587+a*114)/1e3>125?"black":"white"}const GB={y:"0",class:"popup-title"},YB={dy:"1em",x:"0",class:"popup-content"},KB=je({__name:"PMPopup",props:{consumer:{}},setup(t){const e=t;function r(n){return n.length>8?n.substring(0,8)+".":n}return(n,s)=>(ae(),Ee("g",null,[z("rect",{x:"-40",y:"-17",rx:"10",ry:"10",width:"80",height:"40","corner-radius":"20",filter:"url(#f1)",class:"popup",style:ht({fill:e.consumer.color})},null,4),z("text",{dy:"0",x:"0",y:"0",class:"popup-textbox",style:ht({fill:se(qB)(e.consumer.color)})},[z("tspan",GB,ke(r(e.consumer.name)),1),z("tspan",YB,ke(se(Yr)(Math.abs(e.consumer.power))),1)],4)]))}}),Je=(t,e)=>{const r=t.__vccOpts||t;for(const[n,s]of e)r[n]=s;return r},XB=Je(KB,[["__scopeId","data-v-a154651e"]]),QB=["d","fill","stroke"],JB={key:0},ZB=["transform"],e$=10,$S=je({__name:"PMArc",props:{upperArc:{type:Boolean},plotdata:{},radius:{},showLabels:{type:Boolean},categoriesToShow:{}},setup(t){const e=t,r=Math.PI/40,n=we(()=>e.plotdata.length-1),s=we(()=>e.upperArc?Ly().value(l=>Math.abs(l.power)).startAngle(-Math.PI/2+r).endAngle(Math.PI/2-r).sort(null):Ly().value(l=>l.power).startAngle(Math.PI*1.5-r).endAngle(Math.PI/2+r).sort(null)),i=we(()=>m2().innerRadius(e.radius*.87).outerRadius(e.radius).cornerRadius(e$));function a(l,u){return u==n.value?l.data.power>0?"var(--color-scale)":"null":l.data.color}const o=we(()=>e.plotdata.reduce((l,u)=>l+Math.abs(u.power),0));return(l,u)=>(ae(),Ee(Ye,null,[u[0]||(u[0]=z("g",null,[z("defs",null,[z("filter",{id:"f1"},[z("feDropShadow",{dx:"1",dy:"1",rx:"10",ry:"10",stdDeviation:"1","flood-opacity":"0.7","flood-color":"var(--color-axis)"})])])],-1)),(ae(!0),Ee(Ye,null,ft(s.value(e.plotdata.filter(c=>c.power!=0)),(c,f)=>(ae(),Ee("g",{key:c.data.name},[z("path",{d:i.value(c),fill:c.data.color,stroke:a(c,f)},null,8,QB)]))),128)),e.showLabels?(ae(),Ee("g",JB,[(ae(!0),Ee(Ye,null,ft(s.value(l.plotdata.filter(c=>c.power!=0)),c=>(ae(),Ee("g",{key:c.data.name,transform:"translate("+i.value.centroid(c)+")"},[l.categoriesToShow.includes(c.data.type)&&Math.abs(c.data.power)/o.value>.05?(ae(),Re(XB,{key:0,consumer:c.data},null,8,["consumer"])):Me("",!0)],8,ZB))),128))])):Me("",!0)],64))}}),t$=je({__name:"PMSourceArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{},showLabels:{type:Boolean}},setup(t){const e=t,r=[pt.inverter,pt.battery],n=we(()=>({name:"",type:pt.counter,power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:"",showInGraph:!0})),s=we(()=>[ot.evuIn].concat(i.value,a.value,n.value)),i=we(()=>ar.value.size>1?[...ar.value.values()].sort((o,l)=>o.power-l.power):[ot.pv]),a=we(()=>kt.value.size>1?[...kt.value.values()].filter(o=>o.power<0).sort((o,l)=>o.power-l.power):[ot.batOut]);return RA(()=>{let o=ot.pv.power+ot.evuIn.power+ot.batOut.power;o>_e.maxPower&&(_e.maxPower=o)}),(o,l)=>(ae(),Re($S,{"upper-arc":!0,plotdata:s.value,radius:e.radius,"show-labels":e.showLabels,"categories-to-show":r},null,8,["plotdata","radius","show-labels"]))}}),r$=je({__name:"PMUsageArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{},showLabels:{type:Boolean}},setup(t){const e=t,r=[pt.chargepoint,pt.battery,pt.device],n=we(()=>({name:"",type:pt.counter,power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:"",showInGraph:!0})),s=we(()=>[tt.evuOut].concat(i.value,a.value,o.value,tt.house,n.value)),i=we(()=>Object.values(Ge).length>1?Object.values(Ge).sort((l,u)=>u.power-l.power):[tt.charging]),a=we(()=>{let l=0;for(const f of St.values())f.configured&&!f.countAsHouse&&!f.showInGraph&&(l+=f.power);const u={name:"Geräte",type:pt.device,power:l,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-devices)",icon:"",showInGraph:!0};let c=[...St.values()].filter(f=>f.configured);return c.length>1?[u].concat(c.filter(f=>!f.countAsHouse&&f.showInGraph).sort((f,d)=>d.power-f.power)):[tt.devices]}),o=we(()=>kt.value.size>1?[...kt.value.values()].filter(l=>l.power>0).sort((l,u)=>u.power-l.power):[tt.batIn]);return(l,u)=>(ae(),Re($S,{"upper-arc":!1,plotdata:s.value,radius:e.radius,"show-labels":e.showLabels,"categories-to-show":r},null,8,["plotdata","radius","show-labels"]))}}),Ll=je({__name:"FormatWatt",props:{watt:{}},setup(t){const e=t,r=we(()=>Yr(e.watt,_e.decimalPlaces));return(n,s)=>ke(r.value)}}),n$={key:0,id:"pmLabel"},i$=["x","y","fill","text-anchor"],s$=22,Pn=je({__name:"PMLabel",props:{x:{},y:{},data:{},props:{},anchor:{},labeltext:{},labelicon:{},labelcolor:{}},setup(t){const e=t,r=we(()=>e.labeltext?e.labeltext:e.props?e.props.icon+" ":e.labelicon?e.labelicon+" ":""),n=we(()=>e.labelcolor?e.labelcolor:e.props?e.props.color:""),s=we(()=>!e.data||e.data.power>0),i=we(()=>e.labeltext?"":"fas");return(a,o)=>s.value?(ae(),Ee("g",n$,[z("text",{x:a.x,y:a.y,fill:n.value,"text-anchor":a.anchor,"font-size":s$,class:"pmLabel"},[z("tspan",{class:rt(i.value)},ke(r.value),3),z("tspan",null,[a.data!==void 0?(ae(),Re(Ll,{key:0,watt:a.data.power},null,8,["watt"])):Me("",!0)])],8,i$)])):Me("",!0)}}),o$={class:"wb-widget p-0 m-0 shadow"},a$={class:"d-flex justify-content-between"},l$={class:"m-4 me-0 mb-0"},u$={class:"p-4 pb-0 ps-0 m-0",style:{"text-align":"right"}},c$={class:"px-4 pt-4 pb-2 wb-subwidget"},f$={class:"row"},d$={class:"col m-0 p-0"},h$={class:"container-fluid m-0 p-0"},p$={key:0},g$={class:"px-4 py-2 wb-subwidget"},m$={class:"row"},b$={class:"col"},y$={class:"container-fluid m-0 p-0"},Rl=je({__name:"WBWidget",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(t){const e=t,r=we(()=>e.fullWidth?"col-12":e.variableWidth&&_e.preferWideBoxes?"col-lg-6":"col-lg-4");return(n,s)=>(ae(),Ee("div",{class:rt(["p-2 m-0 d-flex",r.value])},[z("div",o$,[z("div",a$,[z("h3",l$,[Gt(n.$slots,"title",{},()=>[s[0]||(s[0]=z("div",{class:"p-0"},"(title goes here)",-1))]),Gt(n.$slots,"subtitle")]),z("div",u$,[Gt(n.$slots,"buttons")])]),z("div",c$,[z("div",f$,[z("div",d$,[z("div",h$,[Gt(n.$slots,"default")])])])]),n.$slots.footer!=null?(ae(),Ee("div",p$,[s[1]||(s[1]=z("hr",null,null,-1)),z("div",g$,[z("div",m$,[z("div",b$,[z("div",y$,[Gt(n.$slots,"footer")])])])])])):Me("",!0)])],2))}});class w${constructor(){ve(this,"active",!1);ve(this,"etPriceList",new Map);ve(this,"etProvider","");ve(this,"etMaxPrice",0)}get etCurrentPriceString(){const[e]=Pt.etPriceList.values();return(Math.round(e*10)/10).toFixed(1)+" ct"}}const Pt=Dt(new w$),v$={id:"powermeter",class:"p-0 m-0"},_$=["viewBox"],E$=["transform"],S$=["x"],x$=["y"],Ts=500,ti=20,xv=20,T$=je({__name:"PowerMeter",setup(t){const e=Ts,r=Math.PI/40,n=[[4],[4,6],[1,4,6],[0,2,4,6],[0,2,3,5,6]],s=[{x:-85,y:e/2*1/5},{x:0,y:e/2*1/5},{x:85,y:e/2*1/5},{x:-85,y:e/2*2/5},{x:0,y:e/2*2/5},{x:85,y:e/2*2/5},{x:0,y:e/2*3/5}],i=we(()=>Ts/2-ti),a=we(()=>{let v="",w=Object.values(ot).filter(_=>_.power>0);return w.length==1&&w[0].name=="PV"?v="Aktueller Verbrauch: ":v="Bezug/Verbrauch: ",v+Yr(tt.house.power+tt.charging.power+tt.devices.power+tt.batIn.power,_e.decimalPlaces)}),o=we(()=>{let v=ot.pv.power+ot.evuIn.power+ot.batOut.power;return _e.maxPower>v?Yr(_e.maxPower,_e.decimalPlaces):Yr(v,_e.decimalPlaces)}),l=we(()=>Object.values(Ge)),u=we(()=>{let v=0;return _e.showRelativeArcs&&(v=_e.maxPower-(ot.pv.power+ot.evuIn.power+ot.batOut.power)),v<0?0:v}),c=we(()=>[tt.evuOut,tt.charging,tt.devices,tt.batIn,tt.house].filter(v=>v.power>0)),f=we(()=>n[c.value.length-1]);function d(v){return s[f.value[v]]}function p(v){return v.length>12?v.slice(0,11)+".":v}const g=we(()=>{const[v]=Pt.etPriceList.values();return Math.round(v*10)/10});function b(){_e.showPmLabels=!_e.showPmLabels}return(v,w)=>(ae(),Re(Rl,{"full-width":!0},{title:Ie(()=>w[0]||(w[0]=[st(" Aktuelle Leistung ")])),default:Ie(()=>[z("figure",v$,[(ae(),Ee("svg",{viewBox:"0 0 "+Ts+" "+se(e)},[z("g",{transform:"translate("+Ts/2+","+se(e)/2+")"},[xe(t$,{radius:i.value,"corner-radius":xv,"circle-gap-size":r,"empty-power":u.value,"show-labels":se(_e).showPmLabels},null,8,["radius","empty-power","show-labels"]),xe(r$,{radius:i.value,"corner-radius":xv,"circle-gap-size":r,"empty-power":u.value,"show-labels":se(_e).showPmLabels},null,8,["radius","empty-power","show-labels"]),xe(Pn,{x:0,y:-se(e)/10*2,data:se(ot).pv,props:se(Vt).pv,anchor:"middle",config:se(_e)},null,8,["y","data","props","config"]),xe(Pn,{x:0,y:-se(e)/10*3,data:se(ot).evuIn,props:se(Vt).evuIn,anchor:"middle",config:se(_e)},null,8,["y","data","props","config"]),xe(Pn,{x:0,y:-se(e)/10,data:se(ot).batOut,props:se(Vt).batOut,anchor:"middle",config:se(_e)},null,8,["y","data","props","config"]),se(Pt).active?(ae(),Re(Pn,{key:0,x:0,y:-se(e)/10,data:se(ot).batOut,props:se(Vt).batOut,anchor:"middle",config:se(_e)},null,8,["y","data","props","config"])):Me("",!0),(ae(!0),Ee(Ye,null,ft(c.value,(_,y)=>(ae(),Re(Pn,{key:y,x:d(y).x,y:d(y).y,data:_,labelicon:_.icon,labelcolor:_.color,anchor:"middle",config:se(_e)},null,8,["x","y","data","labelicon","labelcolor","config"]))),128)),se(rr)[0]!=null&&se(dt)[se(rr)[0]]!=null?(ae(),Re(Pn,{key:1,x:-500/2-ti/4+10,y:-se(e)/2+ti+5,labeltext:p(se(dt)[se(rr)[0]].name)+": "+Math.round(se(dt)[se(rr)[0]].soc)+"%",labelcolor:l.value[0]?l.value[0].color:"var(--color-charging)",anchor:"start",config:se(_e)},null,8,["x","y","labeltext","labelcolor","config"])):Me("",!0),se(rr)[1]!=null&&se(dt)[se(rr)[1]]!=null?(ae(),Re(Pn,{key:2,x:Ts/2+ti/4-10,y:-se(e)/2+ti+5,labeltext:p(se(dt)[se(rr)[1]].name)+": "+Math.round(se(dt)[se(rr)[1]].soc)+"%",labelcolor:l.value[1]?l.value[1].color:"var(--color-charging)",anchor:"end",config:se(_e)},null,8,["x","y","labeltext","labelcolor","config"])):Me("",!0),se(Yt).batterySoc>0?(ae(),Re(Pn,{key:3,x:-500/2-ti/4+10,y:se(e)/2-ti+15,labeltext:"Speicher: "+se(Yt).batterySoc+"%",labelcolor:se(tt).batIn.color,anchor:"start",config:se(_e)},null,8,["x","y","labeltext","labelcolor","config"])):Me("",!0),se(Pt).active?(ae(),Re(Pn,{key:4,x:Ts/2+ti/4-10,y:se(e)/2-ti+15,value:g.value,labeltext:se(Pt).etCurrentPriceString,labelcolor:"var(--color-charging)",anchor:"end",config:se(_e)},null,8,["x","y","value","labeltext","config"])):Me("",!0),xe(Pn,{x:0,y:0,labeltext:a.value,labelcolor:"var(--color-fg)",anchor:"middle",config:se(_e)},null,8,["labeltext","config"]),se(_e).showRelativeArcs?(ae(),Ee("text",{key:5,x:Ts/2-44,y:"2","text-anchor":"middle",fill:"var(--color-axis)","font-size":"12"}," Peak: "+ke(o.value),9,S$)):Me("",!0),z("text",{x:0,y:se(e)/2*3.8/5,"text-anchor":"middle",fill:"var(--color-menu)","font-size":"28",class:"fas",type:"button",onClick:b},ke(""),8,x$)],8,E$)],8,_$))])]),_:1}))}}),A$=["origin","origin2","transform"],C$=je({__name:"PgSourceGraph",props:{width:{},height:{},margin:{}},setup(t){const e=t,r={house:"var(--color-house)",batIn:"var(--color-battery)",inverter:"var(--color-pv)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",pv:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)"};var n,s;const i=_e.showAnimations?_e.animationDuration:0,a=_e.showAnimations?_e.animationDelay:0,o=we(()=>{const x=Ct("g#pgSourceGraph");if(Ae.data.length>0){Ae.graphMode=="month"||Ae.graphMode=="year"?_(x,Xi.value):w(x,En.value),x.selectAll(".axis").remove();const T=x.append("g").attr("class","axis");T.call(g.value),T.selectAll(".tick").attr("font-size",12),T.selectAll(".tick line").attr("stroke",v.value).attr("stroke-width",b.value),T.select(".domain").attr("stroke","var(--color-bg)")}return"pgSourceGraph.vue"}),l=we(()=>E1().value((x,T)=>x[T]??0).keys(f.value)),u=we(()=>l.value(Ae.data)),c=we(()=>Xn().range([e.height-10,0]).domain(Ae.graphMode=="year"?[0,Math.ceil(d.value[1]*10)/10]:[0,Math.ceil(d.value[1])])),f=we(()=>{let x=[];const T=["batOut","evuIn"];if(_e.showInverters){const A=/pv\d+/;Ae.data.length>0&&(x=Object.keys(Ae.data[0]).reduce((C,L)=>(L.match(A)&&C.push(L),C),[]))}switch(Ae.graphMode){case"live":return _e.showInverters?["pv","batOut","evuIn"]:["selfUsage","evuOut","batOut","evuIn"];case"today":case"day":return x.forEach(A=>{var C;r[A]=((C=ar.value.get(+A.slice(2)))==null?void 0:C.color)??"var(--color-pv)"}),_e.showInverters?[...x,...T]:["selfUsage","evuOut","batOut","evuIn"];default:return["evuIn","batOut","selfUsage","evuOut"]}}),d=we(()=>{let x=Tn(Ae.data,T=>Math.max(T.pv+T.evuIn+T.batOut,T.selfUsage+T.evuOut));return x[0]!=null&&x[1]!=null?(Ae.graphMode=="year"&&(x[0]=x[0]/1e3,x[1]=x[1]/1e3),x):[0,0]}),p=we(()=>Ae.graphMode=="month"||Ae.graphMode=="year"?-e.width-e.margin.right-22:-e.width),g=we(()=>Al(c.value).tickSizeInner(p.value).ticks(4).tickFormat(x=>(x==0?"":Math.round(x*10)/10).toLocaleString(void 0))),b=we(()=>_e.showGrid?"0.5":"1"),v=we(()=>_e.showGrid?"var(--color-grid)":"var(--color-bg)");function w(x,T){const A=Do().x((L,j)=>T(Ae.data[j].date)).y(c.value(0)).curve(Uo),C=Do().x((L,j)=>T(Ae.data[j].date)).y0(L=>c.value(Ae.graphMode=="year"?L[0]/1e3:L[0])).y1(L=>c.value(Ae.graphMode=="year"?L[1]/1e3:L[1])).curve(Uo);yl?(x.selectAll("*").remove(),n=x.append("svg").attr("x",0).attr("width",e.width).selectAll(".sourceareas").data(u.value).enter().append("path").attr("fill",(j,R)=>r[f.value[R]]).attr("d",j=>A(j)),n.transition().duration(i).delay(a).ease(el).attr("d",j=>C(j)),yv()):n.data(u.value).transition().duration(0).ease(el).attr("d",L=>C(L))}function _(x,T){Ae.data.length>0&&(yl?(x.selectAll("*").remove(),s=x.selectAll(".sourcebar").data(u.value).enter().append("g").attr("fill",(A,C)=>r[f.value[C]]).selectAll("rect").data(A=>A).enter().append("rect").attr("x",(A,C)=>T(Ae.data[C].date)??0).attr("y",()=>c.value(0)).attr("height",0).attr("width",T.bandwidth()),s.transition().duration(i).delay(a).ease(el).attr("height",A=>Ae.graphMode=="year"?c.value(A[0]/1e3)-c.value(A[1]/1e3):c.value(A[0])-c.value(A[1])).attr("y",A=>Ae.graphMode=="year"?c.value(A[1]/1e3):c.value(A[1])),yv()):(x.selectAll("*").remove(),s=x.selectAll(".sourcebar").data(u.value).enter().append("g").attr("fill",(A,C)=>r[f.value[C]]).selectAll("rect").data(A=>A).enter().append("rect").attr("x",(A,C)=>T(Ae.data[C].date)??0).attr("y",A=>Ae.graphMode=="year"?c.value(A[1]/1e3):c.value(A[1])).attr("width",T.bandwidth()).attr("height",A=>Ae.graphMode=="year"?c.value(A[0]/1e3)-c.value(A[1]/1e3):c.value(A[0])-c.value(A[1]))))}const y=we(()=>{const x=Ct("g#pgSourceGraph");if(Ae.graphMode!="month"&&Ae.graphMode!="year"&&Ae.data.length>0){En.value.range(Zi.value);const T=Do().x((A,C)=>En.value(Ae.data[C].date)).y0(A=>c.value(A[0])).y1(A=>c.value(A[1])).curve(Uo);x.selectAll("path").attr("d",A=>A?T(A):""),x.selectAll("g#sourceToolTips").select("rect").attr("x",A=>En.value(A.date)).attr("width",e.width/Ae.data.length)}return"zoomed"});return(x,T)=>(ae(),Ee("g",{id:"pgSourceGraph",origin:o.value,origin2:y.value,transform:"translate("+x.margin.left+","+x.margin.top+")"},null,8,A$))}}),I$=["origin","origin2","transform"],M$=je({__name:"PgUsageGraph",props:{width:{},height:{},margin:{},stackOrder:{}},setup(t){const e=t,r=we(()=>_e.showInverters?[["house","charging","devices","batIn","evuOut"],["charging","devices","batIn","house","evuOut"],["devices","batIn","charging","house","evuOut"],["batIn","charging","house","devices","evuOut"]]:[["house","charging","devices","batIn"],["charging","devices","batIn","house"],["devices","batIn","charging","house"],["batIn","charging","house","devices"]]),n={house:"var(--color-house)",charging:"var(--color-charging)",batIn:"var(--color-battery)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)",cp0:"var(--color-cp0)",cp1:"var(--color-cp1)",cp2:"var(--color-cp2)",cp3:"var(--color-cp3)",sh1:"var(--color-sh1)",sh2:"var(--color-sh2)",sh3:"var(--color-sh3)",sh4:"var(--color-sh4)",devices:"var(--color-devices)"};var s,i;const a=_e.showAnimations?_e.animationDuration:0,o=_e.showAnimations?_e.animationDelay:0,l=we(()=>{const y=Ct("g#pgUsageGraph");Ae.graphMode=="month"||Ae.graphMode=="year"?w(y):v(y),y.selectAll(".axis").remove();const x=y.append("g").attr("class","axis");return x.call(b.value),x.selectAll(".tick").attr("font-size",12).attr("color","var(--color-axis)"),_e.showGrid?x.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):x.selectAll(".tick line").attr("stroke","var(--color-bg)"),x.select(".domain").attr("stroke","var(--color-bg)"),"pgUsageGraph.vue"}),u=we(()=>E1().value((y,x)=>y[x]??0).keys(d.value)),c=we(()=>u.value(Ae.data)),f=we(()=>Xn().range([e.height+10,2*e.height]).domain(Ae.graphMode=="year"?[0,Math.ceil(p.value[1]*10)/10]:[0,Math.ceil(p.value[1])])),d=we(()=>{if(Ae.graphMode!="today"&&Ae.graphMode!="day"&&Ae.graphMode!="live")return r.value[e.stackOrder];{const y=r.value[e.stackOrder].slice(),x=y.indexOf("charging");y.splice(x,1);const T=/cp\d+/;let A=[];return Ae.data.length>0&&(A=Object.keys(Ae.data[0]).reduce((C,L)=>(L.match(T)&&C.push(L),C),[])),A.forEach((C,L)=>{var j;y.splice(x+L,0,C),n[C]=((j=Ge[+C.slice(2)])==null?void 0:j.color)??"black"}),y}}),p=we(()=>{let y=Tn(Ae.data,x=>x.house+x.charging+x.batIn+x.devices+x.evuOut);return y[0]!=null&&y[1]!=null?(Ae.graphMode=="year"&&(y[0]=y[0]/1e3,y[1]=y[1]/1e3),y):[0,0]}),g=we(()=>Ae.graphMode=="month"||Ae.graphMode=="year"?-e.width-e.margin.right-22:-e.width),b=we(()=>Al(f.value).tickSizeInner(g.value).ticks(4).tickFormat(y=>(y==0?"":Math.round(y*10)/10).toLocaleString(void 0)));function v(y){const x=Do().x((A,C)=>En.value(Ae.data[C].date)).y(f.value(0)).curve(Uo),T=Do().x((A,C)=>En.value(Ae.data[C].date)).y0(A=>f.value(A[0])).y1(A=>f.value(A[1])).curve(Uo);_e.showAnimations?Ko?(y.selectAll("*").remove(),s=y.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",C=>x(C)).attr("fill",(C,L)=>n[d.value[L]]),s.transition().duration(300).delay(100).ease(el).attr("d",C=>T(C)),vv()):(y.selectAll("*").remove(),y.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",C=>T(C)).attr("fill",(C,L)=>n[d.value[L]])):(y.selectAll("*").remove(),y.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(c.value).enter().append("path").attr("d",C=>T(C)).attr("fill",(C,L)=>n[d.value[L]]))}function w(y){Ko?(y.selectAll("*").remove(),i=y.selectAll(".usagebar").data(c.value).enter().append("g").attr("fill",(x,T)=>n[r.value[e.stackOrder][T]]).selectAll("rect").data(x=>x).enter().append("rect").attr("x",(x,T)=>Xi.value(Ae.data[T].date)??0).attr("y",()=>f.value(0)).attr("height",0).attr("width",Xi.value.bandwidth()),i.transition().duration(a).delay(o).ease(el).attr("y",x=>Ae.graphMode=="year"?f.value(x[0]/1e3):f.value(x[0])).attr("height",x=>Ae.graphMode=="year"?f.value(x[1]/1e3)-f.value(x[0]/1e3):f.value(x[1])-f.value(x[0])),vv()):(y.selectAll("*").remove(),i=y.selectAll(".usagebar").data(c.value).enter().append("g").attr("fill",(x,T)=>n[r.value[e.stackOrder][T]]).selectAll("rect").data(x=>x).enter().append("rect").attr("x",(x,T)=>Xi.value(Ae.data[T].date)??0).attr("y",x=>Ae.graphMode=="year"?f.value(x[0]/1e3):f.value(x[0])).attr("height",x=>Ae.graphMode=="year"?f.value(x[1]/1e3)-f.value(x[0]/1e3):f.value(x[1])-f.value(x[0])).attr("width",Xi.value.bandwidth()))}const _=we(()=>{const y=Ct("g#pgUsageGraph");if(Ae.graphMode!="month"&&Ae.graphMode!="year"){En.value.range(Zi.value);const x=Do().x((T,A)=>En.value(Ae.data[A].date)).y0(T=>f.value(T[0])).y1(T=>f.value(T[1])).curve(Uo);y.selectAll("path").attr("d",T=>T?x(T):"")}return"zoomed"});return(y,x)=>(ae(),Ee("g",{id:"pgUsageGraph",origin:l.value,origin2:_.value,transform:"translate("+y.margin.left+","+y.margin.top+")"},null,8,I$))}}),k$=["width"],P$=["transform"],O$=["width"],L$=["transform"],R$=["origin","origin2","transform"],B$=["origin","transform"],$$={key:0},N$=["width","height"],D$={key:1},U$=["y","width","height"],Nd=12,F$=je({__name:"PgXAxis",props:{width:{},height:{},margin:{}},setup(t){const e=t,r=we(()=>Za(En.value).ticks(6).tickSizeInner(a.value).tickFormat(rs("%H:%M"))),n=we(()=>XC(En.value).ticks(6).tickSizeInner(a.value+3).tickFormat(rs(""))),s=we(()=>Za(Xi.value).ticks(4).tickSizeInner(a.value).tickFormat(c=>c.toString())),i=we(()=>Za(Xi.value).ticks(4).tickSizeInner(a.value).tickFormat(()=>"")),a=we(()=>Ae.graphMode!=="month"&&Ae.graphMode!=="year"?_e.showGrid?-(e.height/2-7):-10:0),o=we(()=>{let c=Ct("g#PGXAxis"),f=Ct("g#PgUnit");return c.selectAll("*").remove(),f.selectAll("*").remove(),Ae.graphMode=="month"||Ae.graphMode=="year"?c.call(s.value):c.call(r.value),c.selectAll(".tick > text").attr("fill",(d,p)=>p>=0||Ae.graphMode=="month"||Ae.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",Nd),_e.showGrid?c.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):c.selectAll(".tick line").attr("stroke","var(--color-bg)"),c.select(".domain").attr("stroke","var(--color-bg)"),f.append("text").attr("x",0).attr("y",12).attr("fill","var(--color-axis)").attr("font-size",Nd).text(Ae.graphMode=="year"?"MWh":Ae.graphMode=="month"?"kWh":"kW").attr("text-anchor","start"),"PGXAxis.vue"}),l=we(()=>{let c=Ct("g#PGXAxis2");return c.selectAll("*").remove(),Ae.graphMode=="month"||Ae.graphMode=="year"?c.call(i.value):c.call(n.value),c.selectAll(".tick > text").attr("fill",(f,d)=>d>=0||Ae.graphMode=="month"||Ae.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",Nd),_e.showGrid?(c.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"),c.select(".domain").attr("stroke","var(--color-bg)")):c.selectAll(".tick line").attr("stroke","var(--color-bg)"),c.select(".domain").attr("stroke","var(--color-bg)"),"PGXAxis2.vue"}),u=we(()=>{if(Ae.graphMode!="month"&&Ae.graphMode!="year"){const c=Ct("g#PGXAxis"),f=Ct("g#PGXAxis2");Ae.graphMode=="month"||Ae.graphMode=="year"?(Xi.value.range(Zi.value),c.call(s.value),f.call(i.value)):(En.value.range(Zi.value),c.call(r.value),f.call(n.value))}return"zoomed"});return(c,f)=>(ae(),Ee(Ye,null,[(ae(),Ee("svg",{x:"0",width:e.width},[z("g",{id:"PgUnit",transform:"translate(0,"+(c.height/2+9)+")"},null,8,P$)],8,k$)),(ae(),Ee("svg",{x:0,width:e.width+10},[z("g",{transform:"translate("+c.margin.left+","+c.margin.top+")"},[z("g",{id:"PGXAxis",class:"axis",origin:o.value,origin2:u.value,transform:"translate(0,"+(c.height/2-6)+")"},null,8,R$),z("g",{id:"PGXAxis2",class:"axis",origin:l.value,transform:"translate(0,"+(c.height/2+-6)+")"},null,8,B$),se(_e).showGrid?(ae(),Ee("g",$$,[z("rect",{x:"0",y:"0",width:c.width,height:c.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,N$)])):Me("",!0),se(_e).showGrid?(ae(),Ee("g",D$,[z("rect",{x:"0",y:c.height/2+10,width:c.width,height:c.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,U$)])):Me("",!0)],8,L$)],8,O$))],64))}}),V$=["width"],j$=["id",".origin","d"],W$=["id","d","stroke"],z$=["x","y","text-anchor"],Dd=je({__name:"PgSoc",props:{width:{},height:{},margin:{},order:{}},setup(t){const e=t,r=we(()=>{let d=Tn(Ae.data,p=>p.date);return d[0]&&d[1]?Xs().domain(d).range([0,e.width]):Xs().range([0,0])}),n=we(()=>Xn().range([e.height-10,0]).domain([0,100])),s=we(()=>{let p=Nn().x(g=>r.value(g.date)).y(g=>n.value(e.order==2?g.batSoc:e.order==0?g["soc"+rr.value[0]]:g["soc"+rr.value[1]])??n.value(0))(Ae.data);return p||""}),i=we(()=>e.order),a=we(()=>{switch(e.order){case 2:return"Speicher";case 1:return dt[rr.value[1]]!=null?dt[rr.value[1]].name:"???";default:return dt[rr.value[0]]!=null?dt[rr.value[0]].name:"???"}}),o=we(()=>{switch(e.order){case 0:return"var(--color-cp1)";case 1:return"var(--color-cp2)";case 2:return"var(--color-battery)";default:return"red"}}),l=we(()=>{switch(e.order){case 0:return 3;case 1:return e.width-3;case 2:return e.width/2;default:return 0}}),u=we(()=>{if(Ae.data.length>0){let d;switch(e.order){case 0:return d=0,n.value(Ae.data[d]["soc"+rr.value[0]]+2);case 1:return d=Ae.data.length-1,Math.max(12,n.value(Ae.data[d]["soc"+rr.value[1]]+2));case 2:return d=Math.round(Ae.data.length/2),n.value(Ae.data[d].batSoc+2);default:return 0}}else return 0}),c=we(()=>{switch(e.order){case 0:return"start";case 1:return"end";case 2:return"middle";default:return"middle"}}),f=we(()=>{if(Ae.graphMode!="month"&&Ae.graphMode!="year"){const d=Ct("path#soc-"+i.value),p=Ct("path#socdashes-"+i.value);r.value.range(Zi.value);const g=Nn().x(b=>r.value(b.date)).y(b=>n.value(e.order==2?b.batSoc:e.order==1?b["soc"+rr.value[0]]:b["soc"+rr.value[1]])??n.value(0));d.attr("d",g(Ae.data)),p.attr("d",g(Ae.data))}return"zoomed"});return(d,p)=>(ae(),Ee("svg",{x:"0",width:e.width},[z("g",null,[z("path",{id:"soc-"+i.value,".origin":f.value,class:"soc-baseline",d:s.value,stroke:"var(--color-bg)","stroke-width":"1",fill:"none"},null,40,j$),z("path",{id:"socdashes-"+i.value,class:"soc-dashes",d:s.value,stroke:o.value,"stroke-width":"1",style:{strokeDasharray:"3,3"},fill:"none"},null,8,W$),z("text",{class:"cpname",x:l.value,y:u.value,style:ht({fill:o.value,fontSize:10}),"text-anchor":c.value},ke(a.value),13,z$)])],8,V$))}}),H$=["transform"],q$=je({__name:"PgSocAxis",props:{width:{},height:{},margin:{}},setup(t){const e=t,r=we(()=>Xn().range([e.height-10,0]).domain([0,100])),n=we(()=>QC(r.value).ticks(5).tickFormat(i=>i.toString()+"%"));function s(){let i=Ct("g#PGSocAxis");i.call(n.value),i.selectAll(".tick").attr("font-size",12),i.selectAll(".tick line").attr("stroke","var(--color-bg)"),i.select(".domain").attr("stroke","var(--color-bg)")}return dn(()=>{s()}),(i,a)=>(ae(),Ee("g",{id:"PGSocAxis",class:"axis",transform:"translate("+(i.width-20)+",0)"},null,8,H$))}}),G$={class:"d-flex align-self-top justify-content-center align-items-center"},Y$={class:"input-group input-group-xs"},K$={key:0,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},X$={class:"dropdown-menu"},Q$={class:"table optiontable"},J$=["onClick"],Z$={key:1,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},eN={class:"dropdown-menu"},tN={class:"table optiontable"},rN=["onClick"],nN={key:2,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},iN={class:"dropdown-menu"},sN={class:"table optiontable"},oN=["onClick"],aN=je({__name:"DateInput",props:{modelValue:{type:Date,required:!0},mode:{type:String,default:"day"}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=new Date().getFullYear();let s=Array.from({length:10},(p,g)=>n-g);const i=ct(!0),a=e,o=[[0,1,2,3],[4,5,6,7],[8,9,10,11]],l=ct(r.modelValue.getDate()),u=ct(r.modelValue.getMonth()),c=ct(r.modelValue.getFullYear()),f=we(()=>{const g=new Date(c.value,u.value,1).getDay();let b=0;switch(u.value){case 1:case 3:case 5:case 7:case 8:case 10:case 12:b=31;break;case 4:case 6:case 9:case 11:b=30;break;case 2:Math.trunc(c.value/4)*4==c.value?b=29:b=28}let v=[],w=[0,0,0,0,0,0,0],_=g;for(let y=0;y(ae(),Ee("span",G$,[z("div",Y$,[r.mode=="day"||r.mode=="today"?(ae(),Ee("button",K$,ke(l.value),1)):Me("",!0),z("div",X$,[z("table",Q$,[(ae(!0),Ee(Ye,null,ft(f.value,(b,v)=>(ae(),Ee("tr",{key:v,class:""},[(ae(!0),Ee(Ye,null,ft(b,(w,_)=>(ae(),Ee("td",{key:_},[w!=0?(ae(),Ee("span",{key:0,type:"button",class:"btn optionbutton",onClick:y=>l.value=w},ke(w),9,J$)):Me("",!0)]))),128))]))),128))])]),r.mode!="year"&&r.mode!="live"?(ae(),Ee("button",Z$,ke(u.value+1),1)):Me("",!0),z("div",eN,[z("table",tN,[(ae(),Ee(Ye,null,ft(o,(b,v)=>z("tr",{key:v,class:""},[(ae(!0),Ee(Ye,null,ft(b,(w,_)=>(ae(),Ee("td",{key:_,class:"p-0 m-0"},[z("span",{type:"button",class:"btn btn-sm optionbutton",onClick:y=>u.value=w},ke(w+1),9,rN)]))),128))])),64))])]),r.mode!="live"?(ae(),Ee("button",nN,ke(c.value),1)):Me("",!0),z("div",iN,[z("table",sN,[(ae(!0),Ee(Ye,null,ft(se(s),(b,v)=>(ae(),Ee("tr",{key:v,class:""},[z("td",null,[z("span",{type:"button",class:"btn optionbutton",onClick:w=>c.value=b},ke(b),9,oN)])]))),128))])]),r.mode!="live"?(ae(),Ee("button",{key:3,class:"button-outline-secondary",type:"button",onClick:d},g[0]||(g[0]=[z("span",{class:"fa-solid fa-circle-check"},null,-1)]))):Me("",!0)])]))}}),lN=Je(aN,[["__scopeId","data-v-98690e5d"]]),uN={class:"btn-group m-0",role:"group","aria-label":"radiobar"},cN=["id","value"],fN=je({__name:"RadioBarInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,s=we({get(){return r.modelValue},set(o){n("update:modelValue",o)}});function i(o){let l=r.options[o].color?r.options[o].color:"var(--color-fg)";return r.options[o].active?{color:"var(--color-bg)",background:l}:{color:l}}function a(o){let l=o.target;for(;l&&!l.value&&l.parentElement;)l=l.parentElement;l.value&&(s.value=l.value)}return(o,l)=>(ae(),Ee("div",null,[z("div",uN,[(ae(!0),Ee(Ye,null,ft(o.options,(u,c)=>(ae(),Ee("button",{id:"radio-"+u.value,key:c,class:rt(["btn btn-outline-secondary btn-sm radiobutton mx-0 mb-0 px-2",u.value==s.value?"active":""]),value:u.value,style:ht(i(c)),onClick:a},[z("span",{style:ht(i(c))},[u.icon?(ae(),Ee("i",{key:0,class:rt(["fa-solid",u.icon])},null,2)):Me("",!0),st(" "+ke(u.text),1)],4)],14,cN))),128))])]))}}),NS=Je(fN,[["__scopeId","data-v-82ab6829"]]),dN=je({__name:"PgSelector",props:{widgetid:{},showLeftButton:{type:Boolean},showRightButton:{type:Boolean},ignoreLive:{type:Boolean}},emits:["shiftLeft","shiftRight","shiftUp","shiftDown"],setup(t){const e=t,r=ct(0),n=we(()=>{if(Ae.waitForData)return"Lädt";switch(Ae.graphMode){case"live":return e.ignoreLive?"heute":`${Jt.duration} min`;case"today":return"heute";case"day":return Ht.date.getDate()+"."+(Ht.date.getMonth()+1)+".";case"month":return zB(Bn.month-1,Bn.year);case"year":return Ki.year.toString();default:return"???"}}),s=["live","today","day","month","year"],i=["Live","Heute","Tag","Monat","Jahr"],a=we({get(){return Ae.graphMode},set(_){switch(_){case"day":f();break;case"today":d();break;case"live":c();break;case"month":p();break;case"year":g()}}}),o=we(()=>{switch(Ae.graphMode){case"live":case"today":return Ht.getDate();case"month":return Bn.getDate();default:return Ht.getDate()}});function l(_){Ev(_)}function u(){r.value+=1,r.value>2&&(r.value=0)}function c(){Ae.graphMode!="live"&&(Ae.graphMode="live",nr())}function f(){Ae.graphMode!="day"&&Ae.graphMode!="today"&&(Ae.graphMode="day",nr())}function d(){Ae.graphMode!="today"&&(Ae.graphMode="today",Ev(new Date),nr())}function p(){Ae.graphMode!="month"&&(Ae.graphMode="month",nr())}function g(){Ae.graphMode!="year"&&(Ae.graphMode="year",nr())}const b=we(()=>r.value>0?{border:"1px solid var(--color-frame)"}:""),v=we(()=>r.value==1?"justify-content-between":"justify-content-end"),w=we(()=>r.value==1?"justify-content-between":"justify-content-center");return(_,y)=>(ae(),Ee("div",{class:"d-flex flex-column justify-content-center pgselector rounded",style:ht(b.value)},[r.value==2?(ae(),Re(NS,{key:0,id:"pgm2",modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=x=>a.value=x),class:"m-2",options:s.map((x,T)=>({text:i[T],value:x,color:"var(--color-menu)",active:x==se(Ae).graphMode}))},null,8,["modelValue","options"])):Me("",!0),r.value==1?(ae(),Ee("span",{key:1,type:"button",class:rt(["arrowButton d-flex align-self-center mb-3 mt-3",{disabled:!e.showLeftButton}]),onClick:y[1]||(y[1]=x=>_.$emit("shiftUp"))},y[6]||(y[6]=[z("i",{class:"fa-solid fa-xl fa-chevron-circle-up"},null,-1)]),2)):Me("",!0),z("div",{class:rt(["d-flex align-items-center",w.value])},[r.value==1?(ae(),Ee("span",{key:0,type:"button",class:rt(["p-1",{disabled:!e.showLeftButton}]),onClick:y[2]||(y[2]=x=>_.$emit("shiftLeft"))},y[7]||(y[7]=[z("span",{class:"fa-solid fa-xl fa-chevron-circle-left arrowButton"},null,-1)]),2)):Me("",!0),r.value<2?(ae(),Ee("span",{key:1,type:"button",class:"btn-outline-secondary p-2 px-3 badge rounded-pill datebadge",onClick:u},ke(n.value),1)):Me("",!0),r.value==2?(ae(),Re(lN,{key:2,"model-value":o.value,mode:se(Ae).graphMode,"onUpdate:modelValue":l},null,8,["model-value","mode"])):Me("",!0),r.value==1?(ae(),Ee("span",{key:3,id:"graphRightButton",type:"button",class:rt(["arrowButton fa-solid fa-xl fa-chevron-circle-right p-1",{disabled:!e.showRightButton}]),onClick:y[3]||(y[3]=x=>_.$emit("shiftRight"))},null,2)):Me("",!0)],2),z("div",{class:rt(["d-flex align-items-center",v.value])},[r.value==1?(ae(),Ee("span",{key:0,type:"button",class:"p-1",onClick:u},y[8]||(y[8]=[z("span",{class:"fa-solid fa-xl fa-gear"},null,-1)]))):Me("",!0),r.value==1?(ae(),Ee("span",{key:1,id:"graphLeftButton",type:"button",class:rt(["arrowButton fa-solid fa-xl fa-chevron-circle-down p-1",{disabled:!e.showLeftButton}]),onClick:y[4]||(y[4]=x=>_.$emit("shiftDown"))},null,2)):Me("",!0),r.value>0?(ae(),Ee("span",{key:2,type:"button",class:"p-1",onClick:y[5]||(y[5]=x=>r.value=0)},y[9]||(y[9]=[z("span",{class:"fa-solid fa-xl fa-circle-check"},null,-1)]))):Me("",!0)],2)],4))}}),Vm=Je(dN,[["__scopeId","data-v-d75ec1a4"]]),hN=["x","fill"],pN=["x"],gn=je({__name:"PgToolTipLine",props:{cat:{},name:{},indent:{},power:{},width:{}},setup(t){const e=t;return(r,n)=>(ae(),Ee(Ye,null,[r.power>0?(ae(),Ee("tspan",{key:0,x:r.indent,dy:"1.3em",class:rt(r.name?"":"fas"),fill:se(Vt)[r.cat].color},ke(r.name?r.name:se(Vt)[r.cat].icon)+"   ",11,hN)):Me("",!0),z("tspan",{"text-anchor":"end",x:r.width-r.indent},[e.power>0?(ae(),Re(Ll,{key:0,watt:r.power*1e3},null,8,["watt"])):Me("",!0)],8,pN)],64))}}),gN=["transform"],mN=["width","height"],bN={"text-anchor":"start",x:"5",y:"20","font-size":"16",fill:"var(--color-fg)"},yN=["x"],wN=je({__name:"PgToolTipItem",props:{entry:{},boxwidth:{},xScale:{type:[Function,Object]}},setup(t){const e=t,r=we(()=>Object.values(e.entry).filter(l=>l>0).length),n=we(()=>r.value*16),s=we(()=>Object.entries(e.entry).filter(([l,u])=>l.startsWith("pv")&&l.length>2&&u>0).map(([l,u])=>({power:u,name:li.value.get(l)?o(li.value.get(l)):"Wechselr.",id:l}))),i=we(()=>Object.entries(e.entry).filter(([l,u])=>l.startsWith("cp")&&l.length>2&&u>0).map(([l,u])=>({power:u,name:li.value.get(l)?o(li.value.get(l)):"Ladep.",id:l}))),a=we(()=>Object.entries(e.entry).filter(([l,u])=>l.startsWith("sh")&&l.length>2&&u>0).map(([l,u])=>({power:u,name:li.value.get(l)?o(li.value.get(l)):"Gerät",id:l})));function o(l){return l.length>6?l.slice(0,6)+"...":l}return(l,u)=>(ae(),Ee("g",{class:"ttmessage",transform:"translate("+l.xScale(l.entry.date)+",0)"},[z("rect",{rx:"5",width:l.boxwidth,height:n.value,fill:"var(--color-bg)",opacity:"80%",stroke:"var(--color-menu)"},null,8,mN),z("text",bN,[z("tspan",{"text-anchor":"middle",x:l.boxwidth/2,dy:"0em"},ke(se(rs)("%H:%M")(new Date(l.entry.date))),9,yN),u[0]||(u[0]=z("line",{y:"120",x1:"5",x2:"100",stroke:"var(--color-fg)","stroke-width":"1"},null,-1)),xe(gn,{cat:"evuIn",indent:5,power:l.entry.evuIn,width:l.boxwidth},null,8,["power","width"]),xe(gn,{cat:"batOut",indent:5,power:l.entry.batOut,width:l.boxwidth},null,8,["power","width"]),xe(gn,{cat:"pv",indent:5,power:l.entry.pv,width:l.boxwidth},null,8,["power","width"]),(ae(!0),Ee(Ye,null,ft(s.value,c=>(ae(),Re(gn,{key:c.id,cat:"pv",name:c.name,power:c.power,indent:10,width:l.boxwidth},null,8,["name","power","width"]))),128)),xe(gn,{cat:"house",indent:5,power:l.entry.house,width:l.boxwidth},null,8,["power","width"]),xe(gn,{cat:"charging",indent:5,power:l.entry.charging,width:l.boxwidth},null,8,["power","width"]),(ae(!0),Ee(Ye,null,ft(i.value,c=>(ae(),Re(gn,{key:c.id,cat:"charging",name:c.name,power:c.power,indent:10,width:l.boxwidth},null,8,["name","power","width"]))),128)),xe(gn,{cat:"devices",indent:5,power:l.entry.devices,width:l.boxwidth},null,8,["power","width"]),(ae(!0),Ee(Ye,null,ft(a.value,c=>(ae(),Re(gn,{key:c.id,cat:"devices",name:c.name,power:c.power,indent:10,width:l.boxwidth},null,8,["name","power","width"]))),128)),xe(gn,{cat:"batIn",indent:5,power:l.entry.batIn,width:l.boxwidth},null,8,["power","width"]),xe(gn,{cat:"evuOut",indent:5,power:l.entry.evuOut,width:l.boxwidth},null,8,["power","width"])])],8,gN))}}),vN=["origin","transform"],_N=["x","height","width"],Tv=140,EN=je({__name:"PgToolTips",props:{width:{},height:{},margin:{},data:{}},setup(t){const e=t,r=we(()=>{const i=Tn(e.data,a=>new Date(a.date));return i[0]&&i[1]?Hh().domain(i).range([0,e.width-e.margin.right]):Xs().range([0,0])}),n=we(()=>{const i=Tn(e.data,a=>new Date(a.date));return i[0]&&i[1]?Hh().domain(i).range([0,e.width-e.margin.right-Tv]):Xs().range([0,0])}),s=we(()=>((Ae.graphMode=="day"||Ae.graphMode=="today")&&(r.value.range(Zi.value),Ct("g#pgToolTips").selectAll("g.ttarea").select("rect").attr("x",(i,a)=>e.data.length>a?r.value(e.data[a].date):0).attr("width",e.data.length>0?(Zi.value[1]-Zi.value[0])/e.data.length:0)),"PgToolTips.vue:autozoom"));return(i,a)=>(ae(),Ee("g",{id:"pgToolTips",origin:s.value,transform:"translate("+i.margin.left+","+i.margin.top+")"},[(ae(!0),Ee(Ye,null,ft(i.data,o=>(ae(),Ee("g",{key:o.date,class:"ttarea"},[z("rect",{x:r.value(o.date),y:"0",height:i.height,class:"ttrect",width:se(Ae).data.length>0?i.width/se(Ae).data.length:0,opacity:"1%",fill:"var(--color-charging)"},null,8,_N),xe(wN,{entry:o,boxwidth:Tv,"x-scale":n.value},null,8,["entry","x-scale"])]))),128))],8,vN))}}),SN={class:"d-flex justify-content-end"},xN={id:"powergraphFigure",class:"p-0 m-0"},TN=["viewBox"],AN=["transform"],CN=["x","y"],IN=2,MN=je({__name:"PowerGraph",setup(t){const e=we(()=>{switch(Ae.graphMode){case"year":return"Jahresübersicht";case"month":return"Monatsübersicht";default:return"Leistung / Ladestand"}});function r(){let o=_e.usageStackOrder+1;o>IN&&(o=0),_e.usageStackOrder=o,xB(!0)}function n(o){const l=[[0,it.top],[Tr,tn-it.top]];o.call(I2().scaleExtent([1,8]).translateExtent([[0,0],[Tr,tn]]).extent(l).filter(i).on("zoom",s))}function s(o){PS.value=o.transform}function i(o){return o.preventDefault(),(!o.ctrlKey||o.type==="wheel")&&!o.button}function a(){_e.zoomedWidget=1,_e.zoomGraph=!_e.zoomGraph}return dn(()=>{const o=Ct("svg#powergraph");n(o)}),(o,l)=>(ae(),Re(Rl,{"full-width":!0},{title:Ie(()=>[st(ke(e.value),1)]),buttons:Ie(()=>[z("div",SN,[xe(Vm,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!1,onShiftLeft:se(af),onShiftRight:se(Nm),onShiftUp:se(Dm),onShiftDown:se(Um)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),se(jn)?(ae(),Ee("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:a},l[0]||(l[0]=[z("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):Me("",!0)])]),default:Ie(()=>[xl(z("figure",xN,[(ae(),Ee("svg",{id:"powergraph",class:"powergraphSvg",viewBox:"0 0 "+se(Tr)+" "+se(tn)},[xe(C$,{width:se(Tr)-se(it).left-2*se(it).right,height:(se(tn)-se(it).top-se(it).bottom)/2,margin:se(it)},null,8,["width","height","margin"]),xe(M$,{width:se(Tr)-se(it).left-2*se(it).right,height:(se(tn)-se(it).top-se(it).bottom)/2,margin:se(it),"stack-order":se(_e).usageStackOrder},null,8,["width","height","margin","stack-order"]),xe(F$,{width:se(Tr)-se(it).left-se(it).right,height:se(tn)-se(it).top-se(it).bottom,margin:se(it)},null,8,["width","height","margin"]),z("g",{transform:"translate("+se(it).left+","+se(it).top+")"},[(se(Ae).graphMode=="day"||se(Ae).graphMode=="today"||se(Ae).graphMode=="live")&&Object.values(se(dt)).filter(u=>u.visible).length>0?(ae(),Re(Dd,{key:0,width:se(Tr)-se(it).left-2*se(it).right,height:(se(tn)-se(it).top-se(it).bottom)/2,margin:se(it),order:0},null,8,["width","height","margin"])):Me("",!0),(se(Ae).graphMode=="day"||se(Ae).graphMode=="today"||se(Ae).graphMode=="live")&&Object.values(se(dt)).filter(u=>u.visible).length>1?(ae(),Re(Dd,{key:1,width:se(Tr)-se(it).left-2*se(it).right,height:(se(tn)-se(it).top-se(it).bottom)/2,margin:se(it),order:1},null,8,["width","height","margin"])):Me("",!0),(se(Ae).graphMode=="day"||se(Ae).graphMode=="today"||se(Ae).graphMode=="live")&&se(Yt).isBatteryConfigured?(ae(),Re(Dd,{key:2,width:se(Tr)-se(it).left-2*se(it).right,height:(se(tn)-se(it).top-se(it).bottom)/2,margin:se(it),order:2},null,8,["width","height","margin"])):Me("",!0),se(Ae).graphMode=="day"||se(Ae).graphMode=="today"||se(Ae).graphMode=="live"?(ae(),Re(q$,{key:3,width:se(Tr)-se(it).left-se(it).right,height:(se(tn)-se(it).top-se(it).bottom)/2,margin:se(it)},null,8,["width","height","margin"])):Me("",!0)],8,AN),se(Ae).graphMode=="day"||se(Ae).graphMode=="today"?(ae(),Re(EN,{key:0,width:se(Tr)-se(it).left-se(it).right,height:se(tn)-se(it).top-se(it).bottom,margin:se(it),data:se(Ae).data},null,8,["width","height","margin","data"])):Me("",!0),z("g",{id:"button",type:"button",onClick:r},[z("text",{x:se(Tr)-10,y:se(tn)-10,color:"var(--color-menu)","text-anchor":"end"},l[1]||(l[1]=[z("tspan",{fill:"var(--color-menu)",class:"fas fa-lg"},ke(""),-1)]),8,CN)])],8,TN))],512),[[uC,se(Ae).data.length>0]])]),_:1}))}}),kN=Je(MN,[["__scopeId","data-v-d40bf528"]]),PN=["id"],ON=["x","width","height","fill"],LN=["x","width","height"],RN=["x","y","width","height"],BN=je({__name:"EmBar",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(t){const e=t,r=we(()=>e.height-e.yScale(e.item.energy)-e.margin.top-e.margin.bottom),n=we(()=>{let i=0;return e.item.energyPv>0&&(i=e.height-e.yScale(e.item.energyPv)-e.margin.top-e.margin.bottom),i>r.value&&(i=r.value),i}),s=we(()=>{let i=0;return e.item.energyBat>0&&(i=e.height-e.yScale(e.item.energyBat)-e.margin.top-e.margin.bottom),i>r.value&&(i=r.value),i});return(i,a)=>(ae(),Ee("g",{id:"bar-"+e.item.name,transform:"scale(1,-1) translate (0,-445)"},[z("rect",{class:"bar",x:e.xScale(i.item.name),y:"0",width:e.xScale.bandwidth(),height:r.value,fill:i.item.color},null,8,ON),z("rect",{class:"bar",x:e.xScale(i.item.name)+e.xScale.bandwidth()/6,y:"0",width:e.xScale.bandwidth()*2/3,height:n.value,fill:"var(--color-pv)","fill-opacity":"66%"},null,8,LN),z("rect",{class:"bar",x:e.xScale(i.item.name)+e.xScale.bandwidth()/6,y:n.value,width:e.xScale.bandwidth()*2/3,height:s.value,fill:"var(--color-battery)","fill-opacity":"66%"},null,8,RN)],8,PN))}}),$N={id:"emBargraph"},NN=je({__name:"EMBarGraph",props:{plotdata:{},xScale:{},yScale:{},margin:{},height:{}},setup(t){const e=t;function r(s){if(s.name=="PV"){const i=Ae.graphMode=="live"||Ae.graphMode=="day"?ot:qe.items,o=(Ae.graphMode=="live"||Ae.graphMode=="day"?tt:qe.items).evuOut.energy,l=i.pv.energy;return Math.round((l-o)/l*100)}else if(s.name=="Netz"){const i=Ae.graphMode=="live"||Ae.graphMode=="day"?ot:qe.items,a=Ae.graphMode=="live"||Ae.graphMode=="day"?tt:qe.items,o=a.evuOut.energy,l=i.evuIn.energy,u=i.pv.energy,c=i.batOut.energy,f=a.batIn.energy;return Math.round((u+c-o-f)/(u+c+l-o-f)*100)}else return s.pvPercentage}function n(s){return s.name=="PV"?"Eigen":"Aut"}return(s,i)=>(ae(),Ee("g",$N,[(ae(!0),Ee(Ye,null,ft(e.plotdata,(a,o)=>(ae(),Ee("g",{key:o},[xe(BN,{item:a,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":n(a),autarchy:r(a)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128)),i[0]||(i[0]=z("animateTransform",{"attribute-name":"transform",type:"scale",from:"1 0",to:"1 1",begin:"0s",dur:"2s"},null,-1))]))}}),DN=["origin"],UN=je({__name:"EMYAxis",props:{yScale:{type:[Function,Object]},width:{},fontsize:{}},setup(t){const e=t,r=we(()=>Al(e.yScale).tickFormat(i=>s(i)).ticks(6).tickSizeInner(-e.width)),n=we(()=>{const i=Ct("g#emYAxis");return i.attr("class","axis").call(r.value),i.append("text").attr("y",6).attr("dy","0.71em").attr("text-anchor","end").text("energy"),i.selectAll(".tick").attr("font-size",e.fontsize),_e.showGrid?i.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):i.selectAll(".tick line").attr("stroke","var(--color-bg)"),i.select(".domain").attr("stroke","var(--color-bg)"),"emYAxis.vue"});function s(i){return i>0?Ae.graphMode=="year"?(i/1e6).toString():(i/1e3).toString():""}return(i,a)=>(ae(),Ee("g",{id:"emYAxis",class:"axis",origin:n.value},null,8,DN))}}),FN=["id"],VN=["x","y","font-size"],jN=["x","y","font-size","fill"],WN=["x","y","font-size","fill"],zN=je({__name:"EmLabel",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(t){const e=t,r=we(()=>e.autarchy?e.yScale(e.item.energy)-25:e.yScale(e.item.energy)-10),n=we(()=>{let l=16,u=e.barcount;return u<=5?l=16:u==6?l=14:u>6&&u<=8?l=13:u==9?l=11:u==10?l=10:l=9,l}),s=we(()=>{let l=12,u=e.barcount;return u<=5?l=12:u==6?l=11:u>6&&u<=8||u==9?l=8:u==10?l=7:l=6,l});function i(l,u){return u.length>s.value?u.substring(0,s.value)+".":u}function a(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function o(){return"var(--color-pv)"}return(l,u)=>(ae(),Ee("g",{id:"barlabel-"+e.item.name},[z("text",{x:e.xScale(l.item.name)+e.xScale.bandwidth()/2,y:r.value,"font-size":n.value,"text-anchor":"middle",fill:"var(--color-menu)"},ke(se(Mi)(l.item.energy,se(_e).decimalPlaces,!1)),9,VN),z("text",{x:e.xScale(l.item.name)+e.xScale.bandwidth()/2,y:e.yScale(l.item.energy)-10,"font-size":n.value-2,"text-anchor":"middle",fill:o()},ke(a()),9,jN),z("text",{x:e.xScale(l.item.name)+e.xScale.bandwidth()/2,y:e.height-e.margin.bottom-5,"font-size":n.value,"text-anchor":"middle",fill:l.item.color,class:rt(l.item.icon.length<=2?"fas":"")},ke(i(l.item.name,l.item.icon)),11,WN)],8,FN))}}),HN={id:"emBarLabels"},qN=je({__name:"EMLabels",props:{plotdata:{},xScale:{},yScale:{},height:{},margin:{}},setup(t){const e=t;function r(s){if(s.name=="PV"){const i=Ae.graphMode=="live"||Ae.graphMode=="today"?ot:qe.items,o=(Ae.graphMode=="live"||Ae.graphMode=="today"?tt:qe.items).evuOut.energy,l=i.pv.energy;return Math.round((l-o)/l*100)}else if(s.name=="Netz"){const i=Ae.graphMode=="live"||Ae.graphMode=="today"?ot:qe.items,a=Ae.graphMode=="live"||Ae.graphMode=="today"?tt:qe.items,o=a.evuOut.energy,l=i.evuIn.energy,u=i.pv.energy,c=i.batOut.energy,f=a.batIn.energy;return u+c-o-f>0?Math.round((u+c-o-f)/(u+c+l-o-f)*100):0}else return s.pvPercentage}function n(s){return s.name=="PV"?"Eigen":"Aut"}return(s,i)=>(ae(),Ee("g",HN,[(ae(!0),Ee(Ye,null,ft(e.plotdata,(a,o)=>(ae(),Ee("g",{key:o},[xe(zN,{item:a,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":n(a),autarchy:r(a)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128))]))}}),GN={class:"d-flex justify-content-end"},YN={id:"energymeter",class:"p-0 m-0"},KN={viewBox:"0 0 500 500"},XN=["transform"],QN=["x"],JN={key:0},Av=500,Ud=500,Cv=12,ZN="Energie",eD=je({__name:"EnergyMeter",setup(t){const e={top:25,bottom:30,left:25,right:0},r=we(()=>{let l=Object.values(ot),u=i.value;const c=qe.items;let f=[];switch(_e.debug&&a(),Xo.value==!0&&(Xo.value=!1),Ae.graphMode){default:case"live":case"today":f=l.concat(u);break;case"day":case"month":case"year":Object.values(c).length==0?es.value=!0:(es.value=!1,f=[c.evuIn,c.pv,c.evuOut,c.batOut,c.charging],Object.values(Ge).length>1&&Object.keys(Ge).forEach(d=>{c["cp"+d]&&f.push(c["cp"+d])}),f.push(c.devices),St.forEach((d,p)=>{d.showInGraph&&c["sh"+p]&&f.push(c["sh"+p])}),f=f.concat([c.batIn,c.house]))}return f.filter(d=>d.energy&&d.energy>0)}),n=we(()=>gl().range([0,Av-e.left-e.right]).domain(r.value.map(l=>l.name)).padding(.4)),s=we(()=>Xn().range([Ud-e.bottom-e.top,15]).domain([0,P_(r.value,l=>l.energy)])),i=we(()=>{const l=Object.values(Ge).length,u=[...St.values()].filter(f=>f.configured).length;let c=tt;return[...[c.evuOut,c.charging].concat(l>1?Object.values(Ge).map(f=>f.toPowerItem()):[]),...[c.devices].concat(u>1?[...St.values()].filter(f=>f.configured&&f.showInGraph):[]).concat([tt.batIn,tt.house])]});function a(){console.debug(["source summary:",ot]),console.debug(["usage details:",i.value]),console.debug(["historic summary:",qe])}function o(){_e.zoomedWidget=2,_e.zoomGraph=!_e.zoomGraph}return(l,u)=>(ae(),Re(Rl,{"full-width":!0},{title:Ie(()=>[st(ke(ZN))]),buttons:Ie(()=>[z("div",GN,[xe(Vm,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:se(af),onShiftRight:se(Nm),onShiftUp:se(Dm),onShiftDown:se(Um)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),se(jn)?(ae(),Ee("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:o},u[0]||(u[0]=[z("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):Me("",!0)])]),default:Ie(()=>[z("figure",YN,[(ae(),Ee("svg",KN,[z("g",{transform:"translate("+e.left+","+e.top+")"},[xe(NN,{plotdata:r.value,"x-scale":n.value,"y-scale":s.value,height:Ud,margin:e},null,8,["plotdata","x-scale","y-scale"]),xe(UN,{"y-scale":s.value,width:Av,fontsize:Cv,config:se(_e)},null,8,["y-scale","config"]),z("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":Cv},ke(se(Ae).graphMode=="year"?"MWh":"kWh"),9,QN),xe(qN,{plotdata:r.value,"x-scale":n.value,"y-scale":s.value,height:Ud,margin:e,config:se(_e)},null,8,["plotdata","x-scale","y-scale","config"])],8,XN)]))]),se(es)?(ae(),Ee("p",JN,"No data")):Me("",!0)]),_:1}))}}),tD=Je(eD,[["__scopeId","data-v-32c82102"]]),rD=["id"],nD=["y","width","fill"],iD=["y","width"],sD=["y","x","width"],oD=je({__name:"EnergyBar",props:{id:{},item:{},yScale:{},xScale:{},itemHeight:{}},setup(t){const e=t,r=we(()=>e.xScale(e.item.energy)),n=we(()=>{let i=0;return e.item.energyPv>0&&(i=e.xScale(e.item.energyPv)),i>r.value&&(i=r.value),i}),s=we(()=>{let i=0;return e.item.energyBat>0&&(i=e.xScale(e.item.energyBat)),i>r.value&&(i=r.value),i});return(i,a)=>(ae(),Ee("g",{id:`bar-${e.item.name}`},[z("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2-4,x:"0",rx:"6",ry:"6",height:"12",width:r.value,fill:i.item.color},null,8,nD),z("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2+10,x:"0",rx:"3",ry:"3",height:"7",width:n.value,fill:"var(--color-pv)","fill-opacity":"100%"},null,8,iD),z("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2+10,x:n.value,rx:"3",ry:"3",height:"7",width:s.value,fill:"var(--color-battery)","fill-opacity":"100%"},null,8,sD)],8,rD))}}),aD={id:"emBargraph"},lD=je({__name:"BarGraph",props:{plotdata:{},yscale:{},xscale:{},itemHeight:{}},setup(t){const e=t;return(r,n)=>(ae(),Ee("g",aD,[(ae(!0),Ee(Ye,null,ft(e.plotdata,(s,i)=>(ae(),Ee("g",{key:i},[xe(oD,{id:i.toString(),item:s,"x-scale":e.xscale,"y-scale":e.yscale,"item-height":r.itemHeight},null,8,["id","item","x-scale","y-scale","item-height"])]))),128))]))}}),uD=["id"],cD=["y","x","fill"],fD=["y","x"],dD=["y","x","font-size"],Fd=24,hD=je({__name:"EnergyLabel",props:{id:{},item:{},yscale:{},margin:{},width:{},itemHeight:{},autarchy:{},autText:{}},setup(t){const e=t,r=we(()=>e.yscale(e.id)+e.itemHeight/3);function n(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function s(i){return i.length>14?i.slice(0,13)+"...":i}return(i,a)=>(ae(),Ee("g",{id:"barlabel-"+e.id},[z("text",{y:r.value,x:e.margin.left,"font-size":Fd,"text-anchor":"start",fill:i.item.color,class:rt(i.item.icon.length<=2?"fas":"")},ke(s(e.item.icon)),11,cD),z("text",{y:r.value,x:e.width/2+e.margin.left,"font-size":Fd,"text-anchor":"middle",fill:"var(--color-menu)"},ke(se(Mi)(i.item.energy,se(_e).decimalPlaces,!1)),9,fD),z("text",{y:r.value,x:e.width-e.margin.right,"font-size":Fd-2,"text-anchor":"end",fill:"var(--color-pv)"},ke(n()),9,dD)],8,uD))}}),pD={id:"emBarLabels"},gD=je({__name:"EnergyLabels",props:{plotdata:{},yscale:{},width:{},itemHeight:{},margin:{}},setup(t){const e=t;function r(s){if(s.name=="PV"){const i=Ae.graphMode=="live"||Ae.graphMode=="today"?ot:qe.items,o=(Ae.graphMode=="live"||Ae.graphMode=="today"?tt:qe.items).evuOut.energy,l=i.pv.energy;return Math.round((l-o)/l*100)}else if(s.name=="Netz"){const i=Ae.graphMode=="live"||Ae.graphMode=="today"?ot:qe.items,a=Ae.graphMode=="live"||Ae.graphMode=="today"?tt:qe.items,o=a.evuOut.energy,l=i.evuIn.energy,u=i.pv.energy,c=i.batOut.energy,f=a.batIn.energy;return u+c-o-f>0?Math.round((u+c-o-f)/(u+c+l-o-f)*100):0}else return s.pvPercentage}function n(s){return s.name=="PV"?"Eigen":"Aut"}return(s,i)=>(ae(),Ee("g",pD,[(ae(!0),Ee(Ye,null,ft(e.plotdata,(a,o)=>(ae(),Ee("g",{key:o},[xe(hD,{id:o.toString(),item:a,yscale:e.yscale,margin:e.margin,width:e.width,"item-height":s.itemHeight,"aut-text":n(a),autarchy:r(a)},null,8,["id","item","yscale","margin","width","item-height","aut-text","autarchy"])]))),128))]))}}),mD={class:"d-flex justify-content-end"},bD={id:"energymeter",class:"p-0 m-0"},yD=["viewBox"],wD=["transform"],vD=["x"],_D={key:0},Iv=500,Vd=60,ED=12,SD="Energie",xD=je({__name:"EnergyMeter2",setup(t){const e={top:0,bottom:30,left:0,right:0},r=we(()=>n.value.length*Vd+e.top+e.bottom),n=we(()=>{let c=Object.values(ot),f=a.value;const d=qe.items;let p=[];switch(_e.debug&&l(),Xo.value==!0&&(Xo.value=!1),Ae.graphMode){default:case"live":case"today":p=o(c).concat(f);break;case"day":case"month":case"year":Object.values(d).length==0?es.value=!0:(es.value=!1,p=[d.evuIn,d.pv,d.evuOut,d.batOut,d.charging],Object.values(Ge).length>1&&Object.keys(Ge).forEach(g=>{d["cp"+g]&&p.push(d["cp"+g])}),p.push(d.devices),St.forEach((g,b)=>{g.showInGraph&&d["sh"+b]&&p.push(d["sh"+b])}),p=p.concat([d.batIn,d.house]))}return p.filter(g=>g.energy&&g.energy>0)}),s=we(()=>Xn().range([0,Iv-e.left-e.right]).domain([0,P_(n.value,c=>c.energy)])),i=we(()=>gl().range([e.top,r.value-e.bottom]).domain(n.value.map((c,f)=>f.toString())).padding(.1)),a=we(()=>{const c=Object.values(Ge).length,f=[...St.values()].filter(p=>p.configured).length;let d=tt;return[...[d.evuOut,d.charging].concat(c>1?Object.values(Ge).map(p=>p.toPowerItem()):[]),...[d.devices].concat(f>1?[...St.values()].filter(p=>p.configured&&p.showInGraph):[]).concat([tt.batIn,tt.house])]});function o(c){let f=0;return ar.value.size>1&&ar.value.forEach(d=>{c.splice(2+f++,0,{name:d.name,type:pt.inverter,power:d.power,energy:d.energy,energyPv:0,energyBat:0,pvPercentage:0,color:d.color,icon:d.name,showInGraph:!0})}),kt.value.size>1&&kt.value.forEach(d=>{c.splice(3+f++,0,{name:d.name,type:pt.battery,power:d.power,energy:d.dailyYieldExport,energyPv:0,energyBat:0,pvPercentage:0,color:d.color,icon:d.name,showInGraph:!0})}),c}function l(){console.debug(["source summary:",ot]),console.debug(["usage details:",a.value]),console.debug(["historic summary:",qe])}function u(){_e.zoomedWidget=2,_e.zoomGraph=!_e.zoomGraph}return(c,f)=>(ae(),Re(Rl,{"full-width":!0},{title:Ie(()=>[st(ke(SD))]),buttons:Ie(()=>[z("div",mD,[xe(Vm,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:se(af),onShiftRight:se(Nm),onShiftUp:se(Dm),onShiftDown:se(Um)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),se(jn)?(ae(),Ee("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:u},f[0]||(f[0]=[z("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):Me("",!0)])]),default:Ie(()=>[z("figure",bD,[(ae(),Ee("svg",{viewBox:"0 0 500 "+r.value},[z("g",{transform:"translate("+e.left+","+e.top+")"},[xe(lD,{plotdata:n.value,xscale:s.value,yscale:i.value,"item-height":Vd},null,8,["plotdata","xscale","yscale"]),z("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":ED},ke(se(Ae).graphMode=="year"?"MWh":"kWh"),9,vD),xe(gD,{plotdata:n.value,yscale:i.value,width:Iv,"item-height":Vd,margin:e},null,8,["plotdata","yscale"])],8,wD)],8,yD))]),se(es)?(ae(),Ee("p",_D,"No data")):Me("",!0)]),_:1}))}}),TD=Je(xD,[["__scopeId","data-v-dc8e49b2"]]),AD={class:"d-flex flex-column align-items-center justify-content-start infoitem"},CD=je({__name:"InfoItem",props:{heading:{},small:{type:Boolean}},setup(t){const e=t,r=we(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-small)"}),n=we(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-normal)"}),s=we(()=>e.small?"mt-0":"mt-1");return(i,a)=>(ae(),Ee("span",AD,[z("span",{class:rt(["d-flex heading",s.value]),style:ht(r.value)},ke(e.heading),7),z("span",{class:"d-flex my-0 me-0 align-items-center content",style:ht(n.value)},[Gt(i.$slots,"default",{},void 0,!0)],4)]))}}),mt=Je(CD,[["__scopeId","data-v-f6af00e8"]]),ID={class:"d-flex justify-content-between align-items-center titlerow"},MD={class:"buttonarea d-flex float-right justify-content-end align-items-center"},kD={class:"contentrow grid-col-12"},PD=je({__name:"WbSubwidget",props:{titlecolor:{},fullwidth:{type:Boolean},small:{type:Boolean}},setup(t){const e=t,r=we(()=>{let s={"font-weight":"bold",color:"var(--color-fg)","font-size":"var(--font-normal)"};return e.titlecolor&&(s.color=e.titlecolor),e.small&&(s["font-size"]="var(--font-verysmall)"),s}),n=we(()=>e.fullwidth?"grid-col-12":"grid-col-4");return(s,i)=>(ae(),Ee("div",{class:rt(["wb-subwidget-noborder px-0 pe-1 my-0 pb-2",n.value])},[z("div",ID,[z("div",{class:"d-flex widgetname p-0 m-0",style:ht(r.value)},[Gt(s.$slots,"title",{},void 0,!0)],4),z("div",MD,[Gt(s.$slots,"buttons",{},void 0,!0)])]),z("div",kD,[Gt(s.$slots,"default",{},void 0,!0)])],2))}}),uo=Je(PD,[["__scopeId","data-v-2aa2b95f"]]),OD={class:"grid-col-12 mt-0 mb-0 px-0 py-0 configitem"},LD={class:"titlecolumn m-0 p-0 d-flex justify-content-between align-items-baseline"},RD={class:"d-flex justify-content-end align-items-baseline"},BD={class:"d-flex align-items-center"},$D={class:"d-flex"},ND={class:"d-flex justify-content-end m-0 p-0"},DD={class:"ms-1 mb-2 p-0 pt-2 d-flex justify-content-stretch align-items-center contentrow"},UD=je({__name:"ConfigItem",props:{title:{},infotext:{},icon:{},fullwidth:{type:Boolean}},setup(t){const e=t,r=ct(!1);function n(){r.value=!r.value}const s=we(()=>{let i={color:"var(--color-charging)"};return r.value&&(i.color="var(--color-battery)"),i});return(i,a)=>(ae(),Re(uo,{fullwidth:!!i.fullwidth},{default:Ie(()=>[z("div",OD,[z("div",LD,[z("span",RD,[z("span",{class:"d-flex align-items-baseline m-0 p-0",onClick:n},[e.icon?(ae(),Ee("i",{key:0,class:rt(["fa-solid fa-sm m-0 p-0 me-2 item-icon",e.icon])},null,2)):Me("",!0),st(" "+ke(i.title),1)])]),z("span",BD,[z("span",$D,[e.infotext?(ae(),Ee("i",{key:0,class:"fa-solid fa-sm fa-circle-question ms-4 me-2",style:ht(s.value),onClick:n},null,4)):Me("",!0)]),z("span",ND,[Gt(i.$slots,"inline-item",{},void 0,!0)])])]),r.value?(ae(),Ee("p",{key:0,class:"infotext shadow m-0 ps-2 mb-1 p-1",onClick:n},[a[0]||(a[0]=z("i",{class:"me-1 fa-solid fa-sm fa-circle-info"},null,-1)),st(" "+ke(i.infotext),1)])):Me("",!0),z("div",DD,[Gt(i.$slots,"default",{},void 0,!0)])])]),_:3},8,["fullwidth"]))}}),et=Je(UD,[["__scopeId","data-v-25ab3fbb"]]),FD={class:"d-flex flex-column rangeinput"},VD={class:"d-flex flex-fill justify-content-between align-items-center"},jD={class:"d-flex flex-fill flex-column justify-content-center m-0 p-0"},WD={key:0,id:"rangeIndicator",class:"rangeIndicator"},zD={viewBox:"0 0 100 2"},HD=["width"],qD=["x","width"],GD=["x","width"],YD=["id","min","max","step"],KD={class:"d-flex justify-content-between align-items-center"},XD={class:"minlabel ps-4"},QD={class:"valuelabel"},JD={class:"maxlabel pe-4"},ZD=je({__name:"RangeInput",props:{id:{},min:{},max:{},step:{},unit:{},decimals:{},showSubrange:{type:Boolean},subrangeMin:{},subrangeMax:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=r.decimals??0,s=e,i=we({get(){return Math.round(r.modelValue*Math.pow(10,n))/Math.pow(10,n)},set(f){s("update:modelValue",f)}});function a(){i.value>r.min&&(i.value=Math.round((i.value-r.step)*Math.pow(10,n))/Math.pow(10,n))}function o(){i.valueXn().domain([r.min,r.max]).range([0,100])),u=we(()=>l.value(r.subrangeMin?r.subrangeMin:0)),c=we(()=>r.subrangeMin&&r.subrangeMax?l.value(r.subrangeMax)-l.value(r.subrangeMin):0);return(f,d)=>(ae(),Ee("span",FD,[z("span",VD,[z("span",{type:"button",class:"minusButton",onClick:a},d[1]||(d[1]=[z("i",{class:"fa fa-xl fa-minus-square me-2"},null,-1)])),z("div",jD,[r.showSubrange?(ae(),Ee("figure",WD,[(ae(),Ee("svg",zD,[z("g",null,[z("rect",{class:"below",x:0,y:"0",width:u.value,height:"2",rx:"1",ry:"1",fill:"var(--color-evu)"},null,8,HD),z("rect",{class:"bar",x:u.value,y:"0",width:c.value,height:"2",rx:"1",ry:"1",fill:"var(--color-charging)"},null,8,qD),z("rect",{class:"above",x:u.value+c.value,y:"0",width:u.value,height:"2",rx:"1",ry:"1",fill:"var(--color-pv)"},null,8,GD)])]))])):Me("",!0),xl(z("input",{id:f.id,"onUpdate:modelValue":d[0]||(d[0]=p=>i.value=p),type:"range",class:"form-range flex-fill",min:f.min,max:f.max,step:f.step},null,8,YD),[[xC,i.value,void 0,{number:!0}]])]),z("span",{type:"button",class:"plusButton",onClick:o},d[2]||(d[2]=[z("i",{class:"fa fa-xl fa-plus-square ms-2"},null,-1)]))]),z("span",KD,[z("span",XD,ke(f.min),1),z("span",QD,ke(i.value)+" "+ke(f.unit),1),z("span",JD,ke(f.max),1)])]))}}),_r=Je(ZD,[["__scopeId","data-v-af945965"]]),e3=["id","value"],t3=je({__name:"RadioInput2",props:{options:{},modelValue:{},columns:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,s=we({get(){return r.modelValue},set(o){n("update:modelValue",o)}});function i(o){const l=r.options[o][2]||"var(--color-fg)",u="var(--color-bg)";return r.options[o][1]==s.value?{color:u,background:r.options[o][2]||"var(--color-menu)"}:{color:l,background:u}}function a(o){let l=o.target;for(;l&&!l.value&&l.parentElement;)l=l.parentElement;l.value&&(typeof r.options[0][1]=="number"?s.value=Number(l.value):s.value=l.value)}return(o,l)=>(ae(),Ee("div",{class:"buttongrid",style:ht({"grid-template-columns":"repeat("+(r.columns||3)+", 1fr)"})},[(ae(!0),Ee(Ye,null,ft(r.options,(u,c)=>(ae(),Ee("button",{id:"radio-"+u[1],key:c,class:rt(["btn btn-outline-secondary radiobutton me-0 mb-0 px-2",u[1]==s.value?"active":""]),value:u[1],style:ht(i(c)),onClick:a},[z("span",{style:ht(i(c))},[u[3]?(ae(),Ee("i",{key:0,class:rt(["fa-solid",u[3]])},null,2)):Me("",!0),st(" "+ke(u[0]),1)],4)],14,e3))),128))],4))}}),Ir=Je(t3,[["__scopeId","data-v-88c9ea7a"]]),r3={class:"mt-2"},n3={key:0},i3=je({__name:"ConfigInstant",props:{chargepoint:{}},setup(t){const r=ct(t.chargepoint),n=we({get(){return r.value.instantMaxEnergy/1e3},set(s){r.value.instantMaxEnergy=s*1e3}});return(s,i)=>(ae(),Ee("div",r3,[i[5]||(i[5]=z("p",{class:"heading ms-1"},"Sofortladen:",-1)),xe(et,{title:"Stromstärke",icon:"fa-bolt",fullwidth:!0},{default:Ie(()=>[xe(_r,{id:"targetCurrent",modelValue:r.value.instantTargetCurrent,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value.instantTargetCurrent=a),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1}),xe(et,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:r.value.instantTargetPhases,"onUpdate:modelValue":i[1]||(i[1]=a=>r.value.instantTargetPhases=a),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),r.value.instantChargeLimitMode!="none"?(ae(),Ee("hr",n3)):Me("",!0),xe(et,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:r.value.instantChargeLimitMode,"onUpdate:modelValue":i[2]||(i[2]=a=>r.value.instantChargeLimitMode=a),options:se(Lm).map(a=>[a.name,a.id])},null,8,["modelValue","options"])]),_:1}),r.value.instantChargeLimitMode=="soc"?(ae(),Re(et,{key:1,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:Ie(()=>[xe(_r,{id:"maxSoc",modelValue:r.value.instantTargetSoc,"onUpdate:modelValue":i[3]||(i[3]=a=>r.value.instantTargetSoc=a),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):Me("",!0),r.value.instantChargeLimitMode=="amount"?(ae(),Re(et,{key:2,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:Ie(()=>[xe(_r,{id:"maxEnergy",modelValue:n.value,"onUpdate:modelValue":i[4]||(i[4]=a=>n.value=a),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):Me("",!0)]))}}),s3=Je(i3,[["__scopeId","data-v-de6b86dd"]]),o3={class:"form-check form-switch"},zt=je({__name:"SwitchInput",props:{modelValue:{type:Boolean},onColor:{},offColor:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,s=we({get(){return r.modelValue},set(a){n("update:modelValue",a)}}),i=we(()=>s.value?{"background-color":"green"}:{"background-color":"white"});return(a,o)=>(ae(),Ee("div",o3,[xl(z("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>s.value=l),class:"form-check-input",type:"checkbox",role:"switch",style:ht(i.value)},null,4),[[M_,s.value]])]))}}),a3={class:"pt-2 d-flex flex-column"},l3={class:"subconfigstack grid-col-12"},u3={key:0,class:"subconfig subgrid"},c3={key:0,class:"subconfigstack"},f3={class:"subconfig subgrid"},d3={class:"subconfig subgrid"},h3={class:"subconfig subgrid"},p3=je({__name:"ConfigPv",props:{chargepoint:{}},setup(t){const r=ct(t.chargepoint),n=we({get(){return r.value.pvMaxEnergy/1e3},set(a){r.value.pvMaxEnergy=a*1e3}}),s=we({get(){return r.value.pvMinCurrent>5},set(a){a?r.value.pvMinCurrent=6:r.value.pvMinCurrent=0}}),i=we({get(){return r.value.pvMinSoc>0},set(a){a?r.value.pvMinSoc=50:r.value.pvMinSoc=0}});return(a,o)=>(ae(),Ee("div",a3,[o[16]||(o[16]=z("div",{class:"heading ms-1"},"PV-Laden:",-1)),xe(et,{title:"Minimaler Ladestrom",icon:"fa-bolt",infotext:se(Gi).minpv,fullwidth:!0},{"inline-item":Ie(()=>[xe(zt,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=l=>s.value=l)},null,8,["modelValue"])]),default:Ie(()=>[z("div",l3,[s.value?(ae(),Ee("div",u3,[o[11]||(o[11]=z("span",{class:"subconfigtitle grid-col-1"},"Stärke:",-1)),xe(_r,{id:"minCurrent",modelValue:r.value.pvMinCurrent,"onUpdate:modelValue":o[1]||(o[1]=l=>r.value.pvMinCurrent=l),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])])):Me("",!0)])]),_:1},8,["infotext"]),xe(et,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:r.value.pvTargetPhases,"onUpdate:modelValue":o[2]||(o[2]=l=>r.value.pvTargetPhases=l),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),xe(et,{title:"Mindest-Ladestand",icon:"fa-battery-half",infotext:se(Gi).minsoc,fullwidth:!0},{"inline-item":Ie(()=>[xe(zt,{modelValue:i.value,"onUpdate:modelValue":o[3]||(o[3]=l=>i.value=l),class:"grid-col-3"},null,8,["modelValue"])]),default:Ie(()=>[i.value?(ae(),Ee("div",c3,[z("div",f3,[o[12]||(o[12]=z("span",{class:"subconfigtitle grid-col-1"},"SoC:",-1)),xe(_r,{id:"minSoc",modelValue:r.value.pvMinSoc,"onUpdate:modelValue":o[4]||(o[4]=l=>r.value.pvMinSoc=l),class:"grid-col-2",min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),z("div",d3,[o[13]||(o[13]=z("span",{class:"subconfigtitle grid-col-1"},"Ladestrom:",-1)),xe(_r,{id:"minSocCurrent",modelValue:r.value.pvMinSocCurrent,"onUpdate:modelValue":o[5]||(o[5]=l=>r.value.pvMinSocCurrent=l),class:"grid-col-2",min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),z("div",h3,[o[14]||(o[14]=z("span",{class:"subconfigtitle grid-col-1"},"Phasen:",-1)),xe(Ir,{modelValue:r.value.pvMinSocPhases,"onUpdate:modelValue":o[6]||(o[6]=l=>r.value.pvMinSocPhases=l),class:"grid-col-1",columns:2,options:[["1",1],["Maximum",3]]},null,8,["modelValue"])]),o[15]||(o[15]=z("hr",{class:"grid-col-3"},null,-1))])):Me("",!0)]),_:1},8,["infotext"]),xe(et,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:r.value.pvChargeLimitMode,"onUpdate:modelValue":o[7]||(o[7]=l=>r.value.pvChargeLimitMode=l),options:se(Lm).map(l=>[l.name,l.id])},null,8,["modelValue","options"])]),_:1}),r.value.pvChargeLimitMode=="soc"?(ae(),Re(et,{key:0,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:Ie(()=>[xe(_r,{id:"maxSoc",modelValue:r.value.pvTargetSoc,"onUpdate:modelValue":o[8]||(o[8]=l=>r.value.pvTargetSoc=l),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):Me("",!0),r.value.pvChargeLimitMode=="amount"?(ae(),Re(et,{key:1,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:Ie(()=>[xe(_r,{id:"maxEnergy",modelValue:n.value,"onUpdate:modelValue":o[9]||(o[9]=l=>n.value=l),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):Me("",!0),xe(et,{title:"Einspeisegrenze beachten",icon:"fa-hand",fullwidth:!0},{"inline-item":Ie(()=>[xe(zt,{modelValue:r.value.pvFeedInLimit,"onUpdate:modelValue":o[10]||(o[10]=l=>r.value.pvFeedInLimit=l)},null,8,["modelValue"])]),_:1})]))}}),g3=Je(p3,[["__scopeId","data-v-d7ee4d2a"]]),m3={class:"plandetails d-flex flex-cloumn"},b3={class:"heading"},y3={key:0},w3=je({__name:"ScheduleDetails",props:{plan:{}},emits:["close"],setup(t){const e=t,r=we(()=>e.plan.limit.selected=="soc"?`Lade bis ${e.plan.time} auf ${e.plan.limit.soc_scheduled}% (maximal ${e.plan.limit.soc_limit}% mit PV)`:e.plan.limit.selected=="amount"?`Energiemenge: ${Mi(e.plan.limit.amount)}`:"Keine Begrenzung"),n=we(()=>{let i="Wiederholung ";switch(e.plan.frequency.selected){case"daily":i+="täglich";break;case"once":i+=`einmal (${e.plan.frequency.once})`;break;case"weekly":i+="wöchentlich "+s.value;break;default:i+="unbekannt"}return i}),s=we(()=>{const i=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"];let a="(";return e.plan.frequency.weekly.forEach((o,l)=>{o&&(a+=`${i[l]} `)}),a=a.trim(),a+=")",a});return(i,a)=>(ae(),Ee("div",m3,[a[1]||(a[1]=z("hr",null,null,-1)),z("span",b3,"Details für "+ke(e.plan.name)+":",1),z("ul",null,[z("li",null,ke(r.value),1),z("li",null,ke(n.value),1),e.plan.et_active?(ae(),Ee("li",y3,"Preisbasiert laden")):Me("",!0)]),z("button",{class:"btn btn-outline-secondary btn-sm",onClick:a[0]||(a[0]=o=>i.$emit("close"))}," Ok ")]))}}),v3=Je(w3,[["__scopeId","data-v-2f5cb5c1"]]),_3={key:0,class:"table table-borderless"},E3={class:"tablecell left"},S3=["onClick"],x3={class:"tablecell left"},T3={class:"tablecell"},A3={class:"tablecell"},C3={class:"tablecell"},I3={class:"tablecell right"},M3={key:1,class:"ms-1"},k3={key:2},P3=je({__name:"ConfigScheduled",props:{chargePoint:{}},setup(t){const e=ct(!1),r={daily:"Täglich",once:"Einmal",weekly:"Woche"},n=t,s=we(()=>{var l,u;return((u=(l=n.chargePoint)==null?void 0:l.chargeTemplate)==null?void 0:u.chargemode.scheduled_charging.plans)??[]});function i(l){return s.value[l].time}function a(l){return{color:s.value[l].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function o(l){n.chargePoint.chargeTemplate.chargemode.scheduled_charging.plans[l].active=!s.value[l].active,Ft(n.chargePoint.id)}return(l,u)=>(ae(),Ee(Ye,null,[u[3]||(u[3]=z("p",{class:"heading ms-1 pt-2"},"Pläne für Zielladen:",-1)),s.value.length>0?(ae(),Ee("table",_3,[u[2]||(u[2]=z("thead",null,[z("tr",null,[z("th",{class:"tableheader left"}),z("th",{class:"tableheader left"},"Plan"),z("th",{class:"tableheader"},"Zeit"),z("th",{class:"tableheader"},"Ziel"),z("th",{class:"tableheader"},"Wiederh."),z("th",{class:"tableheader right"})])],-1)),z("tbody",null,[(ae(!0),Ee(Ye,null,ft(s.value,(c,f)=>{var d;return ae(),Ee("tr",{key:f,class:rt(c.active?"text-bold":"text-normal")},[z("td",E3,[((d=n.chargePoint.chargeTemplate)==null?void 0:d.id)!=null?(ae(),Ee("a",{key:0,onClick:p=>o(f)},[z("span",{class:rt([c.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:ht(a(f)),type:"button"},null,6)],8,S3)):Me("",!0)]),z("td",x3,ke(c.name),1),z("td",T3,ke(i(f)),1),z("td",A3,ke(c.limit.selected=="soc"?c.limit.soc_scheduled+"%":se(Mi)(c.limit.amount,0)),1),z("td",C3,ke(r[c.frequency.selected]),1),z("td",I3,[z("i",{class:"me-1 fa-solid fa-sm fa-circle-info",onClick:u[0]||(u[0]=p=>e.value=!e.value)})])],2)}),128))])])):(ae(),Ee("p",M3," Pläne für das Zielladen können in den Einstellungen des Ladeprofils angelegt werden . ")),e.value?(ae(),Ee("div",k3,[(ae(!0),Ee(Ye,null,ft(s.value,c=>(ae(),Re(v3,{key:c.id,plan:c,onClose:u[1]||(u[1]=f=>e.value=!1)},null,8,["plan"]))),128))])):Me("",!0)],64))}}),O3=Je(P3,[["__scopeId","data-v-08df44d8"]]),L3={class:"plandetails d-flex flex-cloumn"},R3={class:"heading"},B3=je({__name:"TimePlanDetails",props:{plan:{}},emits:["close"],setup(t){const e=t,r=we(()=>`Lade von ${e.plan.time[0]} bis ${e.plan.time[1]} mit ${e.plan.current}A`),n=we(()=>e.plan.limit.selected=="soc"?`Lade bis maximal ${e.plan.limit.soc}%`:e.plan.limit.selected=="amount"?`Lade maximal ${Mi(e.plan.limit.amount)}`:"Keine Begrenzung"),s=we(()=>{let a="Wiederholung ";switch(e.plan.frequency.selected){case"daily":a+="täglich";break;case"once":a+=`einmal (${e.plan.frequency.once})`;break;case"weekly":a+="wöchentlich "+i.value;break;default:a+="unbekannt"}return a}),i=we(()=>{const a=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"];let o="(";return e.plan.frequency.weekly.forEach((l,u)=>{l&&(o+=`${a[u]} `)}),o=o.trim(),o+=")",o});return(a,o)=>(ae(),Ee("div",L3,[o[1]||(o[1]=z("hr",null,null,-1)),z("span",R3,"Details für "+ke(e.plan.name)+":",1),z("ul",null,[z("li",null,ke(r.value),1),z("li",null,ke(n.value),1),z("li",null,ke(s.value),1)]),z("button",{class:"btn btn-outline-secondary btn-sm",onClick:o[0]||(o[0]=l=>a.$emit("close"))}," Ok ")]))}}),$3=Je(B3,[["__scopeId","data-v-eaa44cb2"]]),N3={class:"table table-borderless"},D3={class:"tablecell left"},U3=["onClick"],F3={class:"tablecell"},V3={class:"tablecell"},j3={class:"tablecell"},W3={class:"tablecell"},z3={class:"tablecell right"},H3={key:0},q3=je({__name:"ConfigTimed",props:{chargePoint:{}},setup(t){const e=t,r=ct(!1),n=e.chargePoint,s={daily:"Täglich",once:"Einmal",weekly:"Woche"},i=we(()=>{var l,u;return((u=(l=e.chargePoint)==null?void 0:l.chargeTemplate)==null?void 0:u.time_charging.plans)??[]});function a(l){return{color:i.value[l].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function o(l){e.chargePoint.chargeTemplate.time_charging.plans[l].active=!i.value[l].active,Ft(e.chargePoint.id)}return(l,u)=>(ae(),Ee(Ye,null,[xe(et,{title:"Zeitplan aktiv",icon:"fa-clock",fullwidth:!0},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(n).timedCharging,"onUpdate:modelValue":u[0]||(u[0]=c=>se(n).timedCharging=c)},null,8,["modelValue"])]),_:1}),u[4]||(u[4]=z("p",{class:"heading ms-1 pt-2"},"Zeitpläne:",-1)),z("table",N3,[u[3]||(u[3]=z("thead",null,[z("tr",null,[z("th",{class:"tableheader left"}),z("th",{class:"tableheader"},"Von"),z("th",{class:"tableheader"},"Bis"),z("th",{class:"tableheader"},"Strom"),z("th",{class:"tableheader"},"Wiederh."),z("th",{class:"tableheader right"})])],-1)),z("tbody",null,[(ae(!0),Ee(Ye,null,ft(i.value,(c,f)=>{var d;return ae(),Ee("tr",{key:f,class:rt(c.active?"text-bold":"text-normal")},[z("td",D3,[((d=e.chargePoint.chargeTemplate)==null?void 0:d.id)!=null?(ae(),Ee("span",{key:0,onClick:p=>o(f)},[z("span",{class:rt([c.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:ht(a(f)),type:"button"},null,6)],8,U3)):Me("",!0)]),z("td",F3,ke(c.time[0]),1),z("td",V3,ke(c.time[1]),1),z("td",j3,ke(c.current)+" A",1),z("td",W3,ke(s[c.frequency.selected]),1),z("td",z3,[z("i",{class:"me-1 fa-solid fa-sm fa-circle-info",onClick:u[1]||(u[1]=p=>r.value=!r.value)})])],2)}),128))])]),r.value?(ae(),Ee("div",H3,[(ae(!0),Ee(Ye,null,ft(i.value,c=>(ae(),Re($3,{key:c.id,plan:c,onClose:u[2]||(u[2]=f=>r.value=!1)},null,8,["plan"]))),128))])):Me("",!0)],64))}}),G3=Je(q3,[["__scopeId","data-v-543e8ca2"]]),Y3={class:"providername ms-1"},K3={class:"container"},X3={id:"pricechart",class:"p-0 m-0"},Q3={viewBox:"0 0 400 300"},J3=["id","origin","transform"],Z3={key:0,class:"p-3"},e8={key:1,class:"d-flex justify-content-end"},t8=["disabled"],yo=400,Mv=250,kv=12,r8=je({__name:"PriceChart",props:{chargepoint:{},globalview:{type:Boolean}},setup(t){const e=t;let r=e.chargepoint?ct(e.chargepoint.etMaxPrice):ct(0);const n=ct(!1),s=ct(e.chargepoint),i=we({get(){return r.value},set(R){r.value=R,n.value=!0}});function a(){s.value&&(Ge[s.value.id].etMaxPrice=i.value),n.value=!1}const o=ct(!1),l={top:0,bottom:15,left:20,right:5},u=we(()=>{let R=[];return Pt.etPriceList.size>0&&Pt.etPriceList.forEach((U,I)=>{R.push([I,U])}),R}),c=we(()=>u.value.length>1?(yo-l.left-l.right)/u.value.length-1:0),f=we(()=>n.value?{background:"var(--color-charging)"}:{background:"var(--color-menu)"}),d=we(()=>{let R=Tn(u.value,U=>U[0]);return R[1]&&(R[1]=new Date(R[1]),R[1].setTime(R[1].getTime()+36e5)),Xs().range([l.left,yo-l.right]).domain(R)}),p=we(()=>{let R=[0,0];return u.value.length>0?(R=Tn(u.value,U=>U[1]),R[0]=Math.floor(R[0]-1),R[1]=Math.floor(R[1]+1)):R=[0,0],R}),g=we(()=>Xn().range([Mv-l.bottom,0]).domain(p.value)),b=we(()=>{const R=Nn(),U=[[l.left,g.value(i.value)],[yo-l.right,g.value(i.value)]];return R(U)}),v=we(()=>{const R=Nn(),U=[[l.left,g.value(_e.lowerPriceBound)],[yo-l.right,g.value(_e.lowerPriceBound)]];return R(U)}),w=we(()=>{const R=Nn(),U=[[l.left,g.value(_e.upperPriceBound)],[yo-l.right,g.value(_e.upperPriceBound)]];return R(U)}),_=we(()=>{const R=Nn(),U=[[l.left,g.value(0)],[yo-l.right,g.value(0)]];return R(U)}),y=we(()=>Za(d.value).ticks(6).tickSize(5).tickFormat(rs("%H:%M"))),x=we(()=>Al(g.value).ticks(p.value[1]-p.value[0]).tickSizeInner(-375).tickFormat(R=>R%5!=0?"":R.toString())),T=we(()=>{o.value==!0;const R=Ct("g#"+A.value);R.selectAll("*").remove(),R.selectAll("bar").data(u.value).enter().append("g").append("rect").attr("class","bar").attr("x",$=>d.value($[0])).attr("y",$=>g.value($[1])).attr("width",c.value).attr("height",$=>g.value(p.value[0])-g.value($[1])).attr("fill",$=>$[1]<=i.value?"var(--color-charging)":"var(--color-axis)");const I=R.append("g").attr("class","axis").call(y.value);I.attr("transform","translate(0,"+(Mv-l.bottom)+")"),I.selectAll(".tick").attr("font-size",kv).attr("color","var(--color-bg)"),I.selectAll(".tick line").attr("stroke","var(--color-fg)").attr("stroke-width","0.5"),I.select(".domain").attr("stroke","var(--color-bg");const M=R.append("g").attr("class","axis").call(x.value);return M.attr("transform","translate("+l.left+",0)"),M.selectAll(".tick").attr("font-size",kv).attr("color","var(--color-bg)"),M.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",$=>$%5==0?"2":"0.5"),M.select(".domain").attr("stroke","var(--color-bg)"),p.value[0]<0&&R.append("path").attr("d",_.value).attr("stroke","var(--color-fg)"),R.append("path").attr("d",v.value).attr("stroke","green"),R.append("path").attr("d",w.value).attr("stroke","red"),R.append("path").attr("d",b.value).attr("stroke","yellow"),"PriceChart.vue"}),A=we(()=>e.chargepoint?"priceChartCanvas"+e.chargepoint.id:"priceChartCanvasGlobal"),C=we(()=>{let R=[];return Pt.etPriceList.forEach(U=>{R.push(U)}),R.sort((U,I)=>U-I)});function L(){let R=C.value[0];for(let U of C.value){if(U>=i.value)break;R=U}i.value=R}function j(){let R=C.value[0];for(let U of C.value)if(U>i.value){R=U;break}else R=U;i.value=R}return dn(()=>{o.value=!o.value}),(R,U)=>(ae(),Ee(Ye,null,[z("p",Y3,"Anbieter: "+ke(se(Pt).etProvider),1),U[3]||(U[3]=z("hr",null,null,-1)),z("div",K3,[z("figure",X3,[(ae(),Ee("svg",Q3,[z("g",{id:A.value,origin:T.value,transform:"translate("+l.top+","+l.right+")"},null,8,J3)]))])]),R.chargepoint!=null?(ae(),Ee("div",Z3,[xe(_r,{id:"pricechart_local",modelValue:i.value,"onUpdate:modelValue":U[0]||(U[0]=I=>i.value=I),min:Math.floor(C.value[0]-1),max:Math.ceil(C.value[C.value.length-1]+1),step:.1,decimals:2,"show-subrange":!0,"subrange-min":C.value[0],"subrange-max":C.value[C.value.length-1],unit:"ct"},null,8,["modelValue","min","max","subrange-min","subrange-max"])])):Me("",!0),z("div",{class:"d-flex justify-content-between px-3 pb-2 pt-0 mt-0"},[z("button",{type:"button",class:"btn btn-sm jumpbutton",onClick:L},U[1]||(U[1]=[z("i",{class:"fa fa-sm fa-arrow-left"},null,-1)])),z("button",{type:"button",class:"btn btn-sm jumpbutton",onClick:j},U[2]||(U[2]=[z("i",{class:"fa fa-sm fa-arrow-right"},null,-1)]))]),R.chargepoint!=null?(ae(),Ee("div",e8,[z("span",{class:"me-3 pt-0",onClick:a},[z("button",{type:"button",class:"btn btn-secondary confirmButton",style:ht(f.value),disabled:!n.value}," Bestätigen ",12,t8)])])):Me("",!0)],64))}}),DS=Je(r8,[["__scopeId","data-v-28b81885"]]),n8={class:"pt-2 d-flex flex-column"},i8={class:"subconfigstack grid-col-12"},s8={class:"subconfig subgrid"},o8=je({__name:"ConfigEco",props:{chargepoint:{}},setup(t){const r=ct(t.chargepoint),n=we({get(){return r.value.ecoMaxEnergy/1e3},set(s){r.value.ecoMaxEnergy=s*1e3}});return(s,i)=>(ae(),Ee("div",n8,[i[6]||(i[6]=z("div",{class:"heading ms-1"},"Eco-Laden:",-1)),se(Pt).active?(ae(),Re(DS,{key:0,chargepoint:r.value},null,8,["chargepoint"])):Me("",!0),se(Pt).active?(ae(),Re(et,{key:1,title:"Minimaler Ladestrom unter der Preisgrenze:",icon:"fa-bolt",fullwidth:!0},{default:Ie(()=>[z("div",i8,[z("div",s8,[i[5]||(i[5]=z("span",{class:"subconfigtitle grid-col-1"},"Stärke:",-1)),xe(_r,{id:"minCurrent",modelValue:r.value.ecoMinCurrent,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value.ecoMinCurrent=a),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])])])]),_:1})):Me("",!0),xe(et,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:r.value.ecoTargetPhases,"onUpdate:modelValue":i[1]||(i[1]=a=>r.value.ecoTargetPhases=a),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),xe(et,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:r.value.ecoChargeLimitMode,"onUpdate:modelValue":i[2]||(i[2]=a=>r.value.ecoChargeLimitMode=a),options:se(Lm).map(a=>[a.name,a.id])},null,8,["modelValue","options"])]),_:1}),r.value.ecoChargeLimitMode=="soc"?(ae(),Re(et,{key:2,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:Ie(()=>[xe(_r,{id:"maxSoc",modelValue:r.value.ecoTargetSoc,"onUpdate:modelValue":i[3]||(i[3]=a=>r.value.ecoTargetSoc=a),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):Me("",!0),r.value.ecoChargeLimitMode=="amount"?(ae(),Re(et,{key:3,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:Ie(()=>[xe(_r,{id:"maxEnergy",modelValue:n.value,"onUpdate:modelValue":i[4]||(i[4]=a=>n.value=a),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):Me("",!0)]))}}),a8=Je(o8,[["__scopeId","data-v-106a9fca"]]),l8={class:"settingsheader mt-2 ms-1"},u8=je({__name:"ConfigGeneral",props:{chargepoint:{}},emits:["closeConfig"],setup(t){const r=t.chargepoint;return(n,s)=>(ae(),Ee(Ye,null,[z("p",l8," Ladeeinstellungen für "+ke(se(r).vehicleName)+": ",1),xe(et,{title:"Lademodus",icon:"fa-charging-station",infotext:se(Gi).chargemode,fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:se(r).chargeMode,"onUpdate:modelValue":s[0]||(s[0]=i=>se(r).chargeMode=i),columns:3,options:Object.keys(se(yr)).map(i=>[se(yr)[i].name,i,se(yr)[i].color,se(yr)[i].icon])},null,8,["modelValue","options"])]),_:1},8,["infotext"]),Object.values(se(dt)).filter(i=>i.visible).length>1?(ae(),Re(et,{key:0,title:"Fahrzeug wechseln",icon:"fa-car",infotext:se(Gi).vehicle,fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:se(r).connectedVehicle,"onUpdate:modelValue":s[1]||(s[1]=i=>se(r).connectedVehicle=i),modelModifiers:{number:!0},options:Object.values(se(dt)).filter(i=>i.visible).map(i=>[i.name,i.id])},null,8,["modelValue","options"])]),_:1},8,["infotext"])):Me("",!0),xe(et,{title:"Sperren",icon:"fa-lock",infotext:se(Gi).locked,fullwidth:!0},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(r).isLocked,"onUpdate:modelValue":s[2]||(s[2]=i=>se(r).isLocked=i)},null,8,["modelValue"])]),_:1},8,["infotext"]),xe(et,{title:"Priorität",icon:"fa-star",infotext:se(Gi).priority,fullwidth:!0},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(r).hasPriority,"onUpdate:modelValue":s[3]||(s[3]=i=>se(r).hasPriority=i)},null,8,["modelValue"])]),_:1},8,["infotext"]),xe(et,{title:"Zeitplan",icon:"fa-clock",infotext:se(Gi).timeplan,fullwidth:!0},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(r).timedCharging,"onUpdate:modelValue":s[4]||(s[4]=i=>se(r).timedCharging=i)},null,8,["modelValue"])]),_:1},8,["infotext"]),se(Yt).isBatteryConfigured?(ae(),Re(et,{key:1,title:"PV-Priorität",icon:"fa-car-battery",infotext:se(Gi).pvpriority,fullwidth:!0},{default:Ie(()=>[xe(Ir,{modelValue:se(Yt).pvBatteryPriority,"onUpdate:modelValue":s[5]||(s[5]=i=>se(Yt).pvBatteryPriority=i),options:se(M2)},null,8,["modelValue","options"])]),_:1},8,["infotext"])):Me("",!0)],64))}}),c8=Je(u8,[["__scopeId","data-v-e6ae9e07"]]),f8={class:"status-string"},d8={style:{color:"red"}},h8={class:"m-0 mt-4 p-0 grid-col-12 tabarea"},p8={class:"nav nav-tabs nav-justified mx-1 mt-1",role:"tablist"},g8=["data-bs-target"],m8=["data-bs-target"],b8=["data-bs-target"],y8=["data-bs-target"],w8=["data-bs-target"],v8=["data-bs-target"],_8={id:"settingsPanes",class:"tab-content mx-1 p-1 pb-3"},E8=["id"],S8=["id"],x8=["id"],T8=["id"],A8=["id"],C8=["id"],I8=je({__name:"ChargeConfigPanel",props:{chargepoint:{}},emits:["closeConfig"],setup(t){const r=t.chargepoint,n=we(()=>{var i;return((i=r.chargeTemplate)==null?void 0:i.id)??0}),s=we(()=>r.id);return dn(()=>{}),(i,a)=>(ae(),Ee(Ye,null,[xe(et,{title:"Status",icon:"fa-info-circle",fullwidth:!0,class:"item"},{default:Ie(()=>[z("span",f8,ke(se(r).stateStr),1)]),_:1}),se(r).faultState!=0?(ae(),Re(et,{key:0,title:"Fehler",class:"grid-col-12",icon:"fa-triangle-exclamation"},{default:Ie(()=>[z("span",d8,ke(se(r).faultStr),1)]),_:1})):Me("",!0),z("div",h8,[z("nav",p8,[z("a",{class:"nav-link active","data-bs-toggle":"tab","data-bs-target":"#chargeSettings"+s.value},a[0]||(a[0]=[z("i",{class:"fa-solid fa-charging-station"},null,-1)]),8,g8),z("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#instantSettings"+s.value},a[1]||(a[1]=[z("i",{class:"fa-solid fa-lg fa-bolt"},null,-1)]),8,m8),z("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pvSettings"+s.value},a[2]||(a[2]=[z("i",{class:"fa-solid fa-solar-panel me-1"},null,-1)]),8,b8),z("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#scheduledSettings"+s.value},a[3]||(a[3]=[z("i",{class:"fa-solid fa-bullseye me-1"},null,-1)]),8,y8),z("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#ecoSettings"+s.value},a[4]||(a[4]=[z("i",{class:"fa-solid fa-coins"},null,-1)]),8,w8),z("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#timedSettings"+s.value},a[5]||(a[5]=[z("i",{class:"fa-solid fa-clock"},null,-1)]),8,v8)]),z("div",_8,[z("div",{id:"chargeSettings"+s.value,class:"tab-pane active",role:"tabpanel","aria-labelledby":"instant-tab"},[xe(c8,{chargepoint:i.chargepoint},null,8,["chargepoint"])],8,E8),z("div",{id:"instantSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"instant-tab"},[xe(s3,{chargepoint:se(r),vehicles:se(dt),"charge-templates":se(pg)},null,8,["chargepoint","vehicles","charge-templates"])],8,S8),z("div",{id:"pvSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"pv-tab"},[xe(g3,{chargepoint:se(r),vehicles:se(dt),"charge-templates":se(pg)},null,8,["chargepoint","vehicles","charge-templates"])],8,x8),z("div",{id:"scheduledSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[n.value!=null?(ae(),Re(O3,{key:0,"charge-point":se(r)},null,8,["charge-point"])):Me("",!0)],8,T8),z("div",{id:"ecoSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"eco-tab"},[n.value!=null?(ae(),Re(a8,{key:0,chargepoint:se(r)},null,8,["chargepoint"])):Me("",!0)],8,A8),z("div",{id:"timedSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[n.value!=null?(ae(),Re(G3,{key:0,"charge-point":se(r)},null,8,["charge-point"])):Me("",!0)],8,C8)])])],64))}}),mg=Je(I8,[["__scopeId","data-v-cd92fe69"]]),Wn=je({__name:"FormatWattH",props:{wattH:{}},setup(t){const e=t,r=we(()=>Mi(e.wattH,_e.decimalPlaces));return(n,s)=>(ae(),Ee("span",null,ke(r.value),1))}}),M8={class:"wb-widget p-0 m-0 shadow widgetWidth"},k8={class:"py-4 px-3 d-flex justify-content-between align-items-center titlerow"},P8={class:"d-flex align-items-center widgetname p-0 m-0"},O8={class:"buttonrea d-flex float-right justify-content-end align-items-center"},L8={class:"grid12 pb-3 px-3"},R8=je({__name:"WbWidgetFlex",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(t){const e=t,r=we(()=>e.fullWidth?"col-12":e.variableWidth&&_e.preferWideBoxes?"col-lg-6":"col-lg-4");return(n,s)=>(ae(),Ee("div",{class:rt(["p-2 m-0",r.value])},[z("div",M8,[z("div",k8,[z("div",P8,[Gt(n.$slots,"title",{},()=>[s[0]||(s[0]=z("div",{class:"p-0"},"(title goes here)",-1))],!0),Gt(n.$slots,"subtitle",{},void 0,!0)]),z("div",O8,[Gt(n.$slots,"buttons",{},void 0,!0)])]),z("div",L8,[Gt(n.$slots,"default",{},void 0,!0)])])],2))}}),Gn=Je(R8,[["__scopeId","data-v-fb6ac7a4"]]),B8={class:"d-flex justify-content-center align-items-center"},$8=je({__name:"BatterySymbol",props:{soc:{},color:{}},setup(t){const e=t,r=we(()=>e.soc<=12?"fa-battery-empty":e.soc<38?"fa-battery-quarter":e.soc<62?"fa-battery-half":e.soc<87?"fa-battery-three-quarters":"fa-battery-full"),n=we(()=>({color:e.color??"var(--color-menu)"}));return(s,i)=>(ae(),Ee("span",B8,[z("i",{class:rt(["fa me-1",r.value]),style:ht(n.value)},null,6),st(" "+ke(Math.round(s.soc)+"%"),1)]))}}),lf=Je($8,[["__scopeId","data-v-a68c844a"]]),N8=je({__name:"WbBadge",props:{color:{},bgcolor:{}},setup(t){const e=t,r=we(()=>({color:e.color??"var(--color-bg)","background-color":e.bgcolor??"var(--color-menu)"}));return(n,s)=>(ae(),Ee("span",{class:"pillWbBadge rounded-pill ms-2 px-2",style:ht(r.value)},[Gt(n.$slots,"default",{},void 0,!0)],4))}}),un=Je(N8,[["__scopeId","data-v-36112fa3"]]),D8={style:{color:"var(--color-charging)"}},U8={style:{color:"var(--color-charging)"}},F8={style:{color:"var(--color-charging)"}},V8={class:"targetCurrent"},j8=je({__name:"ChargingState",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(t){const e=t,r=we(()=>(Math.round(e.chargepoint.current*10)/10).toLocaleString(void 0)+" A"),n=we(()=>(Math.round(e.chargepoint.realCurrent*10)/10).toLocaleString(void 0)+" A");return(s,i)=>(ae(),Ee(Ye,null,[e.chargepoint.power>0?(ae(),Re(mt,{key:0,heading:"Leistung:",class:"grid-col-3 grid-left mb-3"},{default:Ie(()=>[z("span",D8,[xe(Ll,{watt:e.chargepoint.power},null,8,["watt"])])]),_:1})):Me("",!0),e.chargepoint.power>0?(ae(),Re(mt,{key:1,heading:"Strom:",class:"grid-col-3"},{default:Ie(()=>[z("span",U8,ke(n.value),1)]),_:1})):Me("",!0),e.chargepoint.power>0?(ae(),Re(mt,{key:2,heading:"Phasen:",class:"grid-col-3"},{default:Ie(()=>[z("span",F8,ke(e.chargepoint.phasesInUse),1)]),_:1})):Me("",!0),e.chargepoint.power>0?(ae(),Re(mt,{key:3,heading:"Sollstrom:",class:"grid-col-3 grid-right"},{default:Ie(()=>[z("span",V8,ke(r.value),1)]),_:1})):Me("",!0)],64))}}),W8=Je(j8,[["__scopeId","data-v-2cc82367"]]),z8={class:"carTitleLine d-flex justify-content-between align-items-center"},H8={key:1,class:"me-1 fa-solid fa-xs fa-star ps-1"},q8={key:2,class:"me-0 fa-solid fa-xs fa-clock ps-1"},G8={key:0,class:"carSelector p-4 m-2"},Y8={class:"grid12"},K8={key:2,class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12 grid-left"},X8={class:"d-flex justify-content-stretch align-items-center"},Q8={key:0,class:"fa-solid fa-sm fas fa-edit ms-2"},J8=["id"],Z8=je({__name:"VehicleData",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(t){const e=t,r=e.chargepoint,n=ct(!1),s=ct(!1),i=ct(!1),a=we({get(){return r.chargeMode},set(w){r.chargeMode=w}}),o=we(()=>{const w=e.chargepoint.rangeCharged,_=e.chargepoint.chargedSincePlugged,y=e.chargepoint.dailyYield;return _>0?Math.round(w/_*y).toString()+" "+e.chargepoint.rangeUnit:"0 km"}),l=we(()=>e.chargepoint.soc),u=we({get(){return e.chargepoint.soc},set(w){Ge[e.chargepoint.id].soc=w}}),c=we(()=>{const[w]=Pt.etPriceList.values();return(Math.round(w*10)/10).toFixed(1)}),f=we(()=>e.chargepoint.etMaxPrice>=+c.value?{color:"var(--color-charging)"}:{color:"var(--color-menu)"}),d=we(()=>Object.values(dt).filter(w=>w.visible)),p=we(()=>e.chargepoint.soc<20?"var(--color-evu)":e.chargepoint.soc>=80?"var(--color-pv)":"var(--color-battery)"),g=we(()=>{switch(e.chargepoint.chargeMode){case"stop":return{color:"var(--fg)"};default:return{color:yr[e.chargepoint.chargeMode].color}}});function b(){vr("socUpdate",1,e.chargepoint.connectedVehicle),Ge[e.chargepoint.id].waitingForSoc=!0}function v(){vr("setSoc",u.value,e.chargepoint.connectedVehicle),n.value=!1}return(w,_)=>(ae(),Ee(Ye,null,[z("div",z8,[z("h3",{onClick:_[0]||(_[0]=y=>i.value=!i.value)},[_[8]||(_[8]=z("i",{class:"fa-solid fa-sm fa-car me-2"},null,-1)),st(" "+ke(w.chargepoint.vehicleName)+" ",1),d.value.length>1?(ae(),Ee("span",{key:0,class:rt(["fa-solid fa-xs me-2",i.value?"fa-caret-up":"fa-caret-down"])},null,2)):Me("",!0),w.chargepoint.hasPriority?(ae(),Ee("span",H8)):Me("",!0),w.chargepoint.timedCharging?(ae(),Ee("span",q8)):Me("",!0)]),w.chargepoint.isSocConfigured?(ae(),Re(un,{key:0,bgcolor:p.value},{default:Ie(()=>[xe(lf,{soc:l.value??0,color:"var(--color-bg)",class:"me-2"},null,8,["soc"]),w.chargepoint.isSocManual?(ae(),Ee("i",{key:0,class:"fa-solid fa-sm fas fa-edit",style:{color:"var(--color-bg)"},onClick:_[1]||(_[1]=y=>n.value=!n.value)})):Me("",!0),w.chargepoint.isSocManual?Me("",!0):(ae(),Ee("i",{key:1,type:"button",class:rt(["fa-solid fa-sm",w.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),onClick:b},null,2))]),_:1},8,["bgcolor"])):Me("",!0)]),i.value?(ae(),Ee("div",G8,[_[9]||(_[9]=z("span",{class:"changeCarTitle mb-2"},"Fahrzeug wechseln:",-1)),xe(Ir,{modelValue:se(r).connectedVehicle,"onUpdate:modelValue":[_[2]||(_[2]=y=>se(r).connectedVehicle=y),_[3]||(_[3]=y=>i.value=!1)],modelModifiers:{number:!0},options:d.value.map(y=>[y.name,y.id])},null,8,["modelValue","options"])])):Me("",!0),z("div",Y8,[xe(NS,{id:"chargemode-"+w.chargepoint.name,modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=y=>a.value=y),class:"chargemodes mt-3 mb-3",options:Object.keys(se(yr)).map(y=>({text:se(yr)[y].name,value:y,color:se(yr)[y].color,icon:se(yr)[y].icon,active:se(yr)[y].mode==w.chargepoint.chargeMode}))},null,8,["id","modelValue","options"]),w.chargepoint.power>0?(ae(),Re(W8,{key:0,chargepoint:w.chargepoint,"full-width":e.fullWidth},null,8,["chargepoint","full-width"])):Me("",!0),xe(mt,{heading:"letzte Ladung:",class:"grid-col-4 grid-left"},{default:Ie(()=>[xe(Wn,{"watt-h":Math.max(w.chargepoint.chargedSincePlugged,0)},null,8,["watt-h"])]),_:1}),xe(mt,{heading:"gel. Reichw.:",class:"grid-col-4"},{default:Ie(()=>[st(ke(o.value),1)]),_:1}),w.chargepoint.isSocConfigured?(ae(),Re(mt,{key:1,heading:"Reichweite:",class:"grid-col-4 grid-right"},{default:Ie(()=>[st(ke(se(dt)[e.chargepoint.connectedVehicle]?Math.round(se(dt)[e.chargepoint.connectedVehicle].range):0)+" km ",1)]),_:1})):Me("",!0),n.value?(ae(),Ee("div",K8,[_[10]||(_[10]=z("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),z("span",X8,[z("span",null,[xe(_r,{id:"manualSoc",modelValue:u.value,"onUpdate:modelValue":_[5]||(_[5]=y=>u.value=y),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),z("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:v})])):Me("",!0),_[12]||(_[12]=z("hr",{class:"divider grid-col-12"},null,-1)),se(Pt).active?(ae(),Re(mt,{key:3,heading:"Strompreis:",class:"grid-col-4 grid-left"},{default:Ie(()=>[z("span",{style:ht(f.value)},ke(c.value)+" ct ",5)]),_:1})):Me("",!0),se(r).etActive?(ae(),Re(mt,{key:4,heading:"max. Preis:",class:"grid-col-4"},{default:Ie(()=>[z("span",{type:"button",onClick:_[6]||(_[6]=y=>s.value=!s.value)},[st(ke(e.chargepoint.etActive?(Math.round(e.chargepoint.etMaxPrice*10)/10).toFixed(1)+" ct":"-")+" ",1),e.chargepoint.etActive?(ae(),Ee("i",Q8)):Me("",!0)])]),_:1})):Me("",!0),s.value?(ae(),Ee("div",{key:5,id:"priceChartInline"+e.chargepoint.id,class:"d-flex flex-column rounded priceEditor grid-col-12"},[se(dt)[e.chargepoint.connectedVehicle]!=null?(ae(),Re(DS,{key:0,chargepoint:e.chargepoint},null,8,["chargepoint"])):Me("",!0),z("span",{class:"d-flex ms-2 my-4 pe-3 pt-1 d-flex align-self-end",style:ht(g.value),onClick:_[7]||(_[7]=y=>s.value=!1)},_[11]||(_[11]=[z("span",{type:"button",class:"d-flex fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]),4)],8,J8)):Me("",!0)])],64))}}),eU=Je(Z8,[["__scopeId","data-v-e3fcbd86"]]),tU={class:"d-flex justify-content-center align-items-center"},rU={key:0,class:"WbBadge rounded-pill errorWbBadge ms-3"},nU={key:0},iU={key:1,class:"row m-0 mt-0 p-0"},sU={class:"col m-0 p-0"},oU=je({__name:"CPChargePoint",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(t){const e=t,r=ct(e.chargepoint),n=ct(!1),s=we(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei"),i=we(()=>e.chargepoint.isLocked?"var(--color-evu)":e.chargepoint.isCharging?"var(--color-charging)":e.chargepoint.isPluggedIn?"var(--color-battery)":"var(--color-axis)"),a=we(()=>{let l="";return e.chargepoint.isLocked?l="fa-lock":e.chargepoint.isCharging?l=" fa-bolt":e.chargepoint.isPluggedIn&&(l="fa-plug"),"fa "+l}),o=we(()=>({color:e.chargepoint.color}));return(l,u)=>n.value?(ae(),Re(Gn,{key:1,"full-width":e.fullWidth},{title:Ie(()=>[z("span",{style:ht(o.value),onClick:u[3]||(u[3]=c=>n.value=!n.value)},[u[8]||(u[8]=z("span",{class:"fas fa-gear"}," ",-1)),st(" Einstellungen "+ke(e.chargepoint.name),1)],4)]),buttons:Ie(()=>[z("span",{class:"ms-2 pt-1",onClick:u[4]||(u[4]=c=>n.value=!n.value)},u[9]||(u[9]=[z("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]))]),default:Ie(()=>[l.chargepoint!=null?(ae(),Re(mg,{key:0,chargepoint:l.chargepoint},null,8,["chargepoint"])):Me("",!0),z("button",{type:"button",class:"close-config-button btn ms-2 pt-1",onClick:u[5]||(u[5]=c=>n.value=!n.value)}," OK ")]),_:1},8,["full-width"])):(ae(),Re(Rl,{key:0,"variable-width":!0,"full-width":e.fullWidth},{title:Ie(()=>[z("span",tU,[z("span",{style:ht(o.value),onClick:u[0]||(u[0]=c=>n.value=!n.value)},[u[6]||(u[6]=z("span",{class:"fa-solid fa-charging-station"}," ",-1)),st(" "+ke(e.chargepoint.name),1)],4),r.value.faultState==2?(ae(),Ee("span",rU,"Fehler")):Me("",!0)])]),buttons:Ie(()=>[z("span",{type:"button",class:"ms-2 ps-1 pt-1",onClick:u[1]||(u[1]=c=>n.value=!n.value)},u[7]||(u[7]=[z("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)]))]),footer:Ie(()=>[n.value?Me("",!0):(ae(),Re(eU,{key:0,chargepoint:e.chargepoint,"full-width":e.fullWidth},null,8,["chargepoint","full-width"]))]),default:Ie(()=>[n.value?Me("",!0):(ae(),Ee("div",nU,[z("div",{class:"grid12",onClick:u[2]||(u[2]=c=>n.value=!n.value)},[xe(mt,{heading:"Status:",class:"grid-col-4 grid-left"},{default:Ie(()=>[z("span",{style:ht({color:i.value})},[z("i",{class:rt(a.value)},null,2),st(" "+ke(s.value),1)],4)]),_:1}),xe(mt,{heading:"Geladen:",class:"grid-col-4 grid-left"},{default:Ie(()=>[xe(Wn,{"watt-h":l.chargepoint.dailyYield},null,8,["watt-h"])]),_:1})])])),n.value?(ae(),Ee("div",iU,[z("div",sU,[l.chargepoint!=null?(ae(),Re(mg,{key:0,chargepoint:l.chargepoint},null,8,["chargepoint"])):Me("",!0)])])):Me("",!0)]),_:1},8,["full-width"]))}}),aU=Je(oU,[["__scopeId","data-v-b35defc2"]]);function Pv(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function jm(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:Pv(e[r])&&Pv(t[r])&&Object.keys(e[r]).length>0&&jm(t[r],e[r])})}const US={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ir(){const t=typeof document<"u"?document:{};return jm(t,US),t}const lU={document:US,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Nt(){const t=typeof window<"u"?window:{};return jm(t,lU),t}function zi(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function uU(t){const e=t;Object.keys(e).forEach(r=>{try{e[r]=null}catch{}try{delete e[r]}catch{}})}function Qs(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function nn(){return Date.now()}function cU(t){const e=Nt();let r;return e.getComputedStyle&&(r=e.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}function bg(t,e){e===void 0&&(e="x");const r=Nt();let n,s,i;const a=cU(t);return r.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(o=>o.replace(",",".")).join(", ")),i=new r.WebKitCSSMatrix(s==="none"?"":s)):(i=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),e==="x"&&(r.WebKitCSSMatrix?s=i.m41:n.length===16?s=parseFloat(n[12]):s=parseFloat(n[4])),e==="y"&&(r.WebKitCSSMatrix?s=i.m42:n.length===16?s=parseFloat(n[13]):s=parseFloat(n[5])),s||0}function Ha(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function fU(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function zr(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let r=1;re.indexOf(i)<0);for(let i=0,a=s.length;ii?"next":"prev",c=(d,p)=>u==="next"&&d>=p||u==="prev"&&d<=p,f=()=>{o=new Date().getTime(),a===null&&(a=o);const d=Math.max(Math.min((o-a)/l,1),0),p=.5-Math.cos(d*Math.PI)/2;let g=i+p*(r-i);if(c(g,r)&&(g=r),e.wrapperEl.scrollTo({[n]:g}),c(g,r)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:g})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(f)};f()}function co(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function ur(t,e){e===void 0&&(e="");const r=Nt(),n=[...t.children];return r.HTMLSlotElement&&t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(s=>s.matches(e)):n}function dU(t,e){var n,s;const r=[e];for(;r.length>0;){const i=r.shift();if(t===i)return!0;r.push(...i.children,...((n=i.shadowRoot)==null?void 0:n.children)||[],...((s=i.assignedElements)==null?void 0:s.call(i))||[])}}function hU(t,e){const r=Nt();let n=e.contains(t);return!n&&r.HTMLSlotElement&&e instanceof HTMLSlotElement&&(n=[...e.assignedElements()].includes(t),n||(n=dU(t,e))),n}function Tc(t){try{console.warn(t);return}catch{}}function Gr(t,e){e===void 0&&(e=[]);const r=document.createElement(t);return r.classList.add(...Array.isArray(e)?e:zi(e)),r}function Ac(t){const e=Nt(),r=ir(),n=t.getBoundingClientRect(),s=r.body,i=t.clientTop||s.clientTop||0,a=t.clientLeft||s.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:n.top+o-i,left:n.left+l-a}}function pU(t,e){const r=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function gU(t,e){const r=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function Qi(t,e){return Nt().getComputedStyle(t,null).getPropertyValue(e)}function wl(t){let e=t,r;if(e){for(r=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(r+=1);return r}}function Ws(t,e){const r=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&r.push(n):r.push(n),n=n.parentElement;return r}function nl(t,e){function r(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",r))}e&&t.addEventListener("transitionend",r)}function yg(t,e,r){const n=Nt();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function lt(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function uf(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90===0?e+.001:e}let jd;function mU(){const t=Nt(),e=ir();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function VS(){return jd||(jd=mU()),jd}let Wd;function bU(t){let{userAgent:e}=t===void 0?{}:t;const r=VS(),n=Nt(),s=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,l=n.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const f=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let g=s==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&r.touch&&b.indexOf(`${o}x${l}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),u&&!p&&(a.os="android",a.android=!0),(c||d||f)&&(a.os="ios",a.ios=!0),a}function jS(t){return t===void 0&&(t={}),Wd||(Wd=bU(t)),Wd}let zd;function yU(){const t=Nt(),e=jS();let r=!1;function n(){const o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(n()){const o=String(t.navigator.userAgent);if(o.includes("Version/")){const[l,u]=o.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));r=l<16||l===16&&u<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),i=n(),a=i||s&&e.ios;return{isSafari:r||i,needPerspectiveFix:r,need3dFix:a,isWebView:s}}function wU(){return zd||(zd=yU()),zd}function vU(t){let{swiper:e,on:r,emit:n}=t;const s=Nt();let i=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(f=>{a=s.requestAnimationFrame(()=>{const{width:d,height:p}=e;let g=d,b=p;f.forEach(v=>{let{contentBoxSize:w,contentRect:_,target:y}=v;y&&y!==e.el||(g=_?_.width:(w[0]||w).inlineSize,b=_?_.height:(w[0]||w).blockSize)}),(g!==d||b!==p)&&o()})}),i.observe(e.el))},u=()=>{a&&s.cancelAnimationFrame(a),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};r("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){l();return}s.addEventListener("resize",o),s.addEventListener("orientationchange",c)}),r("destroy",()=>{u(),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",c)})}function _U(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=[],a=Nt(),o=function(c,f){f===void 0&&(f={});const d=a.MutationObserver||a.WebkitMutationObserver,p=new d(g=>{if(e.__preventObserver__)return;if(g.length===1){s("observerUpdate",g[0]);return}const b=function(){s("observerUpdate",g[0])};a.requestAnimationFrame?a.requestAnimationFrame(b):a.setTimeout(b,0)});p.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:e.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),i.push(p)},l=()=>{if(e.params.observer){if(e.params.observeParents){const c=Ws(e.hostEl);for(let f=0;f{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};r({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",u)}var EU={on(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const s=r?"unshift":"push";return t.split(" ").forEach(i=>{n.eventsListeners[i]||(n.eventsListeners[i]=[]),n.eventsListeners[i][s](e)}),n},once(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function s(){n.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,a=new Array(i),o=0;o=0&&e.eventsAnyListeners.splice(r,1),e},off(t,e){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((s,i)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&r.eventsListeners[n].splice(i,1)})}),r},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,r,n;for(var s=arguments.length,i=new Array(s),a=0;a{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(u=>{u.apply(n,r)})}),t}};function SU(){const t=this;let e,r;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?r=t.params.height:r=n.clientHeight,!(e===0&&t.isHorizontal()||r===0&&t.isVertical())&&(e=e-parseInt(Qi(n,"padding-left")||0,10)-parseInt(Qi(n,"padding-right")||0,10),r=r-parseInt(Qi(n,"padding-top")||0,10)-parseInt(Qi(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(r)&&(r=0),Object.assign(t,{width:e,height:r,size:t.isHorizontal()?e:r}))}function xU(){const t=this;function e(R,U){return parseFloat(R.getPropertyValue(t.getDirectionLabel(U))||0)}const r=t.params,{wrapperEl:n,slidesEl:s,size:i,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&r.virtual.enabled,u=l?t.virtual.slides.length:t.slides.length,c=ur(s,`.${t.params.slideClass}, swiper-slide`),f=l?t.virtual.slides.length:c.length;let d=[];const p=[],g=[];let b=r.slidesOffsetBefore;typeof b=="function"&&(b=r.slidesOffsetBefore.call(t));let v=r.slidesOffsetAfter;typeof v=="function"&&(v=r.slidesOffsetAfter.call(t));const w=t.snapGrid.length,_=t.slidesGrid.length;let y=r.spaceBetween,x=-b,T=0,A=0;if(typeof i>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*i:typeof y=="string"&&(y=parseFloat(y)),t.virtualSize=-y,c.forEach(R=>{a?R.style.marginLeft="":R.style.marginRight="",R.style.marginBottom="",R.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(qa(n,"--swiper-centered-offset-before",""),qa(n,"--swiper-centered-offset-after",""));const C=r.grid&&r.grid.rows>1&&t.grid;C?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let L;const j=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(R=>typeof r.breakpoints[R].slidesPerView<"u").length>0;for(let R=0;R1&&d.push(t.virtualSize-i)}if(l&&r.loop){const R=g[0]+y;if(r.slidesPerGroup>1){const U=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),I=R*r.slidesPerGroup;for(let M=0;M!r.cssMode||r.loop?!0:I!==c.length-1).forEach(U=>{U.style[R]=`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let R=0;g.forEach(I=>{R+=I+(y||0)}),R-=y;const U=R>i?R-i:0;d=d.map(I=>I<=0?-b:I>U?U+v:I)}if(r.centerInsufficientSlides){let R=0;g.forEach(I=>{R+=I+(y||0)}),R-=y;const U=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(R+U{d[$]=M-I}),p.forEach((M,$)=>{p[$]=M+I})}}if(Object.assign(t,{slides:c,snapGrid:d,slidesGrid:p,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){qa(n,"--swiper-centered-offset-before",`${-d[0]}px`),qa(n,"--swiper-centered-offset-after",`${t.size/2-g[g.length-1]/2}px`);const R=-t.snapGrid[0],U=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+R),t.slidesGrid=t.slidesGrid.map(I=>I+U)}if(f!==u&&t.emit("slidesLengthChange"),d.length!==w&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==_&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const R=`${r.containerModifierClass}backface-hidden`,U=t.el.classList.contains(R);f<=r.maxBackfaceHiddenSlides?U||t.el.classList.add(R):U&&t.el.classList.remove(R)}}function TU(t){const e=this,r=[],n=e.virtual&&e.params.virtual.enabled;let s=0,i;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=o=>n?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{r.push(o)});else for(i=0;ie.slides.length&&!n)break;r.push(a(o))}else r.push(a(e.activeIndex));for(i=0;is?o:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function AU(){const t=this,e=t.slides,r=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n{e&&!t.classList.contains(r)?t.classList.add(r):!e&&t.classList.contains(r)&&t.classList.remove(r)};function CU(t){t===void 0&&(t=this&&this.translate||0);const e=this,r=e.params,{slides:n,rtlTranslate:s,snapGrid:i}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;s&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=r.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l=0&&p<=e.size-e.slidesSizesGrid[l],v=p>=0&&p1&&g<=e.size||p<=0&&g>=e.size;v&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l)),Ov(u,v,r.slideVisibleClass),Ov(u,b,r.slideFullyVisibleClass),u.progress=s?-f:f,u.originalProgress=s?-d:d}}function IU(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const r=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:i,isEnd:a,progressLoop:o}=e;const l=i,u=a;if(n===0)s=0,i=!0,a=!0;else{s=(t-e.minTranslate())/n;const c=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;i=c||s<=0,a=f||s>=1,c&&(s=0),f&&(s=1)}if(r.loop){const c=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),d=e.slidesGrid[c],p=e.slidesGrid[f],g=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=d?o=(b-d)/g:o=(b+g-p)/g,o>1&&(o-=1)}Object.assign(e,{progress:s,progressLoop:o,isBeginning:i,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),i&&!l&&e.emit("reachBeginning toEdge"),a&&!u&&e.emit("reachEnd toEdge"),(l&&!i||u&&!a)&&e.emit("fromEdge"),e.emit("progress",s)}const Hd=(t,e,r)=>{e&&!t.classList.contains(r)?t.classList.add(r):!e&&t.classList.contains(r)&&t.classList.remove(r)};function MU(){const t=this,{slides:e,params:r,slidesEl:n,activeIndex:s}=t,i=t.virtual&&r.virtual.enabled,a=t.grid&&r.grid&&r.grid.rows>1,o=f=>ur(n,`.${r.slideClass}${f}, swiper-slide${f}`)[0];let l,u,c;if(i)if(r.loop){let f=s-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${f}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else a?(l=e.find(f=>f.column===s),c=e.find(f=>f.column===s+1),u=e.find(f=>f.column===s-1)):l=e[s];l&&(a||(c=gU(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!c&&(c=e[0]),u=pU(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(f=>{Hd(f,f===l,r.slideActiveClass),Hd(f,f===c,r.slideNextClass),Hd(f,f===u,r.slidePrevClass)}),t.emitSlidesClasses()}const zu=(t,e)=>{if(!t||t.destroyed||!t.params)return;const r=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(r());if(n){let s=n.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(n.shadowRoot?s=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(s=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},qd=(t,e)=>{if(!t.slides[e])return;const r=t.slides[e].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},wg=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const r=t.slides.length;if(!r||!e||e<0)return;e=Math.min(e,r);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=s,o=[a-e];o.push(...Array.from({length:e}).map((l,u)=>a+n+u)),t.slides.forEach((l,u)=>{o.includes(l.column)&&qd(t,u)});return}const i=s+n-1;if(t.params.rewind||t.params.loop)for(let a=s-e;a<=i+e;a+=1){const o=(a%r+r)%r;(oi)&&qd(t,o)}else for(let a=Math.max(s-e,0);a<=Math.min(i+e,r-1);a+=1)a!==s&&(a>i||a=e[i]&&n=e[i]&&n=e[i]&&(s=i);return r.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function PU(t){const e=this,r=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:s,activeIndex:i,realIndex:a,snapIndex:o}=e;let l=t,u;const c=p=>{let g=p-e.virtual.slidesBefore;return g<0&&(g=e.virtual.slides.length+g),g>=e.virtual.slides.length&&(g-=e.virtual.slides.length),g};if(typeof l>"u"&&(l=kU(e)),n.indexOf(r)>=0)u=n.indexOf(r);else{const p=Math.min(s.slidesPerGroupSkip,l);u=p+Math.floor((l-p)/s.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),l===i&&!e.params.loop){u!==o&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(l===i&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(l);return}const f=e.grid&&s.grid&&s.grid.rows>1;let d;if(e.virtual&&s.virtual.enabled&&s.loop)d=c(l);else if(f){const p=e.slides.find(b=>b.column===l);let g=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(e.slides.indexOf(p),0)),d=Math.floor(g/s.grid.rows)}else if(e.slides[l]){const p=e.slides[l].getAttribute("data-swiper-slide-index");p?d=parseInt(p,10):d=l}else d=l;Object.assign(e,{previousSnapIndex:o,snapIndex:u,previousRealIndex:a,realIndex:d,previousIndex:i,activeIndex:l}),e.initialized&&wg(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==d&&e.emit("realIndexChange"),e.emit("slideChange"))}function OU(t,e){const r=this,n=r.params;let s=t.closest(`.${n.slideClass}, swiper-slide`);!s&&r.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!s&&o.matches&&o.matches(`.${n.slideClass}, swiper-slide`)&&(s=o)});let i=!1,a;if(s){for(let o=0;ol?c=l:n&&ta?o="next":i"u"&&(e=i.params.speed);const b=Math.min(i.params.slidesPerGroupSkip,a);let v=b+Math.floor((a-b)/i.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const w=-l[v];if(o.normalizeSlideIndex)for(let T=0;T=C&&A=C&&A=C&&(a=T)}if(i.initialized&&a!==f&&(!i.allowSlideNext&&(d?w>i.translate&&w>i.minTranslate():wi.translate&&w>i.maxTranslate()&&(f||0)!==a))return!1;a!==(c||0)&&r&&i.emit("beforeSlideChangeStart"),i.updateProgress(w);let _;a>f?_="next":a0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[T?"scrollLeft":"scrollTop"]=A})):p[T?"scrollLeft":"scrollTop"]=A,y&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1});else{if(!i.support.smoothScroll)return FS({swiper:i,targetPosition:A,side:T?"left":"top"}),!0;p.scrollTo({[T?"left":"top"]:A,behavior:"smooth"})}return!0}return i.setTransition(e),i.setTranslate(w),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,n),i.transitionStart(r,_),e===0?i.transitionEnd(r,_):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(r,_))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function HU(t,e,r,n){t===void 0&&(t=0),r===void 0&&(r=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const i=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)a=a+s.virtual.slidesBefore;else{let o;if(i){const d=a*s.params.grid.rows;o=s.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===d).column}else o=s.getSlideIndexByData(a);const l=i?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:u}=s.params;let c=s.params.slidesPerView;c==="auto"?c=s.slidesPerViewDynamic():(c=Math.ceil(parseFloat(s.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let f=l-op.getAttribute("data-swiper-slide-index")*1===d).column}else a=s.getSlideIndexByData(a)}return requestAnimationFrame(()=>{s.slideTo(a,e,r,n)}),s}function qU(t,e,r){e===void 0&&(e=!0);const n=this,{enabled:s,params:i,animating:a}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let o=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex{n.slideTo(n.activeIndex+l,t,e,r)}),!0}return i.rewind&&n.isEnd?n.slideTo(0,t,e,r):n.slideTo(n.activeIndex+l,t,e,r)}function GU(t,e,r){e===void 0&&(e=!0);const n=this,{params:s,snapGrid:i,slidesGrid:a,rtlTranslate:o,enabled:l,animating:u}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const c=n.virtual&&s.virtual.enabled;if(s.loop){if(u&&!c&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const f=o?n.translate:-n.translate;function d(w){return w<0?-Math.floor(Math.abs(w)):Math.floor(w)}const p=d(f),g=i.map(w=>d(w));let b=i[g.indexOf(p)-1];if(typeof b>"u"&&s.cssMode){let w;i.forEach((_,y)=>{p>=_&&(w=y)}),typeof w<"u"&&(b=i[w>0?w-1:w])}let v=0;if(typeof b<"u"&&(v=a.indexOf(b),v<0&&(v=n.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(v=v-n.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),s.rewind&&n.isBeginning){const w=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(w,t,e,r)}else if(s.loop&&n.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(v,t,e,r)}),!0;return n.slideTo(v,t,e,r)}function YU(t,e,r){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,r)}function KU(t,e,r,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let i=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,i),o=a+Math.floor((i-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const u=s.snapGrid[o],c=s.snapGrid[o+1];l-u>(c-u)*n&&(i+=s.params.slidesPerGroup)}else{const u=s.snapGrid[o-1],c=s.snapGrid[o];l-u<=(c-u)*n&&(i-=s.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,s.slidesGrid.length-1),s.slideTo(i,t,e,r)}function XU(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:r}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.clickedIndex,i;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;i=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?st.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=t.getSlideIndex(ur(r,`${a}[data-swiper-slide-index="${i}"]`)[0]),Qs(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=t.getSlideIndex(ur(r,`${a}[data-swiper-slide-index="${i}"]`)[0]),Qs(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var QU={slideTo:zU,slideToLoop:HU,slideNext:qU,slidePrev:GU,slideReset:YU,slideToClosest:KU,slideToClickedSlide:XU};function JU(t){const e=this,{params:r,slidesEl:n}=e;if(!r.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{ur(n,`.${r.slideClass}, swiper-slide`).forEach((f,d)=>{f.setAttribute("data-swiper-slide-index",d)})},i=e.grid&&r.grid&&r.grid.rows>1,a=r.slidesPerGroup*(i?r.grid.rows:1),o=e.slides.length%a!==0,l=i&&e.slides.length%r.grid.rows!==0,u=c=>{for(let f=0;f1;u.length"u"?i=l.getSlideIndex(u.find(M=>M.classList.contains(p.slideActiveClass))):T=i;const A=n==="next"||!n,C=n==="prev"||!n;let L=0,j=0;const R=_?Math.ceil(u.length/p.grid.rows):u.length,I=(_?u[i].column:i)+(g&&typeof s>"u"?-b/2+.5:0);if(I=0;ne-=1)u[ne].column===Z&&y.push(ne)}else y.push(R-$-1)}}else if(I+b>R-w){j=Math.max(I-(R-w*2),v);for(let M=0;M{Z.column===$&&x.push(ne)}):x.push($)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),C&&y.forEach(M=>{u[M].swiperLoopMoveDOM=!0,d.prepend(u[M]),u[M].swiperLoopMoveDOM=!1}),A&&x.forEach(M=>{u[M].swiperLoopMoveDOM=!0,d.append(u[M]),u[M].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():_&&(y.length>0&&C||x.length>0&&A)&&l.slides.forEach((M,$)=>{l.grid.updateSlide($,M,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),r){if(y.length>0&&C){if(typeof e>"u"){const M=l.slidesGrid[T],Z=l.slidesGrid[T+L]-M;o?l.setTranslate(l.translate-Z):(l.slideTo(T+Math.ceil(L),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-Z,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-Z))}else if(s){const M=_?y.length/p.grid.rows:y.length;l.slideTo(l.activeIndex+M,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(x.length>0&&A)if(typeof e>"u"){const M=l.slidesGrid[T],Z=l.slidesGrid[T-j]-M;o?l.setTranslate(l.translate-Z):(l.slideTo(T-j,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-Z,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-Z))}else{const M=_?x.length/p.grid.rows:x.length;l.slideTo(l.activeIndex-M,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=f,l.controller&&l.controller.control&&!a){const M={slideRealIndex:e,direction:n,setTranslate:s,activeSlideIndex:i,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach($=>{!$.destroyed&&$.params.loop&&$.loopFix({...M,slideTo:$.params.slidesPerView===p.slidesPerView?r:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...M,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?r:!1})}l.emit("loopFix")}function eF(){const t=this,{params:e,slidesEl:r}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(s=>{const i=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;n[i]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),n.forEach(s=>{r.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var tF={loopCreate:JU,loopFix:ZU,loopDestroy:eF};function rF(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const r=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function nF(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var iF={setGrabCursor:rF,unsetGrabCursor:nF};function sF(t,e){e===void 0&&(e=this);function r(n){if(!n||n===ir()||n===Nt())return null;n.assignedSlot&&(n=n.assignedSlot);const s=n.closest(t);return!s&&!n.getRootNode?null:s||r(n.getRootNode().host)}return r(e)}function Lv(t,e,r){const n=Nt(),{params:s}=t,i=s.edgeSwipeDetection,a=s.edgeSwipeThreshold;return i&&(r<=a||r>=n.innerWidth-a)?i==="prevent"?(e.preventDefault(),!0):!1:!0}function oF(t){const e=this,r=ir();let n=t;n.originalEvent&&(n=n.originalEvent);const s=e.touchEventsData;if(n.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==n.pointerId)return;s.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(s.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Lv(e,n,n.targetTouches[0].pageX);return}const{params:i,touches:a,enabled:o}=e;if(!o||!i.simulateTouch&&n.pointerType==="mouse"||e.animating&&i.preventInteractionOnTransition)return;!e.animating&&i.cssMode&&i.loop&&e.loopFix();let l=n.target;if(i.touchEventsTarget==="wrapper"&&!hU(l,e.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||s.isTouched&&s.isMoved)return;const u=!!i.noSwipingClass&&i.noSwipingClass!=="",c=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&c&&(l=c[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,d=!!(n.target&&n.target.shadowRoot);if(i.noSwiping&&(d?sF(f,l):l.closest(f))){e.allowClick=!0;return}if(i.swipeHandler&&!l.closest(i.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const p=a.currentX,g=a.currentY;if(!Lv(e,n,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=g,s.touchStartTime=nn(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1);let b=!0;l.matches(s.focusableElements)&&(b=!1,l.nodeName==="SELECT"&&(s.isTouched=!1)),r.activeElement&&r.activeElement.matches(s.focusableElements)&&r.activeElement!==l&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!l.matches(s.focusableElements))&&r.activeElement.blur();const v=b&&e.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||v)&&!l.isContentEditable&&n.preventDefault(),i.freeMode&&i.freeMode.enabled&&e.freeMode&&e.animating&&!i.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function aF(t){const e=ir(),r=this,n=r.touchEventsData,{params:s,touches:i,rtlTranslate:a,enabled:o}=r;if(!o||!s.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].find(T=>T.identifier===n.touchId),!u||u.identifier!==n.touchId)return}else u=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l);return}const c=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){i.startX=c,i.startY=f;return}if(!r.allowTouchMove){l.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f}),n.touchStartTime=nn());return}if(s.touchReleaseOnEdges&&!s.loop){if(r.isVertical()){if(fi.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(ci.startX&&r.translate>=r.minTranslate())return}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}n.allowTouchCallbacks&&r.emit("touchMove",l),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=c,i.currentY=f;const d=i.currentX-i.startX,p=i.currentY-i.startY;if(r.params.threshold&&Math.sqrt(d**2+p**2)"u"){let T;r.isHorizontal()&&i.currentY===i.startY||r.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:d*d+p*p>=25&&(T=Math.atan2(Math.abs(p),Math.abs(d))*180/Math.PI,n.isScrolling=r.isHorizontal()?T>s.touchAngle:90-T>s.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation();let g=r.isHorizontal()?d:p,b=r.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;s.oneWayMovement&&(g=Math.abs(g)*(a?1:-1),b=Math.abs(b)*(a?1:-1)),i.diff=g,g*=s.touchRatio,a&&(g=-g,b=-b);const v=r.touchesDirection;r.swipeDirection=g>0?"prev":"next",r.touchesDirection=b>0?"prev":"next";const w=r.params.loop&&!s.cssMode,_=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if(w&&_&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(T)}n.allowMomentumBounce=!1,s.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)}if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&v!==r.touchesDirection&&w&&_&&Math.abs(g)>=1){Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}r.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=g+n.startTranslate;let y=!0,x=s.resistanceRatio;if(s.touchReleaseOnEdges&&(x=0),g>0?(w&&_&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(s.slidesPerView!=="auto"&&r.slides.length-s.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(y=!1,s.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+g)**x))):g<0&&(w&&_&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(s.slidesPerView!=="auto"&&r.slides.length-s.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(s.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),s.threshold>0)if(Math.abs(g)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=r.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&r.freeMode||s.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function lF(t){const e=this,r=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let s;if(n.type==="touchend"||n.type==="touchcancel"){if(s=[...n.changedTouches].find(T=>T.identifier===r.touchId),!s||s.identifier!==r.touchId)return}else{if(r.touchId!==null||n.pointerId!==r.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:a,touches:o,rtlTranslate:l,slidesGrid:u,enabled:c}=e;if(!c||!a.simulateTouch&&n.pointerType==="mouse")return;if(r.allowTouchCallbacks&&e.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&a.grabCursor&&e.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}a.grabCursor&&r.isMoved&&r.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=nn(),d=f-r.touchStartTime;if(e.allowClick){const T=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(T&&T[0]||n.target,T),e.emit("tap click",n),d<300&&f-r.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(r.lastClickTime=nn(),Qs(()=>{e.destroyed||(e.allowClick=!0)}),!r.isTouched||!r.isMoved||!e.swipeDirection||o.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let p;if(a.followFinger?p=l?e.translate:-e.translate:p=-r.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const g=p>=-e.maxTranslate()&&!e.params.loop;let b=0,v=e.slidesSizesGrid[0];for(let T=0;T=u[T]&&p=u[T])&&(b=T,v=u[u.length-1]-u[u.length-2])}let w=null,_=null;a.rewind&&(e.isBeginning?_=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(w=0));const y=(p-u[b])/v,x=ba.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(y>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?w:b+x):e.slideTo(b)),e.swipeDirection==="prev"&&(y>1-a.longSwipesRatio?e.slideTo(b+x):_!==null&&y<0&&Math.abs(y)>a.longSwipesRatio?e.slideTo(_):e.slideTo(b))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+x):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(w!==null?w:b+x),e.swipeDirection==="prev"&&e.slideTo(_!==null?_:b))}}function Rv(){const t=this,{params:e,el:r}=t;if(r&&r.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:i}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=n,t.params.watchOverflow&&i!==t.snapGrid&&t.checkOverflow()}function uF(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function cF(){const t=this,{wrapperEl:e,rtlTranslate:r,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let s;const i=t.maxTranslate()-t.minTranslate();i===0?s=0:s=(t.translate-t.minTranslate())/i,s!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function fF(t){const e=this;zu(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function dF(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const zS=(t,e)=>{const r=ir(),{params:n,el:s,wrapperEl:i,device:a}=t,o=!!n.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;!s||typeof s=="string"||(r[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),s[l]("touchstart",t.onTouchStart,{passive:!1}),s[l]("pointerdown",t.onTouchStart,{passive:!1}),r[l]("touchmove",t.onTouchMove,{passive:!1,capture:o}),r[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),r[l]("touchend",t.onTouchEnd,{passive:!0}),r[l]("pointerup",t.onTouchEnd,{passive:!0}),r[l]("pointercancel",t.onTouchEnd,{passive:!0}),r[l]("touchcancel",t.onTouchEnd,{passive:!0}),r[l]("pointerout",t.onTouchEnd,{passive:!0}),r[l]("pointerleave",t.onTouchEnd,{passive:!0}),r[l]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[l]("click",t.onClick,!0),n.cssMode&&i[l]("scroll",t.onScroll),n.updateOnWindowResize?t[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Rv,!0):t[u]("observerUpdate",Rv,!0),s[l]("load",t.onLoad,{capture:!0}))};function hF(){const t=this,{params:e}=t;t.onTouchStart=oF.bind(t),t.onTouchMove=aF.bind(t),t.onTouchEnd=lF.bind(t),t.onDocumentTouchStart=dF.bind(t),e.cssMode&&(t.onScroll=cF.bind(t)),t.onClick=uF.bind(t),t.onLoad=fF.bind(t),zS(t,"on")}function pF(){zS(this,"off")}var gF={attachEvents:hF,detachEvents:pF};const Bv=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function mF(){const t=this,{realIndex:e,initialized:r,params:n,el:s}=t,i=n.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const a=ir(),o=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?t.el:a.querySelector(n.breakpointsBase),u=t.getBreakpoint(i,o,l);if(!u||t.currentBreakpoint===u)return;const f=(u in i?i[u]:void 0)||t.originalParams,d=Bv(t,n),p=Bv(t,f),g=t.params.grabCursor,b=f.grabCursor,v=n.enabled;d&&!p?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!d&&p&&(s.classList.add(`${n.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&n.grid.fill==="column")&&s.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),g&&!b?t.unsetGrabCursor():!g&&b&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof f[A]>"u")return;const C=n[A]&&n[A].enabled,L=f[A]&&f[A].enabled;C&&!L&&t[A].disable(),!C&&L&&t[A].enable()});const w=f.direction&&f.direction!==n.direction,_=n.loop&&(f.slidesPerView!==n.slidesPerView||w),y=n.loop;w&&r&&t.changeDirection(),zr(t.params,f);const x=t.params.enabled,T=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),v&&!x?t.disable():!v&&x&&t.enable(),t.currentBreakpoint=u,t.emit("_beforeBreakpoint",f),r&&(_?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!y&&T?(t.loopCreate(e),t.updateSlides()):y&&!T&&t.loopDestroy()),t.emit("breakpoint",f)}function bF(t,e,r){if(e===void 0&&(e="window"),!t||e==="container"&&!r)return;let n=!1;const s=Nt(),i=e==="window"?s.innerHeight:r.clientHeight,a=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:i*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o{typeof n=="object"?Object.keys(n).forEach(s=>{n[s]&&r.push(e+s)}):typeof n=="string"&&r.push(e+n)}),r}function vF(){const t=this,{classNames:e,params:r,rtl:n,el:s,device:i}=t,a=wF(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);e.push(...a),s.classList.add(...e),t.emitContainerClasses()}function _F(){const t=this,{el:e,classNames:r}=t;!e||typeof e=="string"||(e.classList.remove(...r),t.emitContainerClasses())}var EF={addClasses:vF,removeClasses:_F};function SF(){const t=this,{isLocked:e,params:r}=t,{slidesOffsetBefore:n}=r;if(n){const s=t.slides.length-1,i=t.slidesGrid[s]+t.slidesSizesGrid[s]+n*2;t.isLocked=t.size>i}else t.isLocked=t.snapGrid.length===1;r.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),r.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var xF={checkOverflow:SF},vg={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function TF(t,e){return function(n){n===void 0&&(n={});const s=Object.keys(n)[0],i=n[s];if(typeof i!="object"||i===null){zr(e,n);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in i)){zr(e,n);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),zr(e,n)}}const Gd={eventsEmitter:EU,update:LU,translate:UU,transition:WU,slide:QU,loop:tF,grabCursor:iF,events:gF,breakpoints:yF,checkOverflow:xF,classes:EF},Yd={};class Wr{constructor(){let e,r;for(var n=arguments.length,s=new Array(n),i=0;i1){const c=[];return a.querySelectorAll(r.el).forEach(f=>{const d=zr({},r,{el:f});c.push(new Wr(d))}),c}const o=this;o.__swiper__=!0,o.support=VS(),o.device=jS({userAgent:r.userAgent}),o.browser=wU(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const l={};o.modules.forEach(c=>{c({params:r,swiper:o,extendParams:TF(r,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const u=zr({},vg,l);return o.params=zr({},u,Yd,r),o.originalParams=zr({},o.params),o.passedParams=zr({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(c=>{o.on(c,o.params.on[c])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:r,params:n}=this,s=ur(r,`.${n.slideClass}, swiper-slide`),i=wl(s[0]);return wl(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===e))}recalcSlides(){const e=this,{slidesEl:r,params:n}=e;e.slides=ur(r,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,r){const n=this;e=Math.min(Math.max(e,0),1);const s=n.minTranslate(),a=(n.maxTranslate()-s)*e+s;n.translateTo(a,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",r.join(" "))}getSlideClasses(e){const r=this;return r.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=[];e.slides.forEach(n=>{const s=e.getSlideClasses(n);r.push({slideEl:n,classNames:s}),e.emit("_slideClass",n,s)}),e.emit("_slideClasses",r)}slidesPerViewDynamic(e,r){e===void 0&&(e="current"),r===void 0&&(r=!1);const n=this,{params:s,slides:i,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:u}=n;let c=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let f=i[u]?Math.ceil(i[u].swiperSlideSize):0,d;for(let p=u+1;pl&&(d=!0));for(let p=u-1;p>=0;p-=1)i[p]&&!d&&(f+=i[p].swiperSlideSize,c+=1,f>l&&(d=!0))}else if(e==="current")for(let f=u+1;f=0;f-=1)a[u]-a[f]{a.complete&&zu(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)s(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(a.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||s()}n.watchOverflow&&r!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,r){r===void 0&&(r=!0);const n=this,s=n.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${s}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(i=>{e==="vertical"?i.style.width="":i.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(e){const r=this;r.rtl&&e==="rtl"||!r.rtl&&e==="ltr"||(r.rtl=e==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(e){const r=this;if(r.mounted)return!0;let n=e||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const s=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(s()):ur(n,s())[0];return!a&&r.params.createElements&&(a=Gr("div",r.params.wrapperClass),n.append(a),ur(n,`.${r.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(r,{el:n,wrapperEl:a,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Qi(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Qi(n,"direction")==="rtl"),wrongRTL:Qi(a,"display")==="-webkit-box"}),!0}init(e){const r=this;if(r.initialized||r.mount(e)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(),r.attachEvents();const s=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&s.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(i=>{i.complete?zu(r,i):i.addEventListener("load",a=>{zu(r,a.target)})}),wg(r),r.initialized=!0,wg(r),r.emit("init"),r.emit("afterInit"),r}destroy(e,r){e===void 0&&(e=!0),r===void 0&&(r=!0);const n=this,{params:s,el:i,wrapperEl:a,slides:o}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),s.loop&&n.loopDestroy(),r&&(n.removeClasses(),i&&typeof i!="string"&&i.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),uU(n)),n.destroyed=!0),null}static extendDefaults(e){zr(Yd,e)}static get extendedDefaults(){return Yd}static get defaults(){return vg}static installModule(e){Wr.prototype.__modules__||(Wr.prototype.__modules__=[]);const r=Wr.prototype.__modules__;typeof e=="function"&&r.indexOf(e)<0&&r.push(e)}static use(e){return Array.isArray(e)?(e.forEach(r=>Wr.installModule(r)),Wr):(Wr.installModule(e),Wr)}}Object.keys(Gd).forEach(t=>{Object.keys(Gd[t]).forEach(e=>{Wr.prototype[e]=Gd[t][e]})});Wr.use([vU,_U]);const AF=["id"],CF={class:"modal-dialog modal-lg modal-fullscreen-lg-down"},IF={class:"modal-content"},MF={class:"modal-header"},kF={class:"modal-title"},PF={class:"modal-body",style:{"background-color":"var(--color-bg)"}},OF=je({__name:"ModalComponent",props:{modalId:{}},setup(t){const e=t;return dn(()=>{}),(r,n)=>(ae(),Ee("div",{id:e.modalId,class:"modal fade"},[z("div",CF,[z("div",IF,[z("div",MF,[z("h3",kF,[Gt(r.$slots,"title",{},void 0,!0)]),n[0]||(n[0]=z("button",{type:"button",class:"btn-close buttonTextSize d-flex justify-content-center pt-3 pb-0","data-bs-dismiss":"modal"},[z("i",{class:"fa-solid fa-lg fa-rectangle-xmark m-0 p-0"})],-1))]),z("div",PF,[Gt(r.$slots,"default",{},void 0,!0),n[1]||(n[1]=z("button",{class:"btn btn-secondary float-end mt-3 ms-1","data-bs-dismiss":"modal"}," Schließen ",-1))])])])],8,AF))}}),HS=Je(OF,[["__scopeId","data-v-eaefae30"]]),LF={class:"d-flex align-items-center"},RF={class:"cpname"},BF={class:"d-flex float-right justify-content-end align-items-center"},$F=["data-bs-target"],NF=["data-bs-target"],DF={class:"subgrid"},UF={key:0,class:"d-flex justify-content-center align-items-center vehiclestatus"},FF={class:"d-flex flex-column align-items-center px-0"},VF={class:"d-flex justify-content-center flex-wrap"},jF={class:"d-flex align-items-center"},WF={class:"badge phasesInUse rounded-pill"},zF={class:"d-flex flex-wrap justify-content-center chargeinfo"},HF={class:"me-1"},qF={key:0,class:"subgrid socEditRow m-0 p-0"},GF={class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12"},YF={class:"d-flex justify-content-stretch align-items-center"},KF=je({__name:"CpsListItem2",props:{chargepoint:{}},setup(t){const e=t,r=ct(!1),n=we(()=>yr[e.chargepoint.chargeMode].icon),s=we(()=>{let w="";return e.chargepoint.isLocked?w="fa-lock":e.chargepoint.isCharging?w=" fa-bolt":e.chargepoint.isPluggedIn&&(w="fa-plug"),"fa "+w}),i=we(()=>{let w="var(--color-axis)";return e.chargepoint.isLocked?w="var(--color-evu)":e.chargepoint.isCharging?w="var(--color-charging)":e.chargepoint.isPluggedIn&&(w="var(--color-battery)"),{color:w,border:`0.5px solid ${w} `}}),a=we(()=>{switch(e.chargepoint.chargeMode){case"stop":return{"background-color":"var(--color-input)"};default:return{"background-color":yr[e.chargepoint.chargeMode].color}}}),o=we(()=>Yr(e.chargepoint.power,_e.decimalPlaces)),l=we(()=>e.chargepoint.current+" A"),u=we(()=>e.chargepoint.phasesInUse),c=we(()=>e.chargepoint.dailyYield>0?Mi(e.chargepoint.dailyYield,_e.decimalPlaces):"0 Wh"),f=we(()=>"("+Math.round(e.chargepoint.rangeCharged).toString()+" "+e.chargepoint.rangeUnit+")"),d=we(()=>yr[e.chargepoint.chargeMode].name);function p(){vr("socUpdate",1,e.chargepoint.connectedVehicle),Ge[e.chargepoint.id].waitingForSoc=!0}function g(){vr("setSoc",b.value,e.chargepoint.connectedVehicle),r.value=!1}const b=we({get(){return e.chargepoint.soc},set(w){Ge[e.chargepoint.id].soc=w}}),v=we(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei");return(w,_)=>(ae(),Ee(Ye,null,[xe(uo,{titlecolor:w.chargepoint.color,fullwidth:!0,small:!0},{title:Ie(()=>[z("div",LF,[z("span",RF,ke(w.chargepoint.name),1),z("span",{class:"badge rounded-pill statusbadge mx-2",style:ht(i.value)},[z("i",{class:rt([s.value,"me-1"])},null,2),st(" "+ke(v.value),1)],4)])]),buttons:Ie(()=>[z("div",BF,[z("span",{class:"badge rounded-pill modebadge mx-2",type:"button",style:ht(a.value),"data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+w.chargepoint.id},[z("i",{class:rt(["fa me-1",n.value])},null,2),st(" "+ke(d.value),1)],12,$F),z("span",{class:"fa-solid ms-2 fa-lg fa-edit ps-1",type:"button","data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+w.chargepoint.id},null,8,NF)])]),default:Ie(()=>[z("div",DF,[xe(mt,{heading:w.chargepoint.vehicleName,small:!0,class:"grid-left grid-col-4"},{default:Ie(()=>[w.chargepoint.isSocConfigured?(ae(),Ee("span",UF,[w.chargepoint.soc?(ae(),Re(lf,{key:0,class:"me-1",soc:w.chargepoint.soc},null,8,["soc"])):Me("",!0),w.chargepoint.isSocConfigured&&w.chargepoint.isSocManual?(ae(),Ee("i",{key:1,type:"button",class:"fa-solid fa-sm fas fa-edit",style:{color:"var(--color-menu)"},onClick:_[0]||(_[0]=y=>r.value=!r.value)})):Me("",!0),w.chargepoint.isSocConfigured&&!w.chargepoint.isSocManual?(ae(),Ee("i",{key:2,type:"button",class:rt(["fa-solid fa-sm me-2",w.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),style:{color:"var(--color-menu)"},onClick:p},null,2)):Me("",!0)])):Me("",!0)]),_:1},8,["heading"]),xe(mt,{heading:"Parameter:",small:!0,class:"grid-col-4"},{default:Ie(()=>[z("div",FF,[z("span",VF,[z("span",null,ke(o.value),1),z("span",jF,[z("span",WF,ke(u.value),1),z("span",null,ke(l.value),1)])])])]),_:1}),xe(mt,{heading:"Geladen:",small:!0,class:"grid-right grid-col-4"},{default:Ie(()=>[z("div",zF,[z("span",HF,ke(c.value),1),z("span",null,ke(f.value),1)])]),_:1})]),r.value?(ae(),Ee("div",qF,[z("div",GF,[_[2]||(_[2]=z("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),z("span",YF,[z("span",null,[xe(_r,{id:"manualSoc",modelValue:b.value,"onUpdate:modelValue":_[1]||(_[1]=y=>b.value=y),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),z("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:g})])])):Me("",!0)]),_:1},8,["titlecolor"]),(ae(),Re(QT,{to:"body"},[(ae(),Re(HS,{key:w.chargepoint.id,"modal-id":"cpsconfig-"+w.chargepoint.id},{title:Ie(()=>[st(" Konfiguration: "+ke(w.chargepoint.name),1)]),default:Ie(()=>[w.chargepoint!=null?(ae(),Re(mg,{key:0,chargepoint:w.chargepoint},null,8,["chargepoint"])):Me("",!0)]),_:1},8,["modal-id"]))]))],64))}}),XF=Je(KF,[["__scopeId","data-v-9260919a"]]),QF=je({__name:"CpSimpleList2",setup(t){const e=we(()=>Object.values(Ge));return(r,n)=>(ae(),Re(Gn,{"variable-width":!0},{title:Ie(()=>n[0]||(n[0]=[z("span",{class:"fa-solid fa-charging-station"}," ",-1),st(" Ladepunkte ")])),buttons:Ie(()=>[se(Pt).active?(ae(),Re(un,{key:0,bgcolor:"var(--color-menu)"},{default:Ie(()=>[st("Strompreis: "+ke(se(Pt).etCurrentPriceString),1)]),_:1})):Me("",!0)]),default:Ie(()=>[(ae(!0),Ee(Ye,null,ft(e.value,(s,i)=>(ae(),Ee("div",{key:i,class:"subgrid pb-2"},[xe(XF,{chargepoint:s},null,8,["chargepoint"])]))),128))]),_:1}))}}),JF=Je(QF,[["__scopeId","data-v-b8c6b557"]]),Kd=je({__name:"ChargePointList",props:{id:{},compact:{type:Boolean}},setup(t){let e,r;const n=t,s=we(()=>{let u=Object.values(Ge);return l(),u}),i=we(()=>a.value+" "+o.value),a=we(()=>{switch(Object.values(Ge).length){case 0:return _e.preferWideBoxes?"col-lg-6":"col-lg-4";case 1:return _e.preferWideBoxes?"col-lg-6":"col-lg-4";case 2:return _e.preferWideBoxes?"col-lg-12":"col-lg-8 ";default:return"col-lg-12"}}),o=we(()=>"swiper-chargepoints-"+n.id);function l(){let u=document.querySelector("."+o.value);if(u&&(r=u,e=r.swiper),e){let c="1";if(jn.value)switch(Object.values(Ge).length){case 0:case 1:c="1";break;case 2:c="2";break;default:c="3"}r.setAttribute("slides-per-view",c),e.update()}}return dn(()=>{let u=document.querySelector("."+o.value);u&&(r=u,e=r.swiper),window.addEventListener("resize",l),window.document.addEventListener("visibilitychange",l)}),(u,c)=>(ae(),Ee(Ye,null,[n.compact?Me("",!0):(ae(),Ee("swiper-container",{key:0,"space-between":0,"slides-per-view":1,pagination:{clickable:!0},class:rt(["cplist m-0 p-0 d-flex align-items-stretch",i.value])},[(ae(!0),Ee(Ye,null,ft(s.value,f=>(ae(),Ee("swiper-slide",{key:f.id},[z("div",{class:rt([se(jn)?"mb-0":"mb-5","d-flex align-items-stretch flex-fill"])},[xe(aU,{chargepoint:f,"full-width":!0},null,8,["chargepoint"])],2)]))),128))],2)),n.compact?(ae(),Re(JF,{key:1})):Me("",!0)],64))}}),ZF={class:"container-fluid p-0 m-0"},e4={class:"row p-0 m-0"},t4={class:"d-grid gap-2"},r4=["onClick"],n4={class:"col-md-4 p-1"},i4={class:"d-grid gap-2"},s4={key:0},o4={class:"row justify-content-center m-1 p-0"},a4={class:"col-lg-4 p-1 m-0"},l4={class:"d-grid gap-2"},u4={class:"col-lg-4 p-1 m-0"},c4={class:"d-grid gap-2"},f4={class:"col-lg-4 p-1 m-0"},d4={class:"d-grid gap-2"},h4=je({__name:"BBSelect",props:{cpId:{}},setup(t){const e=t,r=[{mode:"instant_charging",name:"Sofort",color:"var(--color-charging)"},{mode:"pv_charging",name:"PV",color:"var(--color-pv)"},{mode:"scheduled_charging",name:"Zielladen",color:"var(--color-battery)"},{mode:"eco_charging",name:"Eco",color:"var(--color-devices)"},{mode:"stop",name:"Stop",color:"var(--color-axis)"}],n=we(()=>Ge[e.cpId]);function s(u){return u==n.value.chargeMode?"btn btn-success buttonTextSize":"btn btn-secondary buttonTextSize"}function i(u){return Yt.pvBatteryPriority==u?"btn-success":"btn-secondary"}function a(u){n.value.chargeMode=u}function o(u){n.value.isLocked=u}function l(u){Yt.pvBatteryPriority=u}return(u,c)=>(ae(),Ee("div",ZF,[z("div",e4,[(ae(),Ee(Ye,null,ft(r,(f,d)=>z("div",{key:d,class:"col-md-4 p-1"},[z("div",t4,[z("button",{type:"button",class:rt(s(f.mode)),style:{},onClick:p=>a(f.mode)},ke(f.name),11,r4)])])),64)),z("div",n4,[z("div",i4,[n.value.isLocked?(ae(),Ee("button",{key:0,type:"button",class:"btn btn-outline-success buttonTextSize","data-bs-dismiss":"modal",onClick:c[0]||(c[0]=f=>o(!1))}," Entsperren ")):Me("",!0),n.value.isLocked?Me("",!0):(ae(),Ee("button",{key:1,type:"button",class:"btn btn-outline-danger buttonTextSize","data-bs-dismiss":"modal",onClick:c[1]||(c[1]=f=>o(!0))}," Sperren "))])])]),se(Yt).isBatteryConfigured?(ae(),Ee("div",s4,[c[8]||(c[8]=z("hr",null,null,-1)),c[9]||(c[9]=z("div",{class:"row"},[z("div",{class:"col text-center"},"Vorrang im Lademodus PV-Laden:")],-1)),z("div",o4,[z("div",a4,[z("div",l4,[z("button",{id:"evPriorityBtn",type:"button",class:rt(["priorityModeBtn btn btn-secondary buttonTextSize",i("ev_mode")]),"data-dismiss":"modal",priority:"1",onClick:c[2]||(c[2]=f=>l("ev_mode"))},c[5]||(c[5]=[st(" EV "),z("span",{class:"fas fa-car ms-2"}," ",-1)]),2)])]),z("div",u4,[z("div",c4,[z("button",{id:"batteryPriorityBtn",type:"button",class:rt(["priorityModeBtn btn btn-secondary buttonTextSize",i("bat_mode")]),"data-dismiss":"modal",priority:"0",onClick:c[3]||(c[3]=f=>l("bat_mode"))},c[6]||(c[6]=[st(" Speicher "),z("span",{class:"fas fa-car-battery ms-2"}," ",-1)]),2)])]),z("div",f4,[z("div",d4,[z("button",{id:"minsocPriorityBtn",type:"button",class:rt(["priorityModeBtn btn btn-secondary buttonTextSize",i("min_soc_bat_mode")]),"data-dismiss":"modal",priority:"0",onClick:c[4]||(c[4]=f=>l("min_soc_bat_mode"))},c[7]||(c[7]=[st(" MinSoc "),z("span",{class:"fas fa-battery-half"}," ",-1)]),2)])])])])):Me("",!0)]))}}),p4={class:"col-lg-4 p-0 m-0 mt-1"},g4={class:"d-grid gap-2"},m4=["data-bs-target"],b4={class:"m-0 p-0 d-flex justify-content-between align-items-center"},y4={class:"mx-1 badge rounded-pill smallTextSize plugIndicator"},w4={key:0,class:"ms-2"},v4={class:"m-0 p-0"},_4={key:0,class:"ps-1"},E4=je({__name:"BbChargeButton",props:{chargepoint:{}},setup(t){const e=t,r="chargeSelectModal"+e.chargepoint.id,n=we(()=>yr[e.chargepoint.chargeMode].name),s=we(()=>{let c={background:"var(--color-menu)"};return e.chargepoint.isLocked?c.background="var(--color-evu)":e.chargepoint.isCharging?c.background="var(--color-charging)":e.chargepoint.isPluggedIn&&(c.background="var(--color-battery)"),c}),i=we(()=>{{let c={background:yr[e.chargepoint.chargeMode].color,color:"white"};switch(e.chargepoint.chargeMode){case Hr.instant_charging:e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(c=u(c));break;case Hr.stop:c.background="darkgrey",c.color="black";break;case Hr.scheduled_charging:e.chargepoint.isPluggedIn&&!e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(c=u(c));break}return c}}),a=we(()=>yr[e.chargepoint.chargeMode].icon),o=we(()=>{switch(Yt.pvBatteryPriority){case"ev_mode":return"fa-car";case"bat_mode":return"fa-car-battery";case"min_soc_bat_mode":return"fa-battery-half";default:return console.log("default"),""}}),l=we(()=>{let c="fa-ellipsis";return e.chargepoint.isLocked?c="fa-lock":e.chargepoint.isCharging?c=" fa-bolt":e.chargepoint.isPluggedIn&&(c="fa-plug"),"fa "+c});function u(c){let f=c.color;return c.color=c.background,c.background=f,c}return(c,f)=>(ae(),Ee("div",p4,[z("div",g4,[z("button",{type:"button",class:"btn mx-1 mb-0 p-1 mediumTextSize chargeButton shadow",style:ht(s.value),"data-bs-toggle":"modal","data-bs-target":"#"+r},[z("div",b4,[z("span",y4,[z("i",{class:rt(l.value)},null,2),c.chargepoint.isCharging?(ae(),Ee("span",w4,ke(se(Yr)(c.chargepoint.power)),1)):Me("",!0)]),z("span",v4,ke(c.chargepoint.name),1),z("span",{class:"mx-2 m-0 badge rounded-pill smallTextSize modeIndicator",style:ht(i.value)},[z("i",{class:rt(["fa me-1",a.value])},null,2),st(" "+ke(n.value)+" ",1),c.chargepoint.chargeMode==se(Hr).pv_charging&&se(Yt).isBatteryConfigured?(ae(),Ee("span",_4,[f[0]||(f[0]=st(" ( ")),z("i",{class:rt(["fa m-0",o.value])},null,2),f[1]||(f[1]=st(") "))])):Me("",!0)],4)])],12,m4)]),xe(HS,{"modal-id":r},{title:Ie(()=>[st(" Lademodus für "+ke(c.chargepoint.vehicleName),1)]),default:Ie(()=>[xe(h4,{"cp-id":c.chargepoint.id},null,8,["cp-id"])]),_:1})]))}}),S4=Je(E4,[["__scopeId","data-v-71bb7e5f"]]),x4={class:"row p-0 mt-0 mb-1 m-0"},T4={class:"col p-0 m-0"},A4={class:"container-fluid p-0 m-0"},C4={class:"row p-0 m-0 d-flex justify-content-center align-items-center"},I4={key:0,class:"col time-display"},M4=je({__name:"ButtonBar",setup(t){return(e,r)=>(ae(),Ee("div",x4,[z("div",T4,[z("div",A4,[z("div",C4,[se(_e).showClock=="buttonbar"?(ae(),Ee("span",I4,ke(se(BS)(se(gg))),1)):Me("",!0),(ae(!0),Ee(Ye,null,ft(se(Ge),(n,s)=>(ae(),Re(S4,{key:s,chargepoint:n,"charge-point-count":Object.values(se(Ge)).length},null,8,["chargepoint","charge-point-count"]))),128))])])])]))}}),k4=Je(M4,[["__scopeId","data-v-791e4be0"]]),P4={class:"battery-title"},O4={class:"subgrid pt-1"},L4=je({__name:"BLBattery",props:{bat:{}},setup(t){const e=t,r=we(()=>e.bat.power<0?`Liefert (${Yr(-e.bat.power)})`:e.bat.power>0?`Lädt (${Yr(e.bat.power)})`:"Bereit"),n=we(()=>e.bat.power<0?"var(--color-pv)":e.bat.power>0?"var(--color-battery)":"var(--color-menu)");return(s,i)=>(ae(),Re(uo,{titlecolor:"var(--color-title)",fullwidth:!0},{title:Ie(()=>[z("span",P4,ke(s.bat.name),1)]),buttons:Ie(()=>[xe(un,{bgcolor:n.value},{default:Ie(()=>[st(ke(r.value),1)]),_:1},8,["bgcolor"])]),default:Ie(()=>[z("div",O4,[xe(mt,{heading:"Ladestand:",small:!0,class:"grid-left grid-col-4"},{default:Ie(()=>[xe(lf,{soc:e.bat.soc},null,8,["soc"])]),_:1}),xe(mt,{heading:"Geladen:",small:!0,class:"grid-col-4"},{default:Ie(()=>[xe(Wn,{"watt-h":e.bat.dailyYieldImport},null,8,["watt-h"])]),_:1}),xe(mt,{heading:"Geliefert:",small:!0,class:"grid-right grid-col-4"},{default:Ie(()=>[xe(Wn,{"watt-h":e.bat.dailyYieldExport},null,8,["watt-h"])]),_:1})])]),_:1}))}}),R4=Je(L4,[["__scopeId","data-v-f7f825f7"]]),B4={class:"subgrid grid-12"},$4={key:0,class:"subgrid"},N4=je({__name:"BatteryList",setup(t){const e=we(()=>ot.batOut.power>0?`Liefert (${Yr(ot.batOut.power)})`:tt.batIn.power>0?`Lädt (${Yr(tt.batIn.power)})`:"Bereit:"),r=we(()=>ot.batOut.power>0?"var(--color-pv)":tt.batIn.power>0?"var(--color-battery)":"var(--color-menu)"),n=we(()=>{let s=0;return kt.value.forEach(i=>{s+=i.dailyYieldImport}),s});return(s,i)=>se(Yt).isBatteryConfigured?(ae(),Re(Gn,{key:0,"variable-width":!0,"full-width":!1},{title:Ie(()=>i[0]||(i[0]=[z("span",{class:"fas fa-car-battery me-2",style:{color:"var(--color-battery)"}}," ",-1),z("span",null,"Speicher",-1)])),buttons:Ie(()=>[xe(un,{bgcolor:r.value},{default:Ie(()=>[st(ke(e.value),1)]),_:1},8,["bgcolor"])]),default:Ie(()=>[z("div",B4,[xe(mt,{heading:"Ladestand:",class:"grid-left grid-col-4"},{default:Ie(()=>[xe(lf,{color:"var(--color-battery)",soc:se(Yt).batterySoc},null,8,["soc"])]),_:1}),xe(mt,{heading:"Geladen:",class:"grid-col-4"},{default:Ie(()=>[z("span",null,ke(se(Mi)(n.value)),1)]),_:1}),xe(mt,{heading:"Geliefert",class:"grid-right grid-col-4"},{default:Ie(()=>[z("span",null,ke(se(Mi)(se(ot).batOut.energy)),1)]),_:1})]),se(kt).size>1?(ae(),Ee("div",$4,[(ae(!0),Ee(Ye,null,ft(se(kt),([a,o])=>(ae(),Re(R4,{key:a,bat:o,class:"px-0"},null,8,["bat"]))),128))])):Me("",!0)]),_:1})):Me("",!0)}}),Xd=Je(N4,[["__scopeId","data-v-c2a8727a"]]),D4={class:"devicename"},U4={class:"subgrid"},F4=je({__name:"SHListItem",props:{device:{}},setup(t){const e=t,r=we(()=>e.device.status=="on"?"fa-toggle-on fa-xl":e.device.status=="waiting"?"fa-spinner fa-spin":"fa-toggle-off fa-xl"),n=we(()=>{let o="var(--color-switchRed)";switch(e.device.status){case"on":o="var(--color-switchGreen)";break;case"detection":o="var(--color-switchBlue)";break;case"timeout":o="var(--color-switchWhite)";break;case"waiting":o="var(--color-menu)";break;default:o="var(--color-switchRed)"}return{color:o}});function s(){e.device.isAutomatic||(e.device.status=="on"?vr("shSwitchOn",0,e.device.id):vr("shSwitchOn",1,e.device.id),St.get(e.device.id).status="waiting")}function i(){e.device.isAutomatic?vr("shSetManual",1,e.device.id):vr("shSetManual",0,e.device.id)}const a=we(()=>e.device.isAutomatic?"Auto":"Man");return(o,l)=>(ae(),Re(uo,{titlecolor:o.device.color,fullwidth:!0},{title:Ie(()=>[z("span",D4,ke(o.device.name),1)]),buttons:Ie(()=>[(ae(!0),Ee(Ye,null,ft(o.device.temp,(u,c)=>(ae(),Ee("span",{key:c},[u<300?(ae(),Re(un,{key:0,bgcolor:"var(--color-battery)"},{default:Ie(()=>[z("span",null,ke(se(HB)(u)),1)]),_:2},1024)):Me("",!0)]))),128)),e.device.canSwitch?(ae(),Ee("span",{key:0,class:rt([r.value,"fa-solid statusbutton mr-2 ms-2"]),style:ht(n.value),onClick:s},null,6)):Me("",!0),e.device.canSwitch?(ae(),Re(un,{key:1,type:"button",onClick:i},{default:Ie(()=>[st(ke(a.value),1)]),_:1})):Me("",!0)]),default:Ie(()=>[z("div",U4,[xe(mt,{heading:"Leistung:",small:!0,class:"grid-col-4 grid-left"},{default:Ie(()=>[xe(Ll,{watt:o.device.power},null,8,["watt"])]),_:1}),xe(mt,{heading:"Energie:",small:!0,class:"grid-col-4"},{default:Ie(()=>[xe(Wn,{"watt-h":o.device.energy},null,8,["watt-h"])]),_:1}),xe(mt,{heading:"Laufzeit:",small:!0,class:"grid-col-4 grid-right"},{default:Ie(()=>[st(ke(se(WB)(o.device.runningTime)),1)]),_:1})])]),_:1},8,["titlecolor"]))}}),V4=Je(F4,[["__scopeId","data-v-20651ac6"]]),j4={class:"sh-title py-4"},W4=["id","onUpdate:modelValue","value"],z4=["for"],H4=3,q4=je({__name:"SmartHomeList",setup(t){const e=we(()=>jn.value?r.value.reduce((a,o)=>{const l=a;let u=a[a.length-1];return u.length>=H4?a.push([o]):u.push(o),l},[[]]):[r.value]),r=we(()=>[...St.values()].filter(a=>a.configured));function n(a){return"Geräte"+(jn.value&&e.value.length>1?"("+(a+1)+")":"")}function s(){i.value=!i.value}const i=ct(!1);return(a,o)=>(ae(),Ee(Ye,null,[(ae(!0),Ee(Ye,null,ft(e.value,(l,u)=>(ae(),Re(Gn,{key:u,"variable-width":!0},{title:Ie(()=>[z("span",{onClick:s},[o[0]||(o[0]=z("span",{class:"fas fa-plug me-2",style:{color:"var(--color-devices)"}}," ",-1)),z("span",j4,ke(n(u)),1)])]),buttons:Ie(()=>[z("span",{class:"ms-2 pt-1",onClick:s},o[1]||(o[1]=[z("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)]))]),default:Ie(()=>[(ae(!0),Ee(Ye,null,ft(l,c=>(ae(),Re(V4,{key:c.id,device:c,class:"subgrid pb-2"},null,8,["device"]))),128))]),_:2},1024))),128)),i.value?(ae(),Re(Gn,{key:0},{title:Ie(()=>[z("span",{class:"smarthome",onClick:s},o[2]||(o[2]=[z("span",{class:"fas fa-gear"}," ",-1),st(" Einstellungen")]))]),buttons:Ie(()=>[z("span",{class:"ms-2 pt-1",onClick:s},o[3]||(o[3]=[z("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]))]),default:Ie(()=>[xe(et,{title:"Im Energie-Graph anzeigen:",icon:"fa-chart-column",fullwidth:!0},{default:Ie(()=>[(ae(!0),Ee(Ye,null,ft(r.value,(l,u)=>(ae(),Ee("div",{key:u},[xl(z("input",{id:"check"+u,"onUpdate:modelValue":c=>l.showInGraph=c,class:"form-check-input",type:"checkbox",value:l},null,8,W4),[[M_,l.showInGraph]]),z("label",{class:"form-check-label px-2",for:"check"+u},ke(l.name),9,z4)]))),128))]),_:1}),z("div",{class:"row p-0 m-0",onClick:s},o[4]||(o[4]=[z("div",{class:"col-12 mb-3 pe-3 mt-0"},[z("button",{class:"btn btn-sm btn-secondary float-end"},"Schließen")],-1)]))]),_:1})):Me("",!0)],64))}}),Qd=Je(q4,[["__scopeId","data-v-5b5cf6b3"]]),G4={class:"countername"},Y4={class:"subgrid pt-1"},K4=je({__name:"ClCounter",props:{counter:{}},setup(t){const e=t,r=we(()=>e.counter.power>0?"Bezug":"Export"),n=we(()=>e.counter.power>0?"var(--color-evu)":"var(--color-pv)");return(s,i)=>(ae(),Re(uo,{titlecolor:"var(--color-title)",fullwidth:!0},{title:Ie(()=>[z("span",G4,ke(s.counter.name),1)]),buttons:Ie(()=>[e.counter.power!=0?(ae(),Re(un,{key:0,bgcolor:n.value},{default:Ie(()=>[st(ke(r.value),1)]),_:1},8,["bgcolor"])):Me("",!0),xe(un,{color:"var(--color-bg)"},{default:Ie(()=>[st(" ID: "+ke(e.counter.id),1)]),_:1})]),default:Ie(()=>[z("div",Y4,[xe(mt,{heading:"Leistung:",small:!0,class:"grid-left grid-col-4"},{default:Ie(()=>[xe(Ll,{watt:Math.abs(e.counter.power)},null,8,["watt"])]),_:1}),xe(mt,{heading:"Bezogen:",small:!0,class:"grid-col-4"},{default:Ie(()=>[xe(Wn,{"watt-h":e.counter.energy_imported},null,8,["watt-h"])]),_:1}),xe(mt,{heading:"Exportiert:",small:!0,class:"grid-right grid-col-4"},{default:Ie(()=>[xe(Wn,{"watt-h":e.counter.energy_exported},null,8,["watt-h"])]),_:1})])]),_:1}))}}),X4=Je(K4,[["__scopeId","data-v-01dd8c4d"]]);class Q4{constructor(e){ve(this,"id");ve(this,"name","Zähler");ve(this,"power",0);ve(this,"energy_imported",0);ve(this,"energy_exported",0);ve(this,"grid",!1);ve(this,"counterType","counter");ve(this,"type",pt.counter);ve(this,"color","var(--color-evu)");ve(this,"energy",0);ve(this,"energyPv",0);ve(this,"energyBat",0);ve(this,"pvPercentage",0);ve(this,"icon","");ve(this,"showInGraph",!0);this.id=e}}const Rr=Dt({});function J4(t,e){if(t in Rr)console.info("Duplicate counter message: "+t);else switch(Rr[t]=new Q4(t),Rr[t].counterType=e,e){case"counter":Rr[t].color="var(--color-evu)";break;case"inverter":Rr[t].color="var(--color-pv)";break;case"cp":Rr[t].color="var(--color-charging)";break;case"bat":Rr[t].color="var(--color-bat)";break}}const Z4=je({__name:"CounterList",setup(t){return(e,r)=>(ae(),Re(Gn,{"variable-width":!0},{title:Ie(()=>r[0]||(r[0]=[z("span",{class:"fas fa-bolt me-2",style:{color:"var(--color-evu)"}}," ",-1),z("span",null,"Zähler",-1)])),default:Ie(()=>[(ae(!0),Ee(Ye,null,ft(se(Rr),(n,s)=>(ae(),Ee("div",{key:s,class:"subgrid pb-2"},[xe(X4,{counter:n},null,8,["counter"])]))),128))]),_:1}))}}),Jd=Je(Z4,[["__scopeId","data-v-5f059284"]]),e6={class:"vehiclename"},t6={class:"subgrid"},r6=je({__name:"VlVehicle",props:{vehicle:{}},setup(t){const e=t,r=we(()=>{let s="Unterwegs",i=e.vehicle.chargepoint;return i!=null&&(i.isCharging?s="Lädt ("+i.name+")":i.isPluggedIn&&(s="Bereit ("+i.name+")")),s}),n=we(()=>{let s=e.vehicle.chargepoint;return s!=null?s.isLocked?"var(--color-evu)":s.isCharging?"var(--color-charging)":s.isPluggedIn?"var(--color-battery)":"var(--color-axis)":"var(--color-axis)"});return(s,i)=>(ae(),Re(uo,{titlecolor:"var(--color-title)",fullwidth:!0},{title:Ie(()=>[z("span",e6,ke(e.vehicle.name),1)]),default:Ie(()=>[z("div",t6,[xe(mt,{heading:"Status:",small:!0,class:"grid-left grid-col-4"},{default:Ie(()=>[z("span",{style:ht({color:n.value}),class:"d-flex justify-content-center align-items-center status-string"},ke(r.value),5)]),_:1}),xe(mt,{heading:"Ladestand:",small:!0,class:"grid-col-4"},{default:Ie(()=>[st(ke(Math.round(e.vehicle.soc))+" % ",1)]),_:1}),xe(mt,{heading:"Reichweite:",small:!0,class:"grid-right grid-col-4"},{default:Ie(()=>[st(ke(Math.round(e.vehicle.range))+" km ",1)]),_:1})])]),_:1}))}}),n6=Je(r6,[["__scopeId","data-v-9e2cb63e"]]),i6=je({__name:"VehicleList",setup(t){return(e,r)=>(ae(),Re(Gn,{"variable-width":!0},{title:Ie(()=>r[0]||(r[0]=[z("span",{class:"fas fa-car me-2",style:{color:"var(--color-charging)"}}," ",-1),z("span",null,"Fahrzeuge",-1)])),default:Ie(()=>[(ae(!0),Ee(Ye,null,ft(Object.values(se(dt)).filter(n=>n.visible),(n,s)=>(ae(),Ee("div",{key:s,class:"subgrid px-4"},[xe(n6,{vehicle:n},null,8,["vehicle"])]))),128))]),_:1}))}}),Zd=Je(i6,[["__scopeId","data-v-716be083"]]),s6={class:"grapharea"},o6={id:"pricechart",class:"p-1 m-0 pricefigure"},a6={viewBox:"0 0 400 280"},l6=["id","origin","transform"],Ba=380,$v=250,eh=12,u6=je({__name:"GlobalPriceChart",props:{id:{}},setup(t){const e=t,r=ct(!1),n={top:0,bottom:15,left:20,right:0},s=we(()=>{let v=[];return Pt.etPriceList.size>0&&Pt.etPriceList.forEach((w,_)=>{v.push([_,w])}),v}),i=we(()=>s.value.length>1?(Ba-n.left-n.right)/s.value.length:0),a=we(()=>{let v=Tn(s.value,w=>w[0]);return v[1]&&(v[1]=new Date(v[1]),v[1].setTime(v[1].getTime()+36e5)),Xs().range([n.left,Ba-n.right]).domain(v)}),o=we(()=>{let v=[0,0];return s.value.length>0&&(v=Tn(s.value,w=>w[1]),v[0]=Math.floor(v[0])-1,v[1]=Math.floor(v[1])+1),v}),l=we(()=>Xn().range([$v-n.bottom,0]).domain(o.value)),u=we(()=>{const v=Nn(),w=[[n.left,l.value(_e.lowerPriceBound)],[Ba-n.right,l.value(_e.lowerPriceBound)]];return v(w)}),c=we(()=>{const v=Nn(),w=[[n.left,l.value(_e.upperPriceBound)],[Ba-n.right,l.value(_e.upperPriceBound)]];return v(w)}),f=we(()=>{const v=Nn(),w=[[n.left,l.value(0)],[Ba-n.right,l.value(0)]];return v(w)}),d=we(()=>Za(a.value).ticks(s.value.length).tickSize(5).tickSizeInner(-250).tickFormat(v=>v.getHours()%6==0?rs("%H:%M")(v):"")),p=we(()=>Al(l.value).ticks(o.value[1]-o.value[0]).tickSize(0).tickSizeInner(-360).tickFormat(v=>v%5!=0?"":v.toString())),g=we(()=>{r.value==!0;const v=Ct("g#"+b.value);v.selectAll("*").remove(),v.selectAll("bar").data(s.value).enter().append("g").append("rect").attr("class","bar").attr("x",C=>a.value(C[0])).attr("y",C=>l.value(C[1])).attr("width",i.value).attr("height",C=>l.value(o.value[0])-l.value(C[1])).attr("fill","var(--color-charging)");const _=v.append("g").attr("class","axis").call(d.value);_.attr("transform","translate(0,"+($v-n.bottom)+")"),_.selectAll(".tick").attr("font-size",eh).attr("color","var(--color-bg)"),_.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",C=>C.getHours()%6==0?"2":"0.5"),_.select(".domain").attr("stroke","var(--color-bg");const y=v.append("g").attr("class","axis").call(p.value);y.attr("transform","translate("+n.left+",0)"),y.selectAll(".tick").attr("font-size",eh).attr("color","var(--color-bg)"),y.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",C=>C%5==0?"2":"0.5"),y.select(".domain").attr("stroke","var(--color-bg)"),o.value[0]<0&&v.append("path").attr("d",f.value).attr("stroke","var(--color-fg)"),v.append("path").attr("d",u.value).attr("stroke","green"),v.append("path").attr("d",c.value).attr("stroke","red");const x=v.selectAll("ttip").data(s.value).enter().append("g").attr("class","ttarea");x.append("rect").attr("x",C=>a.value(C[0])).attr("y",C=>l.value(C[1])).attr("height",C=>l.value(o.value[0])-l.value(C[1])).attr("class","ttrect").attr("width",i.value).attr("opacity","1%").attr("fill","var(--color-charging)");const T=x.append("g").attr("class","ttmessage").attr("transform",C=>"translate("+(a.value(C[0])-30+i.value/2)+","+(l.value(C[1])-16)+")");T.append("rect").attr("rx",5).attr("width","60").attr("height","30").attr("fill","var(--color-menu)");const A=T.append("text").attr("text-anchor","middle").attr("x",30).attr("y",12).attr("font-size",eh).attr("fill","var(--color-bg)");return A.append("tspan").attr("x",30).attr("dy","0em").text(C=>rs("%H:%M")(C[0])),A.append("tspan").attr("x",30).attr("dy","1.1em").text(C=>Math.round(C[1]*10)/10+" ct"),"PriceChart.vue"}),b=we(()=>"priceChartCanvas"+e.id);return dn(()=>{r.value=!r.value}),(v,w)=>(ae(),Re(Gn,{"variable-width":!0},{title:Ie(()=>w[0]||(w[0]=[z("span",{class:"fas fa-coins me-2",style:{color:"var(--color-battery)"}}," ",-1),z("span",null,"Strompreis",-1)])),buttons:Ie(()=>[se(Pt).active?(ae(),Re(un,{key:0,bgcolor:"var(--color-charging)"},{default:Ie(()=>[st(ke(se(Pt).etCurrentPriceString),1)]),_:1})):Me("",!0),se(Pt).active?(ae(),Re(un,{key:1,bgcolor:"var(--color-menu)"},{default:Ie(()=>[st(ke(se(Pt).etProvider),1)]),_:1})):Me("",!0)]),default:Ie(()=>[z("div",s6,[z("figure",o6,[(ae(),Ee("svg",a6,[z("g",{id:b.value,origin:g.value,transform:"translate("+n.top+","+n.left+") "},null,8,l6)]))])])]),_:1}))}}),th=Je(u6,[["__scopeId","data-v-578b98b5"]]),c6={class:"subgrid pt-1"},f6=je({__name:"IlInverter",props:{inverter:{}},setup(t){const e=t,r=we(()=>({color:e.inverter.color}));return(n,s)=>(ae(),Re(uo,{titlecolor:"var(--color-title)",fullwidth:!0},{title:Ie(()=>[z("span",{class:"invertername",style:ht(r.value)},ke(n.inverter.name),5)]),buttons:Ie(()=>[e.inverter.power<0?(ae(),Re(un,{key:0,bgcolor:"var(--color-pv)"},{default:Ie(()=>[st(ke(se(Yr)(-e.inverter.power)),1)]),_:1})):Me("",!0)]),default:Ie(()=>[z("div",c6,[xe(mt,{heading:"Heute:",small:!0,class:"grid-col-4 grid-left"},{default:Ie(()=>[xe(Wn,{"watt-h":e.inverter.energy},null,8,["watt-h"])]),_:1}),xe(mt,{heading:"Monat:",small:!0,class:"grid-col-4"},{default:Ie(()=>[xe(Wn,{"watt-h":e.inverter.energy_month},null,8,["watt-h"])]),_:1}),xe(mt,{heading:"Jahr:",small:!0,class:"grid-right grid-col-4"},{default:Ie(()=>[xe(Wn,{"watt-h":e.inverter.energy_year},null,8,["watt-h"])]),_:1})])]),_:1}))}}),d6=Je(f6,[["__scopeId","data-v-258d8f17"]]),h6=je({__name:"InverterList",setup(t){const e=we(()=>[...ar.value.values()].sort((r,n)=>r.id-n.id));return(r,n)=>(ae(),Re(Gn,{"variable-width":!0},{title:Ie(()=>n[0]||(n[0]=[z("span",{class:"fas fa-solar-panel me-2",style:{color:"var(--color-pv)"}}," ",-1),z("span",null,"Wechselrichter",-1)])),buttons:Ie(()=>[se(ot).pv.power>0?(ae(),Re(un,{key:0,bgcolor:"var(--color-pv)"},{default:Ie(()=>[st(ke(se(Yr)(se(ot).pv.power)),1)]),_:1})):Me("",!0)]),default:Ie(()=>[(ae(!0),Ee(Ye,null,ft(e.value,s=>(ae(),Ee("div",{key:s.id,class:"subgrid pb-2"},[xe(d6,{inverter:s},null,8,["inverter"])]))),128))]),_:1}))}}),rh=Je(h6,[["__scopeId","data-v-8a9444cf"]]),p6={class:"row py-0 px-0 m-0"},g6=["breakpoints"],m6=je({__name:"CarouselFix",setup(t){let e,r;const n=ct(!1),s=we(()=>n.value?{992:{slidesPerView:1,spaceBetween:0}}:{992:{slidesPerView:3,spaceBetween:0}});return Su(()=>_e.zoomGraph,i=>{if(e){let a=i?"1":"3";r.setAttribute("slides-per-view",a),e.activeIndex=_e.zoomedWidget,e.update()}}),dn(()=>{let i=document.querySelector(".swiper-carousel");i&&(r=i,e=r.swiper)}),(i,a)=>(ae(),Ee("div",p6,[z("swiper-container",{"space-between":0,pagination:{clickable:!0},"slides-per-view":"1",class:"p-0 m-0 swiper-carousel",breakpoints:s.value},[z("swiper-slide",null,[z("div",{class:rt([se(jn)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[Gt(i.$slots,"item1",{},void 0,!0)],2)]),z("swiper-slide",null,[z("div",{class:rt([se(jn)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[Gt(i.$slots,"item2",{},void 0,!0)],2)]),z("swiper-slide",null,[z("div",{class:rt([se(jn)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[Gt(i.$slots,"item3",{},void 0,!0)],2)])],8,g6)]))}}),b6=Je(m6,[["__scopeId","data-v-17424929"]]);function y6(t,e){t=="openWB/graph/boolDisplayLiveGraph"?Yt.displayLiveGraph=+e==1:t.match(/^openwb\/graph\/alllivevaluesJson[1-9][0-9]*$/i)?w6(t,e):t=="openWB/graph/lastlivevaluesJson"?v6(t,e):t=="openWB/graph/config/duration"&&(Jt.duration=JSON.parse(e))}function w6(t,e){if(!Jt.initialized){let r=[];const n=e.toString().split(` +`);n.length>1?r=n.map(a=>JSON.parse(a)):r=[];const s=t.match(/(\d+)$/g),i=s?s[0]:"";i!=""&&typeof Jt.rawDataPacks[+i-1]>"u"&&(Jt.rawDataPacks[+i-1]=r,Jt.initCounter++)}if(Jt.initCounter==16){const r=[];Jt.unsubscribeRefresh(),Jt.initialized=!0,Jt.rawDataPacks.forEach(n=>{n.forEach(s=>{const i=qS(s);r.push(i)})}),Ol(r),Jt.subscribeUpdates()}}function v6(t,e){const r=JSON.parse(e),n=qS(r);Jt.graphRefreshCounter++,Ol(Ae.data.concat(n)),Jt.graphRefreshCounter>60&&Jt.activate()}function qS(t){const e=Object.values(Ge).length>0?Object.values(Ge)[0].connectedVehicle:0,r=Object.values(Ge).length>1?Object.values(Ge)[1].connectedVehicle:1,n="ev"+e+"-soc",s="ev"+r+"-soc",i=/cp(\d+)-power/,a={};return a.date=+t.timestamp*1e3,+t.grid>0?(a.evuIn=+t.grid,a.evuOut=0):+t.grid<=0?(a.evuIn=0,a.evuOut=-t.grid):(a.evuIn=0,a.evuOut=0),+t["pv-all"]>=0?(a.pv=+t["pv-all"],a.inverter=0):(a.pv=0,a.inverter=-t["pv-all"]),a.house=+t["house-power"],+t["bat-all-power"]>0?(a.batOut=0,a.batIn=+t["bat-all-power"]):+t["bat-all-power"]<0?(a.batOut=-t["bat-all-power"],a.batIn=0):(a.batOut=0,a.batIn=0),t["bat-all-soc"]?a.batSoc=+t["bat-all-soc"]:a.batSoc=0,t[n]&&(a["soc"+e]=+t[n]),t[s]&&(a["soc"+r]=+t[s]),a.charging=+t["charging-all"],Object.keys(t).filter(o=>i.test(o)).forEach(o=>{const l=o.match(i);l&&l[1]&&(a["cp"+l[1]]=+(t[o]??0))}),a.selfUsage=a.pv-a.evuOut,a.selfUsage<0&&(a.selfUsage=0),a.devices=0,a}const _6=["evuIn","pv","batOut","evuOut","charging","house"];let Cc=[];function E6(t,e){const{entries:r,names:n,totals:s}=JSON.parse(e);li.value=new Map(Object.entries(n)),Fm(),Cc=[],Bm.forEach(a=>{qe.setEnergyPv(a,0),qe.setEnergyBat(a,0)});const i=S6(r);Ol(i),$m(s,Cc),_e.debug&&T6(r,s,i),Ae.graphMode=="today"&&setTimeout(()=>Ht.activate(),3e5)}function S6(t){const e=[];let r={};return t.forEach(n=>{r=x6(n);const s=r;e.push(s)}),e}function x6(t){const e={};e.date=t.timestamp*1e3,e.evuOut=0,e.evuIn=0,Object.entries(t.counter).forEach(([s,i])=>{i.grid&&(e.evuOut+=i.power_exported,e.evuIn+=i.power_imported,Cc.includes(s)||Cc.push(s))}),e.evuOut==0&&e.evuIn==0&&Object.entries(t.counter).forEach(s=>{e.evuOut+=s[1].power_exported,e.evuIn+=s[1].power_imported}),Object.entries(t.pv).forEach(([s,i])=>{s!="all"?e[s]=i.power_exported:e.pv=i.power_exported}),Object.entries(t.bat).length>0?(e.batIn=t.bat.all.power_imported,e.batOut=t.bat.all.power_exported,e.batSoc=t.bat.all.soc??0):(e.batIn=0,e.batOut=0,e.batSoc=0),Object.entries(t.cp).forEach(([s,i])=>{s!="all"?(e[s]=i.power_imported,qe.keys().includes(s)||qe.addItem(s)):e.charging=i.power_imported}),Object.entries(t.ev).forEach(([s,i])=>{s!="all"&&(e["soc"+s.substring(2)]=i.soc)}),e.devices=0;let r=0;return Object.entries(t.sh).forEach(([s,i])=>{var a;s!="all"&&(e[s]=i.power_imported??0,qe.keys().includes(s)||(qe.addItem(s),qe.items[s].showInGraph=St.get(+s.slice(2)).showInGraph),(a=St.get(+s.slice(2)))!=null&&a.countAsHouse?r+=e[s]:e.devices+=i.power_imported??0)}),e.selfUsage=Math.max(0,e.pv-e.evuOut),t.hc&&t.hc.all?e.house=t.hc.all.power_imported-r:e.house=e.evuIn+e.batOut+e.pv-e.evuOut-e.charging-e.devices-e.batOut,e.evuIn+e.batOut+e.pv>0?qe.keys().filter(s=>!_6.includes(s)&&s!="charging").forEach(s=>{AB(s,e)}):Object.keys(e).forEach(s=>{e[s+"Pv"]=0,e[s+"Bat"]=0}),e}function T6(t,e,r){console.debug("---------------------------------------- Graph Data -"),console.debug(["--- Incoming graph data:",t]),console.debug(["--- Incoming energy data:",e]),console.debug(["--- Data to be displayed:",r]),console.debug("-----------------------------------------------------")}let du={};const Wm=["charging","house","batIn","devices"],A6=["evuIn","pv","batOut","batIn","evuOut","devices","sh1","sh2","sh3","sh4","sh5","sh6","sh7","sh8","sh9"];let zs=[];function C6(t,e){const{entries:r,names:n,totals:s}=JSON.parse(e);li.value=new Map(Object.entries(n)),Fm(),zs=[],Wm.forEach(i=>{qe.items[i].energyPv=0,qe.items[i].energyBat=0}),r.length>0&&Ol(GS(r)),$m(s,zs)}function I6(t,e){const{entries:r,names:n,totals:s}=JSON.parse(e);li.value=new Map(Object.entries(n)),Fm(),zs=[],Wm.forEach(i=>{qe.items[i].energyPv=0,qe.items[i].energyBat=0}),r.length>0&&Ol(GS(r)),$m(s,zs)}function GS(t){const e=[];let r={};return du={},t.forEach(n=>{r=M6(n),e.push(r),Object.keys(r).forEach(s=>{s!="date"&&(r[s]<0&&(console.warn(`Negative energy value for ${s} in row ${r.date}. Ignoring the value.`),r[s]=0),du[s]?du[s]+=r[s]:du[s]=r[s])})}),e}function M6(t){const e={},r=m1("%Y%m%d")(t.date);r&&(e.date=Ae.graphMode=="month"?r.getDate():r.getMonth()+1),e.evuOut=0,e.evuIn=0;let n=0,s=0;return Object.entries(t.counter).forEach(([a,o])=>{n+=o.energy_exported,s+=o.energy_imported,o.grid&&(e.evuOut+=o.energy_exported,e.evuIn+=o.energy_imported,zs.includes(a)||zs.push(a))}),zs.length==0&&(e.evuOut=n,e.evuIn=s),e.pv=t.pv.all.energy_exported,Object.entries(t.bat).length>0?(t.bat.all.energy_imported>=0?e.batIn=t.bat.all.energy_imported:(console.warn("ignoring negative value for batIn on day "+e.date),e.batIn=0),t.bat.all.energy_exported>=0?e.batOut=t.bat.all.energy_exported:(console.warn("ignoring negative value for batOut on day "+e.date),e.batOut=0)):(e.batIn=0,e.batOut=0),Object.entries(t.cp).forEach(([a,o])=>{a!="all"?(qe.keys().includes(a)||qe.addItem(a),e[a]=o.energy_imported):e.charging=o.energy_imported}),Object.entries(t.ev).forEach(([a,o])=>{a!="all"&&(e["soc-"+a]=o.soc)}),e.devices=Object.entries(t.sh).reduce((a,o)=>(qe.keys().includes(o[0])||qe.addItem(o[0]),o[1].energy_imported>=0?a+=o[1].energy_imported:console.warn(`Negative energy value for device ${o[0]} in row ${e.date}. Ignoring this value`),a),0),t.hc&&t.hc.all?e.house=t.hc.all.energy_imported:e.house=e.pv+e.evuIn+e.batOut-e.evuOut-e.batIn-e.charging,e.selfUsage=e.pv-e.evuOut,e.evuIn+e.batOut+e.pv>0?qe.keys().filter(a=>!A6.includes(a)).forEach(a=>{CB(a,e)}):Wm.map(a=>{e[a+"Pv"]=0,e[a+"Bat"]=0}),e}function k6(t,e){const r=P6(t);if(r&&!kt.value.has(r)){console.warn("Invalid battery index: ",r);return}t=="openWB/bat/config/configured"?Yt.isBatteryConfigured=e=="true":t=="openWB/bat/get/power"?+e>0?(tt.batIn.power=+e,ot.batOut.power=0):(tt.batIn.power=0,ot.batOut.power=-e):t=="openWB/bat/get/soc"?Yt.batterySoc=+e:t=="openWB/bat/get/daily_exported"?ot.batOut.energy=+e:t=="openWB/bat/get/daily_imported"?tt.batIn.energy=+e:r&&kt.value.has(r)&&(t.match(/^openwb\/bat\/[0-9]+\/get\/daily_exported$/i)?kt.value.get(r).dailyYieldExport=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/daily_imported$/i)?kt.value.get(r).dailyYieldImport=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/exported$/i)?kt.value.get(r).exported=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/fault_state$/i)?kt.value.get(r).faultState=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/fault_str$/i)?kt.value.get(r).faultStr=e:t.match(/^openwb\/bat\/[0-9]+\/get\/imported$/i)?kt.value.get(r).imported=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/power$/i)?kt.value.get(r).power=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/soc$/i)&&(kt.value.get(r).soc=+e))}function P6(t){let e=0;try{const r=t.match(/(?:\/)([0-9]+)(?=\/)/g);return r?(e=+r[0].replace(/[^0-9]+/g,""),e):void 0}catch(r){console.warn("Parser error in getIndex for topic "+t+": "+r)}}function O6(t,e){if(t=="openWB/optional/et/provider")JSON.parse(e).type==null?Pt.active=!1:(Pt.active=!0,Pt.etProvider=JSON.parse(e).name);else if(t=="openWB/optional/et/get/prices"){const r=JSON.parse(e);Pt.etPriceList=new Map,Object.keys(r).forEach(n=>{Pt.etPriceList.set(new Date(+n*1e3),r[n]*1e5)})}}function L6(t,e){const r=YS(t);if(r&&!(r in Ge)){console.warn("Invalid chargepoint id received: "+r);return}if(t=="openWB/chargepoint/get/power"?tt.charging.power=+e:t=="openWB/chargepoint/get/daily_imported"&&(tt.charging.energy=+e),t=="openWB/chargepoint/get/daily_exported")Yt.cpDailyExported=+e;else if(r)if(t.match(/^openwb\/chargepoint\/[0-9]+\/config$/i))if(Ge[r]){const n=JSON.parse(e);Ge[r].name=n.name,Ge[r].icon=n.name,Vt["cp"+r]?(Vt["cp"+r].name=n.name,Vt["cp"+r].icon=n.name):Vt["cp"+r]={name:n.name,icon:n.name,color:"var(--color-charging)"}}else console.warn("invalid chargepoint index: "+r);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/state_str$/i))Ge[r].stateStr=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_str$/i))Ge[r].faultStr=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_state$/i))Ge[r].faultState=+e;else if(t.match(/^openWB\/chargepoint\/[0-9]+\/get\/power$/i))Ge[r].power=+e;else if(t.match(/^openWB\/chargepoint\/[0-9]+\/get\/daily_imported$/i))Ge[r].dailyYield=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/plug_state$/i))Ge[r].isPluggedIn=e=="true";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/charge_state$/i))Ge[r].isCharging=e=="true";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/manual_lock$/i))Ge[r].updateIsLocked(e=="true");else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/enabled$/i))Ge[r].isEnabled=e=="1";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/phases_in_use/i))Ge[r].phasesInUse=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/current/i))Ge[r].current=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/currents/i))Ge[r].currents=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/log/i)){const n=JSON.parse(e);Ge[r].chargedSincePlugged=n.imported_since_plugged}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/soc$/i)){const n=JSON.parse(e);Ge[r].soc=n.soc,Ge[r].waitingForSoc=!1,Ge[r].rangeCharged=n.range_charged,Ge[r].rangeUnit=n.range_unit}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/info$/i)){const n=JSON.parse(e);Ge[r].vehicleName=String(n.name),Ge[r].updateConnectedVehicle(+n.id)}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/config$/i)){const n=JSON.parse(e);Ge[r].averageConsumption=n.average_consumption}else t.match(/^openwb\/chargepoint\/[0-9]+\/set\/charge_template$/i)&&(Ge[r].chargeTemplate=JSON.parse(e))}function R6(t,e){const r=YS(t);if(r!=null){if(!(r in dt)){const n=new wB(r);dt[r]=n}if(t.match(/^openwb\/vehicle\/[0-9]+\/name$/i))Object.values(Ge).forEach(n=>{n.connectedVehicle==r&&(n.vehicleName=JSON.parse(e))}),dt[r].name=JSON.parse(e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/get\/soc$/i))dt[r].soc=JSON.parse(e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/get\/range$/i))isNaN(+e)?dt[r].range=0:dt[r].range=+e;else if(t.match(/^openwb\/vehicle\/[0-9]+\/charge_template$/i))dt[r].updateChargeTemplateId(+e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/ev_template$/i))dt[r].updateEvTemplateId(+e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/soc_module\/config$/i)){const n=JSON.parse(e);Object.values(Ge).forEach(s=>{s.connectedVehicle==r&&(s.isSocConfigured=n.type!==null,s.isSocManual=n.type=="manual")}),dt[r].isSocConfigured=n.type!==null,dt[r].isSocManual=n.type=="manual"}}}function B6(t,e){if(t.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+$/i)){const r=t.match(/[0-9]+$/i);if(r){const n=+r[0];pg[n]=JSON.parse(e)}}else if(t.match(/^openwb\/vehicle\/template\/ev_template\/[0-9]+$/i)){const r=t.match(/[0-9]+$/i);if(r){const n=+r[0],s=JSON.parse(e);vB[n]=s}}}function YS(t){let e=0;try{const r=t.match(/(?:\/)([0-9]+)(?=\/)/g);return r?(e=+r[0].replace(/[^0-9]+/g,""),e):void 0}catch(r){console.warn("Parser error in getIndex for topic "+t+": "+r)}}function $6(t,e){t.match(/^openWB\/LegacySmarthome\/config\//i)?N6(t,e):t.match(/^openWB\/LegacySmarthome\/Devices\//i)&&D6(t,e)}function N6(t,e){const r=KS(t);if(r==null)return;St.has(r)||mm(r);const n=St.get(r);t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_configured$/i)?(n.configured=e!="0",_g("power"),_g("energy")):t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_name$/i)?(n.name=e.toString(),n.icon=e.toString(),Vt["sh"+r].name=e.toString(),Vt["sh"+r].icon=e.toString()):t.match(/^openWB\/LegacySmarthome\/config\/set\/Devices\/[0-9]+\/mode$/i)?n.isAutomatic=e=="0":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_canSwitch$/i)?n.canSwitch=e=="1":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_homeConsumtion$/i)?n.countAsHouse=e=="1":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_temperatur_configured$/i)&&(n.tempConfigured=+e)}function D6(t,e){const r=KS(t);if(r==null){console.warn("Smarthome: Missing index in "+t);return}St.has(r)||mm(r);const n=St.get(r);if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Watt$/i))n.power=+e,_g("power");else if(!t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Wh$/i)){if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/RunningTimeToday$/i))n.runningTime=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor0$/i))n.temp[0]=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor1$/i))n.temp[1]=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor2$/i))n.temp[2]=+e;else if(t.match(/^openWB\/LegacySmartHome\/Devices\/[0-9]+\/Status$/i))switch(+e){case 10:n.status="off";break;case 11:n.status="on";break;case 20:n.status="detection";break;case 30:n.status="timeout";break;default:n.status="off"}}}function _g(t){switch(t){case"power":tt.devices.power=[...St.values()].filter(e=>e.configured&&!e.countAsHouse).reduce((e,r)=>e+r.power,0);break;case"energy":tt.devices.energy=[...St.values()].filter(e=>e.configured&&!e.countAsHouse).reduce((e,r)=>e+r.energy,0);break;default:console.error("Unknown category")}}function KS(t){let e=0;try{const r=t.match(/(?:\/)([0-9]+)(?=\/)/g);return r?(e=+r[0].replace(/[^0-9]+/g,""),e):void 0}catch(r){console.warn("Parser error in getIndex for topic "+t+": "+r)}}const Ic=Dt([]);let U6=class XS{constructor(e,r,n,s){ve(this,"name");ve(this,"children");ve(this,"count");ve(this,"lastValue");this.name=e,this.children=r,this.count=n,this.lastValue=s}insert(e,r){if(e.length){const n=e.splice(1);if(e[0]==this.name)if(n.length){let s=!1;if(this.children.forEach(i=>{i.name==n[0]&&(i.insert(n,r),s=!0)}),!s){const i=new XS(n[0],[],0,"");i.insert(n,r),this.children.push(i)}}else this.count=this.count+1,this.lastValue=r}}};function F6(t,e){const r=t.split("/");if(r.length){let n=!1;if(Ic.forEach(s=>{s.name==r[0]&&(s.insert(r,e),n=!0)}),!n){const s=new U6(r[0],[],0,"");Ic.push(s),s.insert(r,e)}}}const V6=["openWB/counter/#","openWB/bat/#","openWB/pv/#","openWB/chargepoint/#","openWB/vehicle/#","openWB/general/chargemode_config/pv_charging/#","openWB/optional/et/#","openWB/system/#","openWB/LegacySmartHome/#","openWB/command/"+Om()+"/#"];function j6(){mB(W6),V6.forEach(t=>{js(t)}),nr()}function W6(t,e){F6(t,e.toString());const r=e.toString();t.match(/^openwb\/counter\/[0-9]+\//i)?z6(t,r):t.match(/^openwb\/counter\//i)?H6(t,r):t.match(/^openwb\/bat\//i)?k6(t,r):t.match(/^openwb\/pv\//i)?q6(t,r):t.match(/^openwb\/chargepoint\//i)?L6(t,r):t.match(/^openwb\/vehicle\/template\//i)?B6(t,r):t.match(/^openwb\/vehicle\//i)?R6(t,r):t.match(/^openwb\/general\/chargemode_config\/pv_charging\//i)?G6(t,r):t.match(/^openwb\/graph\//i)?y6(t,r):t.match(/^openwb\/log\/daily\//i)?E6(t,r):t.match(/^openwb\/log\/monthly\//i)?C6(t,r):t.match(/^openwb\/log\/yearly\//i)?I6(t,r):t.match(/^openwb\/optional\/et\//i)?O6(t,r):t.match(/^openwb\/system\//i)?K6(t,r):t.match(/^openwb\/LegacySmartHome\//i)?$6(t,r):t.match(/^openwb\/command\//i)&&X6(t,r)}function z6(t,e){const r=t.split("/"),n=+r[2];if(n==Yt.evuId?Y6(t,e):r[3]=="config",r[3]=="get"&&n in Rr)switch(r[4]){case"power":Rr[n].power=+e;break;case"config":break;case"fault_str":break;case"fault_state":break;case"power_factors":break;case"imported":break;case"exported":break;case"frequency":break;case"daily_imported":Rr[n].energy_imported=+e;break;case"daily_exported":Rr[n].energy_exported=+e;break}}function H6(t,e){if(t.match(/^openwb\/counter\/get\/hierarchy$/i)){const r=JSON.parse(e);if(r.length){EB(),jB();for(const n of r)n.type=="counter"&&(Yt.evuId=n.id);QS(r[0])}}else t.match(/^openwb\/counter\/set\/home_consumption$/i)?tt.house.power=+e:t.match(/^openwb\/counter\/set\/daily_yield_home_consumption$/i)&&(tt.house.energy=+e)}function QS(t){switch(t.type){case"counter":J4(t.id,t.type);break;case"cp":_B(t.id);break;case"bat":RS(t.id);break;case"inverter":DB(t.id);break}t.children.forEach(e=>QS(e))}function q6(t,e){const r=Q6(t);r&&!ar.value.has(r)?console.warn("Invalid PV system index: "+r):t=="openWB/pv/get/power"?ot.pv.power=-e:t=="openWB/pv/get/daily_exported"?ot.pv.energy=+e:t.match(/^openWB\/pv\/[0-9]+\/get\/power$/i)?ar.value.get(r).power=+e:t.match(/^openWB\/pv\/[0-9]+\/get\/daily_exported$/i)?ar.value.get(r).energy=+e:t.match(/^openWB\/pv\/[0-9]+\/get\/monthly_exported$/i)?ar.value.get(r).energy_month=+e:t.match(/^openWB\/pv\/[0-9]+\/get\/yearly_exported$/i)?ar.value.get(r).energy_year=+e:t.match(/^openWB\/pv\/[0-9]+\/get\/exported$/i)&&(ar.value.get(r).energy_total=+e)}function G6(t,e){const r=t.split("/");if(r.length>0)switch(r[4]){case"bat_mode":Yt.updatePvBatteryPriority(JSON.parse(e));break}}function Y6(t,e){switch(t.split("/")[4]){case"power":+e>0?(ot.evuIn.power=+e,tt.evuOut.power=0):(ot.evuIn.power=0,tt.evuOut.power=-e);break;case"daily_imported":ot.evuIn.energy=+e;break;case"daily_exported":tt.evuOut.energy=+e;break}}function K6(t,e){if(t.match(/^openWB\/system\/device\/[0-9]+\/component\/[0-9]+\/config$/i)){const r=JSON.parse(e);switch(r.type){case"counter":case"consumption_counter":Rr[r.id]&&(Rr[r.id].name=r.name);break;case"inverter":case"inverter_secondary":ar.value.has(r.id)||ar.value.set(r.id,new S1(r.id)),ar.value.get(r.id).name=r.name;break;case"bat":kt.value.has(r.id)||RS(r.id),kt.value.get(r.id).name=r.name}}}function X6(t,e){const r=t.split("/");if(t.match(/^openWB\/command\/[a-z]+\/error$/i)&&r[2]==Om()){const n=JSON.parse(e);console.error(`Error message from openWB: +Command: ${n.command} +Data: JSON.stringify(err.data) +Error: + ${n.error}`)}}function Q6(t){let e=0;try{const r=t.match(/(?:\/)([0-9]+)(?=\/)/g);return r?(e=+r[0].replace(/[^0-9]+/g,""),e):void 0}catch(r){console.warn("Parser error in getIndex for topic "+t+": "+r)}}const J6={key:0,class:"fas fa-caret-down"},Z6={key:1,class:"fas fa-caret-right"},eV={key:0,class:"content p-2 m-2"},tV={key:1,class:"sublist col-md-9 m-0 p-0 ps-2"},rV=je({__name:"MqttNode",props:{node:{},level:{},hide:{type:Boolean},expandAll:{type:Boolean}},setup(t){const e=t;let r=ct(!e.hide),n=ct(!1);const s=we(()=>e.node.name),i=we(()=>[...e.node.children].sort((c,f)=>c.namee.node.count>0?"("+e.node.count+")":""),o=we(()=>e.node.children.length),l=we(()=>e.node.lastValue!=""?{"font-style":"italic","grid-column-start":e.level,"grid-column-end":-1}:{"grid-column-start":e.level,"grid-column-end":-1});function u(){o.value>0&&(r.value=!r.value),e.node.lastValue!=""&&(n.value=!n.value)}return(c,f)=>{const d=uA("MqttNode",!0);return ae(),Ee(Ye,null,[z("div",{class:"name py-2 px-2 m-0",style:ht(l.value),onClick:u},[(se(r)||e.expandAll)&&o.value>0||se(n)?(ae(),Ee("span",J6)):(ae(),Ee("span",Z6)),st(" "+ke(s.value)+ke(a.value),1)],4),se(n)?(ae(),Ee("div",eV,[z("code",null,ke(e.node.lastValue),1)])):Me("",!0),(se(r)||e.expandAll)&&o.value>0?(ae(),Ee("div",tV,[(ae(!0),Ee(Ye,null,ft(i.value,(p,g)=>(ae(),Re(d,{key:g,level:e.level+1,node:p,hide:!0,"expand-all":e.expandAll},null,8,["level","node","expand-all"]))),128))])):Me("",!0)],64)}}}),nV=Je(rV,[["__scopeId","data-v-df7e578a"]]),iV={class:"mqviewer"},sV={class:"row pt-2"},oV={class:"col"},aV={key:0,class:"topiclist"},lV=je({__name:"MQTTViewer",setup(t){dn(()=>{});const e=ct(!1);function r(){e.value=!e.value}const n=we(()=>e.value?"active":"");return(s,i)=>(ae(),Ee("div",iV,[z("div",sV,[z("div",oV,[i[0]||(i[0]=z("h3",{class:"mqtitle ps-2"},"MQTT Message Viewer",-1)),i[1]||(i[1]=z("hr",null,null,-1)),z("button",{class:rt(["btn btn-small btn-outline-primary ms-2",n.value]),onClick:r}," Expand All ",2),i[2]||(i[2]=z("hr",null,null,-1))])]),se(Ic)[0]?(ae(),Ee("div",aV,[(ae(!0),Ee(Ye,null,ft(se(Ic)[0].children.sort((a,o)=>a.name(ae(),Re(nV,{key:o,node:a,level:1,hide:!0,"expand-all":e.value},null,8,["node","expand-all"]))),128))])):Me("",!0)]))}}),uV=Je(lV,[["__scopeId","data-v-a349646d"]]),cV=["value"],fV=je({__name:"SelectInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,s=we({get(){return r.modelValue},set(i){n("update:modelValue",i)}});return(i,a)=>xl((ae(),Ee("select",{id:"selectme","onUpdate:modelValue":a[0]||(a[0]=o=>s.value=o),class:"form-select"},[(ae(!0),Ee(Ye,null,ft(i.options,(o,l)=>(ae(),Ee("option",{key:l,value:o[1]},ke(o[0]),9,cV))),128))],512)),[[TC,s.value]])}}),dV=Je(fV,[["__scopeId","data-v-5e33ce1f"]]),hV={class:"subgrid m-0 p-0"},pV={class:"settingscolumn"},gV={class:"settingscolumn"},mV={class:"settingscolumn"},bV=je({__name:"ThemeSettings",emits:["reset-arcs"],setup(t,{emit:e}){const r=e,n=[["Dunkel","dark"],["Hell","light"],["Blau","blue"]],s=[["3 kW","0"],["3,1 kW","1"],["3,14 kW","2"],["3,141 kW","3"],["3141 W","4"]],i=[["Orange","normal"],["Grün/Violett","standard"],["Bunt","advanced"]],a=[["Aus","off"],["Menü","navbar"],["Buttonleiste","buttonbar"]],o=[["Aus","no"],['"Alles"-Reiter',"infoview"],["Immer","always"]];return(l,u)=>(ae(),Re(Gn,{"full-width":!0},{title:Ie(()=>u[23]||(u[23]=[st(" Look & Feel ")])),buttons:Ie(()=>u[24]||(u[24]=[z("span",{type:"button",class:"float-end mt-0 ms-1","data-bs-toggle":"collapse","data-bs-target":"#themesettings"},[z("span",null,[z("i",{class:"fa-solid fa-circle-check"})])],-1)])),default:Ie(()=>[z("div",hV,[z("div",pV,[xe(et,{fullwidth:!0,title:"Farbschema",icon:"fa-adjust",infotext:"Hintergrundfarbe"},{default:Ie(()=>[xe(Ir,{modelValue:se(_e).displayMode,"onUpdate:modelValue":u[0]||(u[0]=c=>se(_e).displayMode=c),options:n},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Farbschema Smart-Home-Geräte",icon:"fa-palette",infotext:"Für die Smart-Home-Geräte stehen mehrere Schemata zur Verfügung."},{default:Ie(()=>[xe(Ir,{modelValue:se(_e).smartHomeColors,"onUpdate:modelValue":u[1]||(u[1]=c=>se(_e).smartHomeColors=c),options:i},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Grafik: Raster",icon:"fa-th",infotext:"Verwende ein Hintergrundraster in den Grafiken"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showGrid,"onUpdate:modelValue":u[2]||(u[2]=c=>se(_e).showGrid=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Variable Bogenlänge",icon:"fa-chart-area",infotext:"Im Graph 'Aktuelle Leistung' können die Bögen immer die volle Länge haben, oder entsprechend des aktuellen Gesamtleistung verkürzt dargestellt werden."},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showRelativeArcs,"onUpdate:modelValue":u[3]||(u[3]=c=>se(_e).showRelativeArcs=c)},null,8,["modelValue"])]),_:1}),se(_e).showRelativeArcs?(ae(),Re(et,{key:0,fullwidth:!0,title:"Bögen zurücksetzen",icon:"fa-undo",infotext:"Durch Click auf den Button wird die Maximallänge der Bögen auf den aktuellen Wert gesetzt."},{default:Ie(()=>[se(_e).showRelativeArcs?(ae(),Ee("button",{key:0,class:"btn btn-secondary",onClick:u[4]||(u[4]=c=>r("reset-arcs"))}," Reset ")):Me("",!0)]),_:1})):Me("",!0),xe(et,{fullwidth:!0,title:"Anzahl Dezimalstellen",icon:"fa-sliders-h",infotext:"Alle kW- und kWh-Werte werden mit der gewählten Anzahl an Stellen angezeigt."},{default:Ie(()=>[xe(dV,{modelValue:se(_e).decimalPlaces,"onUpdate:modelValue":u[5]||(u[5]=c=>se(_e).decimalPlaces=c),options:s},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Uhrzeit anzeigen",icon:"fa-clock",infotext:"Zeige die aktuelle Uhrzeit an. In der Menüleiste oder neben den Lade-Buttons."},{default:Ie(()=>[xe(Ir,{modelValue:se(_e).showClock,"onUpdate:modelValue":u[6]||(u[6]=c=>se(_e).showClock=c),options:a},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Kompakte Ladepunktliste",icon:"fa-list",infotext:"Zeige eine einzelne Ladepunktliste statt separater Element pro Ladepunkt."},{default:Ie(()=>[xe(Ir,{modelValue:se(_e).shortCpList,"onUpdate:modelValue":u[7]||(u[7]=c=>se(_e).shortCpList=c),options:o},null,8,["modelValue"])]),_:1})]),z("div",gV,[xe(et,{fullwidth:!0,title:"Buttonleiste für Ladepunkte",icon:"fa-window-maximize",infotext:"Informationen zu Ladepunkten über den Diagrammen anzeigen."},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showButtonBar,"onUpdate:modelValue":u[8]||(u[8]=c=>se(_e).showButtonBar=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Filter-Buttons",icon:"fa-filter",infotext:"Hauptseite mit Buttons zur Auswahl der Kategorie."},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showQuickAccess,"onUpdate:modelValue":u[9]||(u[9]=c=>se(_e).showQuickAccess=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Breite Widgets",icon:"fa-desktop",infotext:"Widgets immer breit machen"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).preferWideBoxes,"onUpdate:modelValue":u[10]||(u[10]=c=>se(_e).preferWideBoxes=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Stufenlose Displaybreite",icon:"fa-maximize",infotext:"Die Breite des Displays wird immer voll ausgenutzt. Dies kann in einigen Fällen zu inkorrekter Darstellung führen."},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).fluidDisplay,"onUpdate:modelValue":u[11]||(u[11]=c=>se(_e).fluidDisplay=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Animationen",icon:"fa-film",infotext:"Animationen anzeigen"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showAnimations,"onUpdate:modelValue":u[12]||(u[12]=c=>se(_e).showAnimations=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Zähler anzeigen",icon:"fa-chart-bar",infotext:"Zeige die Werte zusätzlich angelegter Zähler"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showCounters,"onUpdate:modelValue":u[13]||(u[13]=c=>se(_e).showCounters=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Fahrzeuge anzeigen",icon:"fa-car",infotext:"Zeige alle Fahrzeuge mit Ladestand und Reichweite"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showVehicles,"onUpdate:modelValue":u[14]||(u[14]=c=>se(_e).showVehicles=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Standardfahrzeug anzeigen",icon:"fa-car",infotext:"Zeige das Standard-Fahrzeug in der Fahzeugliste"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showStandardVehicle,"onUpdate:modelValue":u[15]||(u[15]=c=>se(_e).showStandardVehicle=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Wechselrichter-Details anzeigen",icon:"fa-solar-panel",infotext:"Zeige Details zu den einzelnen Wechselrichtern"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showInverters,"onUpdate:modelValue":u[16]||(u[16]=c=>se(_e).showInverters=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Alternatives Energie-Widget",icon:"fa-chart-area",infotext:"Horizontale Darstellung der Energie-Werte"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).alternativeEnergy,"onUpdate:modelValue":u[17]||(u[17]=c=>se(_e).alternativeEnergy=c)},null,8,["modelValue"])]),_:1})]),z("div",mV,[xe(et,{fullwidth:!0,title:"Preistabelle anzeigen",icon:"fa-car",infotext:"Zeige die Strompreistabelle in einer separaten Box an"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).showPrices,"onUpdate:modelValue":u[18]||(u[18]=c=>se(_e).showPrices=c)},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Untere Markierung in der Preistabelle",icon:"fa-car",infotext:"Position der unteren Markierung festlegen"},{default:Ie(()=>[xe(_r,{id:"lowerPriceBound",modelValue:se(_e).lowerPriceBound,"onUpdate:modelValue":u[19]||(u[19]=c=>se(_e).lowerPriceBound=c),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"Obere Markierung in der Preistabelle",icon:"fa-car",infotext:"Position der oberen Markierung festlegen"},{default:Ie(()=>[xe(_r,{id:"upperPriceBound",modelValue:se(_e).upperPriceBound,"onUpdate:modelValue":u[20]||(u[20]=c=>se(_e).upperPriceBound=c),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])]),_:1}),xe(et,{fullwidth:!0,title:"IFrame-Support für Einstellungen (Experimentell)",icon:"fa-gear",infotext:"Erlaubt das Lesen der Einstellungen, wenn das UI in andere Applikationen eingebettet ist (z.B. HomeAssistant). Erfordert eine mit SSL verschlüsselte Verbindung über HTTPS! Experimentelles Feature."},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).sslPrefs,"onUpdate:modelValue":u[21]||(u[21]=c=>se(_e).sslPrefs=c)},null,8,["modelValue"])]),_:1}),u[25]||(u[25]=z("hr",null,null,-1)),xe(et,{fullwidth:!0,title:"Debug-Modus",icon:"fa-bug-slash",infotext:"Kontrollausgaben in der Console sowie Anzeige von Bildschirmbreite und MQ-Viewer"},{"inline-item":Ie(()=>[xe(zt,{modelValue:se(_e).debug,"onUpdate:modelValue":u[22]||(u[22]=c=>se(_e).debug=c)},null,8,["modelValue"])]),_:1}),u[26]||(u[26]=z("hr",null,null,-1))]),u[27]||(u[27]=z("div",{class:"grid-col-12 mb-3 me-3"},[z("button",{class:"btn btn-sm btn-secondary float-end","data-bs-toggle":"collapse","data-bs-target":"#themesettings"}," Schließen ")],-1))])]),_:1}))}}),yV=Je(bV,[["__scopeId","data-v-785bc80b"]]),wV={class:"container-fluid px-2 m-0 theme-colors"},vV={id:"themesettings",class:"collapse"},_V={class:"row py-0 px-0 m-0"},EV={key:1,class:"row py-0 m-0 d-flex justify-content-center"},SV={key:2,class:"nav nav-tabs nav-justified mx-1 mt-2",role:"tablist"},xV={key:0,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pricecharttabbed"},TV={key:1,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#vehiclelist"},AV={key:2,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#batterylist"},CV={key:3,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#smarthomelist"},IV={key:4,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#counterlist"},MV={key:5,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#inverterlist"},kV={key:3,id:"cpContent",class:"tab-content mx-0 pt-1"},PV={id:"showAll",class:"tab-pane active",role:"tabpanel","aria-labelledby":"showall-tab"},OV={class:"row py-0 m-0 d-flex justify-content-center"},LV={id:"chargepointlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"chargepoint-tab"},RV={class:"row py-0 m-0 d-flex justify-content-center"},BV={id:"vehiclelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"vehicle-tab"},$V={key:0,class:"row py-0 m-0 d-flex justify-content-center"},NV={id:"batterylist",class:"tab-pane",role:"tabpanel","aria-labelledby":"battery-tab"},DV={class:"row py-0 m-0 d-flex justify-content-center"},UV={id:"smarthomelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"smarthome-tab"},FV={key:0,class:"row py-0 m-0 d-flex justify-content-center"},VV={id:"counterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"counter-tab"},jV={key:0,class:"row py-0 m-0 d-flex justify-content-center"},WV={id:"inverterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"inverter-tab"},zV={key:0,class:"row py-0 m-0 d-flex justify-content-center"},HV={id:"pricecharttabbed",class:"tab-pane",role:"tabpanel","aria-labelledby":"price-tab"},qV={key:0,class:"row py-0 m-0 d-flex justify-content-center"},GV={key:0,class:"row p-2 mt-5"},YV={class:"col p-2"},KV={class:"d-flex justify-content-between"},XV={class:"mx-4"},QV={key:0},JV=je({__name:"ColorsTheme",setup(t){const e=ct(!1),r=we(()=>[...St.values()].filter(a=>a.configured).length>0);function n(){OS()}function s(){e.value=!e.value}dn(()=>{n(),window.addEventListener("resize",OB),window.addEventListener("focus",i),j6()});function i(){document.hasFocus()&&nr(!0)}return(a,o)=>(ae(),Ee(Ye,null,[z("div",wV,[z("div",vV,[xe(yV,{onResetArcs:se(BB)},null,8,["onResetArcs"])]),se(_e).showButtonBar?(ae(),Re(k4,{key:0})):Me("",!0),z("div",_V,[xe(b6,null,dA({item1:Ie(()=>[xe(T$)]),item2:Ie(()=>[xe(kN)]),_:2},[se(_e).alternativeEnergy?{name:"item3",fn:Ie(()=>[xe(TD)]),key:"0"}:{name:"item3",fn:Ie(()=>[xe(tD)]),key:"1"}]),1024)]),se(_e).showQuickAccess?Me("",!0):(ae(),Ee("div",EV,[xe(Kd,{id:"1",compact:se(_e).shortCpList=="always"},null,8,["compact"]),se(_e).showPrices?(ae(),Re(th,{key:0,id:"NoTabs"})):Me("",!0),se(_e).showVehicles?(ae(),Re(Zd,{key:1})):Me("",!0),xe(Xd),r.value?(ae(),Re(Qd,{key:2})):Me("",!0),se(_e).showCounters?(ae(),Re(Jd,{key:3})):Me("",!0),se(_e).showInverters?(ae(),Re(rh,{key:4})):Me("",!0)])),se(_e).showQuickAccess?(ae(),Ee("nav",SV,[o[6]||(o[6]=qA('AllesLadepunkte',2)),se(_e).showPrices?(ae(),Ee("a",xV,o[0]||(o[0]=[z("i",{class:"fa-solid fa-lg fa-coins"},null,-1),z("span",{class:"d-none d-md-inline ms-2"},"Strompreis",-1)]))):Me("",!0),se(_e).showVehicles?(ae(),Ee("a",TV,o[1]||(o[1]=[z("i",{class:"fa-solid fa-lg fa-car"},null,-1),z("span",{class:"d-none d-md-inline ms-2"},"Fahrzeuge",-1)]))):Me("",!0),se(Yt).isBatteryConfigured&&se(kt).size>0?(ae(),Ee("a",AV,o[2]||(o[2]=[z("i",{class:"fa-solid fa-lg fa-car-battery"},null,-1),z("span",{class:"d-none d-md-inline ms-2"},"Speicher",-1)]))):Me("",!0),r.value?(ae(),Ee("a",CV,o[3]||(o[3]=[z("i",{class:"fa-solid fa-lg fa-plug"},null,-1),z("span",{class:"d-none d-md-inline ms-2"},"Smart Home",-1)]))):Me("",!0),se(_e).showCounters?(ae(),Ee("a",IV,o[4]||(o[4]=[z("i",{class:"fa-solid fa-lg fa-bolt"},null,-1),z("span",{class:"d-none d-md-inline ms-2"},"Zähler",-1)]))):Me("",!0),se(_e).showInverters?(ae(),Ee("a",MV,o[5]||(o[5]=[z("i",{class:"fa-solid fa-lg fa-solar-panel"},null,-1),z("span",{class:"d-none d-md-inline ms-2"},"Wechselrichter",-1)]))):Me("",!0)])):Me("",!0),se(_e).showQuickAccess?(ae(),Ee("div",kV,[z("div",PV,[z("div",OV,[xe(Kd,{id:"2",compact:se(_e).shortCpList!="no"},null,8,["compact"]),se(_e).showPrices?(ae(),Re(th,{key:0,id:"Overview"})):Me("",!0),se(_e).showVehicles?(ae(),Re(Zd,{key:1})):Me("",!0),xe(Xd),r.value?(ae(),Re(Qd,{key:2})):Me("",!0),se(_e).showCounters?(ae(),Re(Jd,{key:3})):Me("",!0),se(_e).showInverters?(ae(),Re(rh,{key:4})):Me("",!0)])]),z("div",LV,[z("div",RV,[xe(Kd,{id:"3",compact:se(_e).shortCpList=="always"},null,8,["compact"])])]),z("div",BV,[se(_e).showVehicles?(ae(),Ee("div",$V,[xe(Zd)])):Me("",!0)]),z("div",NV,[z("div",DV,[xe(Xd)])]),z("div",UV,[r.value?(ae(),Ee("div",FV,[xe(Qd)])):Me("",!0)]),z("div",VV,[se(_e).showCounters?(ae(),Ee("div",jV,[xe(Jd)])):Me("",!0)]),z("div",WV,[se(_e).showInverters?(ae(),Ee("div",zV,[xe(rh)])):Me("",!0)]),z("div",HV,[se(_e).showPrices?(ae(),Ee("div",qV,[xe(th,{id:"Tabbed"})])):Me("",!0)])])):Me("",!0)]),se(_e).debug?(ae(),Ee("div",GV,[z("div",YV,[o[7]||(o[7]=z("hr",null,null,-1)),z("div",KV,[z("p",XV,"Screen Width: "+ke(se(xc).x),1),z("button",{class:"btn btn-sm btn-secondary mx-4",onClick:s}," MQ Viewer ")]),e.value?(ae(),Ee("hr",QV)):Me("",!0),e.value?(ae(),Re(uV,{key:1})):Me("",!0)])])):Me("",!0)],64))}}),ZV=Je(JV,[["__scopeId","data-v-9648e6c5"]]),ej={class:"navbar navbar-expand-lg px-0 mb-0"},tj={key:0,class:"position-absolute-50 navbar-text ms-4 navbar-time",style:{color:"var(--color-menu)"}},rj=je({__name:"NavigationBar",setup(t){let e;const r=we(()=>_e.fluidDisplay?"container-fluid":"container-lg");return dn(()=>{e=setInterval(()=>{gg.value=new Date},1e3)}),i_(()=>{clearInterval(e)}),(n,s)=>(ae(),Ee(Ye,null,[z("nav",ej,[z("div",{class:rt(r.value)},[s[0]||(s[0]=z("a",{href:"/",class:"navbar-brand"},[z("span",null,"openWB")],-1)),se(_e).showClock=="navbar"?(ae(),Ee("span",tj,ke(se(BS)(se(gg))),1)):Me("",!0),s[1]||(s[1]=z("button",{class:"navbar-toggler togglebutton ps-5",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mainNavbar","aria-controls":"mainNavbar","aria-expanded":"false","aria-label":"Toggle navigation"},[z("span",{class:"fa-solid fa-ellipsis-vertical"})],-1)),s[2]||(s[2]=z("div",{id:"mainNavbar",class:"collapse navbar-collapse justify-content-end"},[z("div",{class:"nav navbar-nav"},[z("a",{id:"navStatus",class:"nav-link",href:"../../settings/#/Status"},"Status"),z("div",{class:"nav-item dropdown"},[z("a",{id:"loggingDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[st("Auswertungen "),z("i",{class:"fa-solid fa-caret-down"})]),z("div",{class:"dropdown-menu","aria-labelledby":"loggingDropdown"},[z("a",{href:"../../settings/#/Logging/ChargeLog",class:"dropdown-item"},"Ladeprotokoll"),z("a",{href:"../../settings/#/Logging/Chart",class:"dropdown-item"},"Diagramme")])]),z("div",{class:"nav-item dropdown"},[z("a",{id:"settingsDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[st("Einstellungen "),z("span",{class:"fa-solid fa-caret-down"})]),z("div",{class:"dropdown-menu","aria-labelledby":"settingsDropdown"},[z("a",{id:"navSettings",class:"nav-link",href:"../../settings/index.html"},"openWB"),z("a",{class:"nav-link","data-bs-toggle":"collapse","data-bs-target":"#themesettings","aria-expanded":"false","aria-controls":"themeSettings"},[z("span",null,[st("Look&Feel"),z("span",{class:"fa-solid fa-caret-down"})])])])])])],-1))],2)]),z("div",{class:rt(r.value)},s[3]||(s[3]=[z("hr",{class:"m-0 p-0 mb-2"},null,-1)]),2)],64))}}),nj=Je(rj,[["__scopeId","data-v-ed619966"]]),ij={id:"app",class:"m-0 p-0"},sj={class:"row p-0 m-0"},oj={class:"col-12 p-0 m-0"},aj=je({__name:"App",setup(t){const e=we(()=>_e.fluidDisplay?"container-fluid":"container-lg");return(r,n)=>(ae(),Ee("div",ij,[xe(nj),z("div",{class:rt(["p-0",e.value])},[z("div",sj,[z("div",oj,[xe(ZV)])])],2)]))}});var Mr="top",Xr="bottom",Qr="right",kr="left",cf="auto",da=[Mr,Xr,Qr,kr],Js="start",Qo="end",JS="clippingParents",zm="viewport",xo="popper",ZS="reference",Eg=da.reduce(function(t,e){return t.concat([e+"-"+Js,e+"-"+Qo])},[]),Hm=[].concat(da,[cf]).reduce(function(t,e){return t.concat([e,e+"-"+Js,e+"-"+Qo])},[]),ex="beforeRead",tx="read",rx="afterRead",nx="beforeMain",ix="main",sx="afterMain",ox="beforeWrite",ax="write",lx="afterWrite",ux=[ex,tx,rx,nx,ix,sx,ox,ax,lx];function Yn(t){return t?(t.nodeName||"").toLowerCase():null}function Jr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Zs(t){var e=Jr(t).Element;return t instanceof e||t instanceof Element}function an(t){var e=Jr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function qm(t){if(typeof ShadowRoot>"u")return!1;var e=Jr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function lj(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},s=e.attributes[r]||{},i=e.elements[r];!an(i)||!Yn(i)||(Object.assign(i.style,n),Object.keys(s).forEach(function(a){var o=s[a];o===!1?i.removeAttribute(a):i.setAttribute(a,o===!0?"":o)}))})}function uj(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var s=e.elements[n],i=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),o=a.reduce(function(l,u){return l[u]="",l},{});!an(s)||!Yn(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}const Gm={name:"applyStyles",enabled:!0,phase:"write",fn:lj,effect:uj,requires:["computeStyles"]};function zn(t){return t.split("-")[0]}var Hs=Math.max,Mc=Math.min,Jo=Math.round;function Sg(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function cx(){return!/^((?!chrome|android).)*safari/i.test(Sg())}function Zo(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),s=1,i=1;e&&an(t)&&(s=t.offsetWidth>0&&Jo(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Jo(n.height)/t.offsetHeight||1);var a=Zs(t)?Jr(t):window,o=a.visualViewport,l=!cx()&&r,u=(n.left+(l&&o?o.offsetLeft:0))/s,c=(n.top+(l&&o?o.offsetTop:0))/i,f=n.width/s,d=n.height/i;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function Ym(t){var e=Zo(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function fx(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&qm(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ki(t){return Jr(t).getComputedStyle(t)}function cj(t){return["table","td","th"].indexOf(Yn(t))>=0}function cs(t){return((Zs(t)?t.ownerDocument:t.document)||window.document).documentElement}function ff(t){return Yn(t)==="html"?t:t.assignedSlot||t.parentNode||(qm(t)?t.host:null)||cs(t)}function Nv(t){return!an(t)||ki(t).position==="fixed"?null:t.offsetParent}function fj(t){var e=/firefox/i.test(Sg()),r=/Trident/i.test(Sg());if(r&&an(t)){var n=ki(t);if(n.position==="fixed")return null}var s=ff(t);for(qm(s)&&(s=s.host);an(s)&&["html","body"].indexOf(Yn(s))<0;){var i=ki(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function Bl(t){for(var e=Jr(t),r=Nv(t);r&&cj(r)&&ki(r).position==="static";)r=Nv(r);return r&&(Yn(r)==="html"||Yn(r)==="body"&&ki(r).position==="static")?e:r||fj(t)||e}function Km(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function il(t,e,r){return Hs(t,Mc(e,r))}function dj(t,e,r){var n=il(t,e,r);return n>r?r:n}function dx(){return{top:0,right:0,bottom:0,left:0}}function hx(t){return Object.assign({},dx(),t)}function px(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var hj=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,hx(typeof e!="number"?e:px(e,da))};function pj(t){var e,r=t.state,n=t.name,s=t.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,o=zn(r.placement),l=Km(o),u=[kr,Qr].indexOf(o)>=0,c=u?"height":"width";if(!(!i||!a)){var f=hj(s.padding,r),d=Ym(i),p=l==="y"?Mr:kr,g=l==="y"?Xr:Qr,b=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],w=Bl(i),_=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,y=b/2-v/2,x=f[p],T=_-d[c]-f[g],A=_/2-d[c]/2+y,C=il(x,A,T),L=l;r.modifiersData[n]=(e={},e[L]=C,e.centerOffset=C-A,e)}}function gj(t){var e=t.state,r=t.options,n=r.element,s=n===void 0?"[data-popper-arrow]":n;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||fx(e.elements.popper,s)&&(e.elements.arrow=s))}const gx={name:"arrow",enabled:!0,phase:"main",fn:pj,effect:gj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ea(t){return t.split("-")[1]}var mj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bj(t,e){var r=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Jo(r*s)/s||0,y:Jo(n*s)/s||0}}function Dv(t){var e,r=t.popper,n=t.popperRect,s=t.placement,i=t.variation,a=t.offsets,o=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=a.x,p=d===void 0?0:d,g=a.y,b=g===void 0?0:g,v=typeof c=="function"?c({x:p,y:b}):{x:p,y:b};p=v.x,b=v.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),y=kr,x=Mr,T=window;if(u){var A=Bl(r),C="clientHeight",L="clientWidth";if(A===Jr(r)&&(A=cs(r),ki(A).position!=="static"&&o==="absolute"&&(C="scrollHeight",L="scrollWidth")),A=A,s===Mr||(s===kr||s===Qr)&&i===Qo){x=Xr;var j=f&&A===T&&T.visualViewport?T.visualViewport.height:A[C];b-=j-n.height,b*=l?1:-1}if(s===kr||(s===Mr||s===Xr)&&i===Qo){y=Qr;var R=f&&A===T&&T.visualViewport?T.visualViewport.width:A[L];p-=R-n.width,p*=l?1:-1}}var U=Object.assign({position:o},u&&mj),I=c===!0?bj({x:p,y:b},Jr(r)):{x:p,y:b};if(p=I.x,b=I.y,l){var M;return Object.assign({},U,(M={},M[x]=_?"0":"",M[y]=w?"0":"",M.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",M))}return Object.assign({},U,(e={},e[x]=_?b+"px":"",e[y]=w?p+"px":"",e.transform="",e))}function yj(t){var e=t.state,r=t.options,n=r.gpuAcceleration,s=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,o=r.roundOffsets,l=o===void 0?!0:o,u={placement:zn(e.placement),variation:ea(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Dv(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Dv(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Xm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yj,data:{}};var hu={passive:!0};function wj(t){var e=t.state,r=t.instance,n=t.options,s=n.scroll,i=s===void 0?!0:s,a=n.resize,o=a===void 0?!0:a,l=Jr(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,hu)}),o&&l.addEventListener("resize",r.update,hu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,hu)}),o&&l.removeEventListener("resize",r.update,hu)}}const Qm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wj,data:{}};var vj={left:"right",right:"left",bottom:"top",top:"bottom"};function Hu(t){return t.replace(/left|right|bottom|top/g,function(e){return vj[e]})}var _j={start:"end",end:"start"};function Uv(t){return t.replace(/start|end/g,function(e){return _j[e]})}function Jm(t){var e=Jr(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Zm(t){return Zo(cs(t)).left+Jm(t).scrollLeft}function Ej(t,e){var r=Jr(t),n=cs(t),s=r.visualViewport,i=n.clientWidth,a=n.clientHeight,o=0,l=0;if(s){i=s.width,a=s.height;var u=cx();(u||!u&&e==="fixed")&&(o=s.offsetLeft,l=s.offsetTop)}return{width:i,height:a,x:o+Zm(t),y:l}}function Sj(t){var e,r=cs(t),n=Jm(t),s=(e=t.ownerDocument)==null?void 0:e.body,i=Hs(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Hs(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+Zm(t),l=-n.scrollTop;return ki(s||r).direction==="rtl"&&(o+=Hs(r.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function eb(t){var e=ki(t),r=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+n)}function mx(t){return["html","body","#document"].indexOf(Yn(t))>=0?t.ownerDocument.body:an(t)&&eb(t)?t:mx(ff(t))}function sl(t,e){var r;e===void 0&&(e=[]);var n=mx(t),s=n===((r=t.ownerDocument)==null?void 0:r.body),i=Jr(n),a=s?[i].concat(i.visualViewport||[],eb(n)?n:[]):n,o=e.concat(a);return s?o:o.concat(sl(ff(a)))}function xg(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xj(t,e){var r=Zo(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Fv(t,e,r){return e===zm?xg(Ej(t,r)):Zs(e)?xj(e,r):xg(Sj(cs(t)))}function Tj(t){var e=sl(ff(t)),r=["absolute","fixed"].indexOf(ki(t).position)>=0,n=r&&an(t)?Bl(t):t;return Zs(n)?e.filter(function(s){return Zs(s)&&fx(s,n)&&Yn(s)!=="body"}):[]}function Aj(t,e,r,n){var s=e==="clippingParents"?Tj(t):[].concat(e),i=[].concat(s,[r]),a=i[0],o=i.reduce(function(l,u){var c=Fv(t,u,n);return l.top=Hs(c.top,l.top),l.right=Mc(c.right,l.right),l.bottom=Mc(c.bottom,l.bottom),l.left=Hs(c.left,l.left),l},Fv(t,a,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function bx(t){var e=t.reference,r=t.element,n=t.placement,s=n?zn(n):null,i=n?ea(n):null,a=e.x+e.width/2-r.width/2,o=e.y+e.height/2-r.height/2,l;switch(s){case Mr:l={x:a,y:e.y-r.height};break;case Xr:l={x:a,y:e.y+e.height};break;case Qr:l={x:e.x+e.width,y:o};break;case kr:l={x:e.x-r.width,y:o};break;default:l={x:e.x,y:e.y}}var u=s?Km(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Js:l[u]=l[u]-(e[c]/2-r[c]/2);break;case Qo:l[u]=l[u]+(e[c]/2-r[c]/2);break}}return l}function ta(t,e){e===void 0&&(e={});var r=e,n=r.placement,s=n===void 0?t.placement:n,i=r.strategy,a=i===void 0?t.strategy:i,o=r.boundary,l=o===void 0?JS:o,u=r.rootBoundary,c=u===void 0?zm:u,f=r.elementContext,d=f===void 0?xo:f,p=r.altBoundary,g=p===void 0?!1:p,b=r.padding,v=b===void 0?0:b,w=hx(typeof v!="number"?v:px(v,da)),_=d===xo?ZS:xo,y=t.rects.popper,x=t.elements[g?_:d],T=Aj(Zs(x)?x:x.contextElement||cs(t.elements.popper),l,c,a),A=Zo(t.elements.reference),C=bx({reference:A,element:y,strategy:"absolute",placement:s}),L=xg(Object.assign({},y,C)),j=d===xo?L:A,R={top:T.top-j.top+w.top,bottom:j.bottom-T.bottom+w.bottom,left:T.left-j.left+w.left,right:j.right-T.right+w.right},U=t.modifiersData.offset;if(d===xo&&U){var I=U[s];Object.keys(R).forEach(function(M){var $=[Qr,Xr].indexOf(M)>=0?1:-1,Z=[Mr,Xr].indexOf(M)>=0?"y":"x";R[M]+=I[Z]*$})}return R}function Cj(t,e){e===void 0&&(e={});var r=e,n=r.placement,s=r.boundary,i=r.rootBoundary,a=r.padding,o=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?Hm:l,c=ea(n),f=c?o?Eg:Eg.filter(function(g){return ea(g)===c}):da,d=f.filter(function(g){return u.indexOf(g)>=0});d.length===0&&(d=f);var p=d.reduce(function(g,b){return g[b]=ta(t,{placement:b,boundary:s,rootBoundary:i,padding:a})[zn(b)],g},{});return Object.keys(p).sort(function(g,b){return p[g]-p[b]})}function Ij(t){if(zn(t)===cf)return[];var e=Hu(t);return[Uv(t),e,Uv(e)]}function Mj(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=r.mainAxis,i=s===void 0?!0:s,a=r.altAxis,o=a===void 0?!0:a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,g=p===void 0?!0:p,b=r.allowedAutoPlacements,v=e.options.placement,w=zn(v),_=w===v,y=l||(_||!g?[Hu(v)]:Ij(v)),x=[v].concat(y).reduce(function(Se,ee){return Se.concat(zn(ee)===cf?Cj(e,{placement:ee,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:b}):ee)},[]),T=e.rects.reference,A=e.rects.popper,C=new Map,L=!0,j=x[0],R=0;R=0,Z=$?"width":"height",ne=ta(e,{placement:U,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),re=$?M?Qr:kr:M?Xr:Mr;T[Z]>A[Z]&&(re=Hu(re));var N=Hu(re),fe=[];if(i&&fe.push(ne[I]<=0),o&&fe.push(ne[re]<=0,ne[N]<=0),fe.every(function(Se){return Se})){j=U,L=!1;break}C.set(U,fe)}if(L)for(var G=g?3:1,pe=function(ee){var K=x.find(function(W){var D=C.get(W);if(D)return D.slice(0,ee).every(function(X){return X})});if(K)return j=K,"break"},F=G;F>0;F--){var de=pe(F);if(de==="break")break}e.placement!==j&&(e.modifiersData[n]._skip=!0,e.placement=j,e.reset=!0)}}const yx={name:"flip",enabled:!0,phase:"main",fn:Mj,requiresIfExists:["offset"],data:{_skip:!1}};function Vv(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function jv(t){return[Mr,Qr,Xr,kr].some(function(e){return t[e]>=0})}function kj(t){var e=t.state,r=t.name,n=e.rects.reference,s=e.rects.popper,i=e.modifiersData.preventOverflow,a=ta(e,{elementContext:"reference"}),o=ta(e,{altBoundary:!0}),l=Vv(a,n),u=Vv(o,s,i),c=jv(l),f=jv(u);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const vx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kj};function Pj(t,e,r){var n=zn(t),s=[kr,Mr].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=i[0],o=i[1];return a=a||0,o=(o||0)*s,[kr,Qr].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}function Oj(t){var e=t.state,r=t.options,n=t.name,s=r.offset,i=s===void 0?[0,0]:s,a=Hm.reduce(function(c,f){return c[f]=Pj(f,e.rects,i),c},{}),o=a[e.placement],l=o.x,u=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=a}const _x={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oj};function Lj(t){var e=t.state,r=t.name;e.modifiersData[r]=bx({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const tb={name:"popperOffsets",enabled:!0,phase:"read",fn:Lj,data:{}};function Rj(t){return t==="x"?"y":"x"}function Bj(t){var e=t.state,r=t.options,n=t.name,s=r.mainAxis,i=s===void 0?!0:s,a=r.altAxis,o=a===void 0?!1:a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,p=d===void 0?!0:d,g=r.tetherOffset,b=g===void 0?0:g,v=ta(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),w=zn(e.placement),_=ea(e.placement),y=!_,x=Km(w),T=Rj(x),A=e.modifiersData.popperOffsets,C=e.rects.reference,L=e.rects.popper,j=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,R=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),U=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(A){if(i){var M,$=x==="y"?Mr:kr,Z=x==="y"?Xr:Qr,ne=x==="y"?"height":"width",re=A[x],N=re+v[$],fe=re-v[Z],G=p?-L[ne]/2:0,pe=_===Js?C[ne]:L[ne],F=_===Js?-L[ne]:-C[ne],de=e.elements.arrow,Se=p&&de?Ym(de):{width:0,height:0},ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:dx(),K=ee[$],W=ee[Z],D=il(0,C[ne],Se[ne]),X=y?C[ne]/2-G-D-K-R.mainAxis:pe-D-K-R.mainAxis,ce=y?-C[ne]/2+G+D+W+R.mainAxis:F+D+W+R.mainAxis,le=e.elements.arrow&&Bl(e.elements.arrow),k=le?x==="y"?le.clientTop||0:le.clientLeft||0:0,P=(M=U==null?void 0:U[x])!=null?M:0,V=re+X-P-k,B=re+ce-P,H=il(p?Mc(N,V):N,re,p?Hs(fe,B):fe);A[x]=H,I[x]=H-re}if(o){var q,ue=x==="x"?Mr:kr,J=x==="x"?Xr:Qr,Y=A[T],ie=T==="y"?"height":"width",Q=Y+v[ue],oe=Y-v[J],me=[Mr,kr].indexOf(w)!==-1,Te=(q=U==null?void 0:U[T])!=null?q:0,S=me?Q:Y-C[ie]-L[ie]-Te+R.altAxis,m=me?Y+C[ie]+L[ie]-Te-R.altAxis:oe,h=p&&me?dj(S,Y,m):il(p?S:Q,Y,p?m:oe);A[T]=h,I[T]=h-Y}e.modifiersData[n]=I}}const Ex={name:"preventOverflow",enabled:!0,phase:"main",fn:Bj,requiresIfExists:["offset"]};function $j(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Nj(t){return t===Jr(t)||!an(t)?Jm(t):$j(t)}function Dj(t){var e=t.getBoundingClientRect(),r=Jo(e.width)/t.offsetWidth||1,n=Jo(e.height)/t.offsetHeight||1;return r!==1||n!==1}function Uj(t,e,r){r===void 0&&(r=!1);var n=an(e),s=an(e)&&Dj(e),i=cs(e),a=Zo(t,s,r),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Yn(e)!=="body"||eb(i))&&(o=Nj(e)),an(e)?(l=Zo(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Zm(i))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function Fj(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function s(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(o){if(!r.has(o)){var l=e.get(o);l&&s(l)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||s(i)}),n}function Vj(t){var e=Fj(t);return ux.reduce(function(r,n){return r.concat(e.filter(function(s){return s.phase===n}))},[])}function jj(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Wj(t){var e=t.reduce(function(r,n){var s=r[n.name];return r[n.name]=s?Object.assign({},s,n,{options:Object.assign({},s.options,n.options),data:Object.assign({},s.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Wv={placement:"bottom",modifiers:[],strategy:"absolute"};function zv(){for(var t=arguments.length,e=new Array(t),r=0;r(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,r)=>`#${CSS.escape(r)}`)),t),Xj=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),Qj=t=>{do t+=Math.floor(Math.random()*Yj);while(document.getElementById(t));return t},Jj=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(r);return!n&&!s?0:(e=e.split(",")[0],r=r.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(r))*Kj)},Tx=t=>{t.dispatchEvent(new Event(Tg))},wi=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),ns=t=>wi(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(xx(t)):null,ha=t=>{if(!wi(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const n=t.closest("summary");if(n&&n.parentNode!==r||n===null)return!1}return e},is=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",Ax=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ax(t.parentNode):null},kc=()=>{},$l=t=>{t.offsetHeight},Cx=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ih=[],Zj=t=>{document.readyState==="loading"?(ih.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of ih)e()}),ih.push(t)):t()},cn=()=>document.documentElement.dir==="rtl",hn=t=>{Zj(()=>{const e=Cx();if(e){const r=t.NAME,n=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=n,t.jQueryInterface)}})},Br=(t,e=[],r=t)=>typeof t=="function"?t(...e):r,Ix=(t,e,r=!0)=>{if(!r){Br(t);return}const s=Jj(e)+5;let i=!1;const a=({target:o})=>{o===e&&(i=!0,e.removeEventListener(Tg,a),Br(t))};e.addEventListener(Tg,a),setTimeout(()=>{i||Tx(e)},s)},nb=(t,e,r,n)=>{const s=t.length;let i=t.indexOf(e);return i===-1?!r&&n?t[s-1]:t[0]:(i+=r?1:-1,n&&(i=(i+s)%s),t[Math.max(0,Math.min(i,s-1))])},eW=/[^.]*(?=\..*)\.|.*/,tW=/\..*/,rW=/::\d+$/,sh={};let Hv=1;const Mx={mouseenter:"mouseover",mouseleave:"mouseout"},nW=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function kx(t,e){return e&&`${e}::${Hv++}`||t.uidEvent||Hv++}function Px(t){const e=kx(t);return t.uidEvent=e,sh[e]=sh[e]||{},sh[e]}function iW(t,e){return function r(n){return ib(n,{delegateTarget:t}),r.oneOff&&$e.off(t,n.type,e),e.apply(t,[n])}}function sW(t,e,r){return function n(s){const i=t.querySelectorAll(e);for(let{target:a}=s;a&&a!==this;a=a.parentNode)for(const o of i)if(o===a)return ib(s,{delegateTarget:a}),n.oneOff&&$e.off(t,s.type,e,r),r.apply(a,[s])}}function Ox(t,e,r=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===r)}function Lx(t,e,r){const n=typeof e=="string",s=n?r:e||r;let i=Rx(t);return nW.has(i)||(i=t),[n,s,i]}function qv(t,e,r,n,s){if(typeof e!="string"||!t)return;let[i,a,o]=Lx(e,r,n);e in Mx&&(a=(g=>function(b){if(!b.relatedTarget||b.relatedTarget!==b.delegateTarget&&!b.delegateTarget.contains(b.relatedTarget))return g.call(this,b)})(a));const l=Px(t),u=l[o]||(l[o]={}),c=Ox(u,a,i?r:null);if(c){c.oneOff=c.oneOff&&s;return}const f=kx(a,e.replace(eW,"")),d=i?sW(t,r,a):iW(t,a);d.delegationSelector=i?r:null,d.callable=a,d.oneOff=s,d.uidEvent=f,u[f]=d,t.addEventListener(o,d,i)}function Ag(t,e,r,n,s){const i=Ox(e[r],n,s);i&&(t.removeEventListener(r,i,!!s),delete e[r][i.uidEvent])}function oW(t,e,r,n){const s=e[r]||{};for(const[i,a]of Object.entries(s))i.includes(n)&&Ag(t,e,r,a.callable,a.delegationSelector)}function Rx(t){return t=t.replace(tW,""),Mx[t]||t}const $e={on(t,e,r,n){qv(t,e,r,n,!1)},one(t,e,r,n){qv(t,e,r,n,!0)},off(t,e,r,n){if(typeof e!="string"||!t)return;const[s,i,a]=Lx(e,r,n),o=a!==e,l=Px(t),u=l[a]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Ag(t,l,a,i,s?r:null);return}if(c)for(const f of Object.keys(l))oW(t,l,f,e.slice(1));for(const[f,d]of Object.entries(u)){const p=f.replace(rW,"");(!o||e.includes(p))&&Ag(t,l,a,d.callable,d.delegationSelector)}},trigger(t,e,r){if(typeof e!="string"||!t)return null;const n=Cx(),s=Rx(e),i=e!==s;let a=null,o=!0,l=!0,u=!1;i&&n&&(a=n.Event(e,r),n(t).trigger(a),o=!a.isPropagationStopped(),l=!a.isImmediatePropagationStopped(),u=a.isDefaultPrevented());const c=ib(new Event(e,{bubbles:o,cancelable:!0}),r);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&a&&a.preventDefault(),c}};function ib(t,e={}){for(const[r,n]of Object.entries(e))try{t[r]=n}catch{Object.defineProperty(t,r,{configurable:!0,get(){return n}})}return t}function Gv(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function oh(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const vi={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${oh(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${oh(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of r){let s=n.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=Gv(t.dataset[n])}return e},getDataAttribute(t,e){return Gv(t.getAttribute(`data-bs-${oh(e)}`))}};class Nl{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,r){const n=wi(r)?vi.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...wi(r)?vi.getDataAttributes(r):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,r=this.constructor.DefaultType){for(const[n,s]of Object.entries(r)){const i=e[n],a=wi(i)?"element":Xj(i);if(!new RegExp(s).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}}}const aW="5.3.3";class Cn extends Nl{constructor(e,r){super(),e=ns(e),e&&(this._element=e,this._config=this._getConfig(r),nh.set(this._element,this.constructor.DATA_KEY,this))}dispose(){nh.remove(this._element,this.constructor.DATA_KEY),$e.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,r,n=!0){Ix(e,r,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return nh.get(ns(e),this.DATA_KEY)}static getOrCreateInstance(e,r={}){return this.getInstance(e)||new this(e,typeof r=="object"?r:null)}static get VERSION(){return aW}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const ah=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&r!=="#"?r.trim():null}return e?e.split(",").map(r=>xx(r)).join(","):null},Qe={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(r=>r.matches(e))},parents(t,e){const r=[];let n=t.parentNode.closest(e);for(;n;)r.push(n),n=n.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(r=>!is(r)&&ha(r))},getSelectorFromElement(t){const e=ah(t);return e&&Qe.findOne(e)?e:null},getElementFromSelector(t){const e=ah(t);return e?Qe.findOne(e):null},getMultipleElementsFromSelector(t){const e=ah(t);return e?Qe.find(e):[]}},hf=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;$e.on(document,r,`[data-bs-dismiss="${n}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),is(this))return;const i=Qe.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},lW="alert",uW="bs.alert",Bx=`.${uW}`,cW=`close${Bx}`,fW=`closed${Bx}`,dW="fade",hW="show";class pf extends Cn{static get NAME(){return lW}close(){if($e.trigger(this._element,cW).defaultPrevented)return;this._element.classList.remove(hW);const r=this._element.classList.contains(dW);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),$e.trigger(this._element,fW),this.dispose()}static jQueryInterface(e){return this.each(function(){const r=pf.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}hf(pf,"close");hn(pf);const pW="button",gW="bs.button",mW=`.${gW}`,bW=".data-api",yW="active",Yv='[data-bs-toggle="button"]',wW=`click${mW}${bW}`;class gf extends Cn{static get NAME(){return pW}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(yW))}static jQueryInterface(e){return this.each(function(){const r=gf.getOrCreateInstance(this);e==="toggle"&&r[e]()})}}$e.on(document,wW,Yv,t=>{t.preventDefault();const e=t.target.closest(Yv);gf.getOrCreateInstance(e).toggle()});hn(gf);const vW="swipe",pa=".bs.swipe",_W=`touchstart${pa}`,EW=`touchmove${pa}`,SW=`touchend${pa}`,xW=`pointerdown${pa}`,TW=`pointerup${pa}`,AW="touch",CW="pen",IW="pointer-event",MW=40,kW={endCallback:null,leftCallback:null,rightCallback:null},PW={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Pc extends Nl{constructor(e,r){super(),this._element=e,!(!e||!Pc.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return kW}static get DefaultType(){return PW}static get NAME(){return vW}dispose(){$e.off(this._element,pa)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Br(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=MW)return;const r=e/this._deltaX;this._deltaX=0,r&&Br(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?($e.on(this._element,xW,e=>this._start(e)),$e.on(this._element,TW,e=>this._end(e)),this._element.classList.add(IW)):($e.on(this._element,_W,e=>this._start(e)),$e.on(this._element,EW,e=>this._move(e)),$e.on(this._element,SW,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===CW||e.pointerType===AW)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const OW="carousel",LW="bs.carousel",fs=`.${LW}`,$x=".data-api",RW="ArrowLeft",BW="ArrowRight",$W=500,$a="next",wo="prev",To="left",qu="right",NW=`slide${fs}`,lh=`slid${fs}`,DW=`keydown${fs}`,UW=`mouseenter${fs}`,FW=`mouseleave${fs}`,VW=`dragstart${fs}`,jW=`load${fs}${$x}`,WW=`click${fs}${$x}`,Nx="carousel",pu="active",zW="slide",HW="carousel-item-end",qW="carousel-item-start",GW="carousel-item-next",YW="carousel-item-prev",Dx=".active",Ux=".carousel-item",KW=Dx+Ux,XW=".carousel-item img",QW=".carousel-indicators",JW="[data-bs-slide], [data-bs-slide-to]",ZW='[data-bs-ride="carousel"]',e5={[RW]:qu,[BW]:To},t5={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},r5={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Dl extends Cn{constructor(e,r){super(e,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Qe.findOne(QW,this._element),this._addEventListeners(),this._config.ride===Nx&&this.cycle()}static get Default(){return t5}static get DefaultType(){return r5}static get NAME(){return OW}next(){this._slide($a)}nextWhenVisible(){!document.hidden&&ha(this._element)&&this.next()}prev(){this._slide(wo)}pause(){this._isSliding&&Tx(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){$e.one(this._element,lh,()=>this.cycle());return}this.cycle()}}to(e){const r=this._getItems();if(e>r.length-1||e<0)return;if(this._isSliding){$e.one(this._element,lh,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const s=e>n?$a:wo;this._slide(s,r[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&$e.on(this._element,DW,e=>this._keydown(e)),this._config.pause==="hover"&&($e.on(this._element,UW,()=>this.pause()),$e.on(this._element,FW,()=>this._maybeEnableCycle())),this._config.touch&&Pc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of Qe.find(XW,this._element))$e.on(n,VW,s=>s.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(To)),rightCallback:()=>this._slide(this._directionToOrder(qu)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$W+this._config.interval))}};this._swipeHelper=new Pc(this._element,r)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const r=e5[e.key];r&&(e.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const r=Qe.findOne(Dx,this._indicatorsElement);r.classList.remove(pu),r.removeAttribute("aria-current");const n=Qe.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(pu),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const r=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(e,r=null){if(this._isSliding)return;const n=this._getActive(),s=e===$a,i=r||nb(this._getItems(),n,s,this._config.wrap);if(i===n)return;const a=this._getItemIndex(i),o=p=>$e.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(NW).defaultPrevented||!n||!i)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;const c=s?qW:HW,f=s?GW:YW;i.classList.add(f),$l(i),n.classList.add(c),i.classList.add(c);const d=()=>{i.classList.remove(c,f),i.classList.add(pu),n.classList.remove(pu,f,c),this._isSliding=!1,o(lh)};this._queueCallback(d,n,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(zW)}_getActive(){return Qe.findOne(KW,this._element)}_getItems(){return Qe.find(Ux,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return cn()?e===To?wo:$a:e===To?$a:wo}_orderToDirection(e){return cn()?e===wo?To:qu:e===wo?qu:To}static jQueryInterface(e){return this.each(function(){const r=Dl.getOrCreateInstance(this,e);if(typeof e=="number"){r.to(e);return}if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}$e.on(document,WW,JW,function(t){const e=Qe.getElementFromSelector(this);if(!e||!e.classList.contains(Nx))return;t.preventDefault();const r=Dl.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){r.to(n),r._maybeEnableCycle();return}if(vi.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});$e.on(window,jW,()=>{const t=Qe.find(ZW);for(const e of t)Dl.getOrCreateInstance(e)});hn(Dl);const n5="collapse",i5="bs.collapse",Ul=`.${i5}`,s5=".data-api",o5=`show${Ul}`,a5=`shown${Ul}`,l5=`hide${Ul}`,u5=`hidden${Ul}`,c5=`click${Ul}${s5}`,uh="show",ko="collapse",gu="collapsing",f5="collapsed",d5=`:scope .${ko} .${ko}`,h5="collapse-horizontal",p5="width",g5="height",m5=".collapse.show, .collapse.collapsing",Cg='[data-bs-toggle="collapse"]',b5={parent:null,toggle:!0},y5={parent:"(null|element)",toggle:"boolean"};class vl extends Cn{constructor(e,r){super(e,r),this._isTransitioning=!1,this._triggerArray=[];const n=Qe.find(Cg);for(const s of n){const i=Qe.getSelectorFromElement(s),a=Qe.find(i).filter(o=>o===this._element);i!==null&&a.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return b5}static get DefaultType(){return y5}static get NAME(){return n5}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(m5).filter(o=>o!==this._element).map(o=>vl.getOrCreateInstance(o,{toggle:!1}))),e.length&&e[0]._isTransitioning||$e.trigger(this._element,o5).defaultPrevented)return;for(const o of e)o.hide();const n=this._getDimension();this._element.classList.remove(ko),this._element.classList.add(gu),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(gu),this._element.classList.add(ko,uh),this._element.style[n]="",$e.trigger(this._element,a5)},a=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[n]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||$e.trigger(this._element,l5).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,$l(this._element),this._element.classList.add(gu),this._element.classList.remove(ko,uh);for(const s of this._triggerArray){const i=Qe.getElementFromSelector(s);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(gu),this._element.classList.add(ko),$e.trigger(this._element,u5)};this._element.style[r]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(uh)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=ns(e.parent),e}_getDimension(){return this._element.classList.contains(h5)?p5:g5}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Cg);for(const r of e){const n=Qe.getElementFromSelector(r);n&&this._addAriaAndCollapsedClass([r],this._isShown(n))}}_getFirstLevelChildren(e){const r=Qe.find(d5,this._config.parent);return Qe.find(e,this._config.parent).filter(n=>!r.includes(n))}_addAriaAndCollapsedClass(e,r){if(e.length)for(const n of e)n.classList.toggle(f5,!r),n.setAttribute("aria-expanded",r)}static jQueryInterface(e){const r={};return typeof e=="string"&&/show|hide/.test(e)&&(r.toggle=!1),this.each(function(){const n=vl.getOrCreateInstance(this,r);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}$e.on(document,c5,Cg,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Qe.getMultipleElementsFromSelector(this))vl.getOrCreateInstance(e,{toggle:!1}).toggle()});hn(vl);const Kv="dropdown",w5="bs.dropdown",fo=`.${w5}`,sb=".data-api",v5="Escape",Xv="Tab",_5="ArrowUp",Qv="ArrowDown",E5=2,S5=`hide${fo}`,x5=`hidden${fo}`,T5=`show${fo}`,A5=`shown${fo}`,Fx=`click${fo}${sb}`,Vx=`keydown${fo}${sb}`,C5=`keyup${fo}${sb}`,Ao="show",I5="dropup",M5="dropend",k5="dropstart",P5="dropup-center",O5="dropdown-center",Bs='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',L5=`${Bs}.${Ao}`,Gu=".dropdown-menu",R5=".navbar",B5=".navbar-nav",$5=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",N5=cn()?"top-end":"top-start",D5=cn()?"top-start":"top-end",U5=cn()?"bottom-end":"bottom-start",F5=cn()?"bottom-start":"bottom-end",V5=cn()?"left-start":"right-start",j5=cn()?"right-start":"left-start",W5="top",z5="bottom",H5={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},q5={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Hn extends Cn{constructor(e,r){super(e,r),this._popper=null,this._parent=this._element.parentNode,this._menu=Qe.next(this._element,Gu)[0]||Qe.prev(this._element,Gu)[0]||Qe.findOne(Gu,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return H5}static get DefaultType(){return q5}static get NAME(){return Kv}toggle(){return this._isShown()?this.hide():this.show()}show(){if(is(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!$e.trigger(this._element,T5,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(B5))for(const n of[].concat(...document.body.children))$e.on(n,"mouseover",kc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ao),this._element.classList.add(Ao),$e.trigger(this._element,A5,e)}}hide(){if(is(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!$e.trigger(this._element,S5,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))$e.off(n,"mouseover",kc);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ao),this._element.classList.remove(Ao),this._element.setAttribute("aria-expanded","false"),vi.removeDataAttribute(this._menu,"popper"),$e.trigger(this._element,x5,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!wi(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Kv.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Sx>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:wi(this._config.reference)?e=ns(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=rb(e,this._menu,r)}_isShown(){return this._menu.classList.contains(Ao)}_getPlacement(){const e=this._parent;if(e.classList.contains(M5))return V5;if(e.classList.contains(k5))return j5;if(e.classList.contains(P5))return W5;if(e.classList.contains(O5))return z5;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(I5)?r?D5:N5:r?F5:U5}_detectNavbar(){return this._element.closest(R5)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(vi.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Br(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:r}){const n=Qe.find($5,this._menu).filter(s=>ha(s));n.length&&nb(n,r,e===Qv,!n.includes(r)).focus()}static jQueryInterface(e){return this.each(function(){const r=Hn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}static clearMenus(e){if(e.button===E5||e.type==="keyup"&&e.key!==Xv)return;const r=Qe.find(L5);for(const n of r){const s=Hn.getInstance(n);if(!s||s._config.autoClose===!1)continue;const i=e.composedPath(),a=i.includes(s._menu);if(i.includes(s._element)||s._config.autoClose==="inside"&&!a||s._config.autoClose==="outside"&&a||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Xv||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:s._element};e.type==="click"&&(o.clickEvent=e),s._completeHide(o)}}static dataApiKeydownHandler(e){const r=/input|textarea/i.test(e.target.tagName),n=e.key===v5,s=[_5,Qv].includes(e.key);if(!s&&!n||r&&!n)return;e.preventDefault();const i=this.matches(Bs)?this:Qe.prev(this,Bs)[0]||Qe.next(this,Bs)[0]||Qe.findOne(Bs,e.delegateTarget.parentNode),a=Hn.getOrCreateInstance(i);if(s){e.stopPropagation(),a.show(),a._selectMenuItem(e);return}a._isShown()&&(e.stopPropagation(),a.hide(),i.focus())}}$e.on(document,Vx,Bs,Hn.dataApiKeydownHandler);$e.on(document,Vx,Gu,Hn.dataApiKeydownHandler);$e.on(document,Fx,Hn.clearMenus);$e.on(document,C5,Hn.clearMenus);$e.on(document,Fx,Bs,function(t){t.preventDefault(),Hn.getOrCreateInstance(this).toggle()});hn(Hn);const jx="backdrop",G5="fade",Jv="show",Zv=`mousedown.bs.${jx}`,Y5={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},K5={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Wx extends Nl{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Y5}static get DefaultType(){return K5}static get NAME(){return jx}show(e){if(!this._config.isVisible){Br(e);return}this._append();const r=this._getElement();this._config.isAnimated&&$l(r),r.classList.add(Jv),this._emulateAnimation(()=>{Br(e)})}hide(e){if(!this._config.isVisible){Br(e);return}this._getElement().classList.remove(Jv),this._emulateAnimation(()=>{this.dispose(),Br(e)})}dispose(){this._isAppended&&($e.off(this._element,Zv),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(G5),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=ns(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),$e.on(e,Zv,()=>{Br(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Ix(e,this._getElement(),this._config.isAnimated)}}const X5="focustrap",Q5="bs.focustrap",Oc=`.${Q5}`,J5=`focusin${Oc}`,Z5=`keydown.tab${Oc}`,ez="Tab",tz="forward",e0="backward",rz={autofocus:!0,trapElement:null},nz={autofocus:"boolean",trapElement:"element"};class zx extends Nl{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rz}static get DefaultType(){return nz}static get NAME(){return X5}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),$e.off(document,Oc),$e.on(document,J5,e=>this._handleFocusin(e)),$e.on(document,Z5,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,$e.off(document,Oc))}_handleFocusin(e){const{trapElement:r}=this._config;if(e.target===document||e.target===r||r.contains(e.target))return;const n=Qe.focusableChildren(r);n.length===0?r.focus():this._lastTabNavDirection===e0?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===ez&&(this._lastTabNavDirection=e.shiftKey?e0:tz)}}const t0=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",r0=".sticky-top",mu="padding-right",n0="margin-right";class Ig{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,mu,r=>r+e),this._setElementAttributes(t0,mu,r=>r+e),this._setElementAttributes(r0,n0,r=>r-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,mu),this._resetElementAttributes(t0,mu),this._resetElementAttributes(r0,n0)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,r,n){const s=this.getWidth(),i=a=>{if(a!==this._element&&window.innerWidth>a.clientWidth+s)return;this._saveInitialAttribute(a,r);const o=window.getComputedStyle(a).getPropertyValue(r);a.style.setProperty(r,`${n(Number.parseFloat(o))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,r){const n=e.style.getPropertyValue(r);n&&vi.setDataAttribute(e,r,n)}_resetElementAttributes(e,r){const n=s=>{const i=vi.getDataAttribute(s,r);if(i===null){s.style.removeProperty(r);return}vi.removeDataAttribute(s,r),s.style.setProperty(r,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,r){if(wi(e)){r(e);return}for(const n of Qe.find(e,this._element))r(n)}}const iz="modal",sz="bs.modal",fn=`.${sz}`,oz=".data-api",az="Escape",lz=`hide${fn}`,uz=`hidePrevented${fn}`,Hx=`hidden${fn}`,qx=`show${fn}`,cz=`shown${fn}`,fz=`resize${fn}`,dz=`click.dismiss${fn}`,hz=`mousedown.dismiss${fn}`,pz=`keydown.dismiss${fn}`,gz=`click${fn}${oz}`,i0="modal-open",mz="fade",s0="show",ch="modal-static",bz=".modal.show",yz=".modal-dialog",wz=".modal-body",vz='[data-bs-toggle="modal"]',_z={backdrop:!0,focus:!0,keyboard:!0},Ez={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ra extends Cn{constructor(e,r){super(e,r),this._dialog=Qe.findOne(yz,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ig,this._addEventListeners()}static get Default(){return _z}static get DefaultType(){return Ez}static get NAME(){return iz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||$e.trigger(this._element,qx,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(i0),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||$e.trigger(this._element,lz).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(s0),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){$e.off(window,fn),$e.off(this._dialog,fn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Wx({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new zx({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=Qe.findOne(wz,this._dialog);r&&(r.scrollTop=0),$l(this._element),this._element.classList.add(s0);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,$e.trigger(this._element,cz,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){$e.on(this._element,pz,e=>{if(e.key===az){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),$e.on(window,fz,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),$e.on(this._element,hz,e=>{$e.one(this._element,dz,r=>{if(!(this._element!==e.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(i0),this._resetAdjustments(),this._scrollBar.reset(),$e.trigger(this._element,Hx)})}_isAnimated(){return this._element.classList.contains(mz)}_triggerBackdropTransition(){if($e.trigger(this._element,uz).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(ch)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(ch),this._queueCallback(()=>{this._element.classList.remove(ch),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),n=r>0;if(n&&!e){const s=cn()?"paddingLeft":"paddingRight";this._element.style[s]=`${r}px`}if(!n&&e){const s=cn()?"paddingRight":"paddingLeft";this._element.style[s]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,r){return this.each(function(){const n=ra.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](r)}})}}$e.on(document,gz,vz,function(t){const e=Qe.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),$e.one(e,qx,s=>{s.defaultPrevented||$e.one(e,Hx,()=>{ha(this)&&this.focus()})});const r=Qe.findOne(bz);r&&ra.getInstance(r).hide(),ra.getOrCreateInstance(e).toggle(this)});hf(ra);hn(ra);const Sz="offcanvas",xz="bs.offcanvas",$i=`.${xz}`,Gx=".data-api",Tz=`load${$i}${Gx}`,Az="Escape",o0="show",a0="showing",l0="hiding",Cz="offcanvas-backdrop",Yx=".offcanvas.show",Iz=`show${$i}`,Mz=`shown${$i}`,kz=`hide${$i}`,u0=`hidePrevented${$i}`,Kx=`hidden${$i}`,Pz=`resize${$i}`,Oz=`click${$i}${Gx}`,Lz=`keydown.dismiss${$i}`,Rz='[data-bs-toggle="offcanvas"]',Bz={backdrop:!0,keyboard:!0,scroll:!1},$z={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ss extends Cn{constructor(e,r){super(e,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Bz}static get DefaultType(){return $z}static get NAME(){return Sz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||$e.trigger(this._element,Iz,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ig().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(a0);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(o0),this._element.classList.remove(a0),$e.trigger(this._element,Mz,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||$e.trigger(this._element,kz).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(l0),this._backdrop.hide();const r=()=>{this._element.classList.remove(o0,l0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ig().reset(),$e.trigger(this._element,Kx)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){$e.trigger(this._element,u0);return}this.hide()},r=!!this._config.backdrop;return new Wx({className:Cz,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?e:null})}_initializeFocusTrap(){return new zx({trapElement:this._element})}_addEventListeners(){$e.on(this._element,Lz,e=>{if(e.key===Az){if(this._config.keyboard){this.hide();return}$e.trigger(this._element,u0)}})}static jQueryInterface(e){return this.each(function(){const r=ss.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}$e.on(document,Oz,Rz,function(t){const e=Qe.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),is(this))return;$e.one(e,Kx,()=>{ha(this)&&this.focus()});const r=Qe.findOne(Yx);r&&r!==e&&ss.getInstance(r).hide(),ss.getOrCreateInstance(e).toggle(this)});$e.on(window,Tz,()=>{for(const t of Qe.find(Yx))ss.getOrCreateInstance(t).show()});$e.on(window,Pz,()=>{for(const t of Qe.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&ss.getOrCreateInstance(t).hide()});hf(ss);hn(ss);const Nz=/^aria-[\w-]*$/i,Xx={"*":["class","dir","id","lang","role",Nz],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Dz=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Uz=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Fz=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?Dz.has(r)?!!Uz.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(r))};function Vz(t,e,r){if(!t.length)return t;if(r&&typeof r=="function")return r(t);const s=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...s.body.querySelectorAll("*"));for(const a of i){const o=a.nodeName.toLowerCase();if(!Object.keys(e).includes(o)){a.remove();continue}const l=[].concat(...a.attributes),u=[].concat(e["*"]||[],e[o]||[]);for(const c of l)Fz(c,u)||a.removeAttribute(c.nodeName)}return s.body.innerHTML}const jz="TemplateFactory",Wz={allowList:Xx,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},zz={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Hz={entry:"(string|element|function|null)",selector:"(string|element)"};class qz extends Nl{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Wz}static get DefaultType(){return zz}static get NAME(){return jz}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[s,i]of Object.entries(this._config.content))this._setContent(e,i,s);const r=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&r.classList.add(...n.split(" ")),r}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[r,n]of Object.entries(e))super._typeCheckConfig({selector:r,entry:n},Hz)}_setContent(e,r,n){const s=Qe.findOne(n,e);if(s){if(r=this._resolvePossibleFunction(r),!r){s.remove();return}if(wi(r)){this._putElementInTemplate(ns(r),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(r);return}s.textContent=r}}_maybeSanitize(e){return this._config.sanitize?Vz(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Br(e,[this])}_putElementInTemplate(e,r){if(this._config.html){r.innerHTML="",r.append(e);return}r.textContent=e.textContent}}const Gz="tooltip",Yz=new Set(["sanitize","allowList","sanitizeFn"]),fh="fade",Kz="modal",bu="show",Xz=".tooltip-inner",c0=`.${Kz}`,f0="hide.bs.modal",Na="hover",dh="focus",Qz="click",Jz="manual",Zz="hide",eH="hidden",tH="show",rH="shown",nH="inserted",iH="click",sH="focusin",oH="focusout",aH="mouseenter",lH="mouseleave",uH={AUTO:"auto",TOP:"top",RIGHT:cn()?"left":"right",BOTTOM:"bottom",LEFT:cn()?"right":"left"},cH={allowList:Xx,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},fH={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ga extends Cn{constructor(e,r){if(typeof Sx>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return cH}static get DefaultType(){return fH}static get NAME(){return Gz}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),$e.off(this._element.closest(c0),f0,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=$e.trigger(this._element,this.constructor.eventName(tH)),n=(Ax(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(s),$e.trigger(this._element,this.constructor.eventName(nH))),this._popper=this._createPopper(s),s.classList.add(bu),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))$e.on(o,"mouseover",kc);const a=()=>{$e.trigger(this._element,this.constructor.eventName(rH)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(a,this.tip,this._isAnimated())}hide(){if(!this._isShown()||$e.trigger(this._element,this.constructor.eventName(Zz)).defaultPrevented)return;if(this._getTipElement().classList.remove(bu),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))$e.off(s,"mouseover",kc);this._activeTrigger[Qz]=!1,this._activeTrigger[dh]=!1,this._activeTrigger[Na]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),$e.trigger(this._element,this.constructor.eventName(eH)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const r=this._getTemplateFactory(e).toHtml();if(!r)return null;r.classList.remove(fh,bu),r.classList.add(`bs-${this.constructor.NAME}-auto`);const n=Qj(this.constructor.NAME).toString();return r.setAttribute("id",n),this._isAnimated()&&r.classList.add(fh),r}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new qz({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Xz]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(fh)}_isShown(){return this.tip&&this.tip.classList.contains(bu)}_createPopper(e){const r=Br(this._config.placement,[this,e,this._element]),n=uH[r.toUpperCase()];return rb(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_resolvePossibleFunction(e){return Br(e,[this._element])}_getPopperConfig(e){const r={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...r,...Br(this._config.popperConfig,[r])}}_setListeners(){const e=this._config.trigger.split(" ");for(const r of e)if(r==="click")$e.on(this._element,this.constructor.eventName(iH),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(r!==Jz){const n=r===Na?this.constructor.eventName(aH):this.constructor.eventName(sH),s=r===Na?this.constructor.eventName(lH):this.constructor.eventName(oH);$e.on(this._element,n,this._config.selector,i=>{const a=this._initializeOnDelegatedTarget(i);a._activeTrigger[i.type==="focusin"?dh:Na]=!0,a._enter()}),$e.on(this._element,s,this._config.selector,i=>{const a=this._initializeOnDelegatedTarget(i);a._activeTrigger[i.type==="focusout"?dh:Na]=a._element.contains(i.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},$e.on(this._element.closest(c0),f0,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,r){clearTimeout(this._timeout),this._timeout=setTimeout(e,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const r=vi.getDataAttributes(this._element);for(const n of Object.keys(r))Yz.has(n)&&delete r[n];return e={...r,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:ns(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[r,n]of Object.entries(this._config))this.constructor.Default[r]!==n&&(e[r]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const r=ga.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}hn(ga);const dH="popover",hH=".popover-header",pH=".popover-body",gH={...ga.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},mH={...ga.DefaultType,content:"(null|string|element|function)"};class ob extends ga{static get Default(){return gH}static get DefaultType(){return mH}static get NAME(){return dH}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[hH]:this._getTitle(),[pH]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const r=ob.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}hn(ob);const bH="scrollspy",yH="bs.scrollspy",ab=`.${yH}`,wH=".data-api",vH=`activate${ab}`,d0=`click${ab}`,_H=`load${ab}${wH}`,EH="dropdown-item",vo="active",SH='[data-bs-spy="scroll"]',hh="[href]",xH=".nav, .list-group",h0=".nav-link",TH=".nav-item",AH=".list-group-item",CH=`${h0}, ${TH} > ${h0}, ${AH}`,IH=".dropdown",MH=".dropdown-toggle",kH={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},PH={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class mf extends Cn{constructor(e,r){super(e,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return kH}static get DefaultType(){return PH}static get NAME(){return bH}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=ns(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(r=>Number.parseFloat(r))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&($e.off(this._config.target,d0),$e.on(this._config.target,d0,hh,e=>{const r=this._observableSections.get(e.target.hash);if(r){e.preventDefault();const n=this._rootElement||window,s=r.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:s,behavior:"smooth"});return}n.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),e)}_observerCallback(e){const r=a=>this._targetLinks.get(`#${a.target.id}`),n=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(r(a))},s=(this._rootElement||document.documentElement).scrollTop,i=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(a));continue}const o=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&o){if(n(a),!s)return;continue}!i&&!o&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Qe.find(hh,this._config.target);for(const r of e){if(!r.hash||is(r))continue;const n=Qe.findOne(decodeURI(r.hash),this._element);ha(n)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(vo),this._activateParents(e),$e.trigger(this._element,vH,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(EH)){Qe.findOne(MH,e.closest(IH)).classList.add(vo);return}for(const r of Qe.parents(e,xH))for(const n of Qe.prev(r,CH))n.classList.add(vo)}_clearActiveClass(e){e.classList.remove(vo);const r=Qe.find(`${hh}.${vo}`,e);for(const n of r)n.classList.remove(vo)}static jQueryInterface(e){return this.each(function(){const r=mf.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}$e.on(window,_H,()=>{for(const t of Qe.find(SH))mf.getOrCreateInstance(t)});hn(mf);const OH="tab",LH="bs.tab",ho=`.${LH}`,RH=`hide${ho}`,BH=`hidden${ho}`,$H=`show${ho}`,NH=`shown${ho}`,DH=`click${ho}`,UH=`keydown${ho}`,FH=`load${ho}`,VH="ArrowLeft",p0="ArrowRight",jH="ArrowUp",g0="ArrowDown",ph="Home",m0="End",$s="active",b0="fade",gh="show",WH="dropdown",Qx=".dropdown-toggle",zH=".dropdown-menu",mh=`:not(${Qx})`,HH='.list-group, .nav, [role="tablist"]',qH=".nav-item, .list-group-item",GH=`.nav-link${mh}, .list-group-item${mh}, [role="tab"]${mh}`,Jx='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',bh=`${GH}, ${Jx}`,YH=`.${$s}[data-bs-toggle="tab"], .${$s}[data-bs-toggle="pill"], .${$s}[data-bs-toggle="list"]`;class na extends Cn{constructor(e){super(e),this._parent=this._element.closest(HH),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),$e.on(this._element,UH,r=>this._keydown(r)))}static get NAME(){return OH}show(){const e=this._element;if(this._elemIsActive(e))return;const r=this._getActiveElem(),n=r?$e.trigger(r,RH,{relatedTarget:e}):null;$e.trigger(e,$H,{relatedTarget:r}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(r,e),this._activate(e,r))}_activate(e,r){if(!e)return;e.classList.add($s),this._activate(Qe.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(gh);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),$e.trigger(e,NH,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(b0))}_deactivate(e,r){if(!e)return;e.classList.remove($s),e.blur(),this._deactivate(Qe.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(gh);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),$e.trigger(e,BH,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(b0))}_keydown(e){if(![VH,p0,jH,g0,ph,m0].includes(e.key))return;e.stopPropagation(),e.preventDefault();const r=this._getChildren().filter(s=>!is(s));let n;if([ph,m0].includes(e.key))n=r[e.key===ph?0:r.length-1];else{const s=[p0,g0].includes(e.key);n=nb(r,e.target,s,!0)}n&&(n.focus({preventScroll:!0}),na.getOrCreateInstance(n).show())}_getChildren(){return Qe.find(bh,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,r){this._setAttributeIfNotExists(e,"role","tablist");for(const n of r)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const r=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",r),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),r||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const r=Qe.getElementFromSelector(e);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,r){const n=this._getOuterElement(e);if(!n.classList.contains(WH))return;const s=(i,a)=>{const o=Qe.findOne(i,n);o&&o.classList.toggle(a,r)};s(Qx,$s),s(zH,gh),n.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(e,r,n){e.hasAttribute(r)||e.setAttribute(r,n)}_elemIsActive(e){return e.classList.contains($s)}_getInnerElement(e){return e.matches(bh)?e:Qe.findOne(bh,e)}_getOuterElement(e){return e.closest(qH)||e}static jQueryInterface(e){return this.each(function(){const r=na.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}$e.on(document,DH,Jx,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!is(this)&&na.getOrCreateInstance(this).show()});$e.on(window,FH,()=>{for(const t of Qe.find(YH))na.getOrCreateInstance(t)});hn(na);const KH="toast",XH="bs.toast",ds=`.${XH}`,QH=`mouseover${ds}`,JH=`mouseout${ds}`,ZH=`focusin${ds}`,eq=`focusout${ds}`,tq=`hide${ds}`,rq=`hidden${ds}`,nq=`show${ds}`,iq=`shown${ds}`,sq="fade",y0="hide",yu="show",wu="showing",oq={animation:"boolean",autohide:"boolean",delay:"number"},aq={animation:!0,autohide:!0,delay:5e3};class bf extends Cn{constructor(e,r){super(e,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return aq}static get DefaultType(){return oq}static get NAME(){return KH}show(){if($e.trigger(this._element,nq).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(sq);const r=()=>{this._element.classList.remove(wu),$e.trigger(this._element,iq),this._maybeScheduleHide()};this._element.classList.remove(y0),$l(this._element),this._element.classList.add(yu,wu),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||$e.trigger(this._element,tq).defaultPrevented)return;const r=()=>{this._element.classList.add(y0),this._element.classList.remove(wu,yu),$e.trigger(this._element,rq)};this._element.classList.add(wu),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(yu),super.dispose()}isShown(){return this._element.classList.contains(yu)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,r){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){$e.on(this._element,QH,e=>this._onInteraction(e,!0)),$e.on(this._element,JH,e=>this._onInteraction(e,!1)),$e.on(this._element,ZH,e=>this._onInteraction(e,!0)),$e.on(this._element,eq,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const r=bf.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}hf(bf);hn(bf);function lq(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let i;const a=ir();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=a.createElement("div");function l(g,b){const v=e.params.virtual;if(v.cache&&e.virtual.cache[b])return e.virtual.cache[b];let w;return v.renderSlide?(w=v.renderSlide.call(e,g,b),typeof w=="string"&&(o.innerHTML=w,w=o.children[0])):e.isElement?w=Gr("swiper-slide"):w=Gr("div",e.params.slideClass),w.setAttribute("data-swiper-slide-index",b),v.renderSlide||(w.innerHTML=g),v.cache&&(e.virtual.cache[b]=w),w}function u(g,b){const{slidesPerView:v,slidesPerGroup:w,centeredSlides:_,loop:y,initialSlide:x}=e.params;if(b&&!y&&x>0)return;const{addSlidesBefore:T,addSlidesAfter:A}=e.params.virtual,{from:C,to:L,slides:j,slidesGrid:R,offset:U}=e.virtual;e.params.cssMode||e.updateActiveIndex();const I=e.activeIndex||0;let M;e.rtlTranslate?M="right":M=e.isHorizontal()?"left":"top";let $,Z;_?($=Math.floor(v/2)+w+A,Z=Math.floor(v/2)+w+T):($=v+(w-1)+A,Z=(y?v:w)+T);let ne=I-Z,re=I+$;y||(ne=Math.max(ne,0),re=Math.min(re,j.length-1));let N=(e.slidesGrid[ne]||0)-(e.slidesGrid[0]||0);y&&I>=Z?(ne-=Z,_||(N+=e.slidesGrid[0])):y&&I{ee.style[M]=`${N-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),s("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:N,from:ne,to:re,slides:function(){const K=[];for(let W=ne;W<=re;W+=1)K.push(j[W]);return K}()}),e.params.virtual.renderExternalUpdate?fe():s("virtualUpdate");return}const G=[],pe=[],F=ee=>{let K=ee;return ee<0?K=j.length+ee:K>=j.length&&(K=K-j.length),K};if(g)e.slides.filter(ee=>ee.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(ee=>{ee.remove()});else for(let ee=C;ee<=L;ee+=1)if(eere){const K=F(ee);e.slides.filter(W=>W.matches(`.${e.params.slideClass}[data-swiper-slide-index="${K}"], swiper-slide[data-swiper-slide-index="${K}"]`)).forEach(W=>{W.remove()})}const de=y?-j.length:0,Se=y?j.length*2:j.length;for(let ee=de;ee=ne&&ee<=re){const K=F(ee);typeof L>"u"||g?pe.push(K):(ee>L&&pe.push(K),ee{e.slidesEl.append(l(j[ee],ee))}),y)for(let ee=G.length-1;ee>=0;ee-=1){const K=G[ee];e.slidesEl.prepend(l(j[K],K))}else G.sort((ee,K)=>K-ee),G.forEach(ee=>{e.slidesEl.prepend(l(j[ee],ee))});ur(e.slidesEl,".swiper-slide, swiper-slide").forEach(ee=>{ee.style[M]=`${N-Math.abs(e.cssOverflowAdjustment())}px`}),fe()}function c(g){if(typeof g=="object"&&"length"in g)for(let b=0;b{const T=_[x],A=T.getAttribute("data-swiper-slide-index");A&&T.setAttribute("data-swiper-slide-index",parseInt(A,10)+w),y[parseInt(x,10)+w]=T}),e.virtual.cache=y}u(!0),e.slideTo(v,0)}function d(g){if(typeof g>"u"||g===null)return;let b=e.activeIndex;if(Array.isArray(g))for(let v=g.length-1;v>=0;v-=1)e.params.virtual.cache&&(delete e.virtual.cache[g[v]],Object.keys(e.virtual.cache).forEach(w=>{w>g&&(e.virtual.cache[w-1]=e.virtual.cache[w],e.virtual.cache[w-1].setAttribute("data-swiper-slide-index",w-1),delete e.virtual.cache[w])})),e.virtual.slides.splice(g[v],1),g[v]{v>g&&(e.virtual.cache[v-1]=e.virtual.cache[v],e.virtual.cache[v-1].setAttribute("data-swiper-slide-index",v-1),delete e.virtual.cache[v])})),e.virtual.slides.splice(g,1),g{if(!e.params.virtual.enabled)return;let g;if(typeof e.passedParams.virtual.slides>"u"){const b=[...e.slidesEl.children].filter(v=>v.matches(`.${e.params.slideClass}, swiper-slide`));b.length&&(e.virtual.slides=[...b],g=!0,b.forEach((v,w)=>{v.setAttribute("data-swiper-slide-index",w),e.virtual.cache[w]=v,v.remove()}))}g||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,u(!1,!0)}),n("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(i),i=setTimeout(()=>{u()},100)):u())}),n("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&qa(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:c,prependSlide:f,removeSlide:d,removeAllSlides:p,update:u})}function uq(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=ir(),a=Nt();e.keyboard={enabled:!1},r({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(c){if(!e.enabled)return;const{rtlTranslate:f}=e;let d=c;d.originalEvent&&(d=d.originalEvent);const p=d.keyCode||d.charCode,g=e.params.keyboard.pageUpDown,b=g&&p===33,v=g&&p===34,w=p===37,_=p===39,y=p===38,x=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&_||e.isVertical()&&x||v)||!e.allowSlidePrev&&(e.isHorizontal()&&w||e.isVertical()&&y||b))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||v||w||_||y||x)){let T=!1;if(Ws(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ws(e.el,`.${e.params.slideActiveClass}`).length===0)return;const A=e.el,C=A.clientWidth,L=A.clientHeight,j=a.innerWidth,R=a.innerHeight,U=Ac(A);f&&(U.left-=A.scrollLeft);const I=[[U.left,U.top],[U.left+C,U.top],[U.left,U.top+L],[U.left+C,U.top+L]];for(let M=0;M=0&&$[0]<=j&&$[1]>=0&&$[1]<=R){if($[0]===0&&$[1]===0)continue;T=!0}}if(!T)return}e.isHorizontal()?((b||v||w||_)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((v||_)&&!f||(b||w)&&f)&&e.slideNext(),((b||w)&&!f||(v||_)&&f)&&e.slidePrev()):((b||v||y||x)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(v||x)&&e.slideNext(),(b||y)&&e.slidePrev()),s("keyPress",p)}}function l(){e.keyboard.enabled||(i.addEventListener("keydown",o),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(i.removeEventListener("keydown",o),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&l()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:l,disable:u})}function cq(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=Nt();r({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,o=nn(),l;const u=[];function c(y){let C=0,L=0,j=0,R=0;return"detail"in y&&(L=y.detail),"wheelDelta"in y&&(L=-y.wheelDelta/120),"wheelDeltaY"in y&&(L=-y.wheelDeltaY/120),"wheelDeltaX"in y&&(C=-y.wheelDeltaX/120),"axis"in y&&y.axis===y.HORIZONTAL_AXIS&&(C=L,L=0),j=C*10,R=L*10,"deltaY"in y&&(R=y.deltaY),"deltaX"in y&&(j=y.deltaX),y.shiftKey&&!j&&(j=R,R=0),(j||R)&&y.deltaMode&&(y.deltaMode===1?(j*=40,R*=40):(j*=800,R*=800)),j&&!C&&(C=j<1?-1:1),R&&!L&&(L=R<1?-1:1),{spinX:C,spinY:L,pixelX:j,pixelY:R}}function f(){e.enabled&&(e.mouseEntered=!0)}function d(){e.enabled&&(e.mouseEntered=!1)}function p(y){return e.params.mousewheel.thresholdDelta&&y.delta=6&&nn()-o<60?!0:(y.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",y.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",y.raw)),o=new i.Date().getTime(),!1)}function g(y){const x=e.params.mousewheel;if(y.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function b(y){let x=y,T=!0;if(!e.enabled||y.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const A=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let C=e.el;e.params.mousewheel.eventsTarget!=="container"&&(C=document.querySelector(e.params.mousewheel.eventsTarget));const L=C&&C.contains(x.target);if(!e.mouseEntered&&!L&&!A.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let j=0;const R=e.rtlTranslate?-1:1,U=c(x);if(A.forceToAxis)if(e.isHorizontal())if(Math.abs(U.pixelX)>Math.abs(U.pixelY))j=-U.pixelX*R;else return!0;else if(Math.abs(U.pixelY)>Math.abs(U.pixelX))j=-U.pixelY;else return!0;else j=Math.abs(U.pixelX)>Math.abs(U.pixelY)?-U.pixelX*R:-U.pixelY;if(j===0)return!0;A.invert&&(j=-j);let I=e.getTranslate()+j*A.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),T=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),T&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:nn(),delta:Math.abs(j),direction:Math.sign(j),raw:y};u.length>=2&&u.shift();const $=u.length?u[u.length-1]:void 0;if(u.push(M),$?(M.direction!==$.direction||M.delta>$.delta||M.time>$.time+150)&&p(M):p(M),g(M))return!0}else{const M={time:nn(),delta:Math.abs(j),direction:Math.sign(j)},$=l&&M.time=e.minTranslate()&&(Z=e.minTranslate()),Z<=e.maxTranslate()&&(Z=e.maxTranslate()),e.setTransition(0),e.setTranslate(Z),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!ne&&e.isBeginning||!re&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,u.length>=15&&u.shift();const N=u.length?u[u.length-1]:void 0,fe=u[0];if(u.push(M),N&&(M.delta>N.delta||M.direction!==N.direction))u.splice(0);else if(u.length>=15&&M.time-fe.time<500&&fe.delta-M.delta>=1&&M.delta<=6){const G=j>0?.8:.2;l=M,u.splice(0),a=Qs(()=>{e.destroyed||!e.params||e.slideToClosest(e.params.speed,!0,void 0,G)},0)}a||(a=Qs(()=>{if(e.destroyed||!e.params)return;const G=.5;l=M,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,G)},500))}if($||s("scroll",x),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),A.releaseOnEdges&&(Z===e.minTranslate()||Z===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function v(y){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[y]("mouseenter",f),x[y]("mouseleave",d),x[y]("wheel",b)}function w(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(v("addEventListener"),e.mousewheel.enabled=!0,!0)}function _(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(v("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&_(),e.params.mousewheel.enabled&&w()}),n("destroy",()=>{e.params.cssMode&&w(),e.mousewheel.enabled&&_()}),Object.assign(e.mousewheel,{enable:w,disable:_})}function lb(t,e,r,n){return t.params.createElements&&Object.keys(n).forEach(s=>{if(!r[s]&&r.auto===!0){let i=ur(t.el,`.${n[s]}`)[0];i||(i=Gr("div",n[s]),i.className=n[s],t.el.append(i)),r[s]=i,e[s]=i}}),r}function fq(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function i(g){let b;return g&&typeof g=="string"&&e.isElement&&(b=e.el.querySelector(g)||e.hostEl.querySelector(g),b)?b:(g&&(typeof g=="string"&&(b=[...document.querySelectorAll(g)]),e.params.uniqueNavElements&&typeof g=="string"&&b&&b.length>1&&e.el.querySelectorAll(g).length===1?b=e.el.querySelector(g):b&&b.length===1&&(b=b[0])),g&&!b?g:b)}function a(g,b){const v=e.params.navigation;g=lt(g),g.forEach(w=>{w&&(w.classList[b?"add":"remove"](...v.disabledClass.split(" ")),w.tagName==="BUTTON"&&(w.disabled=b),e.params.watchOverflow&&e.enabled&&w.classList[e.isLocked?"add":"remove"](v.lockClass))})}function o(){const{nextEl:g,prevEl:b}=e.navigation;if(e.params.loop){a(b,!1),a(g,!1);return}a(b,e.isBeginning&&!e.params.rewind),a(g,e.isEnd&&!e.params.rewind)}function l(g){g.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function u(g){g.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function c(){const g=e.params.navigation;if(e.params.navigation=lb(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let b=i(g.nextEl),v=i(g.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:v}),b=lt(b),v=lt(v);const w=(_,y)=>{_&&_.addEventListener("click",y==="next"?u:l),!e.enabled&&_&&_.classList.add(...g.lockClass.split(" "))};b.forEach(_=>w(_,"next")),v.forEach(_=>w(_,"prev"))}function f(){let{nextEl:g,prevEl:b}=e.navigation;g=lt(g),b=lt(b);const v=(w,_)=>{w.removeEventListener("click",_==="next"?u:l),w.classList.remove(...e.params.navigation.disabledClass.split(" "))};g.forEach(w=>v(w,"next")),b.forEach(w=>v(w,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(c(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:g,prevEl:b}=e.navigation;if(g=lt(g),b=lt(b),e.enabled){o();return}[...g,...b].filter(v=>!!v).forEach(v=>v.classList.add(e.params.navigation.lockClass))}),n("click",(g,b)=>{let{nextEl:v,prevEl:w}=e.navigation;v=lt(v),w=lt(w);const _=b.target;let y=w.includes(_)||v.includes(_);if(e.isElement&&!y){const x=b.path||b.composedPath&&b.composedPath();x&&(y=x.find(T=>v.includes(T)||w.includes(T)))}if(e.params.navigation.hideOnClick&&!y){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===_||e.pagination.el.contains(_)))return;let x;v.length?x=v[0].classList.contains(e.params.navigation.hiddenClass):w.length&&(x=w[0].classList.contains(e.params.navigation.hiddenClass)),s(x===!0?"navigationShow":"navigationHide"),[...v,...w].filter(T=>!!T).forEach(T=>T.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),o()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:d,disable:p,update:o,init:c,destroy:f})}function fi(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function dq(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:_=>_,formatFractionTotal:_=>_,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(_,y){const{bulletActiveClass:x}=e.params.pagination;_&&(_=_[`${y==="prev"?"previous":"next"}ElementSibling`],_&&(_.classList.add(`${x}-${y}`),_=_[`${y==="prev"?"previous":"next"}ElementSibling`],_&&_.classList.add(`${x}-${y}-${y}`)))}function c(_,y,x){if(_=_%x,y=y%x,y===_+1)return"next";if(y===_-1)return"previous"}function f(_){const y=_.target.closest(fi(e.params.pagination.bulletClass));if(!y)return;_.preventDefault();const x=wl(y)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===x)return;const T=c(e.realIndex,x,e.slides.length);T==="next"?e.slideNext():T==="previous"?e.slidePrev():e.slideToLoop(x)}else e.slideTo(x)}function d(){const _=e.rtl,y=e.params.pagination;if(l())return;let x=e.pagination.el;x=lt(x);let T,A;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,L=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(A=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,A=e.previousSnapIndex):(A=e.previousIndex||0,T=e.activeIndex||0),y.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const j=e.pagination.bullets;let R,U,I;if(y.dynamicBullets&&(a=yg(j[0],e.isHorizontal()?"width":"height"),x.forEach(M=>{M.style[e.isHorizontal()?"width":"height"]=`${a*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&A!==void 0&&(o+=T-(A||0),o>y.dynamicMainBullets-1?o=y.dynamicMainBullets-1:o<0&&(o=0)),R=Math.max(T-o,0),U=R+(Math.min(j.length,y.dynamicMainBullets)-1),I=(U+R)/2),j.forEach(M=>{const $=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(Z=>`${y.bulletActiveClass}${Z}`)].map(Z=>typeof Z=="string"&&Z.includes(" ")?Z.split(" "):Z).flat();M.classList.remove(...$)}),x.length>1)j.forEach(M=>{const $=wl(M);$===T?M.classList.add(...y.bulletActiveClass.split(" ")):e.isElement&&M.setAttribute("part","bullet"),y.dynamicBullets&&($>=R&&$<=U&&M.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),$===R&&u(M,"prev"),$===U&&u(M,"next"))});else{const M=j[T];if(M&&M.classList.add(...y.bulletActiveClass.split(" ")),e.isElement&&j.forEach(($,Z)=>{$.setAttribute("part",Z===T?"bullet-active":"bullet")}),y.dynamicBullets){const $=j[R],Z=j[U];for(let ne=R;ne<=U;ne+=1)j[ne]&&j[ne].classList.add(...`${y.bulletActiveClass}-main`.split(" "));u($,"prev"),u(Z,"next")}}if(y.dynamicBullets){const M=Math.min(j.length,y.dynamicMainBullets+4),$=(a*M-a)/2-I*a,Z=_?"right":"left";j.forEach(ne=>{ne.style[e.isHorizontal()?Z:"top"]=`${$}px`})}}x.forEach((j,R)=>{if(y.type==="fraction"&&(j.querySelectorAll(fi(y.currentClass)).forEach(U=>{U.textContent=y.formatFractionCurrent(T+1)}),j.querySelectorAll(fi(y.totalClass)).forEach(U=>{U.textContent=y.formatFractionTotal(L)})),y.type==="progressbar"){let U;y.progressbarOpposite?U=e.isHorizontal()?"vertical":"horizontal":U=e.isHorizontal()?"horizontal":"vertical";const I=(T+1)/L;let M=1,$=1;U==="horizontal"?M=I:$=I,j.querySelectorAll(fi(y.progressbarFillClass)).forEach(Z=>{Z.style.transform=`translate3d(0,0,0) scaleX(${M}) scaleY(${$})`,Z.style.transitionDuration=`${e.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(j.innerHTML=y.renderCustom(e,T+1,L),R===0&&s("paginationRender",j)):(R===0&&s("paginationRender",j),s("paginationUpdate",j)),e.params.watchOverflow&&e.enabled&&j.classList[e.isLocked?"add":"remove"](y.lockClass)})}function p(){const _=e.params.pagination;if(l())return;const y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let x=e.pagination.el;x=lt(x);let T="";if(_.type==="bullets"){let A=e.params.loop?Math.ceil(y/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&A>y&&(A=y);for(let C=0;C`}_.type==="fraction"&&(_.renderFraction?T=_.renderFraction.call(e,_.currentClass,_.totalClass):T=` / `),_.type==="progressbar"&&(_.renderProgressbar?T=_.renderProgressbar.call(e,_.progressbarFillClass):T=``),e.pagination.bullets=[],x.forEach(A=>{_.type!=="custom"&&(A.innerHTML=T||""),_.type==="bullets"&&e.pagination.bullets.push(...A.querySelectorAll(fi(_.bulletClass)))}),_.type!=="custom"&&s("paginationRender",x[0])}function g(){e.params.pagination=lb(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const _=e.params.pagination;if(!_.el)return;let y;typeof _.el=="string"&&e.isElement&&(y=e.el.querySelector(_.el)),!y&&typeof _.el=="string"&&(y=[...document.querySelectorAll(_.el)]),y||(y=_.el),!(!y||y.length===0)&&(e.params.uniqueNavElements&&typeof _.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...e.el.querySelectorAll(_.el)],y.length>1&&(y=y.find(x=>Ws(x,".swiper")[0]===e.el))),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(e.pagination,{el:y}),y=lt(y),y.forEach(x=>{_.type==="bullets"&&_.clickable&&x.classList.add(...(_.clickableClass||"").split(" ")),x.classList.add(_.modifierClass+_.type),x.classList.add(e.isHorizontal()?_.horizontalClass:_.verticalClass),_.type==="bullets"&&_.dynamicBullets&&(x.classList.add(`${_.modifierClass}${_.type}-dynamic`),o=0,_.dynamicMainBullets<1&&(_.dynamicMainBullets=1)),_.type==="progressbar"&&_.progressbarOpposite&&x.classList.add(_.progressbarOppositeClass),_.clickable&&x.addEventListener("click",f),e.enabled||x.classList.add(_.lockClass)}))}function b(){const _=e.params.pagination;if(l())return;let y=e.pagination.el;y&&(y=lt(y),y.forEach(x=>{x.classList.remove(_.hiddenClass),x.classList.remove(_.modifierClass+_.type),x.classList.remove(e.isHorizontal()?_.horizontalClass:_.verticalClass),_.clickable&&(x.classList.remove(...(_.clickableClass||"").split(" ")),x.removeEventListener("click",f))})),e.pagination.bullets&&e.pagination.bullets.forEach(x=>x.classList.remove(..._.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const _=e.params.pagination;let{el:y}=e.pagination;y=lt(y),y.forEach(x=>{x.classList.remove(_.horizontalClass,_.verticalClass),x.classList.add(e.isHorizontal()?_.horizontalClass:_.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?w():(g(),p(),d())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),n("snapIndexChange",()=>{d()}),n("snapGridLengthChange",()=>{p(),d()}),n("destroy",()=>{b()}),n("enable disable",()=>{let{el:_}=e.pagination;_&&(_=lt(_),_.forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{d()}),n("click",(_,y)=>{const x=y.target,T=lt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!x.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&x===e.navigation.nextEl||e.navigation.prevEl&&x===e.navigation.prevEl))return;const A=T[0].classList.contains(e.params.pagination.hiddenClass);s(A===!0?"paginationShow":"paginationHide"),T.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const v=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:_}=e.pagination;_&&(_=lt(_),_.forEach(y=>y.classList.remove(e.params.pagination.paginationDisabledClass))),g(),p(),d()},w=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:_}=e.pagination;_&&(_=lt(_),_.forEach(y=>y.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:v,disable:w,render:p,update:d,init:g,destroy:b})}function hq(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=ir();let a=!1,o=null,l=null,u,c,f,d;r({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:M}=e,{dragEl:$,el:Z}=I,ne=e.params.scrollbar,re=e.params.loop?e.progressLoop:e.progress;let N=c,fe=(f-c)*re;M?(fe=-fe,fe>0?(N=c-fe,fe=0):-fe+c>f&&(N=f+fe)):fe<0?(N=c+fe,fe=0):fe+c>f&&(N=f-fe),e.isHorizontal()?($.style.transform=`translate3d(${fe}px, 0, 0)`,$.style.width=`${N}px`):($.style.transform=`translate3d(0px, ${fe}px, 0)`,$.style.height=`${N}px`),ne.hide&&(clearTimeout(o),Z.style.opacity=1,o=setTimeout(()=>{Z.style.opacity=0,Z.style.transitionDuration="400ms"},1e3))}function g(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:M,el:$}=I;M.style.width="",M.style.height="",f=e.isHorizontal()?$.offsetWidth:$.offsetHeight,d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=f*d:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${c}px`:M.style.height=`${c}px`,d>=1?$.style.display="none":$.style.display="",e.params.scrollbar.hide&&($.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function v(I){return e.isHorizontal()?I.clientX:I.clientY}function w(I){const{scrollbar:M,rtlTranslate:$}=e,{el:Z}=M;let ne;ne=(v(I)-Ac(Z)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(f-c),ne=Math.max(Math.min(ne,1),0),$&&(ne=1-ne);const re=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*ne;e.updateProgress(re),e.setTranslate(re),e.updateActiveIndex(),e.updateSlidesClasses()}function _(I){const M=e.params.scrollbar,{scrollbar:$,wrapperEl:Z}=e,{el:ne,dragEl:re}=$;a=!0,u=I.target===re?v(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),Z.style.transitionDuration="100ms",re.style.transitionDuration="100ms",w(I),clearTimeout(l),ne.style.transitionDuration="0ms",M.hide&&(ne.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",I)}function y(I){const{scrollbar:M,wrapperEl:$}=e,{el:Z,dragEl:ne}=M;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,w(I),$.style.transitionDuration="0ms",Z.style.transitionDuration="0ms",ne.style.transitionDuration="0ms",s("scrollbarDragMove",I))}function x(I){const M=e.params.scrollbar,{scrollbar:$,wrapperEl:Z}=e,{el:ne}=$;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",Z.style.transitionDuration=""),M.hide&&(clearTimeout(l),l=Qs(()=>{ne.style.opacity=0,ne.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",I),M.snapOnRelease&&e.slideToClosest())}function T(I){const{scrollbar:M,params:$}=e,Z=M.el;if(!Z)return;const ne=Z,re=$.passiveListeners?{passive:!1,capture:!1}:!1,N=$.passiveListeners?{passive:!0,capture:!1}:!1;if(!ne)return;const fe=I==="on"?"addEventListener":"removeEventListener";ne[fe]("pointerdown",_,re),i[fe]("pointermove",y,re),i[fe]("pointerup",x,N)}function A(){!e.params.scrollbar.el||!e.scrollbar.el||T("on")}function C(){!e.params.scrollbar.el||!e.scrollbar.el||T("off")}function L(){const{scrollbar:I,el:M}=e;e.params.scrollbar=lb(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const $=e.params.scrollbar;if(!$.el)return;let Z;if(typeof $.el=="string"&&e.isElement&&(Z=e.el.querySelector($.el)),!Z&&typeof $.el=="string"){if(Z=i.querySelectorAll($.el),!Z.length)return}else Z||(Z=$.el);e.params.uniqueNavElements&&typeof $.el=="string"&&Z.length>1&&M.querySelectorAll($.el).length===1&&(Z=M.querySelector($.el)),Z.length>0&&(Z=Z[0]),Z.classList.add(e.isHorizontal()?$.horizontalClass:$.verticalClass);let ne;Z&&(ne=Z.querySelector(fi(e.params.scrollbar.dragClass)),ne||(ne=Gr("div",e.params.scrollbar.dragClass),Z.append(ne))),Object.assign(I,{el:Z,dragEl:ne}),$.draggable&&A(),Z&&Z.classList[e.enabled?"remove":"add"](...zi(e.params.scrollbar.lockClass))}function j(){const I=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...zi(e.isHorizontal()?I.horizontalClass:I.verticalClass)),C()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:M}=e.scrollbar;M=lt(M),M.forEach($=>{$.classList.remove(I.horizontalClass,I.verticalClass),$.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?U():(L(),b(),p())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{p()}),n("setTransition",(I,M)=>{g(M)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...zi(e.params.scrollbar.lockClass))}),n("destroy",()=>{j()});const R=()=>{e.el.classList.remove(...zi(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...zi(e.params.scrollbar.scrollbarDisabledClass)),L(),b(),p()},U=()=>{e.el.classList.add(...zi(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...zi(e.params.scrollbar.scrollbarDisabledClass)),j()};Object.assign(e.scrollbar,{enable:R,disable:U,updateSize:b,setTranslate:p,init:L,destroy:j})}function pq(t){let{swiper:e,extendParams:r,on:n}=t;r({parallax:{enabled:!1}});const s="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",i=(l,u)=>{const{rtl:c}=e,f=c?-1:1,d=l.getAttribute("data-swiper-parallax")||"0";let p=l.getAttribute("data-swiper-parallax-x"),g=l.getAttribute("data-swiper-parallax-y");const b=l.getAttribute("data-swiper-parallax-scale"),v=l.getAttribute("data-swiper-parallax-opacity"),w=l.getAttribute("data-swiper-parallax-rotate");if(p||g?(p=p||"0",g=g||"0"):e.isHorizontal()?(p=d,g="0"):(g=d,p="0"),p.indexOf("%")>=0?p=`${parseInt(p,10)*u*f}%`:p=`${p*u*f}px`,g.indexOf("%")>=0?g=`${parseInt(g,10)*u}%`:g=`${g*u}px`,typeof v<"u"&&v!==null){const y=v-(v-1)*(1-Math.abs(u));l.style.opacity=y}let _=`translate3d(${p}, ${g}, 0px)`;if(typeof b<"u"&&b!==null){const y=b-(b-1)*(1-Math.abs(u));_+=` scale(${y})`}if(w&&typeof w<"u"&&w!==null){const y=w*u*-1;_+=` rotate(${y}deg)`}l.style.transform=_},a=()=>{const{el:l,slides:u,progress:c,snapGrid:f,isElement:d}=e,p=ur(l,s);e.isElement&&p.push(...ur(e.hostEl,s)),p.forEach(g=>{i(g,c)}),u.forEach((g,b)=>{let v=g.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(v+=Math.ceil(b/2)-c*(f.length-1)),v=Math.min(Math.max(v,-1),1),g.querySelectorAll(`${s}, [data-swiper-parallax-rotate]`).forEach(w=>{i(w,v)})})},o=function(l){l===void 0&&(l=e.params.speed);const{el:u,hostEl:c}=e,f=[...u.querySelectorAll(s)];e.isElement&&f.push(...c.querySelectorAll(s)),f.forEach(d=>{let p=parseInt(d.getAttribute("data-swiper-parallax-duration"),10)||l;l===0&&(p=0),d.style.transitionDuration=`${p}ms`})};n("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),n("init",()=>{e.params.parallax.enabled&&a()}),n("setTranslate",()=>{e.params.parallax.enabled&&a()}),n("setTransition",(l,u)=>{e.params.parallax.enabled&&o(u)})}function gq(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=Nt();r({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a=1,o=!1,l=!1,u={x:0,y:0};const c=-3;let f,d;const p=[],g={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},b={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},v={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let w=1;Object.defineProperty(e.zoom,"scale",{get(){return w},set(ee){if(w!==ee){const K=g.imageEl,W=g.slideEl;s("zoomChange",ee,K,W)}w=ee}});function _(){if(p.length<2)return 1;const ee=p[0].pageX,K=p[0].pageY,W=p[1].pageX,D=p[1].pageY;return Math.sqrt((W-ee)**2+(D-K)**2)}function y(){const ee=e.params.zoom,K=g.imageWrapEl.getAttribute("data-swiper-zoom")||ee.maxRatio;if(ee.limitToOriginalSize&&g.imageEl&&g.imageEl.naturalWidth){const W=g.imageEl.naturalWidth/g.imageEl.offsetWidth;return Math.min(W,K)}return K}function x(){if(p.length<2)return{x:null,y:null};const ee=g.imageEl.getBoundingClientRect();return[(p[0].pageX+(p[1].pageX-p[0].pageX)/2-ee.x-i.scrollX)/a,(p[0].pageY+(p[1].pageY-p[0].pageY)/2-ee.y-i.scrollY)/a]}function T(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function A(ee){const K=T();return!!(ee.target.matches(K)||e.slides.filter(W=>W.contains(ee.target)).length>0)}function C(ee){const K=`.${e.params.zoom.containerClass}`;return!!(ee.target.matches(K)||[...e.hostEl.querySelectorAll(K)].filter(W=>W.contains(ee.target)).length>0)}function L(ee){if(ee.pointerType==="mouse"&&p.splice(0,p.length),!A(ee))return;const K=e.params.zoom;if(f=!1,d=!1,p.push(ee),!(p.length<2)){if(f=!0,g.scaleStart=_(),!g.slideEl){g.slideEl=ee.target.closest(`.${e.params.slideClass}, swiper-slide`),g.slideEl||(g.slideEl=e.slides[e.activeIndex]);let W=g.slideEl.querySelector(`.${K.containerClass}`);if(W&&(W=W.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=W,W?g.imageWrapEl=Ws(g.imageEl,`.${K.containerClass}`)[0]:g.imageWrapEl=void 0,!g.imageWrapEl){g.imageEl=void 0;return}g.maxRatio=y()}if(g.imageEl){const[W,D]=x();g.originX=W,g.originY=D,g.imageEl.style.transitionDuration="0ms"}o=!0}}function j(ee){if(!A(ee))return;const K=e.params.zoom,W=e.zoom,D=p.findIndex(X=>X.pointerId===ee.pointerId);D>=0&&(p[D]=ee),!(p.length<2)&&(d=!0,g.scaleMove=_(),g.imageEl&&(W.scale=g.scaleMove/g.scaleStart*a,W.scale>g.maxRatio&&(W.scale=g.maxRatio-1+(W.scale-g.maxRatio+1)**.5),W.scaleX.pointerId===ee.pointerId);D>=0&&p.splice(D,1),!(!f||!d)&&(f=!1,d=!1,g.imageEl&&(W.scale=Math.max(Math.min(W.scale,g.maxRatio),K.minRatio),g.imageEl.style.transitionDuration=`${e.params.speed}ms`,g.imageEl.style.transform=`translate3d(0,0,0) scale(${W.scale})`,a=W.scale,o=!1,W.scale>1&&g.slideEl?g.slideEl.classList.add(`${K.zoomedSlideClass}`):W.scale<=1&&g.slideEl&&g.slideEl.classList.remove(`${K.zoomedSlideClass}`),W.scale===1&&(g.originX=0,g.originY=0,g.slideEl=void 0)))}let U;function I(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function M(){clearTimeout(U),e.touchEventsData.preventTouchMoveFromPointerMove=!0,U=setTimeout(()=>{e.destroyed||I()})}function $(ee){const K=e.device;if(!g.imageEl||b.isTouched)return;K.android&&ee.cancelable&&ee.preventDefault(),b.isTouched=!0;const W=p.length>0?p[0]:ee;b.touchesStart.x=W.pageX,b.touchesStart.y=W.pageY}function Z(ee){const W=ee.pointerType==="mouse"&&e.params.zoom.panOnMouseMove;if(!A(ee)||!C(ee))return;const D=e.zoom;if(!g.imageEl)return;if(!b.isTouched||!g.slideEl){W&&N(ee);return}if(W){N(ee);return}b.isMoved||(b.width=g.imageEl.offsetWidth||g.imageEl.clientWidth,b.height=g.imageEl.offsetHeight||g.imageEl.clientHeight,b.startX=bg(g.imageWrapEl,"x")||0,b.startY=bg(g.imageWrapEl,"y")||0,g.slideWidth=g.slideEl.offsetWidth,g.slideHeight=g.slideEl.offsetHeight,g.imageWrapEl.style.transitionDuration="0ms");const X=b.width*D.scale,ce=b.height*D.scale;if(b.minX=Math.min(g.slideWidth/2-X/2,0),b.maxX=-b.minX,b.minY=Math.min(g.slideHeight/2-ce/2,0),b.maxY=-b.minY,b.touchesCurrent.x=p.length>0?p[0].pageX:ee.pageX,b.touchesCurrent.y=p.length>0?p[0].pageY:ee.pageY,Math.max(Math.abs(b.touchesCurrent.x-b.touchesStart.x),Math.abs(b.touchesCurrent.y-b.touchesStart.y))>5&&(e.allowClick=!1),!b.isMoved&&!o){if(e.isHorizontal()&&(Math.floor(b.minX)===Math.floor(b.startX)&&b.touchesCurrent.xb.touchesStart.x)){b.isTouched=!1,I();return}if(!e.isHorizontal()&&(Math.floor(b.minY)===Math.floor(b.startY)&&b.touchesCurrent.yb.touchesStart.y)){b.isTouched=!1,I();return}}ee.cancelable&&ee.preventDefault(),ee.stopPropagation(),M(),b.isMoved=!0;const k=(D.scale-a)/(g.maxRatio-e.params.zoom.minRatio),{originX:P,originY:V}=g;b.currentX=b.touchesCurrent.x-b.touchesStart.x+b.startX+k*(b.width-P*2),b.currentY=b.touchesCurrent.y-b.touchesStart.y+b.startY+k*(b.height-V*2),b.currentXb.maxX&&(b.currentX=b.maxX-1+(b.currentX-b.maxX+1)**.8),b.currentYb.maxY&&(b.currentY=b.maxY-1+(b.currentY-b.maxY+1)**.8),v.prevPositionX||(v.prevPositionX=b.touchesCurrent.x),v.prevPositionY||(v.prevPositionY=b.touchesCurrent.y),v.prevTime||(v.prevTime=Date.now()),v.x=(b.touchesCurrent.x-v.prevPositionX)/(Date.now()-v.prevTime)/2,v.y=(b.touchesCurrent.y-v.prevPositionY)/(Date.now()-v.prevTime)/2,Math.abs(b.touchesCurrent.x-v.prevPositionX)<2&&(v.x=0),Math.abs(b.touchesCurrent.y-v.prevPositionY)<2&&(v.y=0),v.prevPositionX=b.touchesCurrent.x,v.prevPositionY=b.touchesCurrent.y,v.prevTime=Date.now(),g.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}function ne(){const ee=e.zoom;if(p.length=0,!g.imageEl)return;if(!b.isTouched||!b.isMoved){b.isTouched=!1,b.isMoved=!1;return}b.isTouched=!1,b.isMoved=!1;let K=300,W=300;const D=v.x*K,X=b.currentX+D,ce=v.y*W,le=b.currentY+ce;v.x!==0&&(K=Math.abs((X-b.currentX)/v.x)),v.y!==0&&(W=Math.abs((le-b.currentY)/v.y));const k=Math.max(K,W);b.currentX=X,b.currentY=le;const P=b.width*ee.scale,V=b.height*ee.scale;b.minX=Math.min(g.slideWidth/2-P/2,0),b.maxX=-b.minX,b.minY=Math.min(g.slideHeight/2-V/2,0),b.maxY=-b.minY,b.currentX=Math.max(Math.min(b.currentX,b.maxX),b.minX),b.currentY=Math.max(Math.min(b.currentY,b.maxY),b.minY),g.imageWrapEl.style.transitionDuration=`${k}ms`,g.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}function re(){const ee=e.zoom;g.slideEl&&e.activeIndex!==e.slides.indexOf(g.slideEl)&&(g.imageEl&&(g.imageEl.style.transform="translate3d(0,0,0) scale(1)"),g.imageWrapEl&&(g.imageWrapEl.style.transform="translate3d(0,0,0)"),g.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),ee.scale=1,a=1,g.slideEl=void 0,g.imageEl=void 0,g.imageWrapEl=void 0,g.originX=0,g.originY=0)}function N(ee){if(a<=1||!g.imageWrapEl||!A(ee)||!C(ee))return;const K=i.getComputedStyle(g.imageWrapEl).transform,W=new i.DOMMatrix(K);if(!l){l=!0,u.x=ee.clientX,u.y=ee.clientY,b.startX=W.e,b.startY=W.f,b.width=g.imageEl.offsetWidth||g.imageEl.clientWidth,b.height=g.imageEl.offsetHeight||g.imageEl.clientHeight,g.slideWidth=g.slideEl.offsetWidth,g.slideHeight=g.slideEl.offsetHeight;return}const D=(ee.clientX-u.x)*c,X=(ee.clientY-u.y)*c,ce=b.width*a,le=b.height*a,k=g.slideWidth,P=g.slideHeight,V=Math.min(k/2-ce/2,0),B=-V,H=Math.min(P/2-le/2,0),q=-H,ue=Math.max(Math.min(b.startX+D,B),V),J=Math.max(Math.min(b.startY+X,q),H);g.imageWrapEl.style.transitionDuration="0ms",g.imageWrapEl.style.transform=`translate3d(${ue}px, ${J}px, 0)`,u.x=ee.clientX,u.y=ee.clientY,b.startX=ue,b.startY=J}function fe(ee){const K=e.zoom,W=e.params.zoom;if(!g.slideEl){ee&&ee.target&&(g.slideEl=ee.target.closest(`.${e.params.slideClass}, swiper-slide`)),g.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?g.slideEl=ur(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:g.slideEl=e.slides[e.activeIndex]);let h=g.slideEl.querySelector(`.${W.containerClass}`);h&&(h=h.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=h,h?g.imageWrapEl=Ws(g.imageEl,`.${W.containerClass}`)[0]:g.imageWrapEl=void 0}if(!g.imageEl||!g.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),g.slideEl.classList.add(`${W.zoomedSlideClass}`);let D,X,ce,le,k,P,V,B,H,q,ue,J,Y,ie,Q,oe,me,Te;typeof b.touchesStart.x>"u"&&ee?(D=ee.pageX,X=ee.pageY):(D=b.touchesStart.x,X=b.touchesStart.y);const S=typeof ee=="number"?ee:null;a===1&&S&&(D=void 0,X=void 0,b.touchesStart.x=void 0,b.touchesStart.y=void 0);const m=y();K.scale=S||m,a=S||m,ee&&!(a===1&&S)?(me=g.slideEl.offsetWidth,Te=g.slideEl.offsetHeight,ce=Ac(g.slideEl).left+i.scrollX,le=Ac(g.slideEl).top+i.scrollY,k=ce+me/2-D,P=le+Te/2-X,H=g.imageEl.offsetWidth||g.imageEl.clientWidth,q=g.imageEl.offsetHeight||g.imageEl.clientHeight,ue=H*K.scale,J=q*K.scale,Y=Math.min(me/2-ue/2,0),ie=Math.min(Te/2-J/2,0),Q=-Y,oe=-ie,V=k*K.scale,B=P*K.scale,VQ&&(V=Q),Boe&&(B=oe)):(V=0,B=0),S&&K.scale===1&&(g.originX=0,g.originY=0),g.imageWrapEl.style.transitionDuration="300ms",g.imageWrapEl.style.transform=`translate3d(${V}px, ${B}px,0)`,g.imageEl.style.transitionDuration="300ms",g.imageEl.style.transform=`translate3d(0,0,0) scale(${K.scale})`}function G(){const ee=e.zoom,K=e.params.zoom;if(!g.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?g.slideEl=ur(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:g.slideEl=e.slides[e.activeIndex];let W=g.slideEl.querySelector(`.${K.containerClass}`);W&&(W=W.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=W,W?g.imageWrapEl=Ws(g.imageEl,`.${K.containerClass}`)[0]:g.imageWrapEl=void 0}!g.imageEl||!g.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),ee.scale=1,a=1,b.touchesStart.x=void 0,b.touchesStart.y=void 0,g.imageWrapEl.style.transitionDuration="300ms",g.imageWrapEl.style.transform="translate3d(0,0,0)",g.imageEl.style.transitionDuration="300ms",g.imageEl.style.transform="translate3d(0,0,0) scale(1)",g.slideEl.classList.remove(`${K.zoomedSlideClass}`),g.slideEl=void 0,g.originX=0,g.originY=0,e.params.zoom.panOnMouseMove&&(u={x:0,y:0},l&&(l=!1,b.startX=0,b.startY=0)))}function pe(ee){const K=e.zoom;K.scale&&K.scale!==1?G():fe(ee)}function F(){const ee=e.params.passiveListeners?{passive:!0,capture:!1}:!1,K=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:ee,activeListenerWithCapture:K}}function de(){const ee=e.zoom;if(ee.enabled)return;ee.enabled=!0;const{passiveListener:K,activeListenerWithCapture:W}=F();e.wrapperEl.addEventListener("pointerdown",L,K),e.wrapperEl.addEventListener("pointermove",j,W),["pointerup","pointercancel","pointerout"].forEach(D=>{e.wrapperEl.addEventListener(D,R,K)}),e.wrapperEl.addEventListener("pointermove",Z,W)}function Se(){const ee=e.zoom;if(!ee.enabled)return;ee.enabled=!1;const{passiveListener:K,activeListenerWithCapture:W}=F();e.wrapperEl.removeEventListener("pointerdown",L,K),e.wrapperEl.removeEventListener("pointermove",j,W),["pointerup","pointercancel","pointerout"].forEach(D=>{e.wrapperEl.removeEventListener(D,R,K)}),e.wrapperEl.removeEventListener("pointermove",Z,W)}n("init",()=>{e.params.zoom.enabled&&de()}),n("destroy",()=>{Se()}),n("touchStart",(ee,K)=>{e.zoom.enabled&&$(K)}),n("touchEnd",(ee,K)=>{e.zoom.enabled&&ne()}),n("doubleTap",(ee,K)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&pe(K)}),n("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&re()}),n("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&re()}),Object.assign(e.zoom,{enable:de,disable:Se,in:fe,out:G,toggle:pe})}function mq(t){let{swiper:e,extendParams:r,on:n}=t;r({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function s(u,c){const f=function(){let b,v,w;return(_,y)=>{for(v=-1,b=_.length;b-v>1;)w=b+v>>1,_[w]<=y?v=w:b=w;return b}}();this.x=u,this.y=c,this.lastIndex=u.length-1;let d,p;return this.interpolate=function(b){return b?(p=f(this.x,b),d=p-1,(b-this.x[d])*(this.y[p]-this.y[d])/(this.x[p]-this.x[d])+this.y[d]):0},this}function i(u){e.controller.spline=e.params.loop?new s(e.slidesGrid,u.slidesGrid):new s(e.snapGrid,u.snapGrid)}function a(u,c){const f=e.controller.control;let d,p;const g=e.constructor;function b(v){if(v.destroyed)return;const w=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(i(v),p=-e.controller.spline.interpolate(-w)),(!p||e.params.controller.by==="container")&&(d=(v.maxTranslate()-v.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),p=(w-e.minTranslate())*d+v.minTranslate()),e.params.controller.inverse&&(p=v.maxTranslate()-p),v.updateProgress(p),v.setTranslate(p,e),v.updateActiveIndex(),v.updateSlidesClasses()}if(Array.isArray(f))for(let v=0;v{b.updateAutoHeight()}),nl(b.wrapperEl,()=>{d&&b.transitionEnd()})))}if(Array.isArray(d))for(p=0;p{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){(typeof e.params.controller.control=="string"?[...document.querySelectorAll(e.params.controller.control)]:[e.params.controller.control]).forEach(c=>{if(e.controller.control||(e.controller.control=[]),c&&c.swiper)e.controller.control.push(c.swiper);else if(c){const f=`${e.params.eventsPrefix}init`,d=p=>{e.controller.control.push(p.detail[0]),e.update(),c.removeEventListener(f,d)};c.addEventListener(f,d)}});return}e.controller.control=e.params.controller.control}),n("update",()=>{l()}),n("resize",()=>{l()}),n("observerUpdate",()=>{l()}),n("setTranslate",(u,c,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(c,f)}),n("setTransition",(u,c,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(c,f)}),Object.assign(e.controller,{setTranslate:a,setTransition:o})}function bq(t){let{swiper:e,extendParams:r,on:n}=t;r({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),e.a11y={clicked:!1};let s=null,i,a,o=new Date().getTime();function l(re){const N=s;N.length!==0&&(N.innerHTML="",N.innerHTML=re)}function u(re){const N=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(re).replace(/x/g,N)}function c(re){re=lt(re),re.forEach(N=>{N.setAttribute("tabIndex","0")})}function f(re){re=lt(re),re.forEach(N=>{N.setAttribute("tabIndex","-1")})}function d(re,N){re=lt(re),re.forEach(fe=>{fe.setAttribute("role",N)})}function p(re,N){re=lt(re),re.forEach(fe=>{fe.setAttribute("aria-roledescription",N)})}function g(re,N){re=lt(re),re.forEach(fe=>{fe.setAttribute("aria-controls",N)})}function b(re,N){re=lt(re),re.forEach(fe=>{fe.setAttribute("aria-label",N)})}function v(re,N){re=lt(re),re.forEach(fe=>{fe.setAttribute("id",N)})}function w(re,N){re=lt(re),re.forEach(fe=>{fe.setAttribute("aria-live",N)})}function _(re){re=lt(re),re.forEach(N=>{N.setAttribute("aria-disabled",!0)})}function y(re){re=lt(re),re.forEach(N=>{N.setAttribute("aria-disabled",!1)})}function x(re){if(re.keyCode!==13&&re.keyCode!==32)return;const N=e.params.a11y,fe=re.target;if(!(e.pagination&&e.pagination.el&&(fe===e.pagination.el||e.pagination.el.contains(re.target))&&!re.target.matches(fi(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const G=lt(e.navigation.prevEl);lt(e.navigation.nextEl).includes(fe)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(N.lastSlideMessage):l(N.nextSlideMessage)),G.includes(fe)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(N.firstSlideMessage):l(N.prevSlideMessage))}e.pagination&&fe.matches(fi(e.params.pagination.bulletClass))&&fe.click()}}function T(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:re,prevEl:N}=e.navigation;N&&(e.isBeginning?(_(N),f(N)):(y(N),c(N))),re&&(e.isEnd?(_(re),f(re)):(y(re),c(re)))}function A(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function C(){return A()&&e.params.pagination.clickable}function L(){const re=e.params.a11y;A()&&e.pagination.bullets.forEach(N=>{e.params.pagination.clickable&&(c(N),e.params.pagination.renderBullet||(d(N,"button"),b(N,re.paginationBulletMessage.replace(/\{\{index\}\}/,wl(N)+1)))),N.matches(fi(e.params.pagination.bulletActiveClass))?N.setAttribute("aria-current","true"):N.removeAttribute("aria-current")})}const j=(re,N,fe)=>{c(re),re.tagName!=="BUTTON"&&(d(re,"button"),re.addEventListener("keydown",x)),b(re,fe),g(re,N)},R=re=>{a&&a!==re.target&&!a.contains(re.target)&&(i=!0),e.a11y.clicked=!0},U=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=re=>{o=new Date().getTime()},M=re=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-o<100)return;const N=re.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!N||!e.slides.includes(N))return;a=N;const fe=e.slides.indexOf(N)===e.activeIndex,G=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(N);fe||G||re.sourceCapabilities&&re.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(parseInt(N.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(N),0),i=!1)}))},$=()=>{const re=e.params.a11y;re.itemRoleDescriptionMessage&&p(e.slides,re.itemRoleDescriptionMessage),re.slideRole&&d(e.slides,re.slideRole);const N=e.slides.length;re.slideLabelMessage&&e.slides.forEach((fe,G)=>{const pe=e.params.loop?parseInt(fe.getAttribute("data-swiper-slide-index"),10):G,F=re.slideLabelMessage.replace(/\{\{index\}\}/,pe+1).replace(/\{\{slidesLength\}\}/,N);b(fe,F)})},Z=()=>{const re=e.params.a11y;e.el.append(s);const N=e.el;re.containerRoleDescriptionMessage&&p(N,re.containerRoleDescriptionMessage),re.containerMessage&&b(N,re.containerMessage),re.containerRole&&d(N,re.containerRole);const fe=e.wrapperEl,G=re.id||fe.getAttribute("id")||`swiper-wrapper-${u(16)}`,pe=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";v(fe,G),w(fe,pe),$();let{nextEl:F,prevEl:de}=e.navigation?e.navigation:{};F=lt(F),de=lt(de),F&&F.forEach(ee=>j(ee,G,re.nextSlideMessage)),de&&de.forEach(ee=>j(ee,G,re.prevSlideMessage)),C()&<(e.pagination.el).forEach(K=>{K.addEventListener("keydown",x)}),ir().addEventListener("visibilitychange",I),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",R,!0),e.el.addEventListener("pointerup",U,!0)};function ne(){s&&s.remove();let{nextEl:re,prevEl:N}=e.navigation?e.navigation:{};re=lt(re),N=lt(N),re&&re.forEach(G=>G.removeEventListener("keydown",x)),N&&N.forEach(G=>G.removeEventListener("keydown",x)),C()&<(e.pagination.el).forEach(pe=>{pe.removeEventListener("keydown",x)}),ir().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",R,!0),e.el.removeEventListener("pointerup",U,!0))}n("beforeInit",()=>{s=Gr("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&Z()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&$()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&T()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&L()}),n("destroy",()=>{e.params.a11y.enabled&&ne()})}function yq(t){let{swiper:e,extendParams:r,on:n}=t;r({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,i={};const a=p=>p.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=p=>{const g=Nt();let b;p?b=new URL(p):b=g.location;const v=b.pathname.slice(1).split("/").filter(x=>x!==""),w=v.length,_=v[w-2],y=v[w-1];return{key:_,value:y}},l=(p,g)=>{const b=Nt();if(!s||!e.params.history.enabled)return;let v;e.params.url?v=new URL(e.params.url):v=b.location;const w=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${g}"]`):e.slides[g];let _=a(w.getAttribute("data-history"));if(e.params.history.root.length>0){let x=e.params.history.root;x[x.length-1]==="/"&&(x=x.slice(0,x.length-1)),_=`${x}/${p?`${p}/`:""}${_}`}else v.pathname.includes(p)||(_=`${p?`${p}/`:""}${_}`);e.params.history.keepQuery&&(_+=v.search);const y=b.history.state;y&&y.value===_||(e.params.history.replaceState?b.history.replaceState({value:_},null,_):b.history.pushState({value:_},null,_))},u=(p,g,b)=>{if(g)for(let v=0,w=e.slides.length;v{i=o(e.params.url),u(e.params.speed,i.value,!1)},f=()=>{const p=Nt();if(e.params.history){if(!p.history||!p.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(s=!0,i=o(e.params.url),!i.key&&!i.value){e.params.history.replaceState||p.addEventListener("popstate",c);return}u(0,i.value,e.params.runCallbacksOnInit),e.params.history.replaceState||p.addEventListener("popstate",c)}},d=()=>{const p=Nt();e.params.history.replaceState||p.removeEventListener("popstate",c)};n("init",()=>{e.params.history.enabled&&f()}),n("destroy",()=>{e.params.history.enabled&&d()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{s&&l(e.params.history.key,e.activeIndex)}),n("slideChange",()=>{s&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)})}function wq(t){let{swiper:e,extendParams:r,emit:n,on:s}=t,i=!1;const a=ir(),o=Nt();r({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(d,p){if(e.virtual&&e.params.virtual.enabled){const g=e.slides.find(v=>v.getAttribute("data-hash")===p);return g?parseInt(g.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(ur(e.slidesEl,`.${e.params.slideClass}[data-hash="${p}"], swiper-slide[data-hash="${p}"]`)[0])}}});const l=()=>{n("hashChange");const d=a.location.hash.replace("#",""),p=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],g=p?p.getAttribute("data-hash"):"";if(d!==g){const b=e.params.hashNavigation.getSlideIndex(e,d);if(typeof b>"u"||Number.isNaN(b))return;e.slideTo(b)}},u=()=>{if(!i||!e.params.hashNavigation.enabled)return;const d=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],p=d?d.getAttribute("data-hash")||d.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${p}`||""),n("hashSet")):(a.location.hash=p||"",n("hashSet"))},c=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;i=!0;const d=a.location.hash.replace("#","");if(d){const g=e.params.hashNavigation.getSlideIndex(e,d);e.slideTo(g||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&o.addEventListener("hashchange",l)},f=()=>{e.params.hashNavigation.watchState&&o.removeEventListener("hashchange",l)};s("init",()=>{e.params.hashNavigation.enabled&&c()}),s("destroy",()=>{e.params.hashNavigation.enabled&&f()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{i&&u()}),s("slideChange",()=>{i&&e.params.cssMode&&u()})}function vq(t){let{swiper:e,extendParams:r,on:n,emit:s,params:i}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l=i&&i.autoplay?i.autoplay.delay:3e3,u=i&&i.autoplay?i.autoplay.delay:3e3,c,f=new Date().getTime(),d,p,g,b,v,w,_;function y(N){!e||e.destroyed||!e.wrapperEl||N.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",y),!(_||N.detail&&N.detail.bySwiperTouchMove)&&R())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&(u=c,d=!1);const N=e.autoplay.paused?c:f+u-new Date().getTime();e.autoplay.timeLeft=N,s("autoplayTimeLeft",N,N/l),o=requestAnimationFrame(()=>{x()})},T=()=>{let N;return e.virtual&&e.params.virtual.enabled?N=e.slides.find(G=>G.classList.contains("swiper-slide-active")):N=e.slides[e.activeIndex],N?parseInt(N.getAttribute("data-swiper-autoplay"),10):void 0},A=N=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),x();let fe=typeof N>"u"?e.params.autoplay.delay:N;l=e.params.autoplay.delay,u=e.params.autoplay.delay;const G=T();!Number.isNaN(G)&&G>0&&typeof N>"u"&&(fe=G,l=G,u=G),c=fe;const pe=e.params.speed,F=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(pe,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,pe,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(pe,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,pe,!0,!0),s("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{A()})))};return fe>0?(clearTimeout(a),a=setTimeout(()=>{F()},fe)):requestAnimationFrame(()=>{F()}),fe},C=()=>{f=new Date().getTime(),e.autoplay.running=!0,A(),s("autoplayStart")},L=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),s("autoplayStop")},j=(N,fe)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),N||(w=!0);const G=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",y):R()};if(e.autoplay.paused=!0,fe){v&&(c=e.params.autoplay.delay),v=!1,G();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),G())},R=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),w?(w=!1,A(c)):A(),e.autoplay.paused=!1,s("autoplayResume"))},U=()=>{if(e.destroyed||!e.autoplay.running)return;const N=ir();N.visibilityState==="hidden"&&(w=!0,j(!0)),N.visibilityState==="visible"&&R()},I=N=>{N.pointerType==="mouse"&&(w=!0,_=!0,!(e.animating||e.autoplay.paused)&&j(!0))},M=N=>{N.pointerType==="mouse"&&(_=!1,e.autoplay.paused&&R())},$=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",M))},Z=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",M))},ne=()=>{ir().addEventListener("visibilitychange",U)},re=()=>{ir().removeEventListener("visibilitychange",U)};n("init",()=>{e.params.autoplay.enabled&&($(),ne(),C())}),n("destroy",()=>{Z(),re(),e.autoplay.running&&L()}),n("_freeModeStaticRelease",()=>{(g||w)&&R()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?L():j(!0,!0)}),n("beforeTransitionStart",(N,fe,G)=>{e.destroyed||!e.autoplay.running||(G||!e.params.autoplay.disableOnInteraction?j(!0,!0):L())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){L();return}p=!0,g=!1,w=!1,b=setTimeout(()=>{w=!0,g=!0,j(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(b),clearTimeout(a),e.params.autoplay.disableOnInteraction){g=!1,p=!1;return}g&&e.params.cssMode&&R(),g=!1,p=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(v=!0)}),Object.assign(e.autoplay,{start:C,stop:L,pause:j,resume:R})}function _q(t){let{swiper:e,extendParams:r,on:n}=t;r({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,i=!1;e.thumbs={swiper:null};function a(){const u=e.thumbs.swiper;if(!u||u.destroyed)return;const c=u.clickedIndex,f=u.clickedSlide;if(f&&f.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof c>"u"||c===null)return;let d;u.params.loop?d=parseInt(u.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=c,e.params.loop?e.slideToLoop(d):e.slideTo(d)}function o(){const{thumbs:u}=e.params;if(s)return!1;s=!0;const c=e.constructor;if(u.swiper instanceof c)e.thumbs.swiper=u.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(Ha(u.swiper)){const f=Object.assign({},u.swiper);Object.assign(f,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new c(f),i=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",a),!0}function l(u){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const f=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView;let d=1;const p=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),c.slides.forEach(v=>v.classList.remove(p)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let v=0;v{w.classList.add(p)});else for(let v=0;vx.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);w=c.slides.indexOf(y),_=e.activeIndex>e.previousIndex?"next":"prev"}else w=e.realIndex,_=w>e.previousIndex?"next":"prev";b&&(w+=_==="next"?g:-1*g),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(w)<0&&(c.params.centeredSlides?w>v?w=w-Math.floor(f/2)+1:w=w+Math.floor(f/2)-1:w>v&&c.params.slidesPerGroup,c.slideTo(w,u?0:void 0))}}n("beforeInit",()=>{const{thumbs:u}=e.params;if(!(!u||!u.swiper))if(typeof u.swiper=="string"||u.swiper instanceof HTMLElement){const c=ir(),f=()=>{const p=typeof u.swiper=="string"?c.querySelector(u.swiper):u.swiper;if(p&&p.swiper)u.swiper=p.swiper,o(),l(!0);else if(p){const g=`${e.params.eventsPrefix}init`,b=v=>{u.swiper=v.detail[0],p.removeEventListener(g,b),o(),l(!0),u.swiper.update(),e.update()};p.addEventListener(g,b)}return p},d=()=>{if(e.destroyed)return;f()||requestAnimationFrame(d)};requestAnimationFrame(d)}else o(),l(!0)}),n("slideChange update resize observerUpdate",()=>{l()}),n("setTransition",(u,c)=>{const f=e.thumbs.swiper;!f||f.destroyed||f.setTransition(c)}),n("beforeDestroy",()=>{const u=e.thumbs.swiper;!u||u.destroyed||i&&u.destroy()}),Object.assign(e.thumbs,{init:o,update:l})}function Eq(t){let{swiper:e,extendParams:r,emit:n,once:s}=t;r({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function i(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:l,touches:u}=e;l.velocities.length===0&&l.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:nn()})}function o(l){let{currentPos:u}=l;if(e.params.cssMode)return;const{params:c,wrapperEl:f,rtlTranslate:d,snapGrid:p,touchEventsData:g}=e,v=nn()-g.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length1){const L=g.velocities.pop(),j=g.velocities.pop(),R=L.position-j.position,U=L.time-j.time;e.velocity=R/U,e.velocity/=2,Math.abs(e.velocity)150||nn()-L.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,g.velocities.length=0;let w=1e3*c.freeMode.momentumRatio;const _=e.velocity*w;let y=e.translate+_;d&&(y=-y);let x=!1,T;const A=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let C;if(ye.minTranslate())c.freeMode.momentumBounce?(y-e.minTranslate()>A&&(y=e.minTranslate()+A),T=e.minTranslate(),x=!0,g.allowMomentumBounce=!0):y=e.minTranslate(),c.loop&&c.centeredSlides&&(C=!0);else if(c.freeMode.sticky){let L;for(let j=0;j-y){L=j;break}Math.abs(p[L]-y){e.loopFix()}),e.velocity!==0){if(d?w=Math.abs((-y-e.translate)/e.velocity):w=Math.abs((y-e.translate)/e.velocity),c.freeMode.sticky){const L=Math.abs((d?-y:y)-e.translate),j=e.slidesSizesGrid[e.activeIndex];L{!e||e.destroyed||!g.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(T),nl(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(y),e.setTransition(w),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,nl(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(y),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||v>=c.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:i,onTouchMove:a,onTouchEnd:o}})}function Sq(t){let{swiper:e,extendParams:r,on:n}=t;r({grid:{rows:1,fill:"column"}});let s,i,a,o;const l=()=>{let b=e.params.spaceBetween;return typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*e.size:typeof b=="string"&&(b=parseFloat(b)),b},u=b=>{const{slidesPerView:v}=e.params,{rows:w,fill:_}=e.params.grid,y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:b.length;a=Math.floor(y/w),Math.floor(y/w)===y/w?s=y:s=Math.ceil(y/w)*w,v!=="auto"&&_==="row"&&(s=Math.max(s,v*w)),i=s/w},c=()=>{e.slides&&e.slides.forEach(b=>{b.swiperSlideGridSet&&(b.style.height="",b.style[e.getDirectionLabel("margin-top")]="")})},f=(b,v,w)=>{const{slidesPerGroup:_}=e.params,y=l(),{rows:x,fill:T}=e.params.grid,A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:w.length;let C,L,j;if(T==="row"&&_>1){const R=Math.floor(b/(_*x)),U=b-x*_*R,I=R===0?_:Math.min(Math.ceil((A-R*x*_)/x),_);j=Math.floor(U/I),L=U-j*I+R*_,C=L+j*s/x,v.style.order=C}else T==="column"?(L=Math.floor(b/x),j=b-L*x,(L>a||L===a&&j===x-1)&&(j+=1,j>=x&&(j=0,L+=1))):(j=Math.floor(b/i),L=b-j*i);v.row=j,v.column=L,v.style.height=`calc((100% - ${(x-1)*y}px) / ${x})`,v.style[e.getDirectionLabel("margin-top")]=j!==0?y&&`${y}px`:"",v.swiperSlideGridSet=!0},d=(b,v)=>{const{centeredSlides:w,roundLengths:_}=e.params,y=l(),{rows:x}=e.params.grid;if(e.virtualSize=(b+y)*s,e.virtualSize=Math.ceil(e.virtualSize/x)-y,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),w){const T=[];for(let A=0;A{o=e.params.grid&&e.params.grid.rows>1},g=()=>{const{params:b,el:v}=e,w=b.grid&&b.grid.rows>1;o&&!w?(v.classList.remove(`${b.containerModifierClass}grid`,`${b.containerModifierClass}grid-column`),a=1,e.emitContainerClasses()):!o&&w&&(v.classList.add(`${b.containerModifierClass}grid`),b.grid.fill==="column"&&v.classList.add(`${b.containerModifierClass}grid-column`),e.emitContainerClasses()),o=w};n("init",p),n("update",g),e.grid={initSlides:u,unsetSlides:c,updateSlide:f,updateWrapperSize:d}}function xq(t){const e=this,{params:r,slidesEl:n}=e;r.loop&&e.loopDestroy();const s=i=>{if(typeof i=="string"){const a=document.createElement("div");a.innerHTML=i,n.append(a.children[0]),a.innerHTML=""}else n.append(i)};if(typeof t=="object"&&"length"in t)for(let i=0;i{if(typeof o=="string"){const l=document.createElement("div");l.innerHTML=o,s.prepend(l.children[0]),l.innerHTML=""}else s.prepend(o)};if(typeof t=="object"&&"length"in t){for(let o=0;o=o){r.appendSlide(e);return}let l=a>t?a+1:a;const u=[];for(let c=o-1;c>=t;c-=1){const f=r.slides[c];f.remove(),u.unshift(f)}if(typeof e=="object"&&"length"in e){for(let c=0;ct?a+e.length:a}else i.append(e);for(let c=0;c{if(r.params.effect!==e)return;r.classNames.push(`${r.params.containerModifierClass}${e}`),o&&o()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const f=a?a():{};Object.assign(r.params,f),Object.assign(r.originalParams,f)}),n("setTranslate",()=>{r.params.effect===e&&s()}),n("setTransition",(f,d)=>{r.params.effect===e&&i(d)}),n("transitionEnd",()=>{if(r.params.effect===e&&l){if(!u||!u().slideShadows)return;r.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>d.remove())}),l()}});let c;n("virtualUpdate",()=>{r.params.effect===e&&(r.slides.length||(c=!0),requestAnimationFrame(()=>{c&&r.slides&&r.slides.length&&(s(),c=!1)}))})}function Fl(t,e){const r=co(e);return r!==e&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function yf(t){let{swiper:e,duration:r,transformElements:n,allSlides:s}=t;const{activeIndex:i}=e,a=o=>o.parentElement?o.parentElement:e.slides.find(u=>u.shadowRoot&&u.shadowRoot===o.parentNode);if(e.params.virtualTranslate&&r!==0){let o=!1,l;s?l=n:l=n.filter(u=>{const c=u.classList.contains("swiper-slide-transform")?a(u):u;return e.getSlideIndex(c)===i}),l.forEach(u=>{nl(u,()=>{if(o||!e||e.destroyed)return;o=!0,e.animating=!1;const c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(c)})})}}function kq(t){let{swiper:e,extendParams:r,on:n}=t;r({fadeEffect:{crossFade:!1}}),ma({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:a}=e,o=e.params.fadeEffect;for(let l=0;l{const o=e.slides.map(l=>co(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`}),yf({swiper:e,duration:a,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function Pq(t){let{swiper:e,extendParams:r,on:n}=t;r({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(l,u,c)=>{let f=c?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),d=c?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");f||(f=Gr("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"left":"top"}`.split(" ")),l.append(f)),d||(d=Gr("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"right":"bottom"}`.split(" ")),l.append(d)),f&&(f.style.opacity=Math.max(-u,0)),d&&(d.style.opacity=Math.max(u,0))};ma({effect:"cube",swiper:e,on:n,setTranslate:()=>{const{el:l,wrapperEl:u,slides:c,width:f,height:d,rtlTranslate:p,size:g,browser:b}=e,v=uf(e),w=e.params.cubeEffect,_=e.isHorizontal(),y=e.virtual&&e.params.virtual.enabled;let x=0,T;w.shadow&&(_?(T=e.wrapperEl.querySelector(".swiper-cube-shadow"),T||(T=Gr("div","swiper-cube-shadow"),e.wrapperEl.append(T)),T.style.height=`${f}px`):(T=l.querySelector(".swiper-cube-shadow"),T||(T=Gr("div","swiper-cube-shadow"),l.append(T))));for(let C=0;C-1&&(x=j*90+I*90,p&&(x=-j*90-I*90)),L.style.transform=ne,w.slideShadows&&s(L,I,_)}if(u.style.transformOrigin=`50% 50% -${g/2}px`,u.style["-webkit-transform-origin"]=`50% 50% -${g/2}px`,w.shadow)if(_)T.style.transform=`translate3d(0px, ${f/2+w.shadowOffset}px, ${-f/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${w.shadowScale})`;else{const C=Math.abs(x)-Math.floor(Math.abs(x)/90)*90,L=1.5-(Math.sin(C*2*Math.PI/360)/2+Math.cos(C*2*Math.PI/360)/2),j=w.shadowScale,R=w.shadowScale/L,U=w.shadowOffset;T.style.transform=`scale3d(${j}, 1, ${R}) translate3d(0px, ${d/2+U}px, ${-d/2/R}px) rotateX(-89.99deg)`}const A=(b.isSafari||b.isWebView)&&b.needPerspectiveFix?-g/2:0;u.style.transform=`translate3d(0px,0,${A}px) rotateX(${v(e.isHorizontal()?0:x)}deg) rotateY(${v(e.isHorizontal()?-x:0)}deg)`,u.style.setProperty("--swiper-cube-translate-z",`${A}px`)},setTransition:l=>{const{el:u,slides:c}=e;if(c.forEach(f=>{f.style.transitionDuration=`${l}ms`,f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${l}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const f=u.querySelector(".swiper-cube-shadow");f&&(f.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=e.isHorizontal();e.slides.forEach(u=>{const c=Math.max(Math.min(u.progress,1),-1);s(u,c,l)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function ia(t,e,r){const n=`swiper-slide-shadow${r?`-${r}`:""}${t?` swiper-slide-shadow-${t}`:""}`,s=co(e);let i=s.querySelector(`.${n.split(" ").join(".")}`);return i||(i=Gr("div",n.split(" ")),s.append(i)),i}function Oq(t){let{swiper:e,extendParams:r,on:n}=t;r({flipEffect:{slideShadows:!0,limitRotation:!0}});const s=(l,u)=>{let c=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),f=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");c||(c=ia("flip",l,e.isHorizontal()?"left":"top")),f||(f=ia("flip",l,e.isHorizontal()?"right":"bottom")),c&&(c.style.opacity=Math.max(-u,0)),f&&(f.style.opacity=Math.max(u,0))};ma({effect:"flip",swiper:e,on:n,setTranslate:()=>{const{slides:l,rtlTranslate:u}=e,c=e.params.flipEffect,f=uf(e);for(let d=0;d{const u=e.slides.map(c=>co(c));u.forEach(c=>{c.style.transitionDuration=`${l}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${l}ms`})}),yf({swiper:e,duration:l,transformElements:u})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(l=>{let u=l.progress;e.params.flipEffect.limitRotation&&(u=Math.max(Math.min(l.progress,1),-1)),s(l,u)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function Lq(t){let{swiper:e,extendParams:r,on:n}=t;r({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),ma({effect:"coverflow",swiper:e,on:n,setTranslate:()=>{const{width:a,height:o,slides:l,slidesSizesGrid:u}=e,c=e.params.coverflowEffect,f=e.isHorizontal(),d=e.translate,p=f?-d+a/2:-d+o/2,g=f?c.rotate:-c.rotate,b=c.depth,v=uf(e);for(let w=0,_=l.length;w<_;w+=1){const y=l[w],x=u[w],T=y.swiperSlideOffset,A=(p-T-x/2)/x,C=typeof c.modifier=="function"?c.modifier(A):A*c.modifier;let L=f?g*C:0,j=f?0:g*C,R=-b*Math.abs(C),U=c.stretch;typeof U=="string"&&U.indexOf("%")!==-1&&(U=parseFloat(c.stretch)/100*x);let I=f?0:U*C,M=f?U*C:0,$=1-(1-c.scale)*Math.abs(C);Math.abs(M)<.001&&(M=0),Math.abs(I)<.001&&(I=0),Math.abs(R)<.001&&(R=0),Math.abs(L)<.001&&(L=0),Math.abs(j)<.001&&(j=0),Math.abs($)<.001&&($=0);const Z=`translate3d(${M}px,${I}px,${R}px) rotateX(${v(j)}deg) rotateY(${v(L)}deg) scale(${$})`,ne=Fl(c,y);if(ne.style.transform=Z,y.style.zIndex=-Math.abs(Math.round(C))+1,c.slideShadows){let re=f?y.querySelector(".swiper-slide-shadow-left"):y.querySelector(".swiper-slide-shadow-top"),N=f?y.querySelector(".swiper-slide-shadow-right"):y.querySelector(".swiper-slide-shadow-bottom");re||(re=ia("coverflow",y,f?"left":"top")),N||(N=ia("coverflow",y,f?"right":"bottom")),re&&(re.style.opacity=C>0?C:0),N&&(N.style.opacity=-C>0?-C:0)}}},setTransition:a=>{e.slides.map(l=>co(l)).forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${a}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function Rq(t){let{swiper:e,extendParams:r,on:n}=t;r({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const s=o=>typeof o=="string"?o:`${o}px`;ma({effect:"creative",swiper:e,on:n,setTranslate:()=>{const{slides:o,wrapperEl:l,slidesSizesGrid:u}=e,c=e.params.creativeEffect,{progressMultiplier:f}=c,d=e.params.centeredSlides,p=uf(e);if(d){const g=u[0]/2-e.params.slidesOffsetBefore||0;l.style.transform=`translateX(calc(50% - ${g}px))`}for(let g=0;g0&&(C=c.prev,A=!0),x.forEach(($,Z)=>{x[Z]=`calc(${$}px + (${s(C.translate[Z])} * ${Math.abs(w*f)}))`}),T.forEach(($,Z)=>{let ne=C.rotate[Z]*Math.abs(w*f);T[Z]=ne}),b.style.zIndex=-Math.abs(Math.round(v))+o.length;const L=x.join(", "),j=`rotateX(${p(T[0])}deg) rotateY(${p(T[1])}deg) rotateZ(${p(T[2])}deg)`,R=_<0?`scale(${1+(1-C.scale)*_*f})`:`scale(${1-(1-C.scale)*_*f})`,U=_<0?1+(1-C.opacity)*_*f:1-(1-C.opacity)*_*f,I=`translate3d(${L}) ${j} ${R}`;if(A&&C.shadow||!A){let $=b.querySelector(".swiper-slide-shadow");if(!$&&C.shadow&&($=ia("creative",b)),$){const Z=c.shadowPerProgress?w*(1/c.limitProgress):w;$.style.opacity=Math.min(Math.max(Math.abs(Z),0),1)}}const M=Fl(c,b);M.style.transform=I,M.style.opacity=U,C.origin&&(M.style.transformOrigin=C.origin)}},setTransition:o=>{const l=e.slides.map(u=>co(u));l.forEach(u=>{u.style.transitionDuration=`${o}ms`,u.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${o}ms`})}),yf({swiper:e,duration:o,transformElements:l,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function Bq(t){let{swiper:e,extendParams:r,on:n}=t;r({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),ma({effect:"cards",swiper:e,on:n,setTranslate:()=>{const{slides:a,activeIndex:o,rtlTranslate:l}=e,u=e.params.cardsEffect,{startTranslate:c,isTouched:f}=e.touchEventsData,d=l?-e.translate:e.translate;for(let p=0;p0&&v<1&&(f||e.params.cssMode)&&d-1&&(f||e.params.cssMode)&&d>c;if(j||R){const $=(1-Math.abs((Math.abs(v)-.5)/.5))**.5;A+=-28*v*$,T+=-.5*$,C+=96*$,y=`${-25*$*Math.abs(v)}%`}if(v<0?_=`calc(${_}px ${l?"-":"+"} (${C*Math.abs(v)}%))`:v>0?_=`calc(${_}px ${l?"-":"+"} (-${C*Math.abs(v)}%))`:_=`${_}px`,!e.isHorizontal()){const $=y;y=_,_=$}const U=v<0?`${1+(1-T)*v}`:`${1-(1-T)*v}`,I=` + translate3d(${_}, ${y}, ${x}px) + rotateZ(${u.rotate?l?-A:A:0}deg) + scale(${U}) + `;if(u.slideShadows){let $=g.querySelector(".swiper-slide-shadow");$||($=ia("cards",g)),$&&($.style.opacity=Math.min(Math.max((Math.abs(v)-.5)/.5,0),1))}g.style.zIndex=-Math.abs(Math.round(b))+a.length;const M=Fl(u,g);M.style.transform=I}},setTransition:a=>{const o=e.slides.map(l=>co(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(u=>{u.style.transitionDuration=`${a}ms`})}),yf({swiper:e,duration:a,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const $q=[lq,uq,cq,fq,dq,hq,pq,gq,mq,bq,yq,wq,vq,_q,Eq,Sq,Mq,kq,Pq,Oq,Lq,Rq,Bq];Wr.use($q);const wf=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function sa(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Mg(t,e){const r=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:sa(e[n])&&sa(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:Mg(t[n],e[n]):t[n]=e[n]})}function Nq(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Dq(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Uq(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Yu(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function Fq(t){let{swiper:e,slides:r,passedParams:n,changedParams:s,nextEl:i,prevEl:a,scrollbarEl:o,paginationEl:l}=t;const u=s.filter(j=>j!=="children"&&j!=="direction"&&j!=="wrapperClass"),{params:c,pagination:f,navigation:d,scrollbar:p,virtual:g,thumbs:b}=e;let v,w,_,y,x,T,A,C;s.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(v=!0),s.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(w=!0),s.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(_=!0),s.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&(y=!0),s.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(x=!0);const L=j=>{e[j]&&(e[j].destroy(),j==="navigation"?(e.isElement&&(e[j].prevEl.remove(),e[j].nextEl.remove()),c[j].prevEl=void 0,c[j].nextEl=void 0,e[j].prevEl=void 0,e[j].nextEl=void 0):(e.isElement&&e[j].el.remove(),c[j].el=void 0,e[j].el=void 0))};s.includes("loop")&&e.isElement&&(c.loop&&!n.loop?T=!0:!c.loop&&n.loop?A=!0:C=!0),u.forEach(j=>{if(sa(c[j])&&sa(n[j]))Object.assign(c[j],n[j]),(j==="navigation"||j==="pagination"||j==="scrollbar")&&"enabled"in n[j]&&!n[j].enabled&&L(j);else{const R=n[j];(R===!0||R===!1)&&(j==="navigation"||j==="pagination"||j==="scrollbar")?R===!1&&L(j):c[j]=n[j]}}),u.includes("controller")&&!w&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),s.includes("children")&&r&&g&&c.virtual.enabled?(g.slides=r,g.update(!0)):s.includes("virtual")&&g&&c.virtual.enabled&&(r&&(g.slides=r),g.update(!0)),s.includes("children")&&r&&c.loop&&(C=!0),v&&b.init()&&b.update(!0),w&&(e.controller.control=c.controller.control),_&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(c.pagination.el=l),f.init(),f.render(),f.update()),y&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(c.scrollbar.el=o),p.init(),p.updateSize(),p.setTranslate()),x&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),i.innerHTML=e.hostEl.constructor.nextButtonSvg,i.part.add("button-next"),e.el.appendChild(i)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),i&&(c.navigation.nextEl=i),a&&(c.navigation.prevEl=a),d.init(),d.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),s.includes("direction")&&e.changeDirection(n.direction,!1),(T||C)&&e.loopDestroy(),(A||C)&&e.loopCreate(),e.update()}const w0=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},v0=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function _0(t,e,r){const n={},s={};Mg(n,vg);const i=[...wf,"on"],a=i.map(l=>l.replace(/_/,""));i.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(s[l]=t[l])});const o=[...t.attributes];return typeof e=="string"&&typeof r<"u"&&o.push({name:e,value:sa(r)?{...r}:r}),o.forEach(l=>{const u=v0.find(c=>l.name.startsWith(`${c}-`));if(u){const c=Yu(u),f=Yu(l.name.split(`${u}-`)[1]);typeof s[c]>"u"&&(s[c]={}),s[c]===!0&&(s[c]={enabled:!0}),s[c][f]=w0(l.value)}else{const c=Yu(l.name);if(!a.includes(c))return;const f=w0(l.value);s[c]&&v0.includes(l.name)&&!sa(f)?(s[c].constructor!==Object&&(s[c]={}),s[c].enabled=!!f):s[c]=f}}),Mg(n,s),n.navigation?n.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...n.navigation!==!0?n.navigation:{}}:n.navigation===!1&&delete n.navigation,n.scrollbar?n.scrollbar={el:".swiper-scrollbar",...n.scrollbar!==!0?n.scrollbar:{}}:n.scrollbar===!1&&delete n.scrollbar,n.pagination?n.pagination={el:".swiper-pagination",...n.pagination!==!0?n.pagination:{}}:n.pagination===!1&&delete n.pagination,{params:n,passedParams:s}}const Vq=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",jq="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class Wq{}const Zx=typeof window>"u"||typeof HTMLElement>"u"?Wq:HTMLElement,E0=` + `,eT=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const r=new CSSStyleSheet;r.replaceSync(e),t.adoptedStyleSheets=[r]}else{const r=document.createElement("style");r.rel="stylesheet",r.textContent=e,t.appendChild(r)}};class tT extends Zx{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return E0}static get prevButtonSvg(){return E0.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[Vq,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` +`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,r=[...this.querySelectorAll("[slot^=slide-]")].map(n=>parseInt(n.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=r.length?Math.max(...r)+1:0,!!this.rendered){if(this.slideSlots>e)for(let n=e;n=0;s-=1)s>this.slideSlots&&n[s].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&eT(this.shadowRoot,e),this.cssLinks().forEach(n=>{if(this.shadowRoot.querySelector(`link[href="${n}"]`))return;const i=document.createElement("link");i.rel="stylesheet",i.href=n,this.shadowRoot.appendChild(i)});const r=document.createElement("div");r.classList.add("swiper"),r.part="container",r.innerHTML=` + +
+ + ${Array.from({length:this.slideSlots}).map((n,s)=>` + + + + `).join("")} +
+ + ${Nq(this.passedParams)?` +
${this.constructor.prevButtonSvg}
+
${this.constructor.nextButtonSvg}
+ `:""} + ${Dq(this.passedParams)?` +
+ `:""} + ${Uq(this.passedParams)?` +
+ `:""} + `,this.shadowRoot.appendChild(r),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:r,passedParams:n}=_0(this);this.swiperParams=r,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new Wr(this.shadowRoot.querySelector(".swiper"),{...r.virtual?{}:{observer:!0},...r,touchEventsTarget:"container",onAny:function(s){s==="observerUpdate"&&e.calcSlideSlots();const i=r.eventsPrefix?`${r.eventsPrefix}${s.toLowerCase()}`:s.toLowerCase();for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;lr.includes("_")).map(r=>r.replace(/[A-Z]/g,n=>`-${n}`).replace("_","").toLowerCase())}}wf.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(tT.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class zq extends Zx{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(eT(this.shadowRoot,jq),this.shadowRoot.appendChild(document.createElement("slot")),e){const r=document.createElement("div");r.classList.add("swiper-lazy-preloader"),r.part.add("preloader"),this.shadowRoot.appendChild(r)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const Hq=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",tT),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",zq))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{wf.push(...t)});const qq=IC(aj);Hq();qq.mount("#app"); diff --git a/packages/modules/web_themes/colors/web/assets/index-BEDuoazu.css b/packages/modules/web_themes/colors/web/assets/index-JHvhDN_n.css similarity index 99% rename from packages/modules/web_themes/colors/web/assets/index-BEDuoazu.css rename to packages/modules/web_themes/colors/web/assets/index-JHvhDN_n.css index 3b104bf3fb..e05107e811 100644 --- a/packages/modules/web_themes/colors/web/assets/index-BEDuoazu.css +++ b/packages/modules/web_themes/colors/web/assets/index-JHvhDN_n.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.popup[data-v-a154651e]{stroke:var(--color-axis);stroke-width:.2;opacity:1}.popup-textbox[data-v-a154651e]{text-anchor:middle}.popup-title[data-v-a154651e]{font-size:14px}.popup-content[data-v-a154651e]{font-size:17px}.form-select[data-v-98690e5d]{background-color:var(--color-input);border:1;border-color:var(--color-bg);color:var(--color-bg);text-align:start;font-size:var(--font-small)}.commitbutton[data-v-98690e5d]{background-color:var(--color-bg);color:var(--color-input)}option[data-v-98690e5d]{color:green}.form-select[data-v-98690e5d]{font-size:var(--font-verysmall);background-color:var(--color-menu);color:var(--color-fg)}.optiontable[data-v-98690e5d]{background-color:var(--color-menu)}.optionbutton[data-v-98690e5d]{font-size:var(--font-small);color:#fff;background-color:var(--color-menu);font-size:var(--font-verysmall);text-align:center}.dropdown-menu[data-v-98690e5d]{background-color:var(--color-menu)}.dropdown-toggle[data-v-98690e5d]{background-color:var(--color-menu);color:#fff;border:1px solid var(--color-bg);font-size:var(--font-verysmall)}.radiobutton[data-v-82ab6829]{border:0px solid var(--color-menu);opacity:1}.btn-outline-secondary.active[data-v-82ab6829]{background-color:var(--color-bg);border:0px solid var(--color-fg);opacity:.8}.btn-group[data-v-82ab6829]{border:1px solid var(--color-menu)}.rounded-pill[data-v-d75ec1a4]{background-color:var(--color-menu)}.arrowButton[data-v-d75ec1a4]{border:0}.datebadge[data-v-d75ec1a4]{background-color:var(--color-bg);color:var(--color-menu);border:1px solid var(--color-menu);font-size:var(--font-small);font-weight:400}.arrowButton[data-v-d75ec1a4],.fa-magnifying-glass[data-v-d40bf528],.fa-magnifying-glass[data-v-32c82102],.fa-magnifying-glass[data-v-dc8e49b2]{color:var(--color-menu)}.heading[data-v-f6af00e8]{color:var(--color-menu);font-weight:400;text-align:center}.content[data-v-f6af00e8]{color:var(--color-fg);font-weight:700}@supports (grid-template-columns: subgrid){.wb-subwidget[data-v-2aa2b95f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:subgrid;grid-column:1 / 13}.wb-subwidget-noborder[data-v-2aa2b95f]{margin-top:20px;display:grid;grid-template-columns:subgrid;grid-column:1 / 13;padding-top:10px}}@supports not (grid-template-columns: subgrid){.wb-subwidget[data-v-2aa2b95f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:repeat(12,auto);grid-column:1 / 13}.wb-subwidget-noborder[data-v-2aa2b95f]{margin-top:20px;display:grid;grid-template-columns:subgrid;grid-column:1 / 13}}.titlerow[data-v-2aa2b95f]{grid-column:1 / 13}@supports (grid-template-columns: subgrid){.contentrow[data-v-2aa2b95f]{display:grid;grid-template-columns:subgrid;grid-column:1 / 13;align-items:top}}@supports not (grid-template-columns: subgrid){.contentrow[data-v-2aa2b95f]{display:grid;align-items:top;grid-template-columns:repeat(12,auto)}}.widgetname[data-v-2aa2b95f]{font-weight:700;font-size:var(--font-large)}.infotext[data-v-25ab3fbb]{font-size:var(--font-settings);color:var(--color-battery)}.item-icon[data-v-25ab3fbb]{color:var(--color-menu);font-size:var(--font-settings)}.titlecolumn[data-v-25ab3fbb]{color:var(--color-fg);font-size:var(--font-settings);flex-grow:1}.selectors[data-v-25ab3fbb]{font-size:var(--font-settings)}.configitem[data-v-25ab3fbb]{font-size:var(--font-settings);display:flex;flex-direction:column;justify-content:stretch;align-items:stretch;height:100%;width:100%}.contentrow[data-v-25ab3fbb]{display:flex;height:100%;width:100%}.minlabel[data-v-af945965],.maxlabel[data-v-af945965]{color:var(--color-menu)}.valuelabel[data-v-af945965]{color:var(--color-fg)}.minusButton[data-v-af945965],.plusButton[data-v-af945965]{color:var(--color-menu)}.rangeIndicator[data-v-af945965]{margin:0;padding:0;line-height:10px}.rangeinput[data-v-af945965]{width:100%}.radiobutton[data-v-88c9ea7a]{border:.2px solid var(--color-menu);opacity:1;font-size:var(--font-settings-button);border-radius:0}.btn-outline-secondary.active[data-v-88c9ea7a]{background-color:var(--color-fg);border:1px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026;opacity:1}.buttongrid[data-v-88c9ea7a]{display:grid;border:1px solid var(--color-menu);border-radius:.5rem;justify-items:stretch;justify-self:stretch;width:100%}.chargeConfigSelect[data-v-de6b86dd]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-de6b86dd]{color:var(--color-charging);font-size:var(--font-settings);font-weight:700}.chargeConfigSelect[data-v-d7ee4d2a]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-d7ee4d2a]{color:var(--color-pv);font-size:var(--font-settings);font-weight:700}.subconfigstack[data-v-d7ee4d2a]{display:grid;grid-template-columns:repeat(2,auto);width:100%}.subconfig[data-v-d7ee4d2a]{justify-content:end;align-items:baseline;margin-left:1em;width:100%}.subconfigtitle[data-v-d7ee4d2a]{margin-right:5px}.heading[data-v-2f5cb5c1]{font-size:var(--font-settings);color:var(--color-charging);font-weight:700;margin-bottom:.5rem}.plandetails[data-v-2f5cb5c1]{display:flex;flex-direction:column}.tablecell[data-v-08df44d8]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-settings)}.tableheader[data-v-08df44d8]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-08df44d8]{color:var(--color-battery);font-size:var(--font-settings);font-weight:700}.left[data-v-08df44d8]{text-align:left}.text-bold[data-v-08df44d8]{font-weight:700}.text-normal[data-v-08df44d8]{font-weight:400}.fa-circle-info[data-v-08df44d8]{color:var(--color-charging);cursor:pointer}.heading[data-v-eaa44cb2]{font-size:var(--font-settings);color:var(--color-charging);font-weight:700;margin-bottom:.5rem}.plandetails[data-v-eaa44cb2]{display:flex;flex-direction:column}.tablecell[data-v-543e8ca2]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-settings)}.tableheader[data-v-543e8ca2]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-543e8ca2]{color:var(--color-battery);font-size:var(--font-settings);font-weight:700}.left[data-v-543e8ca2]{text-align:left}.right[data-v-543e8ca2]{text-align:right}.text-bold[data-v-543e8ca2]{font-weight:700}.text-normal[data-v-543e8ca2]{font-weight:400}.fa-circle-info[data-v-543e8ca2]{color:var(--color-charging);cursor:pointer}.color-charging[data-v-28b81885]{color:var(--color-charging)}.fa-circle-check[data-v-28b81885]{color:var(--color-menu)}.settingsheader[data-v-28b81885]{color:var(--color-charging);font-size:16px;font-weight:700}.providername[data-v-28b81885]{color:var(--color-axis);font-size:16px}.jumpbutton[data-v-28b81885]{background-color:var(--color-menu);color:var(--color-bg);border:0;font-size:var(--font-settings-button)}.confirmButton[data-v-28b81885]{font-size:var(--font-settings-button)}.chargeConfigSelect[data-v-106a9fca]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-106a9fca]{color:var(--color-devices);font-size:var(--font-settings);font-weight:700}.subconfigstack[data-v-106a9fca]{display:grid;grid-template-columns:repeat(2,auto);width:100%}.subconfig[data-v-106a9fca]{justify-content:end;align-items:baseline;margin-left:1em;width:100%}.subconfigtitle[data-v-106a9fca]{margin-right:5px}.status-string[data-v-e6ae9e07]{font-size:var(--font-normal);font-style:italic;color:var(--color-battery)}.chargeConfigSelect[data-v-e6ae9e07]{background:var(--color-bg);color:var(--color-fg)}.chargeModeOption[data-v-e6ae9e07]{background:green;color:#00f}.nav-tabs .nav-link[data-v-e6ae9e07]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-e6ae9e07]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-e6ae9e07]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:1px solid var(--color-menu)}.settingsheader[data-v-e6ae9e07]{color:var(--color-charging);font-size:16px;font-weight:700}hr[data-v-e6ae9e07]{color:var(--color-menu)}.status-string[data-v-cd92fe69]{font-size:var(--font-settings);font-style:italic;color:var(--color-battery)}.nav-tabs .nav-link[data-v-cd92fe69]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-cd92fe69]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-cd92fe69]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:0px solid var(--color-menu)}.heading[data-v-cd92fe69]{color:var(--color-menu)}.item[data-v-cd92fe69]{grid-column:span 12}.tabarea[data-v-cd92fe69]{justify-self:stretch}.wb-widget[data-v-fb6ac7a4]{width:100%;height:100%;border-radius:30px}.widgetname[data-v-fb6ac7a4]{font-weight:700;color:var(--color-fg);font-size:var(--font-large)}.batIcon[data-v-a68c844a]{color:var(--color-menu)}.pillWbBadge[data-v-36112fa3]{font-size:(var--font-small);font-weight:regular;display:flex;justify-content:center;align-items:center}.targetCurrent[data-v-2cc82367]{color:var(--color-menu)}.fa-star[data-v-e3fcbd86]{color:var(--color-evu)}.fa-clock[data-v-e3fcbd86]{color:var(--color-charging)}.fa-car[data-v-e3fcbd86],.fa-circle-check[data-v-e3fcbd86]{color:var(--color-menu)}.socEditor[data-v-e3fcbd86],.priceEditor[data-v-e3fcbd86]{border:1px solid var(--color-menu);justify-self:stretch}.chargemodes[data-v-e3fcbd86]{grid-column:1 / 13;justify-self:center}.chargeinfo[data-v-e3fcbd86]{display:grid;grid-template-columns:repeat(12,auto);justify-content:space-between}.divider[data-v-e3fcbd86]{border-top:1px solid var(--color-fg);width:100%}.carSelector[data-v-e3fcbd86]{border:1px solid var(--color-menu);font-size:var(--font-settings);border-radius:3px;display:flex;flex-direction:column}.fa-ellipsis-vertical[data-v-b35defc2],.fa-circle-check[data-v-b35defc2]{color:var(--color-menu)}.errorWbBadge[data-v-b35defc2]{color:var(--color-bg);background-color:var(--color-evu);font-size:var(--font-small)}.close-config-button[data-v-b35defc2]{background:var(--color-menu);color:var(--color-bg);grid-column:11 / span 2;font-size:var(--font-settings-button)}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.modal-footer[data-v-eaefae30],.modal-header[data-v-eaefae30],.modal-body[data-v-eaefae30]{background:var(--color-bg)}.btn-close[data-v-eaefae30]{color:var(--color-fg)}.modal-footer[data-v-eaefae30]{text-align:right}.modal-header .btn-close[data-v-eaefae30]{color:var(--color-fg);background:var(--color-bg);border:0px}.modal.fade .modal-dialog[data-v-eaefae30]{transition:transform 1s ease-out;transform:none;scale:.6}.modal.show .modal-dialog[data-v-eaefae30]{transition:transform .3s ease-in;transform:none;scale:1}.tablerow[data-v-9260919a]{margin:14px;border-top:.1px solid var(--color-scale)}.tablecell[data-v-9260919a]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;padding-top:2px;padding-left:2px;padding-right:2px;vertical-align:baseline;line-height:1.4rem;font-size:var(--font-small)}.buttoncell[data-v-9260919a]{background-color:var(--color-bg);padding:0;margin:0}.left[data-v-9260919a]{text-align:left}.tablecell.right[data-v-9260919a]{text-align:right}.tablecolum1[data-v-9260919a]{color:var(--color-fg);text-align:left;margin:0;padding:0}.tableicon[data-v-9260919a]{color:var(--color-menu)}.fa-star[data-v-9260919a]{color:var(--color-evu)}.fa-clock[data-v-9260919a]{color:var(--color-battery)}.socEditor[data-v-9260919a]{border:1px solid var(--color-menu);background-color:var(--color-bg)}.socEditRow td[data-v-9260919a]{background-color:var(--color-bg)}.fa-circle-check[data-v-9260919a]{color:var(--color-menu)}.socEditTitle[data-v-9260919a]{color:var(--color-fg)}.statusbadge[data-v-9260919a]{background-color:var(--color-bg);font-weight:700;font-size:var(--font-verysmall)}.modebadge[data-v-9260919a]{color:var(--color-bg)}.cpname[data-v-9260919a]{font-size:var(--font-small)}.fa-edit[data-v-9260919a]{color:var(--color-menu)}.infolist[data-v-9260919a]{justify-content:center}.tableheader[data-v-b8c6b557]{margin:0;padding-left:0;background-color:var(--color-bg);color:var(--color-menu)}.alignleft[data-v-b8c6b557]{text-align:left}.aligncenter[data-v-b8c6b557]{text-align:center}.alignright[data-v-b8c6b557]{text-align:right}.table[data-v-b8c6b557]{border-spacing:1rem;background-color:var(--color-bg)}.priceWbBadge[data-v-b8c6b557]{background-color:var(--color-menu);font-weight:400}.fa-charging-station[data-v-b8c6b557]{color:var(--color-charging)}.plugIndicator[data-v-71bb7e5f]{color:#fff;border:1px solid white}.chargeButton[data-v-71bb7e5f]{color:#fff}.left[data-v-71bb7e5f]{float:left}.right[data-v-71bb7e5f]{float:right}.center[data-v-71bb7e5f]{margin:auto}.time-display[data-v-791e4be0]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.battery-title[data-v-f7f825f7]{color:var(--color-battery);font-size:var(--font-medium)}.battery-color[data-v-c2a8727a]{color:var(--color-battery)}.fg-color[data-v-c2a8727a]{color:var(--color-fg)}.menu-color[data-v-c2a8727a],.todaystring[data-v-c2a8727a]{color:var(--color-menu)}.devicename[data-v-20651ac6]{font-size:var(--font-medium)}.statusbutton[data-v-20651ac6]{font-size:var(--font-extralarge)}.sh-title[data-v-5b5cf6b3]{color:var(--color-title)}.tableheader[data-v-5b5cf6b3]{background-color:var(--color-bg);color:var(--color-menu)}.fa-ellipsis-vertical[data-v-5b5cf6b3],.fa-circle-check[data-v-5b5cf6b3]{color:var(--color-menu)}.smarthome[data-v-5b5cf6b3]{color:var(--color-devices)}.idWbBadge[data-v-01dd8c4d]{background-color:var(--color-menu);font-weight:400}.countername[data-v-01dd8c4d]{font-size:var(--font-medium)}.statusbutton[data-v-5f059284]{font-size:var(--font-large)}.modebutton[data-v-5f059284]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempWbBadge[data-v-5f059284]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.idWbBadge[data-v-9e2cb63e]{background-color:var(--color-menu);font-weight:400}.status-string[data-v-9e2cb63e]{text-align:center}.vehiclename[data-v-9e2cb63e]{font-size:var(--font-medium)}.statusbutton[data-v-716be083]{font-size:var(--font-large)}.modebutton[data-v-716be083]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempWbBadge[data-v-716be083]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.priceWbBadge[data-v-578b98b5]{background-color:var(--color-charging);font-weight:400}.providerWbBadge[data-v-578b98b5]{background-color:var(--color-menu);font-weight:400}.grapharea[data-v-578b98b5]{grid-column-start:1;grid-column-end:13;width:100%;object-fit:cover;max-height:100%;justify-items:stretch}.pricefigure[data-v-578b98b5]{justify-self:stretch}.modeWbBadge[data-v-258d8f17]{background-color:var(--color-pv);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.invertername[data-v-258d8f17]{font-size:var(--font-medium)}.powerWbBadge[data-v-8a9444cf]{background-color:var(--color-pv);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.button[data-v-17424929]{color:var(--color-fg)}.name[data-v-df7e578a]{font-size:1rem;color:#000;border:1px solid white}.content[data-v-df7e578a]{grid-column:1 / -1;border:solid 1px black;border-radius:10px}.sublist[data-v-df7e578a]{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.mqviewer[data-v-a349646d]{background-color:#fff;color:#000}.topiclist[data-v-a349646d]{display:grid;grid-template-columns:repeat(40,1fr)}.topnode[data-v-a349646d]{grid-column-start:1;grid-column-end:-1}.mqtitle[data-v-a349646d]{color:#000}.form-select[data-v-5e33ce1f]{background-color:var(--color-input);color:#000;border:1px solid var(--color-bg);font-size:var(--font-settings)}.fa-circle-check[data-v-785bc80b]{font-size:var(--font-large);background-color:var(--color-bg);color:var(--color-menu)}.closebutton[data-v-785bc80b]{justify-self:end}.settingscolumn[data-v-785bc80b]{padding:20px}.nav-tabs[data-v-0542a138]{border-bottom:.5px solid var(--color-menu);background-color:var(--color-bg)}.nav-tabs .nav-link[data-v-0542a138]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-0542a138]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-0542a138]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:.5px solid var(--color-menu);border-bottom:0px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026}.fa-circle-info[data-v-0542a138]{color:var(--color-fg)}.fa-charging-station[data-v-0542a138]{color:var(--color-charging)}.fa-car-battery[data-v-0542a138]{color:var(--color-battery)}.fa-plug[data-v-0542a138]{color:var(--color-devices)}.fa-bolt[data-v-0542a138]{color:var(--color-evu)}.fa-car[data-v-0542a138]{color:var(--color-charging)}.fa-coins[data-v-0542a138]{color:var(--color-battery)}.fa-solar-panel[data-v-0542a138]{color:var(--color-pv)}.navbar[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.dropdown-menu[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg)}.dropdown-item[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.btn[data-v-ed619966]{font-size:var(--font-medium);background-color:var(--color-bg);color:var(--color-fg)}.navbar-brand[data-v-ed619966]{font-weight:700;color:var(--color-fg);font-size:var(--font-normal)}.nav-link[data-v-ed619966]{color:var(--color-fg);border-color:red;font-size:var(--font-normal)}.navbar-toggler[data-v-ed619966]{color:var(--color-fg);border-color:var(--color-bg)}.navbar-time[data-v-ed619966]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.fa{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.fa,.fa-brands,.fa-duotone,.fa-light,.fa-regular,.fa-solid,.fa-thin,.fab,.fad,.fal,.far,.fas,.fat{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display, inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin, 2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width, 2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius, .1em);border:var(--fa-border-width, .08em) var(--fa-border-style, solid) var(--fa-border-color, #eee);padding:var(--fa-border-padding, .2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin, .3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin, .3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) )}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-beat-fade,.fa-fade{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s)}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-shake,.fa-spin{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration, 2s);animation-duration:var(--fa-animation-duration, 2s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin-reverse{--fa-animation-direction: reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, steps(8));animation-timing-function:var(--fa-animation-timing, steps(8))}@media (prefers-reduced-motion: reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@-webkit-keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle, none));transform:rotate(var(--fa-rotate-angle, none))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index, auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse, #fff)}.fa-0:before{content:"0"}.fa-1:before{content:"1"}.fa-2:before{content:"2"}.fa-3:before{content:"3"}.fa-4:before{content:"4"}.fa-5:before{content:"5"}.fa-6:before{content:"6"}.fa-7:before{content:"7"}.fa-8:before{content:"8"}.fa-9:before{content:"9"}.fa-a:before{content:"A"}.fa-address-book:before,.fa-contact-book:before{content:""}.fa-address-card:before,.fa-contact-card:before,.fa-vcard:before{content:""}.fa-align-center:before{content:""}.fa-align-justify:before{content:""}.fa-align-left:before{content:""}.fa-align-right:before{content:""}.fa-anchor:before{content:""}.fa-angle-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-double-down:before,.fa-angles-down:before{content:""}.fa-angle-double-left:before,.fa-angles-left:before{content:""}.fa-angle-double-right:before,.fa-angles-right:before{content:""}.fa-angle-double-up:before,.fa-angles-up:before{content:""}.fa-ankh:before{content:""}.fa-apple-alt:before,.fa-apple-whole:before{content:""}.fa-archway:before{content:""}.fa-arrow-down:before{content:""}.fa-arrow-down-1-9:before,.fa-sort-numeric-asc:before,.fa-sort-numeric-down:before{content:""}.fa-arrow-down-9-1:before,.fa-sort-numeric-desc:before,.fa-sort-numeric-down-alt:before{content:""}.fa-arrow-down-a-z:before,.fa-sort-alpha-asc:before,.fa-sort-alpha-down:before{content:""}.fa-arrow-down-long:before,.fa-long-arrow-down:before{content:""}.fa-arrow-down-short-wide:before,.fa-sort-amount-desc:before,.fa-sort-amount-down-alt:before{content:""}.fa-arrow-down-wide-short:before,.fa-sort-amount-asc:before,.fa-sort-amount-down:before{content:""}.fa-arrow-down-z-a:before,.fa-sort-alpha-desc:before,.fa-sort-alpha-down-alt:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-left-long:before,.fa-long-arrow-left:before{content:""}.fa-arrow-pointer:before,.fa-mouse-pointer:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-right-arrow-left:before,.fa-exchange:before{content:""}.fa-arrow-right-from-bracket:before,.fa-sign-out:before{content:""}.fa-arrow-right-long:before,.fa-long-arrow-right:before{content:""}.fa-arrow-right-to-bracket:before,.fa-sign-in:before{content:""}.fa-arrow-left-rotate:before,.fa-arrow-rotate-back:before,.fa-arrow-rotate-backward:before,.fa-arrow-rotate-left:before,.fa-undo:before{content:""}.fa-arrow-right-rotate:before,.fa-arrow-rotate-forward:before,.fa-arrow-rotate-right:before,.fa-redo:before{content:""}.fa-arrow-trend-down:before{content:""}.fa-arrow-trend-up:before{content:""}.fa-arrow-turn-down:before,.fa-level-down:before{content:""}.fa-arrow-turn-up:before,.fa-level-up:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-up-1-9:before,.fa-sort-numeric-up:before{content:""}.fa-arrow-up-9-1:before,.fa-sort-numeric-up-alt:before{content:""}.fa-arrow-up-a-z:before,.fa-sort-alpha-up:before{content:""}.fa-arrow-up-from-bracket:before{content:""}.fa-arrow-up-long:before,.fa-long-arrow-up:before{content:""}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:""}.fa-arrow-up-short-wide:before,.fa-sort-amount-up-alt:before{content:""}.fa-arrow-up-wide-short:before,.fa-sort-amount-up:before{content:""}.fa-arrow-up-z-a:before,.fa-sort-alpha-up-alt:before{content:""}.fa-arrows-h:before,.fa-arrows-left-right:before{content:""}.fa-arrows-rotate:before,.fa-refresh:before,.fa-sync:before{content:""}.fa-arrows-up-down:before,.fa-arrows-v:before{content:""}.fa-arrows-up-down-left-right:before,.fa-arrows:before{content:""}.fa-asterisk:before{content:"*"}.fa-at:before{content:"@"}.fa-atom:before{content:""}.fa-audio-description:before{content:""}.fa-austral-sign:before{content:""}.fa-award:before{content:""}.fa-b:before{content:"B"}.fa-baby:before{content:""}.fa-baby-carriage:before,.fa-carriage-baby:before{content:""}.fa-backward:before{content:""}.fa-backward-fast:before,.fa-fast-backward:before{content:""}.fa-backward-step:before,.fa-step-backward:before{content:""}.fa-bacon:before{content:""}.fa-bacteria:before{content:""}.fa-bacterium:before{content:""}.fa-bag-shopping:before,.fa-shopping-bag:before{content:""}.fa-bahai:before{content:""}.fa-baht-sign:before{content:""}.fa-ban:before,.fa-cancel:before{content:""}.fa-ban-smoking:before,.fa-smoking-ban:before{content:""}.fa-band-aid:before,.fa-bandage:before{content:""}.fa-barcode:before{content:""}.fa-bars:before,.fa-navicon:before{content:""}.fa-bars-progress:before,.fa-tasks-alt:before{content:""}.fa-bars-staggered:before,.fa-reorder:before,.fa-stream:before{content:""}.fa-baseball-ball:before,.fa-baseball:before{content:""}.fa-baseball-bat-ball:before{content:""}.fa-basket-shopping:before,.fa-shopping-basket:before{content:""}.fa-basketball-ball:before,.fa-basketball:before{content:""}.fa-bath:before,.fa-bathtub:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-battery-5:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-half:before{content:""}.fa-battery-2:before,.fa-battery-quarter:before{content:""}.fa-battery-4:before,.fa-battery-three-quarters:before{content:""}.fa-bed:before{content:""}.fa-bed-pulse:before,.fa-procedures:before{content:""}.fa-beer-mug-empty:before,.fa-beer:before{content:""}.fa-bell:before{content:""}.fa-bell-concierge:before,.fa-concierge-bell:before{content:""}.fa-bell-slash:before{content:""}.fa-bezier-curve:before{content:""}.fa-bicycle:before{content:""}.fa-binoculars:before{content:""}.fa-biohazard:before{content:""}.fa-bitcoin-sign:before{content:""}.fa-blender:before{content:""}.fa-blender-phone:before{content:""}.fa-blog:before{content:""}.fa-bold:before{content:""}.fa-bolt:before,.fa-zap:before{content:""}.fa-bolt-lightning:before{content:""}.fa-bomb:before{content:""}.fa-bone:before{content:""}.fa-bong:before{content:""}.fa-book:before{content:""}.fa-atlas:before,.fa-book-atlas:before{content:""}.fa-bible:before,.fa-book-bible:before{content:""}.fa-book-journal-whills:before,.fa-journal-whills:before{content:""}.fa-book-medical:before{content:""}.fa-book-open:before{content:""}.fa-book-open-reader:before,.fa-book-reader:before{content:""}.fa-book-quran:before,.fa-quran:before{content:""}.fa-book-dead:before,.fa-book-skull:before{content:""}.fa-bookmark:before{content:""}.fa-border-all:before{content:""}.fa-border-none:before{content:""}.fa-border-style:before,.fa-border-top-left:before{content:""}.fa-bowling-ball:before{content:""}.fa-box:before{content:""}.fa-archive:before,.fa-box-archive:before{content:""}.fa-box-open:before{content:""}.fa-box-tissue:before{content:""}.fa-boxes-alt:before,.fa-boxes-stacked:before,.fa-boxes:before{content:""}.fa-braille:before{content:""}.fa-brain:before{content:""}.fa-brazilian-real-sign:before{content:""}.fa-bread-slice:before{content:""}.fa-briefcase:before{content:""}.fa-briefcase-medical:before{content:""}.fa-broom:before{content:""}.fa-broom-ball:before,.fa-quidditch-broom-ball:before,.fa-quidditch:before{content:""}.fa-brush:before{content:""}.fa-bug:before{content:""}.fa-bug-slash:before{content:""}.fa-building:before{content:""}.fa-bank:before,.fa-building-columns:before,.fa-institution:before,.fa-museum:before,.fa-university:before{content:""}.fa-bullhorn:before{content:""}.fa-bullseye:before{content:""}.fa-burger:before,.fa-hamburger:before{content:""}.fa-bus:before{content:""}.fa-bus-alt:before,.fa-bus-simple:before{content:""}.fa-briefcase-clock:before,.fa-business-time:before{content:""}.fa-c:before{content:"C"}.fa-birthday-cake:before,.fa-cake-candles:before,.fa-cake:before{content:""}.fa-calculator:before{content:""}.fa-calendar:before{content:""}.fa-calendar-check:before{content:""}.fa-calendar-day:before{content:""}.fa-calendar-alt:before,.fa-calendar-days:before{content:""}.fa-calendar-minus:before{content:""}.fa-calendar-plus:before{content:""}.fa-calendar-week:before{content:""}.fa-calendar-times:before,.fa-calendar-xmark:before{content:""}.fa-camera-alt:before,.fa-camera:before{content:""}.fa-camera-retro:before{content:""}.fa-camera-rotate:before{content:""}.fa-campground:before{content:""}.fa-candy-cane:before{content:""}.fa-cannabis:before{content:""}.fa-capsules:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-battery-car:before,.fa-car-battery:before{content:""}.fa-car-crash:before{content:""}.fa-car-alt:before,.fa-car-rear:before{content:""}.fa-car-side:before{content:""}.fa-caravan:before{content:""}.fa-caret-down:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-caret-up:before{content:""}.fa-carrot:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-cart-flatbed:before,.fa-dolly-flatbed:before{content:""}.fa-cart-flatbed-suitcase:before,.fa-luggage-cart:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-shopping:before,.fa-shopping-cart:before{content:""}.fa-cash-register:before{content:""}.fa-cat:before{content:""}.fa-cedi-sign:before{content:""}.fa-cent-sign:before{content:""}.fa-certificate:before{content:""}.fa-chair:before{content:""}.fa-blackboard:before,.fa-chalkboard:before{content:""}.fa-chalkboard-teacher:before,.fa-chalkboard-user:before{content:""}.fa-champagne-glasses:before,.fa-glass-cheers:before{content:""}.fa-charging-station:before{content:""}.fa-area-chart:before,.fa-chart-area:before{content:""}.fa-bar-chart:before,.fa-chart-bar:before{content:""}.fa-chart-column:before{content:""}.fa-chart-gantt:before{content:""}.fa-chart-line:before,.fa-line-chart:before{content:""}.fa-chart-pie:before,.fa-pie-chart:before{content:""}.fa-check:before{content:""}.fa-check-double:before{content:""}.fa-check-to-slot:before,.fa-vote-yea:before{content:""}.fa-cheese:before{content:""}.fa-chess:before{content:""}.fa-chess-bishop:before{content:""}.fa-chess-board:before{content:""}.fa-chess-king:before{content:""}.fa-chess-knight:before{content:""}.fa-chess-pawn:before{content:""}.fa-chess-queen:before{content:""}.fa-chess-rook:before{content:""}.fa-chevron-down:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-chevron-up:before{content:""}.fa-child:before{content:""}.fa-church:before{content:""}.fa-circle:before{content:""}.fa-arrow-circle-down:before,.fa-circle-arrow-down:before{content:""}.fa-arrow-circle-left:before,.fa-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.fa-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before,.fa-circle-arrow-up:before{content:""}.fa-check-circle:before,.fa-circle-check:before{content:""}.fa-chevron-circle-down:before,.fa-circle-chevron-down:before{content:""}.fa-chevron-circle-left:before,.fa-circle-chevron-left:before{content:""}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:""}.fa-chevron-circle-up:before,.fa-circle-chevron-up:before{content:""}.fa-circle-dollar-to-slot:before,.fa-donate:before{content:""}.fa-circle-dot:before,.fa-dot-circle:before{content:""}.fa-arrow-alt-circle-down:before,.fa-circle-down:before{content:""}.fa-circle-exclamation:before,.fa-exclamation-circle:before{content:""}.fa-circle-h:before,.fa-hospital-symbol:before{content:""}.fa-adjust:before,.fa-circle-half-stroke:before{content:""}.fa-circle-info:before,.fa-info-circle:before{content:""}.fa-arrow-alt-circle-left:before,.fa-circle-left:before{content:""}.fa-circle-minus:before,.fa-minus-circle:before{content:""}.fa-circle-notch:before{content:""}.fa-circle-pause:before,.fa-pause-circle:before{content:""}.fa-circle-play:before,.fa-play-circle:before{content:""}.fa-circle-plus:before,.fa-plus-circle:before{content:""}.fa-circle-question:before,.fa-question-circle:before{content:""}.fa-circle-radiation:before,.fa-radiation-alt:before{content:""}.fa-arrow-alt-circle-right:before,.fa-circle-right:before{content:""}.fa-circle-stop:before,.fa-stop-circle:before{content:""}.fa-arrow-alt-circle-up:before,.fa-circle-up:before{content:""}.fa-circle-user:before,.fa-user-circle:before{content:""}.fa-circle-xmark:before,.fa-times-circle:before,.fa-xmark-circle:before{content:""}.fa-city:before{content:""}.fa-clapperboard:before{content:""}.fa-clipboard:before{content:""}.fa-clipboard-check:before{content:""}.fa-clipboard-list:before{content:""}.fa-clock-four:before,.fa-clock:before{content:""}.fa-clock-rotate-left:before,.fa-history:before{content:""}.fa-clone:before{content:""}.fa-closed-captioning:before{content:""}.fa-cloud:before{content:""}.fa-cloud-arrow-down:before,.fa-cloud-download-alt:before,.fa-cloud-download:before{content:""}.fa-cloud-arrow-up:before,.fa-cloud-upload-alt:before,.fa-cloud-upload:before{content:""}.fa-cloud-meatball:before{content:""}.fa-cloud-moon:before{content:""}.fa-cloud-moon-rain:before{content:""}.fa-cloud-rain:before{content:""}.fa-cloud-showers-heavy:before{content:""}.fa-cloud-sun:before{content:""}.fa-cloud-sun-rain:before{content:""}.fa-clover:before{content:""}.fa-code:before{content:""}.fa-code-branch:before{content:""}.fa-code-commit:before{content:""}.fa-code-compare:before{content:""}.fa-code-fork:before{content:""}.fa-code-merge:before{content:""}.fa-code-pull-request:before{content:""}.fa-coins:before{content:""}.fa-colon-sign:before{content:""}.fa-comment:before{content:""}.fa-comment-dollar:before{content:""}.fa-comment-dots:before,.fa-commenting:before{content:""}.fa-comment-medical:before{content:""}.fa-comment-slash:before{content:""}.fa-comment-sms:before,.fa-sms:before{content:""}.fa-comments:before{content:""}.fa-comments-dollar:before{content:""}.fa-compact-disc:before{content:""}.fa-compass:before{content:""}.fa-compass-drafting:before,.fa-drafting-compass:before{content:""}.fa-compress:before{content:""}.fa-computer-mouse:before,.fa-mouse:before{content:""}.fa-cookie:before{content:""}.fa-cookie-bite:before{content:""}.fa-copy:before{content:""}.fa-copyright:before{content:""}.fa-couch:before{content:""}.fa-credit-card-alt:before,.fa-credit-card:before{content:""}.fa-crop:before{content:""}.fa-crop-alt:before,.fa-crop-simple:before{content:""}.fa-cross:before{content:""}.fa-crosshairs:before{content:""}.fa-crow:before{content:""}.fa-crown:before{content:""}.fa-crutch:before{content:""}.fa-cruzeiro-sign:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-d:before{content:"D"}.fa-database:before{content:""}.fa-backspace:before,.fa-delete-left:before{content:""}.fa-democrat:before{content:""}.fa-desktop-alt:before,.fa-desktop:before{content:""}.fa-dharmachakra:before{content:""}.fa-diagram-next:before{content:""}.fa-diagram-predecessor:before{content:""}.fa-diagram-project:before,.fa-project-diagram:before{content:""}.fa-diagram-successor:before{content:""}.fa-diamond:before{content:""}.fa-diamond-turn-right:before,.fa-directions:before{content:""}.fa-dice:before{content:""}.fa-dice-d20:before{content:""}.fa-dice-d6:before{content:""}.fa-dice-five:before{content:""}.fa-dice-four:before{content:""}.fa-dice-one:before{content:""}.fa-dice-six:before{content:""}.fa-dice-three:before{content:""}.fa-dice-two:before{content:""}.fa-disease:before{content:""}.fa-divide:before{content:""}.fa-dna:before{content:""}.fa-dog:before{content:""}.fa-dollar-sign:before,.fa-dollar:before,.fa-usd:before{content:"$"}.fa-dolly-box:before,.fa-dolly:before{content:""}.fa-dong-sign:before{content:""}.fa-door-closed:before{content:""}.fa-door-open:before{content:""}.fa-dove:before{content:""}.fa-compress-alt:before,.fa-down-left-and-up-right-to-center:before{content:""}.fa-down-long:before,.fa-long-arrow-alt-down:before{content:""}.fa-download:before{content:""}.fa-dragon:before{content:""}.fa-draw-polygon:before{content:""}.fa-droplet:before,.fa-tint:before{content:""}.fa-droplet-slash:before,.fa-tint-slash:before{content:""}.fa-drum:before{content:""}.fa-drum-steelpan:before{content:""}.fa-drumstick-bite:before{content:""}.fa-dumbbell:before{content:""}.fa-dumpster:before{content:""}.fa-dumpster-fire:before{content:""}.fa-dungeon:before{content:""}.fa-e:before{content:"E"}.fa-deaf:before,.fa-deafness:before,.fa-ear-deaf:before,.fa-hard-of-hearing:before{content:""}.fa-assistive-listening-systems:before,.fa-ear-listen:before{content:""}.fa-earth-africa:before,.fa-globe-africa:before{content:""}.fa-earth-america:before,.fa-earth-americas:before,.fa-earth:before,.fa-globe-americas:before{content:""}.fa-earth-asia:before,.fa-globe-asia:before{content:""}.fa-earth-europe:before,.fa-globe-europe:before{content:""}.fa-earth-oceania:before,.fa-globe-oceania:before{content:""}.fa-egg:before{content:""}.fa-eject:before{content:""}.fa-elevator:before{content:""}.fa-ellipsis-h:before,.fa-ellipsis:before{content:""}.fa-ellipsis-v:before,.fa-ellipsis-vertical:before{content:""}.fa-envelope:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-text:before{content:""}.fa-envelopes-bulk:before,.fa-mail-bulk:before{content:""}.fa-equals:before{content:"="}.fa-eraser:before{content:""}.fa-ethernet:before{content:""}.fa-eur:before,.fa-euro-sign:before,.fa-euro:before{content:""}.fa-exclamation:before{content:"!"}.fa-expand:before{content:""}.fa-eye:before{content:""}.fa-eye-dropper-empty:before,.fa-eye-dropper:before,.fa-eyedropper:before{content:""}.fa-eye-low-vision:before,.fa-low-vision:before{content:""}.fa-eye-slash:before{content:""}.fa-f:before{content:"F"}.fa-angry:before,.fa-face-angry:before{content:""}.fa-dizzy:before,.fa-face-dizzy:before{content:""}.fa-face-flushed:before,.fa-flushed:before{content:""}.fa-face-frown:before,.fa-frown:before{content:""}.fa-face-frown-open:before,.fa-frown-open:before{content:""}.fa-face-grimace:before,.fa-grimace:before{content:""}.fa-face-grin:before,.fa-grin:before{content:""}.fa-face-grin-beam:before,.fa-grin-beam:before{content:""}.fa-face-grin-beam-sweat:before,.fa-grin-beam-sweat:before{content:""}.fa-face-grin-hearts:before,.fa-grin-hearts:before{content:""}.fa-face-grin-squint:before,.fa-grin-squint:before{content:""}.fa-face-grin-squint-tears:before,.fa-grin-squint-tears:before{content:""}.fa-face-grin-stars:before,.fa-grin-stars:before{content:""}.fa-face-grin-tears:before,.fa-grin-tears:before{content:""}.fa-face-grin-tongue:before,.fa-grin-tongue:before{content:""}.fa-face-grin-tongue-squint:before,.fa-grin-tongue-squint:before{content:""}.fa-face-grin-tongue-wink:before,.fa-grin-tongue-wink:before{content:""}.fa-face-grin-wide:before,.fa-grin-alt:before{content:""}.fa-face-grin-wink:before,.fa-grin-wink:before{content:""}.fa-face-kiss:before,.fa-kiss:before{content:""}.fa-face-kiss-beam:before,.fa-kiss-beam:before{content:""}.fa-face-kiss-wink-heart:before,.fa-kiss-wink-heart:before{content:""}.fa-face-laugh:before,.fa-laugh:before{content:""}.fa-face-laugh-beam:before,.fa-laugh-beam:before{content:""}.fa-face-laugh-squint:before,.fa-laugh-squint:before{content:""}.fa-face-laugh-wink:before,.fa-laugh-wink:before{content:""}.fa-face-meh:before,.fa-meh:before{content:""}.fa-face-meh-blank:before,.fa-meh-blank:before{content:""}.fa-face-rolling-eyes:before,.fa-meh-rolling-eyes:before{content:""}.fa-face-sad-cry:before,.fa-sad-cry:before{content:""}.fa-face-sad-tear:before,.fa-sad-tear:before{content:""}.fa-face-smile:before,.fa-smile:before{content:""}.fa-face-smile-beam:before,.fa-smile-beam:before{content:""}.fa-face-smile-wink:before,.fa-smile-wink:before{content:""}.fa-face-surprise:before,.fa-surprise:before{content:""}.fa-face-tired:before,.fa-tired:before{content:""}.fa-fan:before{content:""}.fa-faucet:before{content:""}.fa-fax:before{content:""}.fa-feather:before{content:""}.fa-feather-alt:before,.fa-feather-pointed:before{content:""}.fa-file:before{content:""}.fa-file-arrow-down:before,.fa-file-download:before{content:""}.fa-file-arrow-up:before,.fa-file-upload:before{content:""}.fa-file-audio:before{content:""}.fa-file-code:before{content:""}.fa-file-contract:before{content:""}.fa-file-csv:before{content:""}.fa-file-excel:before{content:""}.fa-arrow-right-from-file:before,.fa-file-export:before{content:""}.fa-file-image:before{content:""}.fa-arrow-right-to-file:before,.fa-file-import:before{content:""}.fa-file-invoice:before{content:""}.fa-file-invoice-dollar:before{content:""}.fa-file-alt:before,.fa-file-lines:before,.fa-file-text:before{content:""}.fa-file-medical:before{content:""}.fa-file-pdf:before{content:""}.fa-file-powerpoint:before{content:""}.fa-file-prescription:before{content:""}.fa-file-signature:before{content:""}.fa-file-video:before{content:""}.fa-file-medical-alt:before,.fa-file-waveform:before{content:""}.fa-file-word:before{content:""}.fa-file-archive:before,.fa-file-zipper:before{content:""}.fa-fill:before{content:""}.fa-fill-drip:before{content:""}.fa-film:before{content:""}.fa-filter:before{content:""}.fa-filter-circle-dollar:before,.fa-funnel-dollar:before{content:""}.fa-filter-circle-xmark:before{content:""}.fa-fingerprint:before{content:""}.fa-fire:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-fire-alt:before,.fa-fire-flame-curved:before{content:""}.fa-burn:before,.fa-fire-flame-simple:before{content:""}.fa-fish:before{content:""}.fa-flag:before{content:""}.fa-flag-checkered:before{content:""}.fa-flag-usa:before{content:""}.fa-flask:before{content:""}.fa-floppy-disk:before,.fa-save:before{content:""}.fa-florin-sign:before{content:""}.fa-folder:before{content:""}.fa-folder-minus:before{content:""}.fa-folder-open:before{content:""}.fa-folder-plus:before{content:""}.fa-folder-tree:before{content:""}.fa-font:before{content:""}.fa-football-ball:before,.fa-football:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before,.fa-forward-fast:before{content:""}.fa-forward-step:before,.fa-step-forward:before{content:""}.fa-franc-sign:before{content:""}.fa-frog:before{content:""}.fa-futbol-ball:before,.fa-futbol:before,.fa-soccer-ball:before{content:""}.fa-g:before{content:"G"}.fa-gamepad:before{content:""}.fa-gas-pump:before{content:""}.fa-dashboard:before,.fa-gauge-med:before,.fa-gauge:before,.fa-tachometer-alt-average:before{content:""}.fa-gauge-high:before,.fa-tachometer-alt-fast:before,.fa-tachometer-alt:before{content:""}.fa-gauge-simple-med:before,.fa-gauge-simple:before,.fa-tachometer-average:before{content:""}.fa-gauge-simple-high:before,.fa-tachometer-fast:before,.fa-tachometer:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-gem:before{content:""}.fa-genderless:before{content:""}.fa-ghost:before{content:""}.fa-gift:before{content:""}.fa-gifts:before{content:""}.fa-glasses:before{content:""}.fa-globe:before{content:""}.fa-golf-ball-tee:before,.fa-golf-ball:before{content:""}.fa-gopuram:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-greater-than:before{content:">"}.fa-greater-than-equal:before{content:""}.fa-grip-horizontal:before,.fa-grip:before{content:""}.fa-grip-lines:before{content:""}.fa-grip-lines-vertical:before{content:""}.fa-grip-vertical:before{content:""}.fa-guarani-sign:before{content:""}.fa-guitar:before{content:""}.fa-gun:before{content:""}.fa-h:before{content:"H"}.fa-hammer:before{content:""}.fa-hamsa:before{content:""}.fa-hand-paper:before,.fa-hand:before{content:""}.fa-hand-back-fist:before,.fa-hand-rock:before{content:""}.fa-allergies:before,.fa-hand-dots:before{content:""}.fa-fist-raised:before,.fa-hand-fist:before{content:""}.fa-hand-holding:before{content:""}.fa-hand-holding-dollar:before,.fa-hand-holding-usd:before{content:""}.fa-hand-holding-droplet:before,.fa-hand-holding-water:before{content:""}.fa-hand-holding-heart:before{content:""}.fa-hand-holding-medical:before{content:""}.fa-hand-lizard:before{content:""}.fa-hand-middle-finger:before{content:""}.fa-hand-peace:before{content:""}.fa-hand-point-down:before{content:""}.fa-hand-point-left:before{content:""}.fa-hand-point-right:before{content:""}.fa-hand-point-up:before{content:""}.fa-hand-pointer:before{content:""}.fa-hand-scissors:before{content:""}.fa-hand-sparkles:before{content:""}.fa-hand-spock:before{content:""}.fa-hands:before,.fa-sign-language:before,.fa-signing:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before,.fa-hands-american-sign-language-interpreting:before,.fa-hands-asl-interpreting:before{content:""}.fa-hands-bubbles:before,.fa-hands-wash:before{content:""}.fa-hands-clapping:before{content:""}.fa-hands-holding:before{content:""}.fa-hands-praying:before,.fa-praying-hands:before{content:""}.fa-handshake:before{content:""}.fa-hands-helping:before,.fa-handshake-angle:before{content:""}.fa-handshake-alt-slash:before,.fa-handshake-simple-slash:before{content:""}.fa-handshake-slash:before{content:""}.fa-hanukiah:before{content:""}.fa-hard-drive:before,.fa-hdd:before{content:""}.fa-hashtag:before{content:"#"}.fa-hat-cowboy:before{content:""}.fa-hat-cowboy-side:before{content:""}.fa-hat-wizard:before{content:""}.fa-head-side-cough:before{content:""}.fa-head-side-cough-slash:before{content:""}.fa-head-side-mask:before{content:""}.fa-head-side-virus:before{content:""}.fa-header:before,.fa-heading:before{content:""}.fa-headphones:before{content:""}.fa-headphones-alt:before,.fa-headphones-simple:before{content:""}.fa-headset:before{content:""}.fa-heart:before{content:""}.fa-heart-broken:before,.fa-heart-crack:before{content:""}.fa-heart-pulse:before,.fa-heartbeat:before{content:""}.fa-helicopter:before{content:""}.fa-hard-hat:before,.fa-hat-hard:before,.fa-helmet-safety:before{content:""}.fa-highlighter:before{content:""}.fa-hippo:before{content:""}.fa-hockey-puck:before{content:""}.fa-holly-berry:before{content:""}.fa-horse:before{content:""}.fa-horse-head:before{content:""}.fa-hospital-alt:before,.fa-hospital-wide:before,.fa-hospital:before{content:""}.fa-hospital-user:before{content:""}.fa-hot-tub-person:before,.fa-hot-tub:before{content:""}.fa-hotdog:before{content:""}.fa-hotel:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before,.fa-hourglass:before{content:""}.fa-hourglass-empty:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-home-alt:before,.fa-home-lg-alt:before,.fa-home:before,.fa-house:before{content:""}.fa-home-lg:before,.fa-house-chimney:before{content:""}.fa-house-chimney-crack:before,.fa-house-damage:before{content:""}.fa-clinic-medical:before,.fa-house-chimney-medical:before{content:""}.fa-house-chimney-user:before{content:""}.fa-house-chimney-window:before{content:""}.fa-house-crack:before{content:""}.fa-house-laptop:before,.fa-laptop-house:before{content:""}.fa-house-medical:before{content:""}.fa-home-user:before,.fa-house-user:before{content:""}.fa-hryvnia-sign:before,.fa-hryvnia:before{content:""}.fa-i:before{content:"I"}.fa-i-cursor:before{content:""}.fa-ice-cream:before{content:""}.fa-icicles:before{content:""}.fa-heart-music-camera-bolt:before,.fa-icons:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-id-card-alt:before,.fa-id-card-clip:before{content:""}.fa-igloo:before{content:""}.fa-image:before{content:""}.fa-image-portrait:before,.fa-portrait:before{content:""}.fa-images:before{content:""}.fa-inbox:before{content:""}.fa-indent:before{content:""}.fa-indian-rupee-sign:before,.fa-indian-rupee:before,.fa-inr:before{content:""}.fa-industry:before{content:""}.fa-infinity:before{content:""}.fa-info:before{content:""}.fa-italic:before{content:""}.fa-j:before{content:"J"}.fa-jedi:before{content:""}.fa-fighter-jet:before,.fa-jet-fighter:before{content:""}.fa-joint:before{content:""}.fa-k:before{content:"K"}.fa-kaaba:before{content:""}.fa-key:before{content:""}.fa-keyboard:before{content:""}.fa-khanda:before{content:""}.fa-kip-sign:before{content:""}.fa-first-aid:before,.fa-kit-medical:before{content:""}.fa-kiwi-bird:before{content:""}.fa-l:before{content:"L"}.fa-landmark:before{content:""}.fa-language:before{content:""}.fa-laptop:before{content:""}.fa-laptop-code:before{content:""}.fa-laptop-medical:before{content:""}.fa-lari-sign:before{content:""}.fa-layer-group:before{content:""}.fa-leaf:before{content:""}.fa-left-long:before,.fa-long-arrow-alt-left:before{content:""}.fa-arrows-alt-h:before,.fa-left-right:before{content:""}.fa-lemon:before{content:""}.fa-less-than:before{content:"<"}.fa-less-than-equal:before{content:""}.fa-life-ring:before{content:""}.fa-lightbulb:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-chain-broken:before,.fa-chain-slash:before,.fa-link-slash:before,.fa-unlink:before{content:""}.fa-lira-sign:before{content:""}.fa-list-squares:before,.fa-list:before{content:""}.fa-list-check:before,.fa-tasks:before{content:""}.fa-list-1-2:before,.fa-list-numeric:before,.fa-list-ol:before{content:""}.fa-list-dots:before,.fa-list-ul:before{content:""}.fa-litecoin-sign:before{content:""}.fa-location-arrow:before{content:""}.fa-location-crosshairs:before,.fa-location:before{content:""}.fa-location-dot:before,.fa-map-marker-alt:before{content:""}.fa-location-pin:before,.fa-map-marker:before{content:""}.fa-lock:before{content:""}.fa-lock-open:before{content:""}.fa-lungs:before{content:""}.fa-lungs-virus:before{content:""}.fa-m:before{content:"M"}.fa-magnet:before{content:""}.fa-magnifying-glass:before,.fa-search:before{content:""}.fa-magnifying-glass-dollar:before,.fa-search-dollar:before{content:""}.fa-magnifying-glass-location:before,.fa-search-location:before{content:""}.fa-magnifying-glass-minus:before,.fa-search-minus:before{content:""}.fa-magnifying-glass-plus:before,.fa-search-plus:before{content:""}.fa-manat-sign:before{content:""}.fa-map:before{content:""}.fa-map-location:before,.fa-map-marked:before{content:""}.fa-map-location-dot:before,.fa-map-marked-alt:before{content:""}.fa-map-pin:before{content:""}.fa-marker:before{content:""}.fa-mars:before{content:""}.fa-mars-and-venus:before{content:""}.fa-mars-double:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-h:before,.fa-mars-stroke-right:before{content:""}.fa-mars-stroke-up:before,.fa-mars-stroke-v:before{content:""}.fa-glass-martini-alt:before,.fa-martini-glass:before{content:""}.fa-cocktail:before,.fa-martini-glass-citrus:before{content:""}.fa-glass-martini:before,.fa-martini-glass-empty:before{content:""}.fa-mask:before{content:""}.fa-mask-face:before{content:""}.fa-masks-theater:before,.fa-theater-masks:before{content:""}.fa-expand-arrows-alt:before,.fa-maximize:before{content:""}.fa-medal:before{content:""}.fa-memory:before{content:""}.fa-menorah:before{content:""}.fa-mercury:before{content:""}.fa-comment-alt:before,.fa-message:before{content:""}.fa-meteor:before{content:""}.fa-microchip:before{content:""}.fa-microphone:before{content:""}.fa-microphone-alt:before,.fa-microphone-lines:before{content:""}.fa-microphone-alt-slash:before,.fa-microphone-lines-slash:before{content:""}.fa-microphone-slash:before{content:""}.fa-microscope:before{content:""}.fa-mill-sign:before{content:""}.fa-compress-arrows-alt:before,.fa-minimize:before{content:""}.fa-minus:before,.fa-subtract:before{content:""}.fa-mitten:before{content:""}.fa-mobile-android:before,.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-mobile-button:before{content:""}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:""}.fa-money-bill:before{content:""}.fa-money-bill-1:before,.fa-money-bill-alt:before{content:""}.fa-money-bill-1-wave:before,.fa-money-bill-wave-alt:before{content:""}.fa-money-bill-wave:before{content:""}.fa-money-check:before{content:""}.fa-money-check-alt:before,.fa-money-check-dollar:before{content:""}.fa-monument:before{content:""}.fa-moon:before{content:""}.fa-mortar-pestle:before{content:""}.fa-mosque:before{content:""}.fa-motorcycle:before{content:""}.fa-mountain:before{content:""}.fa-mug-hot:before{content:""}.fa-coffee:before,.fa-mug-saucer:before{content:""}.fa-music:before{content:""}.fa-n:before{content:"N"}.fa-naira-sign:before{content:""}.fa-network-wired:before{content:""}.fa-neuter:before{content:""}.fa-newspaper:before{content:""}.fa-not-equal:before{content:""}.fa-note-sticky:before,.fa-sticky-note:before{content:""}.fa-notes-medical:before{content:""}.fa-o:before{content:"O"}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-oil-can:before{content:""}.fa-om:before{content:""}.fa-otter:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-p:before{content:"P"}.fa-pager:before{content:""}.fa-paint-roller:before{content:""}.fa-paint-brush:before,.fa-paintbrush:before{content:""}.fa-palette:before{content:""}.fa-pallet:before{content:""}.fa-panorama:before{content:""}.fa-paper-plane:before{content:""}.fa-paperclip:before{content:""}.fa-parachute-box:before{content:""}.fa-paragraph:before{content:""}.fa-passport:before{content:""}.fa-file-clipboard:before,.fa-paste:before{content:""}.fa-pause:before{content:""}.fa-paw:before{content:""}.fa-peace:before{content:""}.fa-pen:before{content:""}.fa-pen-alt:before,.fa-pen-clip:before{content:""}.fa-pen-fancy:before{content:""}.fa-pen-nib:before{content:""}.fa-pen-ruler:before,.fa-pencil-ruler:before{content:""}.fa-edit:before,.fa-pen-to-square:before{content:""}.fa-pencil-alt:before,.fa-pencil:before{content:""}.fa-people-arrows-left-right:before,.fa-people-arrows:before{content:""}.fa-people-carry-box:before,.fa-people-carry:before{content:""}.fa-pepper-hot:before{content:""}.fa-percent:before,.fa-percentage:before{content:"%"}.fa-male:before,.fa-person:before{content:""}.fa-biking:before,.fa-person-biking:before{content:""}.fa-person-booth:before{content:""}.fa-diagnoses:before,.fa-person-dots-from-line:before{content:""}.fa-female:before,.fa-person-dress:before{content:""}.fa-hiking:before,.fa-person-hiking:before{content:""}.fa-person-praying:before,.fa-pray:before{content:""}.fa-person-running:before,.fa-running:before{content:""}.fa-person-skating:before,.fa-skating:before{content:""}.fa-person-skiing:before,.fa-skiing:before{content:""}.fa-person-skiing-nordic:before,.fa-skiing-nordic:before{content:""}.fa-person-snowboarding:before,.fa-snowboarding:before{content:""}.fa-person-swimming:before,.fa-swimmer:before{content:""}.fa-person-walking:before,.fa-walking:before{content:""}.fa-blind:before,.fa-person-walking-with-cane:before{content:""}.fa-peseta-sign:before{content:""}.fa-peso-sign:before{content:""}.fa-phone:before{content:""}.fa-phone-alt:before,.fa-phone-flip:before{content:""}.fa-phone-slash:before{content:""}.fa-phone-volume:before,.fa-volume-control-phone:before{content:""}.fa-photo-film:before,.fa-photo-video:before{content:""}.fa-piggy-bank:before{content:""}.fa-pills:before{content:""}.fa-pizza-slice:before{content:""}.fa-place-of-worship:before{content:""}.fa-plane:before{content:""}.fa-plane-arrival:before{content:""}.fa-plane-departure:before{content:""}.fa-plane-slash:before{content:""}.fa-play:before{content:""}.fa-plug:before{content:""}.fa-add:before,.fa-plus:before{content:"+"}.fa-plus-minus:before{content:""}.fa-podcast:before{content:""}.fa-poo:before{content:""}.fa-poo-bolt:before,.fa-poo-storm:before{content:""}.fa-poop:before{content:""}.fa-power-off:before{content:""}.fa-prescription:before{content:""}.fa-prescription-bottle:before{content:""}.fa-prescription-bottle-alt:before,.fa-prescription-bottle-medical:before{content:""}.fa-print:before{content:""}.fa-pump-medical:before{content:""}.fa-pump-soap:before{content:""}.fa-puzzle-piece:before{content:""}.fa-q:before{content:"Q"}.fa-qrcode:before{content:""}.fa-question:before{content:"?"}.fa-quote-left-alt:before,.fa-quote-left:before{content:""}.fa-quote-right-alt:before,.fa-quote-right:before{content:""}.fa-r:before{content:"R"}.fa-radiation:before{content:""}.fa-rainbow:before{content:""}.fa-receipt:before{content:""}.fa-record-vinyl:before{content:""}.fa-ad:before,.fa-rectangle-ad:before{content:""}.fa-list-alt:before,.fa-rectangle-list:before{content:""}.fa-rectangle-times:before,.fa-rectangle-xmark:before,.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-recycle:before{content:""}.fa-registered:before{content:""}.fa-repeat:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-republican:before{content:""}.fa-restroom:before{content:""}.fa-retweet:before{content:""}.fa-ribbon:before{content:""}.fa-right-from-bracket:before,.fa-sign-out-alt:before{content:""}.fa-exchange-alt:before,.fa-right-left:before{content:""}.fa-long-arrow-alt-right:before,.fa-right-long:before{content:""}.fa-right-to-bracket:before,.fa-sign-in-alt:before{content:""}.fa-ring:before{content:""}.fa-road:before{content:""}.fa-robot:before{content:""}.fa-rocket:before{content:""}.fa-rotate:before,.fa-sync-alt:before{content:""}.fa-rotate-back:before,.fa-rotate-backward:before,.fa-rotate-left:before,.fa-undo-alt:before{content:""}.fa-redo-alt:before,.fa-rotate-forward:before,.fa-rotate-right:before{content:""}.fa-route:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble-sign:before,.fa-ruble:before{content:""}.fa-ruler:before{content:""}.fa-ruler-combined:before{content:""}.fa-ruler-horizontal:before{content:""}.fa-ruler-vertical:before{content:""}.fa-rupee-sign:before,.fa-rupee:before{content:""}.fa-rupiah-sign:before{content:""}.fa-s:before{content:"S"}.fa-sailboat:before{content:""}.fa-satellite:before{content:""}.fa-satellite-dish:before{content:""}.fa-balance-scale:before,.fa-scale-balanced:before{content:""}.fa-balance-scale-left:before,.fa-scale-unbalanced:before{content:""}.fa-balance-scale-right:before,.fa-scale-unbalanced-flip:before{content:""}.fa-school:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-screwdriver:before{content:""}.fa-screwdriver-wrench:before,.fa-tools:before{content:""}.fa-scroll:before{content:""}.fa-scroll-torah:before,.fa-torah:before{content:""}.fa-sd-card:before{content:""}.fa-section:before{content:""}.fa-seedling:before,.fa-sprout:before{content:""}.fa-server:before{content:""}.fa-shapes:before,.fa-triangle-circle-square:before{content:""}.fa-arrow-turn-right:before,.fa-mail-forward:before,.fa-share:before{content:""}.fa-share-from-square:before,.fa-share-square:before{content:""}.fa-share-alt:before,.fa-share-nodes:before{content:""}.fa-ils:before,.fa-shekel-sign:before,.fa-shekel:before,.fa-sheqel-sign:before,.fa-sheqel:before{content:""}.fa-shield:before{content:""}.fa-shield-alt:before,.fa-shield-blank:before{content:""}.fa-shield-virus:before{content:""}.fa-ship:before{content:""}.fa-shirt:before,.fa-t-shirt:before,.fa-tshirt:before{content:""}.fa-shoe-prints:before{content:""}.fa-shop:before,.fa-store-alt:before{content:""}.fa-shop-slash:before,.fa-store-alt-slash:before{content:""}.fa-shower:before{content:""}.fa-shrimp:before{content:""}.fa-random:before,.fa-shuffle:before{content:""}.fa-shuttle-space:before,.fa-space-shuttle:before{content:""}.fa-sign-hanging:before,.fa-sign:before{content:""}.fa-signal-5:before,.fa-signal-perfect:before,.fa-signal:before{content:""}.fa-signature:before{content:""}.fa-map-signs:before,.fa-signs-post:before{content:""}.fa-sim-card:before{content:""}.fa-sink:before{content:""}.fa-sitemap:before{content:""}.fa-skull:before{content:""}.fa-skull-crossbones:before{content:""}.fa-slash:before{content:""}.fa-sleigh:before{content:""}.fa-sliders-h:before,.fa-sliders:before{content:""}.fa-smog:before{content:""}.fa-smoking:before{content:""}.fa-snowflake:before{content:""}.fa-snowman:before{content:""}.fa-snowplow:before{content:""}.fa-soap:before{content:""}.fa-socks:before{content:""}.fa-solar-panel:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-spa:before{content:""}.fa-pastafarianism:before,.fa-spaghetti-monster-flying:before{content:""}.fa-spell-check:before{content:""}.fa-spider:before{content:""}.fa-spinner:before{content:""}.fa-splotch:before{content:""}.fa-spoon:before,.fa-utensil-spoon:before{content:""}.fa-spray-can:before{content:""}.fa-air-freshener:before,.fa-spray-can-sparkles:before{content:""}.fa-square:before{content:""}.fa-external-link-square:before,.fa-square-arrow-up-right:before{content:""}.fa-caret-square-down:before,.fa-square-caret-down:before{content:""}.fa-caret-square-left:before,.fa-square-caret-left:before{content:""}.fa-caret-square-right:before,.fa-square-caret-right:before{content:""}.fa-caret-square-up:before,.fa-square-caret-up:before{content:""}.fa-check-square:before,.fa-square-check:before{content:""}.fa-envelope-square:before,.fa-square-envelope:before{content:""}.fa-square-full:before{content:""}.fa-h-square:before,.fa-square-h:before{content:""}.fa-minus-square:before,.fa-square-minus:before{content:""}.fa-parking:before,.fa-square-parking:before{content:""}.fa-pen-square:before,.fa-pencil-square:before,.fa-square-pen:before{content:""}.fa-phone-square:before,.fa-square-phone:before{content:""}.fa-phone-square-alt:before,.fa-square-phone-flip:before{content:""}.fa-plus-square:before,.fa-square-plus:before{content:""}.fa-poll-h:before,.fa-square-poll-horizontal:before{content:""}.fa-poll:before,.fa-square-poll-vertical:before{content:""}.fa-square-root-alt:before,.fa-square-root-variable:before{content:""}.fa-rss-square:before,.fa-square-rss:before{content:""}.fa-share-alt-square:before,.fa-square-share-nodes:before{content:""}.fa-external-link-square-alt:before,.fa-square-up-right:before{content:""}.fa-square-xmark:before,.fa-times-square:before,.fa-xmark-square:before{content:""}.fa-stairs:before{content:""}.fa-stamp:before{content:""}.fa-star:before{content:""}.fa-star-and-crescent:before{content:""}.fa-star-half:before{content:""}.fa-star-half-alt:before,.fa-star-half-stroke:before{content:""}.fa-star-of-david:before{content:""}.fa-star-of-life:before{content:""}.fa-gbp:before,.fa-pound-sign:before,.fa-sterling-sign:before{content:""}.fa-stethoscope:before{content:""}.fa-stop:before{content:""}.fa-stopwatch:before{content:""}.fa-stopwatch-20:before{content:""}.fa-store:before{content:""}.fa-store-slash:before{content:""}.fa-street-view:before{content:""}.fa-strikethrough:before{content:""}.fa-stroopwafel:before{content:""}.fa-subscript:before{content:""}.fa-suitcase:before{content:""}.fa-medkit:before,.fa-suitcase-medical:before{content:""}.fa-suitcase-rolling:before{content:""}.fa-sun:before{content:""}.fa-superscript:before{content:""}.fa-swatchbook:before{content:""}.fa-synagogue:before{content:""}.fa-syringe:before{content:""}.fa-t:before{content:"T"}.fa-table:before{content:""}.fa-table-cells:before,.fa-th:before{content:""}.fa-table-cells-large:before,.fa-th-large:before{content:""}.fa-columns:before,.fa-table-columns:before{content:""}.fa-table-list:before,.fa-th-list:before{content:""}.fa-ping-pong-paddle-ball:before,.fa-table-tennis-paddle-ball:before,.fa-table-tennis:before{content:""}.fa-tablet-android:before,.fa-tablet:before{content:""}.fa-tablet-button:before{content:""}.fa-tablet-alt:before,.fa-tablet-screen-button:before{content:""}.fa-tablets:before{content:""}.fa-digital-tachograph:before,.fa-tachograph-digital:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-tape:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-teeth:before{content:""}.fa-teeth-open:before{content:""}.fa-temperature-0:before,.fa-temperature-empty:before,.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-temperature-4:before,.fa-temperature-full:before,.fa-thermometer-4:before,.fa-thermometer-full:before{content:""}.fa-temperature-2:before,.fa-temperature-half:before,.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-temperature-high:before{content:""}.fa-temperature-low:before{content:""}.fa-temperature-1:before,.fa-temperature-quarter:before,.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-temperature-3:before,.fa-temperature-three-quarters:before,.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-tenge-sign:before,.fa-tenge:before{content:""}.fa-terminal:before{content:""}.fa-text-height:before{content:""}.fa-remove-format:before,.fa-text-slash:before{content:""}.fa-text-width:before{content:""}.fa-thermometer:before{content:""}.fa-thumbs-down:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumb-tack:before,.fa-thumbtack:before{content:""}.fa-ticket:before{content:""}.fa-ticket-alt:before,.fa-ticket-simple:before{content:""}.fa-timeline:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-toilet:before{content:""}.fa-toilet-paper:before{content:""}.fa-toilet-paper-slash:before{content:""}.fa-toolbox:before{content:""}.fa-tooth:before{content:""}.fa-torii-gate:before{content:""}.fa-broadcast-tower:before,.fa-tower-broadcast:before{content:""}.fa-tractor:before{content:""}.fa-trademark:before{content:""}.fa-traffic-light:before{content:""}.fa-trailer:before{content:""}.fa-train:before{content:""}.fa-subway:before,.fa-train-subway:before{content:""}.fa-train-tram:before,.fa-tram:before{content:""}.fa-transgender-alt:before,.fa-transgender:before{content:""}.fa-trash:before{content:""}.fa-trash-arrow-up:before,.fa-trash-restore:before{content:""}.fa-trash-alt:before,.fa-trash-can:before{content:""}.fa-trash-can-arrow-up:before,.fa-trash-restore-alt:before{content:""}.fa-tree:before{content:""}.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before{content:""}.fa-trophy:before{content:""}.fa-truck:before{content:""}.fa-shipping-fast:before,.fa-truck-fast:before{content:""}.fa-ambulance:before,.fa-truck-medical:before{content:""}.fa-truck-monster:before{content:""}.fa-truck-moving:before{content:""}.fa-truck-pickup:before{content:""}.fa-truck-loading:before,.fa-truck-ramp-box:before{content:""}.fa-teletype:before,.fa-tty:before{content:""}.fa-try:before,.fa-turkish-lira-sign:before,.fa-turkish-lira:before{content:""}.fa-level-down-alt:before,.fa-turn-down:before{content:""}.fa-level-up-alt:before,.fa-turn-up:before{content:""}.fa-television:before,.fa-tv-alt:before,.fa-tv:before{content:""}.fa-u:before{content:"U"}.fa-umbrella:before{content:""}.fa-umbrella-beach:before{content:""}.fa-underline:before{content:""}.fa-universal-access:before{content:""}.fa-unlock:before{content:""}.fa-unlock-alt:before,.fa-unlock-keyhole:before{content:""}.fa-arrows-alt-v:before,.fa-up-down:before{content:""}.fa-arrows-alt:before,.fa-up-down-left-right:before{content:""}.fa-long-arrow-alt-up:before,.fa-up-long:before{content:""}.fa-expand-alt:before,.fa-up-right-and-down-left-from-center:before{content:""}.fa-external-link-alt:before,.fa-up-right-from-square:before{content:""}.fa-upload:before{content:""}.fa-user:before{content:""}.fa-user-astronaut:before{content:""}.fa-user-check:before{content:""}.fa-user-clock:before{content:""}.fa-user-doctor:before,.fa-user-md:before{content:""}.fa-user-cog:before,.fa-user-gear:before{content:""}.fa-user-graduate:before{content:""}.fa-user-friends:before,.fa-user-group:before{content:""}.fa-user-injured:before{content:""}.fa-user-alt:before,.fa-user-large:before{content:""}.fa-user-alt-slash:before,.fa-user-large-slash:before{content:""}.fa-user-lock:before{content:""}.fa-user-minus:before{content:""}.fa-user-ninja:before{content:""}.fa-user-nurse:before{content:""}.fa-user-edit:before,.fa-user-pen:before{content:""}.fa-user-plus:before{content:""}.fa-user-secret:before{content:""}.fa-user-shield:before{content:""}.fa-user-slash:before{content:""}.fa-user-tag:before{content:""}.fa-user-tie:before{content:""}.fa-user-times:before,.fa-user-xmark:before{content:""}.fa-users:before{content:""}.fa-users-cog:before,.fa-users-gear:before{content:""}.fa-users-slash:before{content:""}.fa-cutlery:before,.fa-utensils:before{content:""}.fa-v:before{content:"V"}.fa-shuttle-van:before,.fa-van-shuttle:before{content:""}.fa-vault:before{content:""}.fa-vector-square:before{content:""}.fa-venus:before{content:""}.fa-venus-double:before{content:""}.fa-venus-mars:before{content:""}.fa-vest:before{content:""}.fa-vest-patches:before{content:""}.fa-vial:before{content:""}.fa-vials:before{content:""}.fa-video-camera:before,.fa-video:before{content:""}.fa-video-slash:before{content:""}.fa-vihara:before{content:""}.fa-virus:before{content:""}.fa-virus-covid:before{content:""}.fa-virus-covid-slash:before{content:""}.fa-virus-slash:before{content:""}.fa-viruses:before{content:""}.fa-voicemail:before{content:""}.fa-volleyball-ball:before,.fa-volleyball:before{content:""}.fa-volume-high:before,.fa-volume-up:before{content:""}.fa-volume-down:before,.fa-volume-low:before{content:""}.fa-volume-off:before{content:""}.fa-volume-mute:before,.fa-volume-times:before,.fa-volume-xmark:before{content:""}.fa-vr-cardboard:before{content:""}.fa-w:before{content:"W"}.fa-wallet:before{content:""}.fa-magic:before,.fa-wand-magic:before{content:""}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:""}.fa-wand-sparkles:before{content:""}.fa-warehouse:before{content:""}.fa-water:before{content:""}.fa-ladder-water:before,.fa-swimming-pool:before,.fa-water-ladder:before{content:""}.fa-wave-square:before{content:""}.fa-weight-hanging:before{content:""}.fa-weight-scale:before,.fa-weight:before{content:""}.fa-wheelchair:before{content:""}.fa-glass-whiskey:before,.fa-whiskey-glass:before{content:""}.fa-wifi-3:before,.fa-wifi-strong:before,.fa-wifi:before{content:""}.fa-wind:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-wine-bottle:before{content:""}.fa-wine-glass:before{content:""}.fa-wine-glass-alt:before,.fa-wine-glass-empty:before{content:""}.fa-krw:before,.fa-won-sign:before,.fa-won:before{content:""}.fa-wrench:before{content:""}.fa-x:before{content:"X"}.fa-x-ray:before{content:""}.fa-close:before,.fa-multiply:before,.fa-remove:before,.fa-times:before,.fa-xmark:before{content:""}.fa-y:before{content:"Y"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen-sign:before,.fa-yen:before{content:""}.fa-yin-yang:before{content:""}.fa-z:before{content:"Z"}.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}/*! +@charset "UTF-8";.popup[data-v-a154651e]{stroke:var(--color-axis);stroke-width:.2;opacity:1}.popup-textbox[data-v-a154651e]{text-anchor:middle}.popup-title[data-v-a154651e]{font-size:14px}.popup-content[data-v-a154651e]{font-size:17px}.form-select[data-v-98690e5d]{background-color:var(--color-input);border:1;border-color:var(--color-bg);color:var(--color-bg);text-align:start;font-size:var(--font-small)}.commitbutton[data-v-98690e5d]{background-color:var(--color-bg);color:var(--color-input)}option[data-v-98690e5d]{color:green}.form-select[data-v-98690e5d]{font-size:var(--font-verysmall);background-color:var(--color-menu);color:var(--color-fg)}.optiontable[data-v-98690e5d]{background-color:var(--color-menu)}.optionbutton[data-v-98690e5d]{font-size:var(--font-small);color:#fff;background-color:var(--color-menu);font-size:var(--font-verysmall);text-align:center}.dropdown-menu[data-v-98690e5d]{background-color:var(--color-menu)}.dropdown-toggle[data-v-98690e5d]{background-color:var(--color-menu);color:#fff;border:1px solid var(--color-bg);font-size:var(--font-verysmall)}.radiobutton[data-v-82ab6829]{border:0px solid var(--color-menu);opacity:1}.btn-outline-secondary.active[data-v-82ab6829]{background-color:var(--color-bg);border:0px solid var(--color-fg);opacity:.8}.btn-group[data-v-82ab6829]{border:1px solid var(--color-menu)}.rounded-pill[data-v-d75ec1a4]{background-color:var(--color-menu)}.arrowButton[data-v-d75ec1a4]{border:0}.datebadge[data-v-d75ec1a4]{background-color:var(--color-bg);color:var(--color-menu);border:1px solid var(--color-menu);font-size:var(--font-small);font-weight:400}.arrowButton[data-v-d75ec1a4],.fa-magnifying-glass[data-v-d40bf528],.fa-magnifying-glass[data-v-32c82102],.fa-magnifying-glass[data-v-dc8e49b2]{color:var(--color-menu)}.heading[data-v-f6af00e8]{color:var(--color-menu);font-weight:400;text-align:center}.content[data-v-f6af00e8]{color:var(--color-fg);font-weight:700}@supports (grid-template-columns: subgrid){.wb-subwidget[data-v-2aa2b95f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:subgrid;grid-column:1 / 13}.wb-subwidget-noborder[data-v-2aa2b95f]{margin-top:20px;display:grid;grid-template-columns:subgrid;grid-column:1 / 13;padding-top:10px}}@supports not (grid-template-columns: subgrid){.wb-subwidget[data-v-2aa2b95f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:repeat(12,auto);grid-column:1 / 13}.wb-subwidget-noborder[data-v-2aa2b95f]{margin-top:20px;display:grid;grid-template-columns:subgrid;grid-column:1 / 13}}.titlerow[data-v-2aa2b95f]{grid-column:1 / 13}@supports (grid-template-columns: subgrid){.contentrow[data-v-2aa2b95f]{display:grid;grid-template-columns:subgrid;grid-column:1 / 13;align-items:top}}@supports not (grid-template-columns: subgrid){.contentrow[data-v-2aa2b95f]{display:grid;align-items:top;grid-template-columns:repeat(12,auto)}}.widgetname[data-v-2aa2b95f]{font-weight:700;font-size:var(--font-large)}.infotext[data-v-25ab3fbb]{font-size:var(--font-settings);color:var(--color-battery)}.item-icon[data-v-25ab3fbb]{color:var(--color-menu);font-size:var(--font-settings)}.titlecolumn[data-v-25ab3fbb]{color:var(--color-fg);font-size:var(--font-settings);flex-grow:1}.selectors[data-v-25ab3fbb]{font-size:var(--font-settings)}.configitem[data-v-25ab3fbb]{font-size:var(--font-settings);display:flex;flex-direction:column;justify-content:stretch;align-items:stretch;height:100%;width:100%}.contentrow[data-v-25ab3fbb]{display:flex;height:100%;width:100%}.minlabel[data-v-af945965],.maxlabel[data-v-af945965]{color:var(--color-menu)}.valuelabel[data-v-af945965]{color:var(--color-fg)}.minusButton[data-v-af945965],.plusButton[data-v-af945965]{color:var(--color-menu)}.rangeIndicator[data-v-af945965]{margin:0;padding:0;line-height:10px}.rangeinput[data-v-af945965]{width:100%}.radiobutton[data-v-88c9ea7a]{border:.2px solid var(--color-menu);opacity:1;font-size:var(--font-settings-button);border-radius:0}.btn-outline-secondary.active[data-v-88c9ea7a]{background-color:var(--color-fg);border:1px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026;opacity:1}.buttongrid[data-v-88c9ea7a]{display:grid;border:1px solid var(--color-menu);border-radius:.5rem;justify-items:stretch;justify-self:stretch;width:100%}.chargeConfigSelect[data-v-de6b86dd]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-de6b86dd]{color:var(--color-charging);font-size:var(--font-settings);font-weight:700}.chargeConfigSelect[data-v-d7ee4d2a]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-d7ee4d2a]{color:var(--color-pv);font-size:var(--font-settings);font-weight:700}.subconfigstack[data-v-d7ee4d2a]{display:grid;grid-template-columns:repeat(2,auto);width:100%}.subconfig[data-v-d7ee4d2a]{justify-content:end;align-items:baseline;margin-left:1em;width:100%}.subconfigtitle[data-v-d7ee4d2a]{margin-right:5px}.heading[data-v-2f5cb5c1]{font-size:var(--font-settings);color:var(--color-charging);font-weight:700;margin-bottom:.5rem}.plandetails[data-v-2f5cb5c1]{display:flex;flex-direction:column}.tablecell[data-v-08df44d8]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-settings)}.tableheader[data-v-08df44d8]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-08df44d8]{color:var(--color-battery);font-size:var(--font-settings);font-weight:700}.left[data-v-08df44d8]{text-align:left}.text-bold[data-v-08df44d8]{font-weight:700}.text-normal[data-v-08df44d8]{font-weight:400}.fa-circle-info[data-v-08df44d8]{color:var(--color-charging);cursor:pointer}.heading[data-v-eaa44cb2]{font-size:var(--font-settings);color:var(--color-charging);font-weight:700;margin-bottom:.5rem}.plandetails[data-v-eaa44cb2]{display:flex;flex-direction:column}.tablecell[data-v-543e8ca2]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-settings)}.tableheader[data-v-543e8ca2]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-543e8ca2]{color:var(--color-battery);font-size:var(--font-settings);font-weight:700}.left[data-v-543e8ca2]{text-align:left}.right[data-v-543e8ca2]{text-align:right}.text-bold[data-v-543e8ca2]{font-weight:700}.text-normal[data-v-543e8ca2]{font-weight:400}.fa-circle-info[data-v-543e8ca2]{color:var(--color-charging);cursor:pointer}.color-charging[data-v-28b81885]{color:var(--color-charging)}.fa-circle-check[data-v-28b81885]{color:var(--color-menu)}.settingsheader[data-v-28b81885]{color:var(--color-charging);font-size:16px;font-weight:700}.providername[data-v-28b81885]{color:var(--color-axis);font-size:16px}.jumpbutton[data-v-28b81885]{background-color:var(--color-menu);color:var(--color-bg);border:0;font-size:var(--font-settings-button)}.confirmButton[data-v-28b81885]{font-size:var(--font-settings-button)}.chargeConfigSelect[data-v-106a9fca]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-106a9fca]{color:var(--color-devices);font-size:var(--font-settings);font-weight:700}.subconfigstack[data-v-106a9fca]{display:grid;grid-template-columns:repeat(2,auto);width:100%}.subconfig[data-v-106a9fca]{justify-content:end;align-items:baseline;margin-left:1em;width:100%}.subconfigtitle[data-v-106a9fca]{margin-right:5px}.status-string[data-v-e6ae9e07]{font-size:var(--font-normal);font-style:italic;color:var(--color-battery)}.chargeConfigSelect[data-v-e6ae9e07]{background:var(--color-bg);color:var(--color-fg)}.chargeModeOption[data-v-e6ae9e07]{background:green;color:#00f}.nav-tabs .nav-link[data-v-e6ae9e07]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-e6ae9e07]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-e6ae9e07]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:1px solid var(--color-menu)}.settingsheader[data-v-e6ae9e07]{color:var(--color-charging);font-size:16px;font-weight:700}hr[data-v-e6ae9e07]{color:var(--color-menu)}.status-string[data-v-cd92fe69]{font-size:var(--font-settings);font-style:italic;color:var(--color-battery)}.nav-tabs .nav-link[data-v-cd92fe69]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-cd92fe69]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-cd92fe69]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:0px solid var(--color-menu)}.heading[data-v-cd92fe69]{color:var(--color-menu)}.item[data-v-cd92fe69]{grid-column:span 12}.tabarea[data-v-cd92fe69]{justify-self:stretch}.wb-widget[data-v-fb6ac7a4]{width:100%;height:100%;border-radius:30px}.widgetname[data-v-fb6ac7a4]{font-weight:700;color:var(--color-fg);font-size:var(--font-large)}.batIcon[data-v-a68c844a]{color:var(--color-menu)}.pillWbBadge[data-v-36112fa3]{font-size:(var--font-small);font-weight:regular;display:flex;justify-content:center;align-items:center}.targetCurrent[data-v-2cc82367]{color:var(--color-menu)}.fa-star[data-v-e3fcbd86]{color:var(--color-evu)}.fa-clock[data-v-e3fcbd86]{color:var(--color-charging)}.fa-car[data-v-e3fcbd86],.fa-circle-check[data-v-e3fcbd86]{color:var(--color-menu)}.socEditor[data-v-e3fcbd86],.priceEditor[data-v-e3fcbd86]{border:1px solid var(--color-menu);justify-self:stretch}.chargemodes[data-v-e3fcbd86]{grid-column:1 / 13;justify-self:center}.chargeinfo[data-v-e3fcbd86]{display:grid;grid-template-columns:repeat(12,auto);justify-content:space-between}.divider[data-v-e3fcbd86]{border-top:1px solid var(--color-fg);width:100%}.carSelector[data-v-e3fcbd86]{border:1px solid var(--color-menu);font-size:var(--font-settings);border-radius:3px;display:flex;flex-direction:column}.fa-ellipsis-vertical[data-v-b35defc2],.fa-circle-check[data-v-b35defc2]{color:var(--color-menu)}.errorWbBadge[data-v-b35defc2]{color:var(--color-bg);background-color:var(--color-evu);font-size:var(--font-small)}.close-config-button[data-v-b35defc2]{background:var(--color-menu);color:var(--color-bg);grid-column:11 / span 2;font-size:var(--font-settings-button)}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.modal-footer[data-v-eaefae30],.modal-header[data-v-eaefae30],.modal-body[data-v-eaefae30]{background:var(--color-bg)}.btn-close[data-v-eaefae30]{color:var(--color-fg)}.modal-footer[data-v-eaefae30]{text-align:right}.modal-header .btn-close[data-v-eaefae30]{color:var(--color-fg);background:var(--color-bg);border:0px}.modal.fade .modal-dialog[data-v-eaefae30]{transition:transform 1s ease-out;transform:none;scale:.6}.modal.show .modal-dialog[data-v-eaefae30]{transition:transform .3s ease-in;transform:none;scale:1}.tablerow[data-v-9260919a]{margin:14px;border-top:.1px solid var(--color-scale)}.tablecell[data-v-9260919a]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;padding-top:2px;padding-left:2px;padding-right:2px;vertical-align:baseline;line-height:1.4rem;font-size:var(--font-small)}.buttoncell[data-v-9260919a]{background-color:var(--color-bg);padding:0;margin:0}.left[data-v-9260919a]{text-align:left}.tablecell.right[data-v-9260919a]{text-align:right}.tablecolum1[data-v-9260919a]{color:var(--color-fg);text-align:left;margin:0;padding:0}.tableicon[data-v-9260919a]{color:var(--color-menu)}.fa-star[data-v-9260919a]{color:var(--color-evu)}.fa-clock[data-v-9260919a]{color:var(--color-battery)}.socEditor[data-v-9260919a]{border:1px solid var(--color-menu);background-color:var(--color-bg)}.socEditRow td[data-v-9260919a]{background-color:var(--color-bg)}.fa-circle-check[data-v-9260919a]{color:var(--color-menu)}.socEditTitle[data-v-9260919a]{color:var(--color-fg)}.statusbadge[data-v-9260919a]{background-color:var(--color-bg);font-weight:700;font-size:var(--font-verysmall)}.modebadge[data-v-9260919a]{color:var(--color-bg)}.cpname[data-v-9260919a]{font-size:var(--font-small)}.fa-edit[data-v-9260919a]{color:var(--color-menu)}.infolist[data-v-9260919a]{justify-content:center}.tableheader[data-v-b8c6b557]{margin:0;padding-left:0;background-color:var(--color-bg);color:var(--color-menu)}.alignleft[data-v-b8c6b557]{text-align:left}.aligncenter[data-v-b8c6b557]{text-align:center}.alignright[data-v-b8c6b557]{text-align:right}.table[data-v-b8c6b557]{border-spacing:1rem;background-color:var(--color-bg)}.priceWbBadge[data-v-b8c6b557]{background-color:var(--color-menu);font-weight:400}.fa-charging-station[data-v-b8c6b557]{color:var(--color-charging)}.plugIndicator[data-v-71bb7e5f]{color:#fff;border:1px solid white}.chargeButton[data-v-71bb7e5f]{color:#fff}.left[data-v-71bb7e5f]{float:left}.right[data-v-71bb7e5f]{float:right}.center[data-v-71bb7e5f]{margin:auto}.time-display[data-v-791e4be0]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.battery-title[data-v-f7f825f7]{color:var(--color-battery);font-size:var(--font-medium)}.battery-color[data-v-c2a8727a]{color:var(--color-battery)}.fg-color[data-v-c2a8727a]{color:var(--color-fg)}.menu-color[data-v-c2a8727a],.todaystring[data-v-c2a8727a]{color:var(--color-menu)}.devicename[data-v-20651ac6]{font-size:var(--font-medium)}.statusbutton[data-v-20651ac6]{font-size:var(--font-extralarge)}.sh-title[data-v-5b5cf6b3]{color:var(--color-title)}.tableheader[data-v-5b5cf6b3]{background-color:var(--color-bg);color:var(--color-menu)}.fa-ellipsis-vertical[data-v-5b5cf6b3],.fa-circle-check[data-v-5b5cf6b3]{color:var(--color-menu)}.smarthome[data-v-5b5cf6b3]{color:var(--color-devices)}.idWbBadge[data-v-01dd8c4d]{background-color:var(--color-menu);font-weight:400}.countername[data-v-01dd8c4d]{font-size:var(--font-medium)}.statusbutton[data-v-5f059284]{font-size:var(--font-large)}.modebutton[data-v-5f059284]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempWbBadge[data-v-5f059284]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.idWbBadge[data-v-9e2cb63e]{background-color:var(--color-menu);font-weight:400}.status-string[data-v-9e2cb63e]{text-align:center}.vehiclename[data-v-9e2cb63e]{font-size:var(--font-medium)}.statusbutton[data-v-716be083]{font-size:var(--font-large)}.modebutton[data-v-716be083]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempWbBadge[data-v-716be083]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.priceWbBadge[data-v-578b98b5]{background-color:var(--color-charging);font-weight:400}.providerWbBadge[data-v-578b98b5]{background-color:var(--color-menu);font-weight:400}.grapharea[data-v-578b98b5]{grid-column-start:1;grid-column-end:13;width:100%;object-fit:cover;max-height:100%;justify-items:stretch}.pricefigure[data-v-578b98b5]{justify-self:stretch}.modeWbBadge[data-v-258d8f17]{background-color:var(--color-pv);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.invertername[data-v-258d8f17]{font-size:var(--font-medium)}.powerWbBadge[data-v-8a9444cf]{background-color:var(--color-pv);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.button[data-v-17424929]{color:var(--color-fg)}.name[data-v-df7e578a]{font-size:1rem;color:#000;border:1px solid white}.content[data-v-df7e578a]{grid-column:1 / -1;border:solid 1px black;border-radius:10px}.sublist[data-v-df7e578a]{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.mqviewer[data-v-a349646d]{background-color:#fff;color:#000}.topiclist[data-v-a349646d]{display:grid;grid-template-columns:repeat(40,1fr)}.topnode[data-v-a349646d]{grid-column-start:1;grid-column-end:-1}.mqtitle[data-v-a349646d]{color:#000}.form-select[data-v-5e33ce1f]{background-color:var(--color-input);color:#000;border:1px solid var(--color-bg);font-size:var(--font-settings)}.fa-circle-check[data-v-785bc80b]{font-size:var(--font-large);background-color:var(--color-bg);color:var(--color-menu)}.closebutton[data-v-785bc80b]{justify-self:end}.settingscolumn[data-v-785bc80b]{padding:20px}.nav-tabs[data-v-9648e6c5]{border-bottom:.5px solid var(--color-menu);background-color:var(--color-bg)}.nav-tabs .nav-link[data-v-9648e6c5]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-9648e6c5]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-9648e6c5]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:.5px solid var(--color-menu);border-bottom:0px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026}.fa-circle-info[data-v-9648e6c5]{color:var(--color-fg)}.fa-charging-station[data-v-9648e6c5]{color:var(--color-charging)}.fa-car-battery[data-v-9648e6c5]{color:var(--color-battery)}.fa-plug[data-v-9648e6c5]{color:var(--color-devices)}.fa-bolt[data-v-9648e6c5]{color:var(--color-evu)}.fa-car[data-v-9648e6c5]{color:var(--color-charging)}.fa-coins[data-v-9648e6c5]{color:var(--color-battery)}.fa-solar-panel[data-v-9648e6c5]{color:var(--color-pv)}.navbar[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.dropdown-menu[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg)}.dropdown-item[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.btn[data-v-ed619966]{font-size:var(--font-medium);background-color:var(--color-bg);color:var(--color-fg)}.navbar-brand[data-v-ed619966]{font-weight:700;color:var(--color-fg);font-size:var(--font-normal)}.nav-link[data-v-ed619966]{color:var(--color-fg);border-color:red;font-size:var(--font-normal)}.navbar-toggler[data-v-ed619966]{color:var(--color-fg);border-color:var(--color-bg)}.navbar-time[data-v-ed619966]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.fa{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.fa,.fa-brands,.fa-duotone,.fa-light,.fa-regular,.fa-solid,.fa-thin,.fab,.fad,.fal,.far,.fas,.fat{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display, inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin, 2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width, 2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius, .1em);border:var(--fa-border-width, .08em) var(--fa-border-style, solid) var(--fa-border-color, #eee);padding:var(--fa-border-padding, .2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin, .3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin, .3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) )}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-beat-fade,.fa-fade{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s)}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-shake,.fa-spin{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration, 2s);animation-duration:var(--fa-animation-duration, 2s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin-reverse{--fa-animation-direction: reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, steps(8));animation-timing-function:var(--fa-animation-timing, steps(8))}@media (prefers-reduced-motion: reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@-webkit-keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle, none));transform:rotate(var(--fa-rotate-angle, none))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index, auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse, #fff)}.fa-0:before{content:"0"}.fa-1:before{content:"1"}.fa-2:before{content:"2"}.fa-3:before{content:"3"}.fa-4:before{content:"4"}.fa-5:before{content:"5"}.fa-6:before{content:"6"}.fa-7:before{content:"7"}.fa-8:before{content:"8"}.fa-9:before{content:"9"}.fa-a:before{content:"A"}.fa-address-book:before,.fa-contact-book:before{content:""}.fa-address-card:before,.fa-contact-card:before,.fa-vcard:before{content:""}.fa-align-center:before{content:""}.fa-align-justify:before{content:""}.fa-align-left:before{content:""}.fa-align-right:before{content:""}.fa-anchor:before{content:""}.fa-angle-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-double-down:before,.fa-angles-down:before{content:""}.fa-angle-double-left:before,.fa-angles-left:before{content:""}.fa-angle-double-right:before,.fa-angles-right:before{content:""}.fa-angle-double-up:before,.fa-angles-up:before{content:""}.fa-ankh:before{content:""}.fa-apple-alt:before,.fa-apple-whole:before{content:""}.fa-archway:before{content:""}.fa-arrow-down:before{content:""}.fa-arrow-down-1-9:before,.fa-sort-numeric-asc:before,.fa-sort-numeric-down:before{content:""}.fa-arrow-down-9-1:before,.fa-sort-numeric-desc:before,.fa-sort-numeric-down-alt:before{content:""}.fa-arrow-down-a-z:before,.fa-sort-alpha-asc:before,.fa-sort-alpha-down:before{content:""}.fa-arrow-down-long:before,.fa-long-arrow-down:before{content:""}.fa-arrow-down-short-wide:before,.fa-sort-amount-desc:before,.fa-sort-amount-down-alt:before{content:""}.fa-arrow-down-wide-short:before,.fa-sort-amount-asc:before,.fa-sort-amount-down:before{content:""}.fa-arrow-down-z-a:before,.fa-sort-alpha-desc:before,.fa-sort-alpha-down-alt:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-left-long:before,.fa-long-arrow-left:before{content:""}.fa-arrow-pointer:before,.fa-mouse-pointer:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-right-arrow-left:before,.fa-exchange:before{content:""}.fa-arrow-right-from-bracket:before,.fa-sign-out:before{content:""}.fa-arrow-right-long:before,.fa-long-arrow-right:before{content:""}.fa-arrow-right-to-bracket:before,.fa-sign-in:before{content:""}.fa-arrow-left-rotate:before,.fa-arrow-rotate-back:before,.fa-arrow-rotate-backward:before,.fa-arrow-rotate-left:before,.fa-undo:before{content:""}.fa-arrow-right-rotate:before,.fa-arrow-rotate-forward:before,.fa-arrow-rotate-right:before,.fa-redo:before{content:""}.fa-arrow-trend-down:before{content:""}.fa-arrow-trend-up:before{content:""}.fa-arrow-turn-down:before,.fa-level-down:before{content:""}.fa-arrow-turn-up:before,.fa-level-up:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-up-1-9:before,.fa-sort-numeric-up:before{content:""}.fa-arrow-up-9-1:before,.fa-sort-numeric-up-alt:before{content:""}.fa-arrow-up-a-z:before,.fa-sort-alpha-up:before{content:""}.fa-arrow-up-from-bracket:before{content:""}.fa-arrow-up-long:before,.fa-long-arrow-up:before{content:""}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:""}.fa-arrow-up-short-wide:before,.fa-sort-amount-up-alt:before{content:""}.fa-arrow-up-wide-short:before,.fa-sort-amount-up:before{content:""}.fa-arrow-up-z-a:before,.fa-sort-alpha-up-alt:before{content:""}.fa-arrows-h:before,.fa-arrows-left-right:before{content:""}.fa-arrows-rotate:before,.fa-refresh:before,.fa-sync:before{content:""}.fa-arrows-up-down:before,.fa-arrows-v:before{content:""}.fa-arrows-up-down-left-right:before,.fa-arrows:before{content:""}.fa-asterisk:before{content:"*"}.fa-at:before{content:"@"}.fa-atom:before{content:""}.fa-audio-description:before{content:""}.fa-austral-sign:before{content:""}.fa-award:before{content:""}.fa-b:before{content:"B"}.fa-baby:before{content:""}.fa-baby-carriage:before,.fa-carriage-baby:before{content:""}.fa-backward:before{content:""}.fa-backward-fast:before,.fa-fast-backward:before{content:""}.fa-backward-step:before,.fa-step-backward:before{content:""}.fa-bacon:before{content:""}.fa-bacteria:before{content:""}.fa-bacterium:before{content:""}.fa-bag-shopping:before,.fa-shopping-bag:before{content:""}.fa-bahai:before{content:""}.fa-baht-sign:before{content:""}.fa-ban:before,.fa-cancel:before{content:""}.fa-ban-smoking:before,.fa-smoking-ban:before{content:""}.fa-band-aid:before,.fa-bandage:before{content:""}.fa-barcode:before{content:""}.fa-bars:before,.fa-navicon:before{content:""}.fa-bars-progress:before,.fa-tasks-alt:before{content:""}.fa-bars-staggered:before,.fa-reorder:before,.fa-stream:before{content:""}.fa-baseball-ball:before,.fa-baseball:before{content:""}.fa-baseball-bat-ball:before{content:""}.fa-basket-shopping:before,.fa-shopping-basket:before{content:""}.fa-basketball-ball:before,.fa-basketball:before{content:""}.fa-bath:before,.fa-bathtub:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-battery-5:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-half:before{content:""}.fa-battery-2:before,.fa-battery-quarter:before{content:""}.fa-battery-4:before,.fa-battery-three-quarters:before{content:""}.fa-bed:before{content:""}.fa-bed-pulse:before,.fa-procedures:before{content:""}.fa-beer-mug-empty:before,.fa-beer:before{content:""}.fa-bell:before{content:""}.fa-bell-concierge:before,.fa-concierge-bell:before{content:""}.fa-bell-slash:before{content:""}.fa-bezier-curve:before{content:""}.fa-bicycle:before{content:""}.fa-binoculars:before{content:""}.fa-biohazard:before{content:""}.fa-bitcoin-sign:before{content:""}.fa-blender:before{content:""}.fa-blender-phone:before{content:""}.fa-blog:before{content:""}.fa-bold:before{content:""}.fa-bolt:before,.fa-zap:before{content:""}.fa-bolt-lightning:before{content:""}.fa-bomb:before{content:""}.fa-bone:before{content:""}.fa-bong:before{content:""}.fa-book:before{content:""}.fa-atlas:before,.fa-book-atlas:before{content:""}.fa-bible:before,.fa-book-bible:before{content:""}.fa-book-journal-whills:before,.fa-journal-whills:before{content:""}.fa-book-medical:before{content:""}.fa-book-open:before{content:""}.fa-book-open-reader:before,.fa-book-reader:before{content:""}.fa-book-quran:before,.fa-quran:before{content:""}.fa-book-dead:before,.fa-book-skull:before{content:""}.fa-bookmark:before{content:""}.fa-border-all:before{content:""}.fa-border-none:before{content:""}.fa-border-style:before,.fa-border-top-left:before{content:""}.fa-bowling-ball:before{content:""}.fa-box:before{content:""}.fa-archive:before,.fa-box-archive:before{content:""}.fa-box-open:before{content:""}.fa-box-tissue:before{content:""}.fa-boxes-alt:before,.fa-boxes-stacked:before,.fa-boxes:before{content:""}.fa-braille:before{content:""}.fa-brain:before{content:""}.fa-brazilian-real-sign:before{content:""}.fa-bread-slice:before{content:""}.fa-briefcase:before{content:""}.fa-briefcase-medical:before{content:""}.fa-broom:before{content:""}.fa-broom-ball:before,.fa-quidditch-broom-ball:before,.fa-quidditch:before{content:""}.fa-brush:before{content:""}.fa-bug:before{content:""}.fa-bug-slash:before{content:""}.fa-building:before{content:""}.fa-bank:before,.fa-building-columns:before,.fa-institution:before,.fa-museum:before,.fa-university:before{content:""}.fa-bullhorn:before{content:""}.fa-bullseye:before{content:""}.fa-burger:before,.fa-hamburger:before{content:""}.fa-bus:before{content:""}.fa-bus-alt:before,.fa-bus-simple:before{content:""}.fa-briefcase-clock:before,.fa-business-time:before{content:""}.fa-c:before{content:"C"}.fa-birthday-cake:before,.fa-cake-candles:before,.fa-cake:before{content:""}.fa-calculator:before{content:""}.fa-calendar:before{content:""}.fa-calendar-check:before{content:""}.fa-calendar-day:before{content:""}.fa-calendar-alt:before,.fa-calendar-days:before{content:""}.fa-calendar-minus:before{content:""}.fa-calendar-plus:before{content:""}.fa-calendar-week:before{content:""}.fa-calendar-times:before,.fa-calendar-xmark:before{content:""}.fa-camera-alt:before,.fa-camera:before{content:""}.fa-camera-retro:before{content:""}.fa-camera-rotate:before{content:""}.fa-campground:before{content:""}.fa-candy-cane:before{content:""}.fa-cannabis:before{content:""}.fa-capsules:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-battery-car:before,.fa-car-battery:before{content:""}.fa-car-crash:before{content:""}.fa-car-alt:before,.fa-car-rear:before{content:""}.fa-car-side:before{content:""}.fa-caravan:before{content:""}.fa-caret-down:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-caret-up:before{content:""}.fa-carrot:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-cart-flatbed:before,.fa-dolly-flatbed:before{content:""}.fa-cart-flatbed-suitcase:before,.fa-luggage-cart:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-shopping:before,.fa-shopping-cart:before{content:""}.fa-cash-register:before{content:""}.fa-cat:before{content:""}.fa-cedi-sign:before{content:""}.fa-cent-sign:before{content:""}.fa-certificate:before{content:""}.fa-chair:before{content:""}.fa-blackboard:before,.fa-chalkboard:before{content:""}.fa-chalkboard-teacher:before,.fa-chalkboard-user:before{content:""}.fa-champagne-glasses:before,.fa-glass-cheers:before{content:""}.fa-charging-station:before{content:""}.fa-area-chart:before,.fa-chart-area:before{content:""}.fa-bar-chart:before,.fa-chart-bar:before{content:""}.fa-chart-column:before{content:""}.fa-chart-gantt:before{content:""}.fa-chart-line:before,.fa-line-chart:before{content:""}.fa-chart-pie:before,.fa-pie-chart:before{content:""}.fa-check:before{content:""}.fa-check-double:before{content:""}.fa-check-to-slot:before,.fa-vote-yea:before{content:""}.fa-cheese:before{content:""}.fa-chess:before{content:""}.fa-chess-bishop:before{content:""}.fa-chess-board:before{content:""}.fa-chess-king:before{content:""}.fa-chess-knight:before{content:""}.fa-chess-pawn:before{content:""}.fa-chess-queen:before{content:""}.fa-chess-rook:before{content:""}.fa-chevron-down:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-chevron-up:before{content:""}.fa-child:before{content:""}.fa-church:before{content:""}.fa-circle:before{content:""}.fa-arrow-circle-down:before,.fa-circle-arrow-down:before{content:""}.fa-arrow-circle-left:before,.fa-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.fa-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before,.fa-circle-arrow-up:before{content:""}.fa-check-circle:before,.fa-circle-check:before{content:""}.fa-chevron-circle-down:before,.fa-circle-chevron-down:before{content:""}.fa-chevron-circle-left:before,.fa-circle-chevron-left:before{content:""}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:""}.fa-chevron-circle-up:before,.fa-circle-chevron-up:before{content:""}.fa-circle-dollar-to-slot:before,.fa-donate:before{content:""}.fa-circle-dot:before,.fa-dot-circle:before{content:""}.fa-arrow-alt-circle-down:before,.fa-circle-down:before{content:""}.fa-circle-exclamation:before,.fa-exclamation-circle:before{content:""}.fa-circle-h:before,.fa-hospital-symbol:before{content:""}.fa-adjust:before,.fa-circle-half-stroke:before{content:""}.fa-circle-info:before,.fa-info-circle:before{content:""}.fa-arrow-alt-circle-left:before,.fa-circle-left:before{content:""}.fa-circle-minus:before,.fa-minus-circle:before{content:""}.fa-circle-notch:before{content:""}.fa-circle-pause:before,.fa-pause-circle:before{content:""}.fa-circle-play:before,.fa-play-circle:before{content:""}.fa-circle-plus:before,.fa-plus-circle:before{content:""}.fa-circle-question:before,.fa-question-circle:before{content:""}.fa-circle-radiation:before,.fa-radiation-alt:before{content:""}.fa-arrow-alt-circle-right:before,.fa-circle-right:before{content:""}.fa-circle-stop:before,.fa-stop-circle:before{content:""}.fa-arrow-alt-circle-up:before,.fa-circle-up:before{content:""}.fa-circle-user:before,.fa-user-circle:before{content:""}.fa-circle-xmark:before,.fa-times-circle:before,.fa-xmark-circle:before{content:""}.fa-city:before{content:""}.fa-clapperboard:before{content:""}.fa-clipboard:before{content:""}.fa-clipboard-check:before{content:""}.fa-clipboard-list:before{content:""}.fa-clock-four:before,.fa-clock:before{content:""}.fa-clock-rotate-left:before,.fa-history:before{content:""}.fa-clone:before{content:""}.fa-closed-captioning:before{content:""}.fa-cloud:before{content:""}.fa-cloud-arrow-down:before,.fa-cloud-download-alt:before,.fa-cloud-download:before{content:""}.fa-cloud-arrow-up:before,.fa-cloud-upload-alt:before,.fa-cloud-upload:before{content:""}.fa-cloud-meatball:before{content:""}.fa-cloud-moon:before{content:""}.fa-cloud-moon-rain:before{content:""}.fa-cloud-rain:before{content:""}.fa-cloud-showers-heavy:before{content:""}.fa-cloud-sun:before{content:""}.fa-cloud-sun-rain:before{content:""}.fa-clover:before{content:""}.fa-code:before{content:""}.fa-code-branch:before{content:""}.fa-code-commit:before{content:""}.fa-code-compare:before{content:""}.fa-code-fork:before{content:""}.fa-code-merge:before{content:""}.fa-code-pull-request:before{content:""}.fa-coins:before{content:""}.fa-colon-sign:before{content:""}.fa-comment:before{content:""}.fa-comment-dollar:before{content:""}.fa-comment-dots:before,.fa-commenting:before{content:""}.fa-comment-medical:before{content:""}.fa-comment-slash:before{content:""}.fa-comment-sms:before,.fa-sms:before{content:""}.fa-comments:before{content:""}.fa-comments-dollar:before{content:""}.fa-compact-disc:before{content:""}.fa-compass:before{content:""}.fa-compass-drafting:before,.fa-drafting-compass:before{content:""}.fa-compress:before{content:""}.fa-computer-mouse:before,.fa-mouse:before{content:""}.fa-cookie:before{content:""}.fa-cookie-bite:before{content:""}.fa-copy:before{content:""}.fa-copyright:before{content:""}.fa-couch:before{content:""}.fa-credit-card-alt:before,.fa-credit-card:before{content:""}.fa-crop:before{content:""}.fa-crop-alt:before,.fa-crop-simple:before{content:""}.fa-cross:before{content:""}.fa-crosshairs:before{content:""}.fa-crow:before{content:""}.fa-crown:before{content:""}.fa-crutch:before{content:""}.fa-cruzeiro-sign:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-d:before{content:"D"}.fa-database:before{content:""}.fa-backspace:before,.fa-delete-left:before{content:""}.fa-democrat:before{content:""}.fa-desktop-alt:before,.fa-desktop:before{content:""}.fa-dharmachakra:before{content:""}.fa-diagram-next:before{content:""}.fa-diagram-predecessor:before{content:""}.fa-diagram-project:before,.fa-project-diagram:before{content:""}.fa-diagram-successor:before{content:""}.fa-diamond:before{content:""}.fa-diamond-turn-right:before,.fa-directions:before{content:""}.fa-dice:before{content:""}.fa-dice-d20:before{content:""}.fa-dice-d6:before{content:""}.fa-dice-five:before{content:""}.fa-dice-four:before{content:""}.fa-dice-one:before{content:""}.fa-dice-six:before{content:""}.fa-dice-three:before{content:""}.fa-dice-two:before{content:""}.fa-disease:before{content:""}.fa-divide:before{content:""}.fa-dna:before{content:""}.fa-dog:before{content:""}.fa-dollar-sign:before,.fa-dollar:before,.fa-usd:before{content:"$"}.fa-dolly-box:before,.fa-dolly:before{content:""}.fa-dong-sign:before{content:""}.fa-door-closed:before{content:""}.fa-door-open:before{content:""}.fa-dove:before{content:""}.fa-compress-alt:before,.fa-down-left-and-up-right-to-center:before{content:""}.fa-down-long:before,.fa-long-arrow-alt-down:before{content:""}.fa-download:before{content:""}.fa-dragon:before{content:""}.fa-draw-polygon:before{content:""}.fa-droplet:before,.fa-tint:before{content:""}.fa-droplet-slash:before,.fa-tint-slash:before{content:""}.fa-drum:before{content:""}.fa-drum-steelpan:before{content:""}.fa-drumstick-bite:before{content:""}.fa-dumbbell:before{content:""}.fa-dumpster:before{content:""}.fa-dumpster-fire:before{content:""}.fa-dungeon:before{content:""}.fa-e:before{content:"E"}.fa-deaf:before,.fa-deafness:before,.fa-ear-deaf:before,.fa-hard-of-hearing:before{content:""}.fa-assistive-listening-systems:before,.fa-ear-listen:before{content:""}.fa-earth-africa:before,.fa-globe-africa:before{content:""}.fa-earth-america:before,.fa-earth-americas:before,.fa-earth:before,.fa-globe-americas:before{content:""}.fa-earth-asia:before,.fa-globe-asia:before{content:""}.fa-earth-europe:before,.fa-globe-europe:before{content:""}.fa-earth-oceania:before,.fa-globe-oceania:before{content:""}.fa-egg:before{content:""}.fa-eject:before{content:""}.fa-elevator:before{content:""}.fa-ellipsis-h:before,.fa-ellipsis:before{content:""}.fa-ellipsis-v:before,.fa-ellipsis-vertical:before{content:""}.fa-envelope:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-text:before{content:""}.fa-envelopes-bulk:before,.fa-mail-bulk:before{content:""}.fa-equals:before{content:"="}.fa-eraser:before{content:""}.fa-ethernet:before{content:""}.fa-eur:before,.fa-euro-sign:before,.fa-euro:before{content:""}.fa-exclamation:before{content:"!"}.fa-expand:before{content:""}.fa-eye:before{content:""}.fa-eye-dropper-empty:before,.fa-eye-dropper:before,.fa-eyedropper:before{content:""}.fa-eye-low-vision:before,.fa-low-vision:before{content:""}.fa-eye-slash:before{content:""}.fa-f:before{content:"F"}.fa-angry:before,.fa-face-angry:before{content:""}.fa-dizzy:before,.fa-face-dizzy:before{content:""}.fa-face-flushed:before,.fa-flushed:before{content:""}.fa-face-frown:before,.fa-frown:before{content:""}.fa-face-frown-open:before,.fa-frown-open:before{content:""}.fa-face-grimace:before,.fa-grimace:before{content:""}.fa-face-grin:before,.fa-grin:before{content:""}.fa-face-grin-beam:before,.fa-grin-beam:before{content:""}.fa-face-grin-beam-sweat:before,.fa-grin-beam-sweat:before{content:""}.fa-face-grin-hearts:before,.fa-grin-hearts:before{content:""}.fa-face-grin-squint:before,.fa-grin-squint:before{content:""}.fa-face-grin-squint-tears:before,.fa-grin-squint-tears:before{content:""}.fa-face-grin-stars:before,.fa-grin-stars:before{content:""}.fa-face-grin-tears:before,.fa-grin-tears:before{content:""}.fa-face-grin-tongue:before,.fa-grin-tongue:before{content:""}.fa-face-grin-tongue-squint:before,.fa-grin-tongue-squint:before{content:""}.fa-face-grin-tongue-wink:before,.fa-grin-tongue-wink:before{content:""}.fa-face-grin-wide:before,.fa-grin-alt:before{content:""}.fa-face-grin-wink:before,.fa-grin-wink:before{content:""}.fa-face-kiss:before,.fa-kiss:before{content:""}.fa-face-kiss-beam:before,.fa-kiss-beam:before{content:""}.fa-face-kiss-wink-heart:before,.fa-kiss-wink-heart:before{content:""}.fa-face-laugh:before,.fa-laugh:before{content:""}.fa-face-laugh-beam:before,.fa-laugh-beam:before{content:""}.fa-face-laugh-squint:before,.fa-laugh-squint:before{content:""}.fa-face-laugh-wink:before,.fa-laugh-wink:before{content:""}.fa-face-meh:before,.fa-meh:before{content:""}.fa-face-meh-blank:before,.fa-meh-blank:before{content:""}.fa-face-rolling-eyes:before,.fa-meh-rolling-eyes:before{content:""}.fa-face-sad-cry:before,.fa-sad-cry:before{content:""}.fa-face-sad-tear:before,.fa-sad-tear:before{content:""}.fa-face-smile:before,.fa-smile:before{content:""}.fa-face-smile-beam:before,.fa-smile-beam:before{content:""}.fa-face-smile-wink:before,.fa-smile-wink:before{content:""}.fa-face-surprise:before,.fa-surprise:before{content:""}.fa-face-tired:before,.fa-tired:before{content:""}.fa-fan:before{content:""}.fa-faucet:before{content:""}.fa-fax:before{content:""}.fa-feather:before{content:""}.fa-feather-alt:before,.fa-feather-pointed:before{content:""}.fa-file:before{content:""}.fa-file-arrow-down:before,.fa-file-download:before{content:""}.fa-file-arrow-up:before,.fa-file-upload:before{content:""}.fa-file-audio:before{content:""}.fa-file-code:before{content:""}.fa-file-contract:before{content:""}.fa-file-csv:before{content:""}.fa-file-excel:before{content:""}.fa-arrow-right-from-file:before,.fa-file-export:before{content:""}.fa-file-image:before{content:""}.fa-arrow-right-to-file:before,.fa-file-import:before{content:""}.fa-file-invoice:before{content:""}.fa-file-invoice-dollar:before{content:""}.fa-file-alt:before,.fa-file-lines:before,.fa-file-text:before{content:""}.fa-file-medical:before{content:""}.fa-file-pdf:before{content:""}.fa-file-powerpoint:before{content:""}.fa-file-prescription:before{content:""}.fa-file-signature:before{content:""}.fa-file-video:before{content:""}.fa-file-medical-alt:before,.fa-file-waveform:before{content:""}.fa-file-word:before{content:""}.fa-file-archive:before,.fa-file-zipper:before{content:""}.fa-fill:before{content:""}.fa-fill-drip:before{content:""}.fa-film:before{content:""}.fa-filter:before{content:""}.fa-filter-circle-dollar:before,.fa-funnel-dollar:before{content:""}.fa-filter-circle-xmark:before{content:""}.fa-fingerprint:before{content:""}.fa-fire:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-fire-alt:before,.fa-fire-flame-curved:before{content:""}.fa-burn:before,.fa-fire-flame-simple:before{content:""}.fa-fish:before{content:""}.fa-flag:before{content:""}.fa-flag-checkered:before{content:""}.fa-flag-usa:before{content:""}.fa-flask:before{content:""}.fa-floppy-disk:before,.fa-save:before{content:""}.fa-florin-sign:before{content:""}.fa-folder:before{content:""}.fa-folder-minus:before{content:""}.fa-folder-open:before{content:""}.fa-folder-plus:before{content:""}.fa-folder-tree:before{content:""}.fa-font:before{content:""}.fa-football-ball:before,.fa-football:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before,.fa-forward-fast:before{content:""}.fa-forward-step:before,.fa-step-forward:before{content:""}.fa-franc-sign:before{content:""}.fa-frog:before{content:""}.fa-futbol-ball:before,.fa-futbol:before,.fa-soccer-ball:before{content:""}.fa-g:before{content:"G"}.fa-gamepad:before{content:""}.fa-gas-pump:before{content:""}.fa-dashboard:before,.fa-gauge-med:before,.fa-gauge:before,.fa-tachometer-alt-average:before{content:""}.fa-gauge-high:before,.fa-tachometer-alt-fast:before,.fa-tachometer-alt:before{content:""}.fa-gauge-simple-med:before,.fa-gauge-simple:before,.fa-tachometer-average:before{content:""}.fa-gauge-simple-high:before,.fa-tachometer-fast:before,.fa-tachometer:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-gem:before{content:""}.fa-genderless:before{content:""}.fa-ghost:before{content:""}.fa-gift:before{content:""}.fa-gifts:before{content:""}.fa-glasses:before{content:""}.fa-globe:before{content:""}.fa-golf-ball-tee:before,.fa-golf-ball:before{content:""}.fa-gopuram:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-greater-than:before{content:">"}.fa-greater-than-equal:before{content:""}.fa-grip-horizontal:before,.fa-grip:before{content:""}.fa-grip-lines:before{content:""}.fa-grip-lines-vertical:before{content:""}.fa-grip-vertical:before{content:""}.fa-guarani-sign:before{content:""}.fa-guitar:before{content:""}.fa-gun:before{content:""}.fa-h:before{content:"H"}.fa-hammer:before{content:""}.fa-hamsa:before{content:""}.fa-hand-paper:before,.fa-hand:before{content:""}.fa-hand-back-fist:before,.fa-hand-rock:before{content:""}.fa-allergies:before,.fa-hand-dots:before{content:""}.fa-fist-raised:before,.fa-hand-fist:before{content:""}.fa-hand-holding:before{content:""}.fa-hand-holding-dollar:before,.fa-hand-holding-usd:before{content:""}.fa-hand-holding-droplet:before,.fa-hand-holding-water:before{content:""}.fa-hand-holding-heart:before{content:""}.fa-hand-holding-medical:before{content:""}.fa-hand-lizard:before{content:""}.fa-hand-middle-finger:before{content:""}.fa-hand-peace:before{content:""}.fa-hand-point-down:before{content:""}.fa-hand-point-left:before{content:""}.fa-hand-point-right:before{content:""}.fa-hand-point-up:before{content:""}.fa-hand-pointer:before{content:""}.fa-hand-scissors:before{content:""}.fa-hand-sparkles:before{content:""}.fa-hand-spock:before{content:""}.fa-hands:before,.fa-sign-language:before,.fa-signing:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before,.fa-hands-american-sign-language-interpreting:before,.fa-hands-asl-interpreting:before{content:""}.fa-hands-bubbles:before,.fa-hands-wash:before{content:""}.fa-hands-clapping:before{content:""}.fa-hands-holding:before{content:""}.fa-hands-praying:before,.fa-praying-hands:before{content:""}.fa-handshake:before{content:""}.fa-hands-helping:before,.fa-handshake-angle:before{content:""}.fa-handshake-alt-slash:before,.fa-handshake-simple-slash:before{content:""}.fa-handshake-slash:before{content:""}.fa-hanukiah:before{content:""}.fa-hard-drive:before,.fa-hdd:before{content:""}.fa-hashtag:before{content:"#"}.fa-hat-cowboy:before{content:""}.fa-hat-cowboy-side:before{content:""}.fa-hat-wizard:before{content:""}.fa-head-side-cough:before{content:""}.fa-head-side-cough-slash:before{content:""}.fa-head-side-mask:before{content:""}.fa-head-side-virus:before{content:""}.fa-header:before,.fa-heading:before{content:""}.fa-headphones:before{content:""}.fa-headphones-alt:before,.fa-headphones-simple:before{content:""}.fa-headset:before{content:""}.fa-heart:before{content:""}.fa-heart-broken:before,.fa-heart-crack:before{content:""}.fa-heart-pulse:before,.fa-heartbeat:before{content:""}.fa-helicopter:before{content:""}.fa-hard-hat:before,.fa-hat-hard:before,.fa-helmet-safety:before{content:""}.fa-highlighter:before{content:""}.fa-hippo:before{content:""}.fa-hockey-puck:before{content:""}.fa-holly-berry:before{content:""}.fa-horse:before{content:""}.fa-horse-head:before{content:""}.fa-hospital-alt:before,.fa-hospital-wide:before,.fa-hospital:before{content:""}.fa-hospital-user:before{content:""}.fa-hot-tub-person:before,.fa-hot-tub:before{content:""}.fa-hotdog:before{content:""}.fa-hotel:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before,.fa-hourglass:before{content:""}.fa-hourglass-empty:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-home-alt:before,.fa-home-lg-alt:before,.fa-home:before,.fa-house:before{content:""}.fa-home-lg:before,.fa-house-chimney:before{content:""}.fa-house-chimney-crack:before,.fa-house-damage:before{content:""}.fa-clinic-medical:before,.fa-house-chimney-medical:before{content:""}.fa-house-chimney-user:before{content:""}.fa-house-chimney-window:before{content:""}.fa-house-crack:before{content:""}.fa-house-laptop:before,.fa-laptop-house:before{content:""}.fa-house-medical:before{content:""}.fa-home-user:before,.fa-house-user:before{content:""}.fa-hryvnia-sign:before,.fa-hryvnia:before{content:""}.fa-i:before{content:"I"}.fa-i-cursor:before{content:""}.fa-ice-cream:before{content:""}.fa-icicles:before{content:""}.fa-heart-music-camera-bolt:before,.fa-icons:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-id-card-alt:before,.fa-id-card-clip:before{content:""}.fa-igloo:before{content:""}.fa-image:before{content:""}.fa-image-portrait:before,.fa-portrait:before{content:""}.fa-images:before{content:""}.fa-inbox:before{content:""}.fa-indent:before{content:""}.fa-indian-rupee-sign:before,.fa-indian-rupee:before,.fa-inr:before{content:""}.fa-industry:before{content:""}.fa-infinity:before{content:""}.fa-info:before{content:""}.fa-italic:before{content:""}.fa-j:before{content:"J"}.fa-jedi:before{content:""}.fa-fighter-jet:before,.fa-jet-fighter:before{content:""}.fa-joint:before{content:""}.fa-k:before{content:"K"}.fa-kaaba:before{content:""}.fa-key:before{content:""}.fa-keyboard:before{content:""}.fa-khanda:before{content:""}.fa-kip-sign:before{content:""}.fa-first-aid:before,.fa-kit-medical:before{content:""}.fa-kiwi-bird:before{content:""}.fa-l:before{content:"L"}.fa-landmark:before{content:""}.fa-language:before{content:""}.fa-laptop:before{content:""}.fa-laptop-code:before{content:""}.fa-laptop-medical:before{content:""}.fa-lari-sign:before{content:""}.fa-layer-group:before{content:""}.fa-leaf:before{content:""}.fa-left-long:before,.fa-long-arrow-alt-left:before{content:""}.fa-arrows-alt-h:before,.fa-left-right:before{content:""}.fa-lemon:before{content:""}.fa-less-than:before{content:"<"}.fa-less-than-equal:before{content:""}.fa-life-ring:before{content:""}.fa-lightbulb:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-chain-broken:before,.fa-chain-slash:before,.fa-link-slash:before,.fa-unlink:before{content:""}.fa-lira-sign:before{content:""}.fa-list-squares:before,.fa-list:before{content:""}.fa-list-check:before,.fa-tasks:before{content:""}.fa-list-1-2:before,.fa-list-numeric:before,.fa-list-ol:before{content:""}.fa-list-dots:before,.fa-list-ul:before{content:""}.fa-litecoin-sign:before{content:""}.fa-location-arrow:before{content:""}.fa-location-crosshairs:before,.fa-location:before{content:""}.fa-location-dot:before,.fa-map-marker-alt:before{content:""}.fa-location-pin:before,.fa-map-marker:before{content:""}.fa-lock:before{content:""}.fa-lock-open:before{content:""}.fa-lungs:before{content:""}.fa-lungs-virus:before{content:""}.fa-m:before{content:"M"}.fa-magnet:before{content:""}.fa-magnifying-glass:before,.fa-search:before{content:""}.fa-magnifying-glass-dollar:before,.fa-search-dollar:before{content:""}.fa-magnifying-glass-location:before,.fa-search-location:before{content:""}.fa-magnifying-glass-minus:before,.fa-search-minus:before{content:""}.fa-magnifying-glass-plus:before,.fa-search-plus:before{content:""}.fa-manat-sign:before{content:""}.fa-map:before{content:""}.fa-map-location:before,.fa-map-marked:before{content:""}.fa-map-location-dot:before,.fa-map-marked-alt:before{content:""}.fa-map-pin:before{content:""}.fa-marker:before{content:""}.fa-mars:before{content:""}.fa-mars-and-venus:before{content:""}.fa-mars-double:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-h:before,.fa-mars-stroke-right:before{content:""}.fa-mars-stroke-up:before,.fa-mars-stroke-v:before{content:""}.fa-glass-martini-alt:before,.fa-martini-glass:before{content:""}.fa-cocktail:before,.fa-martini-glass-citrus:before{content:""}.fa-glass-martini:before,.fa-martini-glass-empty:before{content:""}.fa-mask:before{content:""}.fa-mask-face:before{content:""}.fa-masks-theater:before,.fa-theater-masks:before{content:""}.fa-expand-arrows-alt:before,.fa-maximize:before{content:""}.fa-medal:before{content:""}.fa-memory:before{content:""}.fa-menorah:before{content:""}.fa-mercury:before{content:""}.fa-comment-alt:before,.fa-message:before{content:""}.fa-meteor:before{content:""}.fa-microchip:before{content:""}.fa-microphone:before{content:""}.fa-microphone-alt:before,.fa-microphone-lines:before{content:""}.fa-microphone-alt-slash:before,.fa-microphone-lines-slash:before{content:""}.fa-microphone-slash:before{content:""}.fa-microscope:before{content:""}.fa-mill-sign:before{content:""}.fa-compress-arrows-alt:before,.fa-minimize:before{content:""}.fa-minus:before,.fa-subtract:before{content:""}.fa-mitten:before{content:""}.fa-mobile-android:before,.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-mobile-button:before{content:""}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:""}.fa-money-bill:before{content:""}.fa-money-bill-1:before,.fa-money-bill-alt:before{content:""}.fa-money-bill-1-wave:before,.fa-money-bill-wave-alt:before{content:""}.fa-money-bill-wave:before{content:""}.fa-money-check:before{content:""}.fa-money-check-alt:before,.fa-money-check-dollar:before{content:""}.fa-monument:before{content:""}.fa-moon:before{content:""}.fa-mortar-pestle:before{content:""}.fa-mosque:before{content:""}.fa-motorcycle:before{content:""}.fa-mountain:before{content:""}.fa-mug-hot:before{content:""}.fa-coffee:before,.fa-mug-saucer:before{content:""}.fa-music:before{content:""}.fa-n:before{content:"N"}.fa-naira-sign:before{content:""}.fa-network-wired:before{content:""}.fa-neuter:before{content:""}.fa-newspaper:before{content:""}.fa-not-equal:before{content:""}.fa-note-sticky:before,.fa-sticky-note:before{content:""}.fa-notes-medical:before{content:""}.fa-o:before{content:"O"}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-oil-can:before{content:""}.fa-om:before{content:""}.fa-otter:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-p:before{content:"P"}.fa-pager:before{content:""}.fa-paint-roller:before{content:""}.fa-paint-brush:before,.fa-paintbrush:before{content:""}.fa-palette:before{content:""}.fa-pallet:before{content:""}.fa-panorama:before{content:""}.fa-paper-plane:before{content:""}.fa-paperclip:before{content:""}.fa-parachute-box:before{content:""}.fa-paragraph:before{content:""}.fa-passport:before{content:""}.fa-file-clipboard:before,.fa-paste:before{content:""}.fa-pause:before{content:""}.fa-paw:before{content:""}.fa-peace:before{content:""}.fa-pen:before{content:""}.fa-pen-alt:before,.fa-pen-clip:before{content:""}.fa-pen-fancy:before{content:""}.fa-pen-nib:before{content:""}.fa-pen-ruler:before,.fa-pencil-ruler:before{content:""}.fa-edit:before,.fa-pen-to-square:before{content:""}.fa-pencil-alt:before,.fa-pencil:before{content:""}.fa-people-arrows-left-right:before,.fa-people-arrows:before{content:""}.fa-people-carry-box:before,.fa-people-carry:before{content:""}.fa-pepper-hot:before{content:""}.fa-percent:before,.fa-percentage:before{content:"%"}.fa-male:before,.fa-person:before{content:""}.fa-biking:before,.fa-person-biking:before{content:""}.fa-person-booth:before{content:""}.fa-diagnoses:before,.fa-person-dots-from-line:before{content:""}.fa-female:before,.fa-person-dress:before{content:""}.fa-hiking:before,.fa-person-hiking:before{content:""}.fa-person-praying:before,.fa-pray:before{content:""}.fa-person-running:before,.fa-running:before{content:""}.fa-person-skating:before,.fa-skating:before{content:""}.fa-person-skiing:before,.fa-skiing:before{content:""}.fa-person-skiing-nordic:before,.fa-skiing-nordic:before{content:""}.fa-person-snowboarding:before,.fa-snowboarding:before{content:""}.fa-person-swimming:before,.fa-swimmer:before{content:""}.fa-person-walking:before,.fa-walking:before{content:""}.fa-blind:before,.fa-person-walking-with-cane:before{content:""}.fa-peseta-sign:before{content:""}.fa-peso-sign:before{content:""}.fa-phone:before{content:""}.fa-phone-alt:before,.fa-phone-flip:before{content:""}.fa-phone-slash:before{content:""}.fa-phone-volume:before,.fa-volume-control-phone:before{content:""}.fa-photo-film:before,.fa-photo-video:before{content:""}.fa-piggy-bank:before{content:""}.fa-pills:before{content:""}.fa-pizza-slice:before{content:""}.fa-place-of-worship:before{content:""}.fa-plane:before{content:""}.fa-plane-arrival:before{content:""}.fa-plane-departure:before{content:""}.fa-plane-slash:before{content:""}.fa-play:before{content:""}.fa-plug:before{content:""}.fa-add:before,.fa-plus:before{content:"+"}.fa-plus-minus:before{content:""}.fa-podcast:before{content:""}.fa-poo:before{content:""}.fa-poo-bolt:before,.fa-poo-storm:before{content:""}.fa-poop:before{content:""}.fa-power-off:before{content:""}.fa-prescription:before{content:""}.fa-prescription-bottle:before{content:""}.fa-prescription-bottle-alt:before,.fa-prescription-bottle-medical:before{content:""}.fa-print:before{content:""}.fa-pump-medical:before{content:""}.fa-pump-soap:before{content:""}.fa-puzzle-piece:before{content:""}.fa-q:before{content:"Q"}.fa-qrcode:before{content:""}.fa-question:before{content:"?"}.fa-quote-left-alt:before,.fa-quote-left:before{content:""}.fa-quote-right-alt:before,.fa-quote-right:before{content:""}.fa-r:before{content:"R"}.fa-radiation:before{content:""}.fa-rainbow:before{content:""}.fa-receipt:before{content:""}.fa-record-vinyl:before{content:""}.fa-ad:before,.fa-rectangle-ad:before{content:""}.fa-list-alt:before,.fa-rectangle-list:before{content:""}.fa-rectangle-times:before,.fa-rectangle-xmark:before,.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-recycle:before{content:""}.fa-registered:before{content:""}.fa-repeat:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-republican:before{content:""}.fa-restroom:before{content:""}.fa-retweet:before{content:""}.fa-ribbon:before{content:""}.fa-right-from-bracket:before,.fa-sign-out-alt:before{content:""}.fa-exchange-alt:before,.fa-right-left:before{content:""}.fa-long-arrow-alt-right:before,.fa-right-long:before{content:""}.fa-right-to-bracket:before,.fa-sign-in-alt:before{content:""}.fa-ring:before{content:""}.fa-road:before{content:""}.fa-robot:before{content:""}.fa-rocket:before{content:""}.fa-rotate:before,.fa-sync-alt:before{content:""}.fa-rotate-back:before,.fa-rotate-backward:before,.fa-rotate-left:before,.fa-undo-alt:before{content:""}.fa-redo-alt:before,.fa-rotate-forward:before,.fa-rotate-right:before{content:""}.fa-route:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble-sign:before,.fa-ruble:before{content:""}.fa-ruler:before{content:""}.fa-ruler-combined:before{content:""}.fa-ruler-horizontal:before{content:""}.fa-ruler-vertical:before{content:""}.fa-rupee-sign:before,.fa-rupee:before{content:""}.fa-rupiah-sign:before{content:""}.fa-s:before{content:"S"}.fa-sailboat:before{content:""}.fa-satellite:before{content:""}.fa-satellite-dish:before{content:""}.fa-balance-scale:before,.fa-scale-balanced:before{content:""}.fa-balance-scale-left:before,.fa-scale-unbalanced:before{content:""}.fa-balance-scale-right:before,.fa-scale-unbalanced-flip:before{content:""}.fa-school:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-screwdriver:before{content:""}.fa-screwdriver-wrench:before,.fa-tools:before{content:""}.fa-scroll:before{content:""}.fa-scroll-torah:before,.fa-torah:before{content:""}.fa-sd-card:before{content:""}.fa-section:before{content:""}.fa-seedling:before,.fa-sprout:before{content:""}.fa-server:before{content:""}.fa-shapes:before,.fa-triangle-circle-square:before{content:""}.fa-arrow-turn-right:before,.fa-mail-forward:before,.fa-share:before{content:""}.fa-share-from-square:before,.fa-share-square:before{content:""}.fa-share-alt:before,.fa-share-nodes:before{content:""}.fa-ils:before,.fa-shekel-sign:before,.fa-shekel:before,.fa-sheqel-sign:before,.fa-sheqel:before{content:""}.fa-shield:before{content:""}.fa-shield-alt:before,.fa-shield-blank:before{content:""}.fa-shield-virus:before{content:""}.fa-ship:before{content:""}.fa-shirt:before,.fa-t-shirt:before,.fa-tshirt:before{content:""}.fa-shoe-prints:before{content:""}.fa-shop:before,.fa-store-alt:before{content:""}.fa-shop-slash:before,.fa-store-alt-slash:before{content:""}.fa-shower:before{content:""}.fa-shrimp:before{content:""}.fa-random:before,.fa-shuffle:before{content:""}.fa-shuttle-space:before,.fa-space-shuttle:before{content:""}.fa-sign-hanging:before,.fa-sign:before{content:""}.fa-signal-5:before,.fa-signal-perfect:before,.fa-signal:before{content:""}.fa-signature:before{content:""}.fa-map-signs:before,.fa-signs-post:before{content:""}.fa-sim-card:before{content:""}.fa-sink:before{content:""}.fa-sitemap:before{content:""}.fa-skull:before{content:""}.fa-skull-crossbones:before{content:""}.fa-slash:before{content:""}.fa-sleigh:before{content:""}.fa-sliders-h:before,.fa-sliders:before{content:""}.fa-smog:before{content:""}.fa-smoking:before{content:""}.fa-snowflake:before{content:""}.fa-snowman:before{content:""}.fa-snowplow:before{content:""}.fa-soap:before{content:""}.fa-socks:before{content:""}.fa-solar-panel:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-spa:before{content:""}.fa-pastafarianism:before,.fa-spaghetti-monster-flying:before{content:""}.fa-spell-check:before{content:""}.fa-spider:before{content:""}.fa-spinner:before{content:""}.fa-splotch:before{content:""}.fa-spoon:before,.fa-utensil-spoon:before{content:""}.fa-spray-can:before{content:""}.fa-air-freshener:before,.fa-spray-can-sparkles:before{content:""}.fa-square:before{content:""}.fa-external-link-square:before,.fa-square-arrow-up-right:before{content:""}.fa-caret-square-down:before,.fa-square-caret-down:before{content:""}.fa-caret-square-left:before,.fa-square-caret-left:before{content:""}.fa-caret-square-right:before,.fa-square-caret-right:before{content:""}.fa-caret-square-up:before,.fa-square-caret-up:before{content:""}.fa-check-square:before,.fa-square-check:before{content:""}.fa-envelope-square:before,.fa-square-envelope:before{content:""}.fa-square-full:before{content:""}.fa-h-square:before,.fa-square-h:before{content:""}.fa-minus-square:before,.fa-square-minus:before{content:""}.fa-parking:before,.fa-square-parking:before{content:""}.fa-pen-square:before,.fa-pencil-square:before,.fa-square-pen:before{content:""}.fa-phone-square:before,.fa-square-phone:before{content:""}.fa-phone-square-alt:before,.fa-square-phone-flip:before{content:""}.fa-plus-square:before,.fa-square-plus:before{content:""}.fa-poll-h:before,.fa-square-poll-horizontal:before{content:""}.fa-poll:before,.fa-square-poll-vertical:before{content:""}.fa-square-root-alt:before,.fa-square-root-variable:before{content:""}.fa-rss-square:before,.fa-square-rss:before{content:""}.fa-share-alt-square:before,.fa-square-share-nodes:before{content:""}.fa-external-link-square-alt:before,.fa-square-up-right:before{content:""}.fa-square-xmark:before,.fa-times-square:before,.fa-xmark-square:before{content:""}.fa-stairs:before{content:""}.fa-stamp:before{content:""}.fa-star:before{content:""}.fa-star-and-crescent:before{content:""}.fa-star-half:before{content:""}.fa-star-half-alt:before,.fa-star-half-stroke:before{content:""}.fa-star-of-david:before{content:""}.fa-star-of-life:before{content:""}.fa-gbp:before,.fa-pound-sign:before,.fa-sterling-sign:before{content:""}.fa-stethoscope:before{content:""}.fa-stop:before{content:""}.fa-stopwatch:before{content:""}.fa-stopwatch-20:before{content:""}.fa-store:before{content:""}.fa-store-slash:before{content:""}.fa-street-view:before{content:""}.fa-strikethrough:before{content:""}.fa-stroopwafel:before{content:""}.fa-subscript:before{content:""}.fa-suitcase:before{content:""}.fa-medkit:before,.fa-suitcase-medical:before{content:""}.fa-suitcase-rolling:before{content:""}.fa-sun:before{content:""}.fa-superscript:before{content:""}.fa-swatchbook:before{content:""}.fa-synagogue:before{content:""}.fa-syringe:before{content:""}.fa-t:before{content:"T"}.fa-table:before{content:""}.fa-table-cells:before,.fa-th:before{content:""}.fa-table-cells-large:before,.fa-th-large:before{content:""}.fa-columns:before,.fa-table-columns:before{content:""}.fa-table-list:before,.fa-th-list:before{content:""}.fa-ping-pong-paddle-ball:before,.fa-table-tennis-paddle-ball:before,.fa-table-tennis:before{content:""}.fa-tablet-android:before,.fa-tablet:before{content:""}.fa-tablet-button:before{content:""}.fa-tablet-alt:before,.fa-tablet-screen-button:before{content:""}.fa-tablets:before{content:""}.fa-digital-tachograph:before,.fa-tachograph-digital:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-tape:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-teeth:before{content:""}.fa-teeth-open:before{content:""}.fa-temperature-0:before,.fa-temperature-empty:before,.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-temperature-4:before,.fa-temperature-full:before,.fa-thermometer-4:before,.fa-thermometer-full:before{content:""}.fa-temperature-2:before,.fa-temperature-half:before,.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-temperature-high:before{content:""}.fa-temperature-low:before{content:""}.fa-temperature-1:before,.fa-temperature-quarter:before,.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-temperature-3:before,.fa-temperature-three-quarters:before,.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-tenge-sign:before,.fa-tenge:before{content:""}.fa-terminal:before{content:""}.fa-text-height:before{content:""}.fa-remove-format:before,.fa-text-slash:before{content:""}.fa-text-width:before{content:""}.fa-thermometer:before{content:""}.fa-thumbs-down:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumb-tack:before,.fa-thumbtack:before{content:""}.fa-ticket:before{content:""}.fa-ticket-alt:before,.fa-ticket-simple:before{content:""}.fa-timeline:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-toilet:before{content:""}.fa-toilet-paper:before{content:""}.fa-toilet-paper-slash:before{content:""}.fa-toolbox:before{content:""}.fa-tooth:before{content:""}.fa-torii-gate:before{content:""}.fa-broadcast-tower:before,.fa-tower-broadcast:before{content:""}.fa-tractor:before{content:""}.fa-trademark:before{content:""}.fa-traffic-light:before{content:""}.fa-trailer:before{content:""}.fa-train:before{content:""}.fa-subway:before,.fa-train-subway:before{content:""}.fa-train-tram:before,.fa-tram:before{content:""}.fa-transgender-alt:before,.fa-transgender:before{content:""}.fa-trash:before{content:""}.fa-trash-arrow-up:before,.fa-trash-restore:before{content:""}.fa-trash-alt:before,.fa-trash-can:before{content:""}.fa-trash-can-arrow-up:before,.fa-trash-restore-alt:before{content:""}.fa-tree:before{content:""}.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before{content:""}.fa-trophy:before{content:""}.fa-truck:before{content:""}.fa-shipping-fast:before,.fa-truck-fast:before{content:""}.fa-ambulance:before,.fa-truck-medical:before{content:""}.fa-truck-monster:before{content:""}.fa-truck-moving:before{content:""}.fa-truck-pickup:before{content:""}.fa-truck-loading:before,.fa-truck-ramp-box:before{content:""}.fa-teletype:before,.fa-tty:before{content:""}.fa-try:before,.fa-turkish-lira-sign:before,.fa-turkish-lira:before{content:""}.fa-level-down-alt:before,.fa-turn-down:before{content:""}.fa-level-up-alt:before,.fa-turn-up:before{content:""}.fa-television:before,.fa-tv-alt:before,.fa-tv:before{content:""}.fa-u:before{content:"U"}.fa-umbrella:before{content:""}.fa-umbrella-beach:before{content:""}.fa-underline:before{content:""}.fa-universal-access:before{content:""}.fa-unlock:before{content:""}.fa-unlock-alt:before,.fa-unlock-keyhole:before{content:""}.fa-arrows-alt-v:before,.fa-up-down:before{content:""}.fa-arrows-alt:before,.fa-up-down-left-right:before{content:""}.fa-long-arrow-alt-up:before,.fa-up-long:before{content:""}.fa-expand-alt:before,.fa-up-right-and-down-left-from-center:before{content:""}.fa-external-link-alt:before,.fa-up-right-from-square:before{content:""}.fa-upload:before{content:""}.fa-user:before{content:""}.fa-user-astronaut:before{content:""}.fa-user-check:before{content:""}.fa-user-clock:before{content:""}.fa-user-doctor:before,.fa-user-md:before{content:""}.fa-user-cog:before,.fa-user-gear:before{content:""}.fa-user-graduate:before{content:""}.fa-user-friends:before,.fa-user-group:before{content:""}.fa-user-injured:before{content:""}.fa-user-alt:before,.fa-user-large:before{content:""}.fa-user-alt-slash:before,.fa-user-large-slash:before{content:""}.fa-user-lock:before{content:""}.fa-user-minus:before{content:""}.fa-user-ninja:before{content:""}.fa-user-nurse:before{content:""}.fa-user-edit:before,.fa-user-pen:before{content:""}.fa-user-plus:before{content:""}.fa-user-secret:before{content:""}.fa-user-shield:before{content:""}.fa-user-slash:before{content:""}.fa-user-tag:before{content:""}.fa-user-tie:before{content:""}.fa-user-times:before,.fa-user-xmark:before{content:""}.fa-users:before{content:""}.fa-users-cog:before,.fa-users-gear:before{content:""}.fa-users-slash:before{content:""}.fa-cutlery:before,.fa-utensils:before{content:""}.fa-v:before{content:"V"}.fa-shuttle-van:before,.fa-van-shuttle:before{content:""}.fa-vault:before{content:""}.fa-vector-square:before{content:""}.fa-venus:before{content:""}.fa-venus-double:before{content:""}.fa-venus-mars:before{content:""}.fa-vest:before{content:""}.fa-vest-patches:before{content:""}.fa-vial:before{content:""}.fa-vials:before{content:""}.fa-video-camera:before,.fa-video:before{content:""}.fa-video-slash:before{content:""}.fa-vihara:before{content:""}.fa-virus:before{content:""}.fa-virus-covid:before{content:""}.fa-virus-covid-slash:before{content:""}.fa-virus-slash:before{content:""}.fa-viruses:before{content:""}.fa-voicemail:before{content:""}.fa-volleyball-ball:before,.fa-volleyball:before{content:""}.fa-volume-high:before,.fa-volume-up:before{content:""}.fa-volume-down:before,.fa-volume-low:before{content:""}.fa-volume-off:before{content:""}.fa-volume-mute:before,.fa-volume-times:before,.fa-volume-xmark:before{content:""}.fa-vr-cardboard:before{content:""}.fa-w:before{content:"W"}.fa-wallet:before{content:""}.fa-magic:before,.fa-wand-magic:before{content:""}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:""}.fa-wand-sparkles:before{content:""}.fa-warehouse:before{content:""}.fa-water:before{content:""}.fa-ladder-water:before,.fa-swimming-pool:before,.fa-water-ladder:before{content:""}.fa-wave-square:before{content:""}.fa-weight-hanging:before{content:""}.fa-weight-scale:before,.fa-weight:before{content:""}.fa-wheelchair:before{content:""}.fa-glass-whiskey:before,.fa-whiskey-glass:before{content:""}.fa-wifi-3:before,.fa-wifi-strong:before,.fa-wifi:before{content:""}.fa-wind:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-wine-bottle:before{content:""}.fa-wine-glass:before{content:""}.fa-wine-glass-alt:before,.fa-wine-glass-empty:before{content:""}.fa-krw:before,.fa-won-sign:before,.fa-won:before{content:""}.fa-wrench:before{content:""}.fa-x:before{content:"X"}.fa-x-ray:before{content:""}.fa-close:before,.fa-multiply:before,.fa-remove:before,.fa-times:before,.fa-xmark:before{content:""}.fa-y:before{content:"Y"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen-sign:before,.fa-yen:before{content:""}.fa-yin-yang:before{content:""}.fa-z:before{content:"Z"}.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}/*! * Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2022 Fonticons, Inc. diff --git a/packages/modules/web_themes/colors/web/assets/index-nJ6fMUq4.js b/packages/modules/web_themes/colors/web/assets/index-nJ6fMUq4.js deleted file mode 100644 index ae9d43f15f..0000000000 --- a/packages/modules/web_themes/colors/web/assets/index-nJ6fMUq4.js +++ /dev/null @@ -1,6 +0,0 @@ -var Na=Object.defineProperty;var Ha=(a,e,t)=>e in a?Na(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var v=(a,e,t)=>Ha(a,typeof e!="symbol"?e+"":e,t);import{r as pe,m as Ra,c as g,a as Y,i as Ja,e as Te,u as Ft,t as at,b as kt,s as ge,d as B,o as i,f,g as n,n as te,h as x,j as l,p as la,k as qa,F as W,l as Q,q as $,v as w,w as Ya,x as H,y as de,z as _,A as R,B as b,C as xa,D as Je,E as mt,G as ot,H as st,I as ht,J as pt,K as it,L as Qa,M as He,N as Za,O as Oe,P as ft,Q as Xa,R as Ka,S as Sa,T as en,U as $a,V as tn,W as an,X as nn,Y as rn,Z as on,_ as sn,$ as ln,a0 as cn,a1 as un,a2 as dn}from"./vendor-DgMVsSab.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const p of r.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();var Me=(a=>(a.instant_charging="instant_charging",a.pv_charging="pv_charging",a.scheduled_charging="scheduled_charging",a.eco_charging="eco_charging",a.stop="stop",a))(Me||{}),K=(a=>(a.counter="counter",a.inverter="inverter",a.pvSummary="pvSummary",a.battery="battery",a.batterySummary="batterySummary",a.chargepoint="chargepoint",a.chargeSummary="chargeSummary",a.device="device",a.deviceSummary="deviceSummary",a.house="house",a))(K||{});class Ma{constructor(e){v(this,"id");v(this,"name","Wechselrichter");v(this,"type","inverter");v(this,"color","var(--color-pv)");v(this,"power",0);v(this,"energy",0);v(this,"energy_month",0);v(this,"energy_year",0);v(this,"energy_total",0);v(this,"energyPv",0);v(this,"energyBat",0);v(this,"pvPercentage",0);v(this,"icon","");v(this,"showInGraph",!0);this.id=e}}const hn=[["EV","ev_mode"],["Speicher","bat_mode"],["MinSoc","min_soc_bat_mode"]];class pn{constructor(e){v(this,"id");v(this,"name","Gerät");v(this,"type",K.device);v(this,"power",0);v(this,"status","off");v(this,"energy",0);v(this,"runningTime",0);v(this,"configured",!1);v(this,"_showInGraph",!0);v(this,"color","white");v(this,"canSwitch",!1);v(this,"countAsHouse",!1);v(this,"energyPv",0);v(this,"energyBat",0);v(this,"pvPercentage",0);v(this,"tempConfigured",0);v(this,"temp",[300,300,300]);v(this,"on",!1);v(this,"isAutomatic",!0);v(this,"icon","");this.id=e}get showInGraph(){return this._showInGraph}set showInGraph(e){this._showInGraph=e,T.items["sh"+this.id].showInGraph=e,ae()}setShowInGraph(e){this._showInGraph=e}}const ne=pe(new Map);function qt(a){ne.has(a)?console.info("Duplicate sh device message: "+a):(ne.set(a,new pn(a)),ne.get(a).color="var(--color-sh"+ne.size+")")}const gn=0,Pa={host:location.hostname,port:location.protocol=="https:"?443:80,endpoint:"/ws",protocol:location.protocol=="https:"?"wss":"ws",connectTimeout:4e3,reconnectPeriod:4e3,clean:!1,clientId:Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,6)},xt={topic:"",qos:gn};let Ve;const{host:mn,port:fn,endpoint:vn,...Ca}=Pa,ia=`${Ca.protocol}://${mn}:${fn}${vn}`;try{console.debug("connectURL",ia),Ve=Ra.connect(ia,Ca),Ve.on("connect",()=>{console.info("MQTT connection successful")}),Ve.on("disconnect",()=>{console.info("MQTT disconnected")}),Ve.on("error",a=>{console.error("MQTT connection failed: ",a)})}catch(a){console.error("MQTT connect error: ",a)}function bn(a){Ve?Ve.on("message",a):console.error("MqttRegister: MQTT client not available")}function et(a){xt.topic=a;const{topic:e,qos:t}=xt;Ve.subscribe(e,{qos:t},o=>{if(o){console.error("MQTT Subscription error: "+o);return}})}function lt(a){xt.topic=a;const{topic:e}=xt;Ve.unsubscribe(e,t=>{if(t){console.error("MQTT Unsubscribe from "+a+" failed: "+t);return}})}async function St(a,e){let o=Ve.connected,s=0;for(;!o&&s<20;)console.warn("MQTT publish: Not connected. Waiting 0.1 seconds"),await yn(100),o=Ve.connected,s+=1;if(s<20)try{Ve.publish(a,e,{qos:0},r=>{r&&console.warn("MQTT publish error: ",r),console.info("MQTT publish: Message sent: ["+a+"]("+e+")")})}catch(r){console.warn("MQTT publish: caught error: "+r)}else console.error("MQTT publish: Lost connection to MQTT server. Please reload the page")}function Yt(){return Pa.clientId}function yn(a){return new Promise(e=>setTimeout(e,a))}class _n{constructor(e){v(this,"id");v(this,"name","Ladepunkt");v(this,"icon","Ladepunkt");v(this,"type",K.chargepoint);v(this,"ev",0);v(this,"template",0);v(this,"connectedPhases",0);v(this,"phase_1",0);v(this,"autoPhaseSwitchHw",!1);v(this,"controlPilotInterruptionHw",!1);v(this,"isEnabled",!0);v(this,"isPluggedIn",!1);v(this,"isCharging",!1);v(this,"_isLocked",!1);v(this,"_connectedVehicle",0);v(this,"chargeTemplate",null);v(this,"evTemplate",0);v(this,"_chargeMode",Me.pv_charging);v(this,"_hasPriority",!1);v(this,"currentPlan","");v(this,"averageConsumption",0);v(this,"vehicleName","");v(this,"rangeCharged",0);v(this,"rangeUnit","");v(this,"counter",0);v(this,"dailyYield",0);v(this,"energyPv",0);v(this,"energyBat",0);v(this,"pvPercentage",0);v(this,"faultState",0);v(this,"faultStr","");v(this,"phasesInUse",0);v(this,"power",0);v(this,"chargedSincePlugged",0);v(this,"stateStr","");v(this,"current",0);v(this,"currents",[0,0,0]);v(this,"phasesToUse",0);v(this,"isSocConfigured",!0);v(this,"isSocManual",!1);v(this,"waitingForSoc",!1);v(this,"color","white");v(this,"energy",0);v(this,"showInGraph",!0);v(this,"_timedCharging",!1);v(this,"_instantChargeLimitMode","");v(this,"_instantTargetCurrent",0);v(this,"_instantTargetSoc",0);v(this,"_instantMaxEnergy",0);v(this,"_instantTargetPhases",0);v(this,"_pvFeedInLimit",!1);v(this,"_pvMinCurrent",0);v(this,"_pvMaxSoc",0);v(this,"_pvMinSoc",0);v(this,"_pvMinSocCurrent",0);v(this,"_pvMinSocPhases",1);v(this,"_pvChargeLimitMode","");v(this,"_pvTargetSoc",0);v(this,"_pvMaxEnergy",0);v(this,"_pvTargetPhases",0);v(this,"_ecoMinCurrent",0);v(this,"_ecoTargetPhases",0);v(this,"_ecoChargeLimitMode","");v(this,"_ecoTargetSoc",0);v(this,"_ecoMaxEnergy",0);v(this,"_etActive",!1);v(this,"_etMaxPrice",20);this.id=e}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked=e,_e("cpLock",e,this.id)}updateIsLocked(e){this._isLocked=e}get connectedVehicle(){return this._connectedVehicle}set connectedVehicle(e){this._connectedVehicle=e,_e("cpVehicle",e,this.id)}updateConnectedVehicle(e){this._connectedVehicle=e}get soc(){return Z[this.connectedVehicle]?Z[this.connectedVehicle].soc:0}set soc(e){Z[this.connectedVehicle]&&(Z[this.connectedVehicle].soc=e)}get chargeMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.selected)??Me.stop}set chargeMode(e){console.log("set mode"),this.chargeTemplate&&(console.log("active"),this.chargeTemplate.chargemode.selected=e,le(this.id))}get hasPriority(){var e;return((e=this.chargeTemplate)==null?void 0:e.prio)??!1}set hasPriority(e){this.chargeTemplate&&(this.chargeTemplate.prio=e,_e("cpPriority",e,this.id))}get timedCharging(){return this.chargeTemplate?this.chargeTemplate.time_charging.active:!1}set timedCharging(e){this.chargeTemplate.time_charging.active=e,_e("cpTimedCharging",e,this.id)}get instantTargetCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.current)??0}set instantTargetCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.current=e,le(this.id))}get instantChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.selected)??"none"}set instantChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.selected=e,le(this.id))}get instantTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.soc)??0}set instantTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.soc=e,le(this.id))}get instantMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.limit.amount)??0}set instantMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.limit.amount=e,le(this.id))}get instantTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.instant_charging.phases_to_use)??0}set instantTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.instant_charging.phases_to_use=e,le(this.id))}get pvFeedInLimit(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.feed_in_limit)??!1}set pvFeedInLimit(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.feed_in_limit=e,le(this.id))}get pvMinCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_current)??0}set pvMinCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_current=e,le(this.id))}get pvMaxSoc(){return this._pvMaxSoc}set pvMaxSoc(e){this._pvMaxSoc=e,_e("cpPvMaxSoc",e,this.id)}updatePvMaxSoc(e){this._pvMaxSoc=e}get pvMinSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_soc)??0}set pvMinSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_soc=e,le(this.id))}get pvMinSocCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.min_soc_current)??0}set pvMinSocCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.min_soc_current=e,le(this.id))}set pvMinSocPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.phases_to_use_min_soc=e,le(this.id))}get pvMinSocPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.phases_to_use_min_soc)??0}get pvChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.selected)??"none"}set pvChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.selected=e,le(this.id))}get pvTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.soc)??0}set pvTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.soc=e,le(this.id))}get pvMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.limit.amount)??0}set pvMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.limit.amount=e,le(this.id))}get pvTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.pv_charging.phases_to_use)??0}set pvTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.pv_charging.phases_to_use=e,le(this.id))}get ecoMinCurrent(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.current)??0}set ecoMinCurrent(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.current=e,le(this.id))}get ecoTargetPhases(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.phases_to_use)??0}set ecoTargetPhases(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.phases_to_use=e,le(this.id))}get ecoChargeLimitMode(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.selected)??"none"}set ecoChargeLimitMode(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.selected=e,le(this.id))}get ecoTargetSoc(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.soc)??0}set ecoTargetSoc(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.soc=e,le(this.id))}get ecoMaxEnergy(){var e;return((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.limit.amount)??0}set ecoMaxEnergy(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.limit.amount=e,le(this.id))}get etMaxPrice(){var e;return(((e=this.chargeTemplate)==null?void 0:e.chargemode.eco_charging.max_price)??0)*1e5}set etMaxPrice(e){this.chargeTemplate&&(this.chargeTemplate.chargemode.eco_charging.max_price=Math.ceil(e*1e3)/1e8,le(this.id))}get etActive(){return this.chargeTemplate&&this.chargeTemplate.chargemode.selected==Me.eco_charging}get realCurrent(){switch(this.phasesInUse){case 0:return 0;case 1:return this.currents[0];case 2:return(this.currents[0]+this.currents[1])/2;case 3:return(this.currents[0]+this.currents[1]+this.currents[2])/3;default:return 0}}toPowerItem(){return{name:this.name,type:K.chargepoint,power:this.power,energy:this.dailyYield,energyPv:this.energyPv,energyBat:this.energyBat,pvPercentage:this.pvPercentage,color:this.color,icon:this.icon,showInGraph:!0}}}class wn{constructor(e){v(this,"id");v(this,"name","__invalid");v(this,"tags",[]);v(this,"config",{});v(this,"soc",0);v(this,"range",0);v(this,"_chargeTemplateId",0);v(this,"isSocConfigured",!1);v(this,"isSocManual",!1);v(this,"_evTemplateId",0);this.id=e}get chargeTemplateId(){return this._chargeTemplateId}set chargeTemplateId(e){this._chargeTemplateId=e,_e("vhChargeTemplateId",e,this.id)}updateChargeTemplateId(e){this._chargeTemplateId=e}get evTemplateId(){return this._evTemplateId}set evTemplateId(e){this._evTemplateId=e,_e("vhEvTemplateId",e,this.id)}updateEvTemplateId(e){this._evTemplateId=e}get chargepoint(){for(const e of Object.values(O))if(e.connectedVehicle==this.id)return e}get visible(){return this.name!="__invalid"&&(this.id!=0||m.showStandardVehicle)}}const O=pe({}),Z=pe({}),Nt=pe({}),kn=pe({});function xn(a){if(!(a in O)){O[a]=new _n(a);const e="var(--color-cp"+(Object.values(O).length-1)+")";O[a].color=e;const t="cp"+a;ie[t]?ie["cp"+a].color=e:ie[t]={name:"Ladepunkt",color:e,icon:"Ladepunkt"}}}function Sn(){Object.keys(O).forEach(a=>{delete O[parseInt(a)]})}const fe=g(()=>{const a=[],e=Object.values(O),t=Object.values(Z).filter(r=>r.visible);let o=-1;switch(e.length){case 0:o=t[0]?t[0].id:-1;break;default:o=e[0].connectedVehicle}let s=-1;switch(e.length){case 0:case 1:s=t[0]?t[0].id:-1;break;default:s=e[1].connectedVehicle}return o==s&&(s=t[1]?t[1].id:-1),o!=-1&&a.push(o),s!=-1&&a.push(s),a}),Qt=[{name:"keine",id:"none"},{name:"Ladestand",id:"soc"},{name:"Energie",id:"amount"}],Ia={cpLock:"openWB/set/chargepoint/%/set/manual_lock",chargeMode:"openWB/set/vehicle/template/charge_template/%/chargemode/selected",cpPriority:"openWB/set/vehicle/template/charge_template/%/prio",cpTimedCharging:"openWB/set/vehicle/template/charge_template/%/time_charging/active",pvBatteryPriority:"openWB/set/general/chargemode_config/pv_charging/bat_mode",cpVehicle:"openWB/set/chargepoint/%/config/ev",cpInstantChargeLimitMode:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/selected",cpInstantTargetCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/current",cpInstantTargetSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/soc",cpInstantMaxEnergy:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/amount",cpPvFeedInLimit:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/feed_in_limit",cpPvMinCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_current",cpPvMaxSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/max_soc",cpPvMinSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc",cpPvMinSocCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc_current",cpEtMaxPrice:"openWB/set/vehicle/template/charge_template/%/et/max_price",vhChargeTemplateId:"openWB/set/vehicle/%/charge_template",vhEvTemplateId:"openWB/set/vehicle/%/ev_template",shSetManual:"openWB/set/LegacySmartHome/config/set/Devices/%/mode",shSwitchOn:"openWB/set/LegacySmartHome/config/set/Devices/%/device_manual_control",socUpdate:"openWB/set/vehicle/%/get/force_soc_update",setSoc:"openWB/set/vehicle/%/soc_module/calculated_soc_state/manual_soc",priceCharging:"openWB/set/vehicle/template/charge_template/%/et/active",chargeTemplate:"openWB/set/chargepoint/%/set/charge_template"};function _e(a,e,t=0){if(isNaN(t)){console.warn("Invalid index");return}let o=Ia[a];if(!o){console.warn("No topic for update type "+a);return}switch(a){default:o=o.replace("%",String(t))}switch(typeof e){case"number":St(o,JSON.stringify(+e));break;default:St(o,JSON.stringify(e))}}function Zt(a){St("openWB/set/command/"+Yt()+"/todo",JSON.stringify(a))}function le(a){St(Ia.chargeTemplate.replace("%",String(a)),JSON.stringify(O[a].chargeTemplate))}const ke=500,Ce=500,N={top:15,right:20,bottom:10,left:25},Xt=["charging","house","batIn","devices"];class $n{constructor(){v(this,"data",[]);v(this,"_graphMode","");v(this,"waitForData",!0)}get graphMode(){return this._graphMode}set graphMode(e){this._graphMode=e}}const y=pe(new $n),Ba=Y(Ja),Ze=g(()=>[0,ke-N.left-2*N.right].map(a=>Ba.value.applyX(a)));let gt=!0,ct=!0;function ca(){gt=!1}function ua(){gt=!0}function da(){ct=!1}function ha(){ct=!0}function Mn(a){ct=a}function vt(a){y.data=a,y.waitForData=!1}const me=pe({refreshTopicPrefix:"openWB/graph/alllivevaluesJson",updateTopic:"openWB/graph/lastlivevaluesJson",configTopic:"openWB/graph/config/#",initialized:!1,initCounter:0,graphRefreshCounter:0,rawDataPacks:[],duration:0,activate(a){this.unsubscribeUpdates(),this.subscribeRefresh(),a&&(y.data=[]),y.waitForData=!0,et(this.configTopic),this.initialized=!1,this.initCounter=0,this.graphRefreshCounter=0,this.rawDataPacks=[],Vn(),ut.value=!0},deactivate(){this.unsubscribeRefresh(),this.unsubscribeUpdates(),lt(this.configTopic)},subscribeRefresh(){for(let a=1;a<17;a++)et(this.refreshTopicPrefix+a)},unsubscribeRefresh(){for(let a=1;a<17;a++)lt(this.refreshTopicPrefix+a)},subscribeUpdates(){et(this.updateTopic)},unsubscribeUpdates(){lt(this.updateTopic)}}),ue=pe({topic:"openWB/log/daily/#",date:new Date,activate(a){if(y.graphMode=="day"||y.graphMode=="today"){y.graphMode=="today"&&(this.date=new Date);const e=this.date.getFullYear().toString()+(this.date.getMonth()+1).toString().padStart(2,"0")+this.date.getDate().toString().padStart(2,"0");this.topic="openWB/log/daily/"+e,et(this.topic),a&&(y.data=[]),y.waitForData=!0,Zt({command:"getDailyLog",data:{date:e}})}},deactivate(){lt(this.topic)},back(){this.date=new Date(this.date.setTime(this.date.getTime()-864e5))},forward(){this.date=new Date(this.date.setTime(this.date.getTime()+864e5))},setDate(a){this.date=a},getDate(){return this.date}}),ze=pe({topic:"openWB/log/monthly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(a){const e=this.year.toString()+this.month.toString().padStart(2,"0");y.data=[],et(this.topic),a&&(y.data=[]),y.waitForData=!0,Zt({command:"getMonthlyLog",data:{date:e}})},deactivate(){lt(this.topic)},back(){this.month-=1,this.month<1&&(this.month=12,this.year-=1),this.activate()},forward(){const a=new Date;a.getFullYear()==this.year?this.month-112&&(this.month=1,this.year+=1)),this.activate()},getDate(){return new Date(this.year,this.month)}}),Ye=pe({topic:"openWB/log/yearly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(a){const e=this.year.toString();et(this.topic),a&&(y.data=[]),y.waitForData=!0,Zt({command:"getYearlyLog",data:{date:e}})},deactivate(){lt(this.topic)},back(){this.year-=1,this.activate()},forward(){this.year0&&(T.items[a].energyPv+=1e3/12*(e[a]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),T.items[a].energyBat+=1e3/12*(e[a]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}function In(a,e){e[a]>0&&(T.items[a].energyPv+=1e3*(e[a]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),T.items[a].energyBat+=1e3*(e[a]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}const Bn=["evuIn","pv","batOut","evuOut"],Xe=Y(!1);function Kt(a,e){Object.entries(a).length>0?(Xe.value=!1,Object.entries(a.counter).forEach(([t,o])=>{(e.length==0||e.includes(t))&&(T.items.evuIn.energy+=o.energy_imported,T.items.evuOut.energy+=o.energy_exported)}),T.items.pv.energy=a.pv.all.energy_exported,a.bat.all&&(T.items.batIn.energy=a.bat.all.energy_imported,T.items.batOut.energy=a.bat.all.energy_exported),Object.entries(a.cp).forEach(([t,o])=>{t=="all"?(T.setEnergy("charging",o.energy_imported),o.energy_imported_pv!=null&&(T.setEnergyPv("charging",o.energy_imported_pv),T.setEnergyBat("charging",o.energy_imported_bat))):T.setEnergy(t,o.energy_imported)}),T.setEnergy("devices",0),Object.entries(a.sh).forEach(([t,o])=>{T.setEnergy(t,o.energy_imported);const s=t.substring(2);ne.get(+s).countAsHouse||(T.items.devices.energy+=o.energy_imported)}),a.hc&&a.hc.all?(T.setEnergy("house",a.hc.all.energy_imported),a.hc.all.energy_imported_pv!=null&&(T.setEnergyPv("house",a.hc.all.energy_imported_pv),T.setEnergyBat("house",a.hc.all.energy_imported_bat))):T.calculateHouseEnergy(),T.keys().forEach(t=>{Bn.includes(t)||(T.setPvPercentage(t,Math.round((T.items[t].energyPv+T.items[t].energyBat)/T.items[t].energy*100)),Xt.includes(t)&&(F[t].energy=T.items[t].energy,F[t].energyPv=T.items[t].energyPv,F[t].energyBat=T.items[t].energyBat,F[t].pvPercentage=T.items[t].pvPercentage))}),y.graphMode=="today"&&(Object.values(O).forEach(t=>{const o=T.items["cp"+t.id];o&&(t.energyPv=o.energyPv,t.energyBat=o.energyBat,t.pvPercentage=o.pvPercentage)}),ne.forEach(t=>{const o=T.items["sh"+t.id];o&&(t.energy=o.energy,t.energyPv=o.energyPv,t.energyBat=o.energyBat,t.pvPercentage=o.pvPercentage)}))):Xe.value=!0,ut.value=!0}const Le=g(()=>{const a=Te(y.data,e=>new Date(e.date));return a[0]&&a[1]?Ft().domain(a).range([0,ke-N.left-2*N.right]):at().range([0,0])});function Vn(){T.keys().forEach(a=>{Xt.includes(a)&&(F[a].energy=T.items[a].energy,F[a].energyPv=0,F[a].energyBat=0,F[a].pvPercentage=0)}),Object.values(O).forEach(a=>{a.energyPv=0,a.energyBat=0,a.pvPercentage=0}),ne.forEach(a=>{a.energyPv=0,a.energyBat=0,a.pvPercentage=0})}const Qe=g(()=>{const a=Te(y.data,e=>e.date);return a[1]?kt().domain(Array.from({length:a[1]},(e,t)=>t+1)).paddingInner(.4).range([0,ke-N.left-2]):kt().range([0,0])});function Ct(){switch(y.graphMode){case"live":y.graphMode="today",m.showRightButton=!0,ve();break;case"today":y.graphMode="day",ue.deactivate(),ue.back(),ue.activate(),ve();break;case"day":ue.back(),ve();break;case"month":ze.back();break;case"year":Ye.back();break}}function ea(){const a=new Date;switch(y.graphMode){case"live":break;case"today":y.graphMode="live",m.showRightButton=!1,ve();break;case"day":ue.forward(),ue.date.getDate()==a.getDate()&&ue.date.getMonth()==a.getMonth()&&ue.date.getFullYear()==a.getFullYear()&&(y.graphMode="today"),ve();break;case"month":ze.forward();break;case"year":Ye.forward();break}}function ta(){switch(y.graphMode){case"live":Ct();break;case"day":case"today":y.graphMode="month",ve();break;case"month":y.graphMode="year",ve();break}}function aa(){switch(y.graphMode){case"year":y.graphMode="month",ve();break;case"month":y.graphMode="today",ve();break;case"today":case"day":y.graphMode="live",ve();break}}function pa(a){if(y.graphMode=="day"||y.graphMode=="today"){ue.setDate(a);const e=new Date;ue.date.getDate()==e.getDate()&&ue.date.getMonth()==e.getMonth()&&ue.date.getFullYear()==e.getFullYear()?y.graphMode="today":y.graphMode="day",ve()}}const Ne=Y(new Map);class Ln{constructor(){v(this,"_showRelativeArcs",!1);v(this,"showTodayGraph",!0);v(this,"_graphPreference","today");v(this,"_usageStackOrder",0);v(this,"_displayMode","dark");v(this,"_showGrid",!1);v(this,"_smartHomeColors","normal");v(this,"_decimalPlaces",1);v(this,"_showQuickAccess",!0);v(this,"_simpleCpList",!1);v(this,"_shortCpList","no");v(this,"_showAnimations",!0);v(this,"_preferWideBoxes",!1);v(this,"_maxPower",4e3);v(this,"_fluidDisplay",!1);v(this,"_showClock","no");v(this,"_showButtonBar",!0);v(this,"_showCounters",!1);v(this,"_showVehicles",!1);v(this,"_showStandardVehicle",!0);v(this,"_showPrices",!1);v(this,"_showInverters",!1);v(this,"_alternativeEnergy",!1);v(this,"_sslPrefs",!1);v(this,"_debug",!1);v(this,"_lowerPriceBound",0);v(this,"_upperPriceBound",0);v(this,"_showPmLabels",!0);v(this,"isEtEnabled",!1);v(this,"etPrice",20.5);v(this,"showRightButton",!0);v(this,"showLeftButton",!0);v(this,"animationDuration",300);v(this,"animationDelay",100);v(this,"zoomGraph",!1);v(this,"zoomedWidget",1)}get showRelativeArcs(){return this._showRelativeArcs}set showRelativeArcs(e){this._showRelativeArcs=e,ae()}setShowRelativeArcs(e){this._showRelativeArcs=e}get graphPreference(){return this._graphPreference}set graphPreference(e){this._graphPreference=e,ae()}setGraphPreference(e){this._graphPreference=e}get usageStackOrder(){return this._usageStackOrder}set usageStackOrder(e){this._usageStackOrder=e,ae()}setUsageStackOrder(e){this._usageStackOrder=e}get displayMode(){return this._displayMode}set displayMode(e){this._displayMode=e,En(e)}setDisplayMode(e){this._displayMode=e}get showGrid(){return this._showGrid}set showGrid(e){this._showGrid=e,ae()}setShowGrid(e){this._showGrid=e}get decimalPlaces(){return this._decimalPlaces}set decimalPlaces(e){this._decimalPlaces=e,ae()}setDecimalPlaces(e){this._decimalPlaces=e}get smartHomeColors(){return this._smartHomeColors}set smartHomeColors(e){this._smartHomeColors=e,ga(e),ae()}setSmartHomeColors(e){this._smartHomeColors=e,ga(e)}get showQuickAccess(){return this._showQuickAccess}set showQuickAccess(e){this._showQuickAccess=e,ae()}setShowQuickAccess(e){this._showQuickAccess=e}get simpleCpList(){return this._simpleCpList}set simpleCpList(e){this._simpleCpList=e,ae()}setSimpleCpList(e){this._simpleCpList=e}get shortCpList(){return this._shortCpList}set shortCpList(e){this._shortCpList=e,ae()}setShortCpList(e){this._shortCpList=e}get showAnimations(){return this._showAnimations}set showAnimations(e){this._showAnimations=e,ae()}setShowAnimations(e){this._showAnimations=e}get preferWideBoxes(){return this._preferWideBoxes}set preferWideBoxes(e){this._preferWideBoxes=e,ae()}setPreferWideBoxes(e){this._preferWideBoxes=e}get maxPower(){return this._maxPower}set maxPower(e){this._maxPower=e,ae()}setMaxPower(e){this._maxPower=e}get fluidDisplay(){return this._fluidDisplay}set fluidDisplay(e){this._fluidDisplay=e,ae()}setFluidDisplay(e){this._fluidDisplay=e}get showClock(){return this._showClock}set showClock(e){this._showClock=e,ae()}setShowClock(e){this._showClock=e}get sslPrefs(){return this._sslPrefs}set sslPrefs(e){this._sslPrefs=e,ae()}setSslPrefs(e){this.sslPrefs=e}get debug(){return this._debug}set debug(e){this._debug=e,ae()}setDebug(e){this._debug=e}get showButtonBar(){return this._showButtonBar}set showButtonBar(e){this._showButtonBar=e,ae()}setShowButtonBar(e){this._showButtonBar=e}get showCounters(){return this._showCounters}set showCounters(e){this._showCounters=e,ae()}setShowCounters(e){this._showCounters=e}get showVehicles(){return this._showVehicles}set showVehicles(e){this._showVehicles=e,ae()}setShowVehicles(e){this._showVehicles=e}get showStandardVehicle(){return this._showStandardVehicle}set showStandardVehicle(e){this._showStandardVehicle=e,ae()}setShowStandardVehicle(e){this._showStandardVehicle=e}get showPrices(){return this._showPrices}set showPrices(e){this._showPrices=e,ae()}setShowPrices(e){this._showPrices=e}get showInverters(){return this._showInverters}set showInverters(e){this._showInverters=e,ua(),ha(),ae()}setShowInverters(e){this._showInverters=e}get alternativeEnergy(){return this._alternativeEnergy}set alternativeEnergy(e){this._alternativeEnergy=e,ua(),ha(),ae()}setAlternativeEnergy(e){this._alternativeEnergy=e}get lowerPriceBound(){return this._lowerPriceBound}set lowerPriceBound(e){this._lowerPriceBound=e,ae()}setLowerPriceBound(e){this._lowerPriceBound=e}get upperPriceBound(){return this._upperPriceBound}set upperPriceBound(e){this._upperPriceBound=e,ae()}setUpperPriceBound(e){this._upperPriceBound=e}get showPmLabels(){return this._showPmLabels}set showPmLabels(e){this._showPmLabels=e,ae()}setShowPmLabels(e){this._showPmLabels=e}}const m=pe(new Ln);function Va(){Wn();const a=ge("html");a.classed("theme-dark",m.displayMode=="dark"),a.classed("theme-light",m.displayMode=="light"),a.classed("theme-blue",m.displayMode=="blue"),a.classed("shcolors-standard",m.smartHomeColors=="standard"),a.classed("shcolors-advanced",m.smartHomeColors=="advanced"),a.classed("shcolors-normal",m.smartHomeColors=="normal")}const Tn=992,$t=pe({x:document.documentElement.clientWidth,y:document.documentElement.clientHeight});function On(){$t.x=document.documentElement.clientWidth,$t.y=document.documentElement.clientHeight,Va()}const We=g(()=>$t.x>=Tn),ye={instant_charging:{mode:Me.instant_charging,name:"Sofort",color:"var(--color-charging)",icon:"fa-bolt"},pv_charging:{mode:Me.pv_charging,name:"PV",color:"var(--color-pv)",icon:"fa-solar-panel"},scheduled_charging:{mode:Me.scheduled_charging,name:"Zielladen",color:"var(--color-battery)",icon:"fa-bullseye"},eco_charging:{mode:Me.eco_charging,name:"Eco",color:"var(--color-devices)",icon:"fa-coins"},stop:{mode:Me.stop,name:"Stop",color:"var(--color-fg)",icon:"fa-power-off"}};class An{constructor(){v(this,"batterySoc",0);v(this,"isBatteryConfigured",!0);v(this,"chargeMode","0");v(this,"_pvBatteryPriority","ev_mode");v(this,"displayLiveGraph",!0);v(this,"isEtEnabled",!0);v(this,"etMaxPrice",0);v(this,"etCurrentPrice",0);v(this,"cpDailyExported",0);v(this,"evuId",0);v(this,"etProvider","")}get pvBatteryPriority(){return this._pvBatteryPriority}set pvBatteryPriority(e){this._pvBatteryPriority=e,_e("pvBatteryPriority",e)}updatePvBatteryPriority(e){this._pvBatteryPriority=e}}function ae(){Dn()}function En(a){const e=ge("html");e.classed("theme-dark",a=="dark"),e.classed("theme-light",a=="light"),e.classed("theme-blue",a=="blue"),ae()}function zn(){m.maxPower=J.evuIn.power+J.pv.power+J.batOut.power,ae()}function ga(a){const e=ge("html");e.classed("shcolors-normal",a=="normal"),e.classed("shcolors-standard",a=="standard"),e.classed("shcolors-advanced",a=="advanced")}const qe={chargemode:"Der Lademodus für das Fahrzeug an diesem Ladepunkt",vehicle:"Das Fahrzeug, das an diesem Ladepounkt geladen wird",locked:"Für das Laden sperren",priority:"Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar",timeplan:"Das Laden nach Zeitplan für dieses Fahrzeug aktivieren",minsoc:"Immer mindestens bis zum eingestellten Ladestand laden. Wenn notwendig mit Netzstrom.",minpv:"Durchgehend mit mindestens dem eingestellten Strom laden. Wenn notwendig mit Netzstrom.",pricebased:"Laden bei dynamischem Stromtarif, wenn eingestellter Maximalpreis unterboten wird.",pvpriority:"Ladepriorität bei PV-Produktion. Bevorzung von Fahzeugen, Speicher, oder Fahrzeugen bis zum eingestellten Mindest-Ladestand. Die Einstellung ist für alle Ladepunkte gleich."};function Dn(){const a={};a.hideSH=[...ne.values()].filter(e=>!e.showInGraph).map(e=>e.id),a.showLG=m.graphPreference=="live",a.displayM=m.displayMode,a.stackO=m.usageStackOrder,a.showGr=m.showGrid,a.decimalP=m.decimalPlaces,a.smartHomeC=m.smartHomeColors,a.relPM=m.showRelativeArcs,a.maxPow=m.maxPower,a.showQA=m.showQuickAccess,a.simpleCP=m.simpleCpList,a.shortCP=m.shortCpList,a.animation=m.showAnimations,a.wideB=m.preferWideBoxes,a.fluidD=m.fluidDisplay,a.clock=m.showClock,a.showButtonBar=m.showButtonBar,a.showCounters=m.showCounters,a.showVehicles=m.showVehicles,a.showStandardV=m.showStandardVehicle,a.showPrices=m.showPrices,a.showInv=m.showInverters,a.altEngy=m.alternativeEnergy,a.lowerP=m.lowerPriceBound,a.upperP=m.upperPriceBound,a.sslPrefs=m.sslPrefs,a.pmLabels=m.showPmLabels,a.debug=m.debug,document.cookie="openWBColorTheme="+JSON.stringify(a)+";max-age=16000000;"+(m.sslPrefs?"SameSite=None;Secure":"SameSite=Strict")}function Wn(){const e=document.cookie.split(";").filter(t=>t.split("=")[0]==="openWBColorTheme");if(e.length>0){const t=JSON.parse(e[0].split("=")[1]);t.decimalP!==void 0&&m.setDecimalPlaces(+t.decimalP),t.smartHomeC!==void 0&&m.setSmartHomeColors(t.smartHomeC),t.hideSH!==void 0&&t.hideSH.forEach(o=>{ne.get(o)==null&&qt(o),ne.get(o).setShowInGraph(!1)}),t.showLG!==void 0&&m.setGraphPreference(t.showLG?"live":"today"),t.maxPow!==void 0&&m.setMaxPower(+t.maxPow),t.relPM!==void 0&&m.setShowRelativeArcs(t.relPM),t.displayM!==void 0&&m.setDisplayMode(t.displayM),t.stackO!==void 0&&m.setUsageStackOrder(t.stackO),t.showGr!==void 0&&m.setShowGrid(t.showGr),t.showQA!==void 0&&m.setShowQuickAccess(t.showQA),t.simpleCP!==void 0&&m.setSimpleCpList(t.simpleCP),t.shortCP!==void 0&&m.setShortCpList(t.shortCP),t.animation!=null&&m.setShowAnimations(t.animation),t.wideB!=null&&m.setPreferWideBoxes(t.wideB),t.fluidD!=null&&m.setFluidDisplay(t.fluidD),t.clock!=null&&m.setShowClock(t.clock),t.showButtonBar!==void 0&&m.setShowButtonBar(t.showButtonBar),t.showCounters!==void 0&&m.setShowCounters(t.showCounters),t.showVehicles!==void 0&&m.setShowVehicles(t.showVehicles),t.showStandardV!==void 0&&m.setShowStandardVehicle(t.showStandardV),t.showPrices!==void 0&&m.setShowPrices(t.showPrices),t.showInv!==void 0&&m.setShowInverters(t.showInv),t.altEngy!==void 0&&m.setAlternativeEnergy(t.altEngy),t.lowerP!==void 0&&m.setLowerPriceBound(t.lowerP),t.upperP!==void 0&&m.setUpperPriceBound(t.upperP),t.sslPrefs!==void 0&&m.setSslPrefs(t.sslPrefs),t.pmLabels!==void 0&&m.setShowPmLabels(t.pmLabels),t.debug!==void 0&&m.setDebug(t.debug)}}const ie=pe({evuIn:{name:"Netz",color:"var(--color-evu)",icon:""},pv:{name:"PV",color:"var(--color-pv",icon:""},batOut:{name:"Bat >",color:"var(--color-battery)",icon:""},evuOut:{name:"Export",color:"var(--color-export)",icon:""},charging:{name:"Laden",color:"var(--color-charging)",icon:""},devices:{name:"Geräte",color:"var(--color-devices)",icon:""},batIn:{name:"> Bat",color:"var(--color-battery)",icon:""},house:{name:"Haus",color:"var(--color-house)",icon:""},cp1:{name:"Ladepunkt",color:"var(--color-cp1)",icon:"Ladepunkt"},cp2:{name:"Ladepunkt",color:"var(--color-cp2)",icon:"Ladepunkt"},cp3:{name:"Ladepunkt",color:"var(--color-cp3)",icon:"Ladepunkt"},cp4:{name:"Ladepunkt",color:"var(--color-cp4)",icon:"Ladepunkt"},cp5:{name:"Ladepunkt",color:"var(--color-cp5)",icon:"Ladepunkt"},cp6:{name:"Ladepunkt",color:"var(--color-cp6)",icon:"Ladepunkt"},cp7:{name:"Ladepunkt",color:"var(--color-cp7)",icon:"Ladepunkt"},cp8:{name:"Ladepunkt",color:"var(--color-cp8)",icon:"Ladepunkt"},sh1:{name:"Gerät",color:"var(--color-sh1)",icon:"Gerät"},sh2:{name:"Gerät",color:"var(--color-sh2)",icon:"Gerät"},sh3:{name:"Gerät",color:"var(--color-sh3)",icon:"Gerät"},sh4:{name:"Gerät",color:"var(--color-sh4)",icon:"Gerät"},sh5:{name:"Gerät",color:"var(--color-sh5)",icon:"Gerät"},sh6:{name:"Gerät",color:"var(--color-sh6)",icon:"Gerät"},sh7:{name:"Gerät",color:"var(--color-sh7)",icon:"Gerät"},sh8:{name:"Gerät",color:"var(--color-sh8)",icon:"Gerät"},sh9:{name:"Gerät",color:"var(--color-sh9)",icon:"Gerät"},pv1:{name:"PV",color:"var(--color-pv1)",icon:"Wechselrichter"},pv2:{name:"PV",color:"var(--color-pv2)",icon:"Wechselrichter"},pv3:{name:"PV",color:"var(--color-pv3)",icon:"Wechselrichter"},pv4:{name:"PV",color:"var(--color-pv4)",icon:"Wechselrichter"},pv5:{name:"PV",color:"var(--color-pv5)",icon:"Wechselrichter"},pv6:{name:"PV",color:"var(--color-pv6)",icon:"Wechselrichter"},pv7:{name:"PV",color:"var(--color-pv7)",icon:"Wechselrichter"},pv8:{name:"PV",color:"var(--color-pv8)",icon:"Wechselrichter"},pv9:{name:"PV",color:"var(--color-pv9)",icon:"Wechselrichter"},bat1:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat2:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat3:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat4:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat5:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat6:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat7:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat8:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"},bat9:{name:"Speicher",color:"var(--color-battery)",icon:"Speicher"}});class La{constructor(){v(this,"_items",{});this.addItem("evuIn"),this.addItem("pv"),this.addItem("batOut"),this.addItem("evuOut"),this.addItem("charging"),this.addItem("devices"),this.addItem("batIn"),this.addItem("house")}get items(){return this._items}keys(){return Object.keys(this._items)}values(){return Object.values(this._items)}addItem(e,t,o){let s;if(t)s=t;else switch(e){case"evuIn":s=K.counter;break;case"pv":s=K.inverter;break;case"batOut":s=K.battery;break;case"evuOut":s=K.counter;break;case"charging":s=K.chargepoint;break;case"devices":s=K.device;break;case"batIn":s=K.battery;break;case"house":s=K.house;break;default:s=K.counter}this._items[e]=o?De(e,s,o):De(e,s)}setEnergy(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energy=t}setEnergyPv(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energyPv=t}setEnergyBat(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].energyBat=t}setPvPercentage(e,t){this.keys().includes(e)||this.addItem(e),this._items[e].pvPercentage=t<=100?t:100}calculateHouseEnergy(){this._items.house.energy=this._items.evuIn.energy+this._items.pv.energy+this._items.batOut.energy-this._items.evuOut.energy-this._items.batIn.energy-this._items.charging.energy-this._items.devices.energy}}let T=pe(new La);function na(){T=new La}const J=pe({evuIn:De("evuIn",K.counter),pv:De("pv",K.pvSummary),batOut:De("batOut",K.batterySummary)}),F=pe({evuOut:De("evuOut",K.counter),charging:De("charging",K.chargeSummary),devices:De("devices",K.deviceSummary),batIn:De("batIn",K.batterySummary),house:De("house",K.house)}),he=pe(new An);Y("");const ut=Y(!1);function De(a,e,t){return{name:ie[a]?ie[a].name:"item",type:e,power:0,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:t||(ie[a]?ie[a].color:"var(--color-charging)"),icon:ie[a]?ie[a].icon:"",showInGraph:!0}}const Ht=Y(new Date),be=Y(new Map),Gn=a=>{be.value.set(a,new Ma(a)),jn()};function jn(){[...be.value.values()].sort((e,t)=>e.id-t.id).forEach((e,t)=>{e.color=ie["pv"+(t+1)].color})}class Un{constructor(e){v(this,"id");v(this,"name","Speicher");v(this,"type",K.battery);v(this,"color","var(--color-battery)");v(this,"dailyYieldExport",0);v(this,"dailyYieldImport",0);v(this,"monthlyYieldExport",0);v(this,"monthlyYieldImport",0);v(this,"yearlyYieldExport",0);v(this,"yearlyYieldImport",0);v(this,"exported",0);v(this,"faultState",0);v(this,"faultStr","");v(this,"imported",0);v(this,"power",0);v(this,"soc",0);v(this,"energy",0);v(this,"energyPv",0);v(this,"energyBat",0);v(this,"pvPercentage",0);v(this,"showInGraph",!0);v(this,"icon","Speicher");this.id=e}}class Fn{constructor(){v(this,"dailyExport",0);v(this,"dailyImport",0);v(this,"exported",0);v(this,"imported",0);v(this,"power",0);v(this,"soc",0)}}pe(new Fn);const se=Y(new Map),Ta=a=>{se.value.set(a,new Un(a)),se.value.get(a).color=ie["bat"+se.value.size].color};function Nn(){se.value=new Map}function Pe(a,e=1){let t;if(a>=1e3&&e<4){switch(e){case 0:t=Math.round(a/1e3);break;case 1:t=Math.round(a/100)/10;break;case 2:t=Math.round(a/10)/100;break;case 3:t=Math.round(a)/1e3;break;default:t=Math.round(a/100)/10;break}return(t==null?void 0:t.toLocaleString(void 0,{minimumFractionDigits:e}))+" kW"}else return Math.round(a).toLocaleString()+" W"}function Re(a,e=1,t=!1){let o;if(a>1e6&&(t=!0,a=a/1e3),a>=1e3&&e<4){switch(e){case 0:o=Math.round(a/1e3);break;case 1:o=Math.round(a/100)/10;break;case 2:o=Math.round(a/10)/100;break;case 3:o=Math.round(a)/1e3;break;default:o=Math.round(a/100)/10;break}return o.toLocaleString(void 0,{minimumFractionDigits:e})+(t?" MWh":" kWh")}else return Math.round(a).toLocaleString()+(t?" kWh":" Wh")}function Hn(a){const e=Math.floor(a/3600),t=(a%3600/60).toFixed(0);return e>0?e+"h "+t+" min":t+" min"}function Oa(a){return a.toLocaleTimeString(["de-DE"],{hour:"2-digit",minute:"2-digit"})}function Rn(a,e){return["Jan","Feb","März","April","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Dez"][a]+" "+e}function Jn(a){return a!=999?(Math.round(a*10)/10).toLocaleString(void 0,{minimumFractionDigits:1})+"°":"-"}function qn(a){const e=document.documentElement,t=getComputedStyle(e);a=a.slice(4,-1);const o=t.getPropertyValue(a).trim(),s=parseInt(o.slice(1,3),16),r=parseInt(o.slice(3,5),16),p=parseInt(o.slice(5,7),16);return(s*299+r*587+p*114)/1e3>125?"black":"white"}const Yn={y:"0",class:"popup-title"},Qn={dy:"1em",x:"0",class:"popup-content"},Zn=B({__name:"PMPopup",props:{consumer:{}},setup(a){const e=a;function t(o){return o.length>8?o.substring(0,8)+".":o}return(o,s)=>(i(),f("g",null,[n("rect",{x:"-40",y:"-17",rx:"10",ry:"10",width:"80",height:"40","corner-radius":"20",filter:"url(#f1)",class:"popup",style:te({fill:e.consumer.color})},null,4),n("text",{dy:"0",x:"0",y:"0",class:"popup-textbox",style:te({fill:l(qn)(e.consumer.color)})},[n("tspan",Yn,x(t(e.consumer.name)),1),n("tspan",Qn,x(l(Pe)(Math.abs(e.consumer.power))),1)],4)]))}}),j=(a,e)=>{const t=a.__vccOpts||a;for(const[o,s]of e)t[o]=s;return t},Xn=j(Zn,[["__scopeId","data-v-a154651e"]]),Kn=["d","fill","stroke"],er={key:0},tr=["transform"],ar=20,Aa=B({__name:"PMArc",props:{upperArc:{type:Boolean},plotdata:{},radius:{},showLabels:{type:Boolean},categoriesToShow:{}},setup(a){const e=a,t=Math.PI/40,o=g(()=>e.plotdata.length-1),s=g(()=>e.upperArc?la().value(c=>Math.abs(c.power)).startAngle(-Math.PI/2+t).endAngle(Math.PI/2-t).sort(null):la().value(c=>c.power).startAngle(Math.PI*1.5-t).endAngle(Math.PI/2+t).sort(null)),r=g(()=>qa().innerRadius(e.radius*.88).outerRadius(e.radius).cornerRadius(ar));function p(c,d){return d==o.value?c.data.power>0?"var(--color-scale)":"null":c.data.color}const h=g(()=>e.plotdata.reduce((c,d)=>c+Math.abs(d.power),0));return(c,d)=>(i(),f(W,null,[d[0]||(d[0]=n("g",null,[n("defs",null,[n("filter",{id:"f1"},[n("feDropShadow",{dx:"1",dy:"1",rx:"10",ry:"10",stdDeviation:"1","flood-opacity":"0.7","flood-color":"var(--color-axis)"})])])],-1)),(i(!0),f(W,null,Q(s.value(e.plotdata.filter(u=>u.power!=0)),(u,k)=>(i(),f("g",{key:u.data.name},[n("path",{d:r.value(u),fill:u.data.color,stroke:p(u,k)},null,8,Kn)]))),128)),e.showLabels?(i(),f("g",er,[(i(!0),f(W,null,Q(s.value(c.plotdata.filter(u=>u.power!=0)),u=>(i(),f("g",{key:u.data.name,transform:"translate("+r.value.centroid(u)+")"},[c.categoriesToShow.includes(u.data.type)&&Math.abs(u.data.power)/h.value>.05?(i(),$(Xn,{key:0,consumer:u.data},null,8,["consumer"])):w("",!0)],8,tr))),128))])):w("",!0)],64))}}),nr=B({__name:"PMSourceArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{},showLabels:{type:Boolean}},setup(a){const e=a,t=[K.inverter,K.battery],o=g(()=>({name:"",type:K.counter,power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:"",showInGraph:!0})),s=g(()=>[J.evuIn].concat(r.value,p.value,o.value)),r=g(()=>be.value.size>1?[...be.value.values()].sort((h,c)=>h.power-c.power):[J.pv]),p=g(()=>se.value.size>1?[...se.value.values()].filter(h=>h.power<0).sort((h,c)=>h.power-c.power):[J.batOut]);return Ya(()=>{let h=J.pv.power+J.evuIn.power+J.batOut.power;h>m.maxPower&&(m.maxPower=h)}),(h,c)=>(i(),$(Aa,{"upper-arc":!0,plotdata:s.value,radius:e.radius,"show-labels":e.showLabels,"categories-to-show":t},null,8,["plotdata","radius","show-labels"]))}}),rr=B({__name:"PMUsageArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{},showLabels:{type:Boolean}},setup(a){const e=a,t=[K.chargepoint,K.battery,K.device],o=g(()=>({name:"",type:K.counter,power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:"",showInGraph:!0})),s=g(()=>[F.evuOut].concat(r.value,p.value,h.value,F.house,o.value)),r=g(()=>Object.values(O).length>1?Object.values(O).sort((c,d)=>d.power-c.power):[F.charging]),p=g(()=>{let c=0;for(const k of ne.values())k.configured&&!k.countAsHouse&&!k.showInGraph&&(c+=k.power);const d={name:"Geräte",type:K.device,power:c,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-devices)",icon:"",showInGraph:!0};let u=[...ne.values()].filter(k=>k.configured);return u.length>1?[d].concat(u.filter(k=>!k.countAsHouse&&k.showInGraph).sort((k,M)=>M.power-k.power)):[F.devices]}),h=g(()=>se.value.size>1?[...se.value.values()].filter(c=>c.power>0).sort((c,d)=>d.power-c.power):[F.batIn]);return(c,d)=>(i(),$(Aa,{"upper-arc":!1,plotdata:s.value,radius:e.radius,"show-labels":e.showLabels,"categories-to-show":t},null,8,["plotdata","radius","show-labels"]))}}),bt=B({__name:"FormatWatt",props:{watt:{}},setup(a){const e=a,t=g(()=>Pe(e.watt,m.decimalPlaces));return(o,s)=>x(t.value)}}),or={key:0,id:"pmLabel"},sr=["x","y","fill","text-anchor"],lr=22,Ee=B({__name:"PMLabel",props:{x:{},y:{},data:{},props:{},anchor:{},labeltext:{},labelicon:{},labelcolor:{}},setup(a){const e=a,t=g(()=>e.labeltext?e.labeltext:e.props?e.props.icon+" ":e.labelicon?e.labelicon+" ":""),o=g(()=>e.labelcolor?e.labelcolor:e.props?e.props.color:""),s=g(()=>!e.data||e.data.power>0),r=g(()=>e.labeltext?"":"fas");return(p,h)=>s.value?(i(),f("g",or,[n("text",{x:p.x,y:p.y,fill:o.value,"text-anchor":p.anchor,"font-size":lr,class:"pmLabel"},[n("tspan",{class:H(r.value)},x(t.value),3),n("tspan",null,[p.data!==void 0?(i(),$(bt,{key:0,watt:p.data.power},null,8,["watt"])):w("",!0)])],8,sr)])):w("",!0)}}),ir={class:"wb-widget p-0 m-0 shadow"},cr={class:"d-flex justify-content-between"},ur={class:"m-4 me-0 mb-0"},dr={class:"p-4 pb-0 ps-0 m-0",style:{"text-align":"right"}},hr={class:"px-4 pt-4 pb-2 wb-subwidget"},pr={class:"row"},gr={class:"col m-0 p-0"},mr={class:"container-fluid m-0 p-0"},fr={key:0},vr={class:"px-4 py-2 wb-subwidget"},br={class:"row"},yr={class:"col"},_r={class:"container-fluid m-0 p-0"},yt=B({__name:"WBWidget",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(a){const e=a,t=g(()=>e.fullWidth?"col-12":e.variableWidth&&m.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,s)=>(i(),f("div",{class:H(["p-2 m-0 d-flex",t.value])},[n("div",ir,[n("div",cr,[n("h3",ur,[de(o.$slots,"title",{},()=>[s[0]||(s[0]=n("div",{class:"p-0"},"(title goes here)",-1))]),de(o.$slots,"subtitle")]),n("div",dr,[de(o.$slots,"buttons")])]),n("div",hr,[n("div",pr,[n("div",gr,[n("div",mr,[de(o.$slots,"default")])])])]),o.$slots.footer!=null?(i(),f("div",fr,[s[1]||(s[1]=n("hr",null,null,-1)),n("div",vr,[n("div",br,[n("div",yr,[n("div",_r,[de(o.$slots,"footer")])])])])])):w("",!0)])],2))}});class wr{constructor(){v(this,"active",!1);v(this,"etPriceList",new Map);v(this,"etProvider","");v(this,"etMaxPrice",0)}get etCurrentPriceString(){const[e]=oe.etPriceList.values();return(Math.round(e*10)/10).toFixed(1)+" ct"}}const oe=pe(new wr),kr={id:"powermeter",class:"p-0 m-0"},xr=["viewBox"],Sr=["transform"],$r=["x"],Mr=["y"],Ke=500,Fe=20,ma=20,Pr=B({__name:"PowerMeter",setup(a){const e=Ke,t=Math.PI/40,o=[[4],[4,6],[1,4,6],[0,2,4,6],[0,2,3,5,6]],s=[{x:-85,y:e/2*1/5},{x:0,y:e/2*1/5},{x:85,y:e/2*1/5},{x:-85,y:e/2*2/5},{x:0,y:e/2*2/5},{x:85,y:e/2*2/5},{x:0,y:e/2*3/5}],r=g(()=>Ke/2-Fe),p=g(()=>{let I="",P=Object.values(J).filter(V=>V.power>0);return P.length==1&&P[0].name=="PV"?I="Aktueller Verbrauch: ":I="Bezug/Verbrauch: ",I+Pe(F.house.power+F.charging.power+F.devices.power+F.batIn.power,m.decimalPlaces)}),h=g(()=>{let I=J.pv.power+J.evuIn.power+J.batOut.power;return m.maxPower>I?Pe(m.maxPower,m.decimalPlaces):Pe(I,m.decimalPlaces)}),c=g(()=>Object.values(O)),d=g(()=>{let I=0;return m.showRelativeArcs&&(I=m.maxPower-(J.pv.power+J.evuIn.power+J.batOut.power)),I<0?0:I}),u=g(()=>[F.evuOut,F.charging,F.devices,F.batIn,F.house].filter(I=>I.power>0)),k=g(()=>o[u.value.length-1]);function M(I){return s[k.value[I]]}function A(I){return I.length>12?I.slice(0,11)+".":I}const G=g(()=>{const[I]=oe.etPriceList.values();return Math.round(I*10)/10});function q(){m.showPmLabels=!m.showPmLabels}return(I,P)=>(i(),$(yt,{"full-width":!0},{title:_(()=>P[0]||(P[0]=[R(" Aktuelle Leistung ")])),default:_(()=>[n("figure",kr,[(i(),f("svg",{viewBox:"0 0 "+Ke+" "+l(e)},[n("g",{transform:"translate("+Ke/2+","+l(e)/2+")"},[b(nr,{radius:r.value,"corner-radius":ma,"circle-gap-size":t,"empty-power":d.value,"show-labels":l(m).showPmLabels},null,8,["radius","empty-power","show-labels"]),b(rr,{radius:r.value,"corner-radius":ma,"circle-gap-size":t,"empty-power":d.value,"show-labels":l(m).showPmLabels},null,8,["radius","empty-power","show-labels"]),b(Ee,{x:0,y:-l(e)/10*2,data:l(J).pv,props:l(ie).pv,anchor:"middle",config:l(m)},null,8,["y","data","props","config"]),b(Ee,{x:0,y:-l(e)/10*3,data:l(J).evuIn,props:l(ie).evuIn,anchor:"middle",config:l(m)},null,8,["y","data","props","config"]),b(Ee,{x:0,y:-l(e)/10,data:l(J).batOut,props:l(ie).batOut,anchor:"middle",config:l(m)},null,8,["y","data","props","config"]),l(oe).active?(i(),$(Ee,{key:0,x:0,y:-l(e)/10,data:l(J).batOut,props:l(ie).batOut,anchor:"middle",config:l(m)},null,8,["y","data","props","config"])):w("",!0),(i(!0),f(W,null,Q(u.value,(V,S)=>(i(),$(Ee,{key:S,x:M(S).x,y:M(S).y,data:V,labelicon:V.icon,labelcolor:V.color,anchor:"middle",config:l(m)},null,8,["x","y","data","labelicon","labelcolor","config"]))),128)),l(fe)[0]!=null&&l(Z)[l(fe)[0]]!=null?(i(),$(Ee,{key:1,x:-500/2-Fe/4+10,y:-l(e)/2+Fe+5,labeltext:A(l(Z)[l(fe)[0]].name)+": "+Math.round(l(Z)[l(fe)[0]].soc)+"%",labelcolor:c.value[0]?c.value[0].color:"var(--color-charging)",anchor:"start",config:l(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),l(fe)[1]!=null&&l(Z)[l(fe)[1]]!=null?(i(),$(Ee,{key:2,x:Ke/2+Fe/4-10,y:-l(e)/2+Fe+5,labeltext:A(l(Z)[l(fe)[1]].name)+": "+Math.round(l(Z)[l(fe)[1]].soc)+"%",labelcolor:c.value[1]?c.value[1].color:"var(--color-charging)",anchor:"end",config:l(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),l(he).batterySoc>0?(i(),$(Ee,{key:3,x:-500/2-Fe/4+10,y:l(e)/2-Fe+15,labeltext:"Speicher: "+l(he).batterySoc+"%",labelcolor:l(F).batIn.color,anchor:"start",config:l(m)},null,8,["x","y","labeltext","labelcolor","config"])):w("",!0),l(oe).active?(i(),$(Ee,{key:4,x:Ke/2+Fe/4-10,y:l(e)/2-Fe+15,value:G.value,labeltext:l(oe).etCurrentPriceString,labelcolor:"var(--color-charging)",anchor:"end",config:l(m)},null,8,["x","y","value","labeltext","config"])):w("",!0),b(Ee,{x:0,y:0,labeltext:p.value,labelcolor:"var(--color-fg)",anchor:"middle",config:l(m)},null,8,["labeltext","config"]),l(m).showRelativeArcs?(i(),f("text",{key:5,x:Ke/2-44,y:"2","text-anchor":"middle",fill:"var(--color-axis)","font-size":"12"}," Peak: "+x(h.value),9,$r)):w("",!0),n("text",{x:0,y:l(e)/2*3.8/5,"text-anchor":"middle",fill:"var(--color-menu)","font-size":"28",class:"fas",type:"button",onClick:q},x(""),8,Mr)],8,Sr)],8,xr))])]),_:1}))}}),Cr=["origin","origin2","transform"],Ir=B({__name:"PgSourceGraph",props:{width:{},height:{},margin:{}},setup(a){const e=a,t={house:"var(--color-house)",batIn:"var(--color-battery)",inverter:"var(--color-pv)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",pv:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)"};var o,s;const r=m.showAnimations?m.animationDuration:0,p=m.showAnimations?m.animationDelay:0,h=g(()=>{const C=ge("g#pgSourceGraph");if(y.data.length>0){y.graphMode=="month"||y.graphMode=="year"?V(C,Qe.value):P(C,Le.value),C.selectAll(".axis").remove();const z=C.append("g").attr("class","axis");z.call(G.value),z.selectAll(".tick").attr("font-size",12),z.selectAll(".tick line").attr("stroke",I.value).attr("stroke-width",q.value),z.select(".domain").attr("stroke","var(--color-bg)")}return"pgSourceGraph.vue"}),c=g(()=>xa().value((C,z)=>C[z]??0).keys(k.value)),d=g(()=>c.value(y.data)),u=g(()=>Je().range([e.height-10,0]).domain(y.graphMode=="year"?[0,Math.ceil(M.value[1]*10)/10]:[0,Math.ceil(M.value[1])])),k=g(()=>{let C=[];const z=["batOut","evuIn"];if(m.showInverters){const E=/pv\d+/;y.data.length>0&&(C=Object.keys(y.data[0]).reduce((L,re)=>(re.match(E)&&L.push(re),L),[]))}switch(y.graphMode){case"live":return m.showInverters?["pv","batOut","evuIn"]:["selfUsage","evuOut","batOut","evuIn"];case"today":case"day":return C.forEach(E=>{var L;t[E]=((L=be.value.get(+E.slice(2)))==null?void 0:L.color)??"var(--color-pv)"}),m.showInverters?[...C,...z]:["selfUsage","evuOut","batOut","evuIn"];default:return["evuIn","batOut","selfUsage","evuOut"]}}),M=g(()=>{let C=Te(y.data,z=>Math.max(z.pv+z.evuIn+z.batOut,z.selfUsage+z.evuOut));return C[0]!=null&&C[1]!=null?(y.graphMode=="year"&&(C[0]=C[0]/1e3,C[1]=C[1]/1e3),C):[0,0]}),A=g(()=>y.graphMode=="month"||y.graphMode=="year"?-e.width-e.margin.right-22:-e.width),G=g(()=>mt(u.value).tickSizeInner(A.value).ticks(4).tickFormat(C=>(C==0?"":Math.round(C*10)/10).toLocaleString(void 0))),q=g(()=>m.showGrid?"0.5":"1"),I=g(()=>m.showGrid?"var(--color-grid)":"var(--color-bg)");function P(C,z){const E=ot().x((re,$e)=>z(y.data[$e].date)).y(u.value(0)).curve(st),L=ot().x((re,$e)=>z(y.data[$e].date)).y0(re=>u.value(y.graphMode=="year"?re[0]/1e3:re[0])).y1(re=>u.value(y.graphMode=="year"?re[1]/1e3:re[1])).curve(st);gt?(C.selectAll("*").remove(),o=C.append("svg").attr("x",0).attr("width",e.width).selectAll(".sourceareas").data(d.value).enter().append("path").attr("fill",($e,D)=>t[k.value[D]]).attr("d",$e=>E($e)),o.transition().duration(r).delay(p).ease(ht).attr("d",$e=>L($e)),ca()):o.data(d.value).transition().duration(0).ease(ht).attr("d",re=>L(re))}function V(C,z){y.data.length>0&&(gt?(C.selectAll("*").remove(),s=C.selectAll(".sourcebar").data(d.value).enter().append("g").attr("fill",(E,L)=>t[k.value[L]]).selectAll("rect").data(E=>E).enter().append("rect").attr("x",(E,L)=>z(y.data[L].date)??0).attr("y",()=>u.value(0)).attr("height",0).attr("width",z.bandwidth()),s.transition().duration(r).delay(p).ease(ht).attr("height",E=>y.graphMode=="year"?u.value(E[0]/1e3)-u.value(E[1]/1e3):u.value(E[0])-u.value(E[1])).attr("y",E=>y.graphMode=="year"?u.value(E[1]/1e3):u.value(E[1])),ca()):(C.selectAll("*").remove(),s=C.selectAll(".sourcebar").data(d.value).enter().append("g").attr("fill",(E,L)=>t[k.value[L]]).selectAll("rect").data(E=>E).enter().append("rect").attr("x",(E,L)=>z(y.data[L].date)??0).attr("y",E=>y.graphMode=="year"?u.value(E[1]/1e3):u.value(E[1])).attr("width",z.bandwidth()).attr("height",E=>y.graphMode=="year"?u.value(E[0]/1e3)-u.value(E[1]/1e3):u.value(E[0])-u.value(E[1]))))}const S=g(()=>{const C=ge("g#pgSourceGraph");if(y.graphMode!="month"&&y.graphMode!="year"&&y.data.length>0){Le.value.range(Ze.value);const z=ot().x((E,L)=>Le.value(y.data[L].date)).y0(E=>u.value(E[0])).y1(E=>u.value(E[1])).curve(st);C.selectAll("path").attr("d",E=>E?z(E):""),C.selectAll("g#sourceToolTips").select("rect").attr("x",E=>Le.value(E.date)).attr("width",e.width/y.data.length)}return"zoomed"});return(C,z)=>(i(),f("g",{id:"pgSourceGraph",origin:h.value,origin2:S.value,transform:"translate("+C.margin.left+","+C.margin.top+")"},null,8,Cr))}}),Br=["origin","origin2","transform"],Vr=B({__name:"PgUsageGraph",props:{width:{},height:{},margin:{},stackOrder:{}},setup(a){const e=a,t=g(()=>m.showInverters?[["house","charging","devices","batIn","evuOut"],["charging","devices","batIn","house","evuOut"],["devices","batIn","charging","house","evuOut"],["batIn","charging","house","devices","evuOut"]]:[["house","charging","devices","batIn"],["charging","devices","batIn","house"],["devices","batIn","charging","house"],["batIn","charging","house","devices"]]),o={house:"var(--color-house)",charging:"var(--color-charging)",batIn:"var(--color-battery)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)",cp0:"var(--color-cp0)",cp1:"var(--color-cp1)",cp2:"var(--color-cp2)",cp3:"var(--color-cp3)",sh1:"var(--color-sh1)",sh2:"var(--color-sh2)",sh3:"var(--color-sh3)",sh4:"var(--color-sh4)",devices:"var(--color-devices)"};var s,r;const p=m.showAnimations?m.animationDuration:0,h=m.showAnimations?m.animationDelay:0,c=g(()=>{const S=ge("g#pgUsageGraph");y.graphMode=="month"||y.graphMode=="year"?P(S):I(S),S.selectAll(".axis").remove();const C=S.append("g").attr("class","axis");return C.call(q.value),C.selectAll(".tick").attr("font-size",12).attr("color","var(--color-axis)"),m.showGrid?C.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):C.selectAll(".tick line").attr("stroke","var(--color-bg)"),C.select(".domain").attr("stroke","var(--color-bg)"),"pgUsageGraph.vue"}),d=g(()=>xa().value((S,C)=>S[C]??0).keys(M.value)),u=g(()=>d.value(y.data)),k=g(()=>Je().range([e.height+10,2*e.height]).domain(y.graphMode=="year"?[0,Math.ceil(A.value[1]*10)/10]:[0,Math.ceil(A.value[1])])),M=g(()=>{if(y.graphMode!="today"&&y.graphMode!="day"&&y.graphMode!="live")return t.value[e.stackOrder];{const S=t.value[e.stackOrder].slice(),C=S.indexOf("charging");S.splice(C,1);const z=/cp\d+/;let E=[];return y.data.length>0&&(E=Object.keys(y.data[0]).reduce((L,re)=>(re.match(z)&&L.push(re),L),[])),E.forEach((L,re)=>{var $e;S.splice(C+re,0,L),o[L]=(($e=O[+L.slice(2)])==null?void 0:$e.color)??"black"}),S}}),A=g(()=>{let S=Te(y.data,C=>C.house+C.charging+C.batIn+C.devices+C.evuOut);return S[0]!=null&&S[1]!=null?(y.graphMode=="year"&&(S[0]=S[0]/1e3,S[1]=S[1]/1e3),S):[0,0]}),G=g(()=>y.graphMode=="month"||y.graphMode=="year"?-e.width-e.margin.right-22:-e.width),q=g(()=>mt(k.value).tickSizeInner(G.value).ticks(4).tickFormat(S=>(S==0?"":Math.round(S*10)/10).toLocaleString(void 0)));function I(S){const C=ot().x((E,L)=>Le.value(y.data[L].date)).y(k.value(0)).curve(st),z=ot().x((E,L)=>Le.value(y.data[L].date)).y0(E=>k.value(E[0])).y1(E=>k.value(E[1])).curve(st);m.showAnimations?ct?(S.selectAll("*").remove(),s=S.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(u.value).enter().append("path").attr("d",L=>C(L)).attr("fill",(L,re)=>o[M.value[re]]),s.transition().duration(300).delay(100).ease(ht).attr("d",L=>z(L)),da()):(S.selectAll("*").remove(),S.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(u.value).enter().append("path").attr("d",L=>z(L)).attr("fill",(L,re)=>o[M.value[re]])):(S.selectAll("*").remove(),S.append("svg").attr("x",0).attr("width",e.width).selectAll(".usageareas").data(u.value).enter().append("path").attr("d",L=>z(L)).attr("fill",(L,re)=>o[M.value[re]]))}function P(S){ct?(S.selectAll("*").remove(),r=S.selectAll(".usagebar").data(u.value).enter().append("g").attr("fill",(C,z)=>o[t.value[e.stackOrder][z]]).selectAll("rect").data(C=>C).enter().append("rect").attr("x",(C,z)=>Qe.value(y.data[z].date)??0).attr("y",()=>k.value(0)).attr("height",0).attr("width",Qe.value.bandwidth()),r.transition().duration(p).delay(h).ease(ht).attr("y",C=>y.graphMode=="year"?k.value(C[0]/1e3):k.value(C[0])).attr("height",C=>y.graphMode=="year"?k.value(C[1]/1e3)-k.value(C[0]/1e3):k.value(C[1])-k.value(C[0])),da()):(S.selectAll("*").remove(),r=S.selectAll(".usagebar").data(u.value).enter().append("g").attr("fill",(C,z)=>o[t.value[e.stackOrder][z]]).selectAll("rect").data(C=>C).enter().append("rect").attr("x",(C,z)=>Qe.value(y.data[z].date)??0).attr("y",C=>y.graphMode=="year"?k.value(C[0]/1e3):k.value(C[0])).attr("height",C=>y.graphMode=="year"?k.value(C[1]/1e3)-k.value(C[0]/1e3):k.value(C[1])-k.value(C[0])).attr("width",Qe.value.bandwidth()))}const V=g(()=>{const S=ge("g#pgUsageGraph");if(y.graphMode!="month"&&y.graphMode!="year"){Le.value.range(Ze.value);const C=ot().x((z,E)=>Le.value(y.data[E].date)).y0(z=>k.value(z[0])).y1(z=>k.value(z[1])).curve(st);S.selectAll("path").attr("d",z=>z?C(z):"")}return"zoomed"});return(S,C)=>(i(),f("g",{id:"pgUsageGraph",origin:c.value,origin2:V.value,transform:"translate("+S.margin.left+","+S.margin.top+")"},null,8,Br))}}),Lr=["width"],Tr=["transform"],Or=["width"],Ar=["transform"],Er=["origin","origin2","transform"],zr=["origin","transform"],Dr={key:0},Wr=["width","height"],Gr={key:1},jr=["y","width","height"],Bt=12,Ur=B({__name:"PgXAxis",props:{width:{},height:{},margin:{}},setup(a){const e=a,t=g(()=>pt(Le.value).ticks(6).tickSizeInner(p.value).tickFormat(it("%H:%M"))),o=g(()=>Qa(Le.value).ticks(6).tickSizeInner(p.value+3).tickFormat(it(""))),s=g(()=>pt(Qe.value).ticks(4).tickSizeInner(p.value).tickFormat(u=>u.toString())),r=g(()=>pt(Qe.value).ticks(4).tickSizeInner(p.value).tickFormat(()=>"")),p=g(()=>y.graphMode!=="month"&&y.graphMode!=="year"?m.showGrid?-(e.height/2-7):-10:0),h=g(()=>{let u=ge("g#PGXAxis"),k=ge("g#PgUnit");return u.selectAll("*").remove(),k.selectAll("*").remove(),y.graphMode=="month"||y.graphMode=="year"?u.call(s.value):u.call(t.value),u.selectAll(".tick > text").attr("fill",(M,A)=>A>=0||y.graphMode=="month"||y.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",Bt),m.showGrid?u.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):u.selectAll(".tick line").attr("stroke","var(--color-bg)"),u.select(".domain").attr("stroke","var(--color-bg)"),k.append("text").attr("x",0).attr("y",12).attr("fill","var(--color-axis)").attr("font-size",Bt).text(y.graphMode=="year"?"MWh":y.graphMode=="month"?"kWh":"kW").attr("text-anchor","start"),"PGXAxis.vue"}),c=g(()=>{let u=ge("g#PGXAxis2");return u.selectAll("*").remove(),y.graphMode=="month"||y.graphMode=="year"?u.call(r.value):u.call(o.value),u.selectAll(".tick > text").attr("fill",(k,M)=>M>=0||y.graphMode=="month"||y.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",Bt),m.showGrid?(u.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"),u.select(".domain").attr("stroke","var(--color-bg)")):u.selectAll(".tick line").attr("stroke","var(--color-bg)"),u.select(".domain").attr("stroke","var(--color-bg)"),"PGXAxis2.vue"}),d=g(()=>{if(y.graphMode!="month"&&y.graphMode!="year"){const u=ge("g#PGXAxis"),k=ge("g#PGXAxis2");y.graphMode=="month"||y.graphMode=="year"?(Qe.value.range(Ze.value),u.call(s.value),k.call(r.value)):(Le.value.range(Ze.value),u.call(t.value),k.call(o.value))}return"zoomed"});return(u,k)=>(i(),f(W,null,[(i(),f("svg",{x:"0",width:e.width},[n("g",{id:"PgUnit",transform:"translate(0,"+(u.height/2+9)+")"},null,8,Tr)],8,Lr)),(i(),f("svg",{x:0,width:e.width+10},[n("g",{transform:"translate("+u.margin.left+","+u.margin.top+")"},[n("g",{id:"PGXAxis",class:"axis",origin:h.value,origin2:d.value,transform:"translate(0,"+(u.height/2-6)+")"},null,8,Er),n("g",{id:"PGXAxis2",class:"axis",origin:c.value,transform:"translate(0,"+(u.height/2+-6)+")"},null,8,zr),l(m).showGrid?(i(),f("g",Dr,[n("rect",{x:"0",y:"0",width:u.width,height:u.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,Wr)])):w("",!0),l(m).showGrid?(i(),f("g",Gr,[n("rect",{x:"0",y:u.height/2+10,width:u.width,height:u.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,jr)])):w("",!0)],8,Ar)],8,Or))],64))}}),Fr=["width"],Nr=["id",".origin","d"],Hr=["id","d","stroke"],Rr=["x","y","text-anchor"],Vt=B({__name:"PgSoc",props:{width:{},height:{},margin:{},order:{}},setup(a){const e=a,t=g(()=>{let M=Te(y.data,A=>A.date);return M[0]&&M[1]?at().domain(M).range([0,e.width]):at().range([0,0])}),o=g(()=>Je().range([e.height-10,0]).domain([0,100])),s=g(()=>{let A=He().x(G=>t.value(G.date)).y(G=>o.value(e.order==2?G.batSoc:e.order==0?G["soc"+fe.value[0]]:G["soc"+fe.value[1]])??o.value(0))(y.data);return A||""}),r=g(()=>e.order),p=g(()=>{switch(e.order){case 2:return"Speicher";case 1:return Z[fe.value[1]]!=null?Z[fe.value[1]].name:"???";default:return Z[fe.value[0]]!=null?Z[fe.value[0]].name:"???"}}),h=g(()=>{switch(e.order){case 0:return"var(--color-cp1)";case 1:return"var(--color-cp2)";case 2:return"var(--color-battery)";default:return"red"}}),c=g(()=>{switch(e.order){case 0:return 3;case 1:return e.width-3;case 2:return e.width/2;default:return 0}}),d=g(()=>{if(y.data.length>0){let M;switch(e.order){case 0:return M=0,o.value(y.data[M]["soc"+fe.value[0]]+2);case 1:return M=y.data.length-1,Math.max(12,o.value(y.data[M]["soc"+fe.value[1]]+2));case 2:return M=Math.round(y.data.length/2),o.value(y.data[M].batSoc+2);default:return 0}}else return 0}),u=g(()=>{switch(e.order){case 0:return"start";case 1:return"end";case 2:return"middle";default:return"middle"}}),k=g(()=>{if(y.graphMode!="month"&&y.graphMode!="year"){const M=ge("path#soc-"+r.value),A=ge("path#socdashes-"+r.value);t.value.range(Ze.value);const G=He().x(q=>t.value(q.date)).y(q=>o.value(e.order==2?q.batSoc:e.order==1?q["soc"+fe.value[0]]:q["soc"+fe.value[1]])??o.value(0));M.attr("d",G(y.data)),A.attr("d",G(y.data))}return"zoomed"});return(M,A)=>(i(),f("svg",{x:"0",width:e.width},[n("g",null,[n("path",{id:"soc-"+r.value,".origin":k.value,class:"soc-baseline",d:s.value,stroke:"var(--color-bg)","stroke-width":"1",fill:"none"},null,40,Nr),n("path",{id:"socdashes-"+r.value,class:"soc-dashes",d:s.value,stroke:h.value,"stroke-width":"1",style:{strokeDasharray:"3,3"},fill:"none"},null,8,Hr),n("text",{class:"cpname",x:c.value,y:d.value,style:te({fill:h.value,fontSize:10}),"text-anchor":u.value},x(p.value),13,Rr)])],8,Fr))}}),Jr=["transform"],qr=B({__name:"PgSocAxis",props:{width:{},height:{},margin:{}},setup(a){const e=a,t=g(()=>Je().range([e.height-10,0]).domain([0,100])),o=g(()=>Za(t.value).ticks(5).tickFormat(r=>r.toString()+"%"));function s(){let r=ge("g#PGSocAxis");r.call(o.value),r.selectAll(".tick").attr("font-size",12),r.selectAll(".tick line").attr("stroke","var(--color-bg)"),r.select(".domain").attr("stroke","var(--color-bg)")}return Oe(()=>{s()}),(r,p)=>(i(),f("g",{id:"PGSocAxis",class:"axis",transform:"translate("+(r.width-20)+",0)"},null,8,Jr))}}),Yr={class:"d-flex align-self-top justify-content-center align-items-center"},Qr={class:"input-group input-group-xs"},Zr={key:0,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Xr={class:"dropdown-menu"},Kr={class:"table optiontable"},eo=["onClick"],to={key:1,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},ao={class:"dropdown-menu"},no={class:"table optiontable"},ro=["onClick"],oo={key:2,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},so={class:"dropdown-menu"},lo={class:"table optiontable"},io=["onClick"],co=B({__name:"DateInput",props:{modelValue:{type:Date,required:!0},mode:{type:String,default:"day"}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=new Date().getFullYear();let s=Array.from({length:10},(A,G)=>o-G);const r=Y(!0),p=e,h=[[0,1,2,3],[4,5,6,7],[8,9,10,11]],c=Y(t.modelValue.getDate()),d=Y(t.modelValue.getMonth()),u=Y(t.modelValue.getFullYear()),k=g(()=>{const G=new Date(u.value,d.value,1).getDay();let q=0;switch(d.value){case 1:case 3:case 5:case 7:case 8:case 10:case 12:q=31;break;case 4:case 6:case 9:case 11:q=30;break;case 2:Math.trunc(u.value/4)*4==u.value?q=29:q=28}let I=[],P=[0,0,0,0,0,0,0],V=G;for(let S=0;S(i(),f("span",Yr,[n("div",Qr,[t.mode=="day"||t.mode=="today"?(i(),f("button",Zr,x(c.value),1)):w("",!0),n("div",Xr,[n("table",Kr,[(i(!0),f(W,null,Q(k.value,(q,I)=>(i(),f("tr",{key:I,class:""},[(i(!0),f(W,null,Q(q,(P,V)=>(i(),f("td",{key:V},[P!=0?(i(),f("span",{key:0,type:"button",class:"btn optionbutton",onClick:S=>c.value=P},x(P),9,eo)):w("",!0)]))),128))]))),128))])]),t.mode!="year"&&t.mode!="live"?(i(),f("button",to,x(d.value+1),1)):w("",!0),n("div",ao,[n("table",no,[(i(),f(W,null,Q(h,(q,I)=>n("tr",{key:I,class:""},[(i(!0),f(W,null,Q(q,(P,V)=>(i(),f("td",{key:V,class:"p-0 m-0"},[n("span",{type:"button",class:"btn btn-sm optionbutton",onClick:S=>d.value=P},x(P+1),9,ro)]))),128))])),64))])]),t.mode!="live"?(i(),f("button",oo,x(u.value),1)):w("",!0),n("div",so,[n("table",lo,[(i(!0),f(W,null,Q(l(s),(q,I)=>(i(),f("tr",{key:I,class:""},[n("td",null,[n("span",{type:"button",class:"btn optionbutton",onClick:P=>u.value=q},x(q),9,io)])]))),128))])]),t.mode!="live"?(i(),f("button",{key:3,class:"button-outline-secondary",type:"button",onClick:M},G[0]||(G[0]=[n("span",{class:"fa-solid fa-circle-check"},null,-1)]))):w("",!0)])]))}}),uo=j(co,[["__scopeId","data-v-98690e5d"]]),ho={class:"btn-group m-0",role:"group","aria-label":"radiobar"},po=["id","value"],go=B({__name:"RadioBarInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=g({get(){return t.modelValue},set(h){o("update:modelValue",h)}});function r(h){let c=t.options[h].color?t.options[h].color:"var(--color-fg)";return t.options[h].active?{color:"var(--color-bg)",background:c}:{color:c}}function p(h){let c=h.target;for(;c&&!c.value&&c.parentElement;)c=c.parentElement;c.value&&(s.value=c.value)}return(h,c)=>(i(),f("div",null,[n("div",ho,[(i(!0),f(W,null,Q(h.options,(d,u)=>(i(),f("button",{id:"radio-"+d.value,key:u,class:H(["btn btn-outline-secondary btn-sm radiobutton mx-0 mb-0 px-2",d.value==s.value?"active":""]),value:d.value,style:te(r(u)),onClick:p},[n("span",{style:te(r(u))},[d.icon?(i(),f("i",{key:0,class:H(["fa-solid",d.icon])},null,2)):w("",!0),R(" "+x(d.text),1)],4)],14,po))),128))])]))}}),Ea=j(go,[["__scopeId","data-v-82ab6829"]]),mo=B({__name:"PgSelector",props:{widgetid:{},showLeftButton:{type:Boolean},showRightButton:{type:Boolean},ignoreLive:{type:Boolean}},emits:["shiftLeft","shiftRight","shiftUp","shiftDown"],setup(a){const e=a,t=Y(0),o=g(()=>{if(y.waitForData)return"Lädt";switch(y.graphMode){case"live":return e.ignoreLive?"heute":`${me.duration} min`;case"today":return"heute";case"day":return ue.date.getDate()+"."+(ue.date.getMonth()+1)+".";case"month":return Rn(ze.month-1,ze.year);case"year":return Ye.year.toString();default:return"???"}}),s=["live","today","day","month","year"],r=["Live","Heute","Tag","Monat","Jahr"],p=g({get(){return y.graphMode},set(V){switch(V){case"day":k();break;case"today":M();break;case"live":u();break;case"month":A();break;case"year":G()}}}),h=g(()=>{switch(y.graphMode){case"live":case"today":return ue.getDate();case"month":return ze.getDate();default:return ue.getDate()}});function c(V){pa(V)}function d(){t.value+=1,t.value>2&&(t.value=0)}function u(){y.graphMode!="live"&&(y.graphMode="live",ve())}function k(){y.graphMode!="day"&&y.graphMode!="today"&&(y.graphMode="day",ve())}function M(){y.graphMode!="today"&&(y.graphMode="today",pa(new Date),ve())}function A(){y.graphMode!="month"&&(y.graphMode="month",ve())}function G(){y.graphMode!="year"&&(y.graphMode="year",ve())}const q=g(()=>t.value>0?{border:"1px solid var(--color-frame)"}:""),I=g(()=>t.value==1?"justify-content-between":"justify-content-end"),P=g(()=>t.value==1?"justify-content-between":"justify-content-center");return(V,S)=>(i(),f("div",{class:"d-flex flex-column justify-content-center pgselector rounded",style:te(q.value)},[t.value==2?(i(),$(Ea,{key:0,id:"pgm2",modelValue:p.value,"onUpdate:modelValue":S[0]||(S[0]=C=>p.value=C),class:"m-2",options:s.map((C,z)=>({text:r[z],value:C,color:"var(--color-menu)",active:C==l(y).graphMode}))},null,8,["modelValue","options"])):w("",!0),t.value==1?(i(),f("span",{key:1,type:"button",class:H(["arrowButton d-flex align-self-center mb-3 mt-3",{disabled:!e.showLeftButton}]),onClick:S[1]||(S[1]=C=>V.$emit("shiftUp"))},S[6]||(S[6]=[n("i",{class:"fa-solid fa-xl fa-chevron-circle-up"},null,-1)]),2)):w("",!0),n("div",{class:H(["d-flex align-items-center",P.value])},[t.value==1?(i(),f("span",{key:0,type:"button",class:H(["p-1",{disabled:!e.showLeftButton}]),onClick:S[2]||(S[2]=C=>V.$emit("shiftLeft"))},S[7]||(S[7]=[n("span",{class:"fa-solid fa-xl fa-chevron-circle-left arrowButton"},null,-1)]),2)):w("",!0),t.value<2?(i(),f("span",{key:1,type:"button",class:"btn-outline-secondary p-2 px-3 badge rounded-pill datebadge",onClick:d},x(o.value),1)):w("",!0),t.value==2?(i(),$(uo,{key:2,"model-value":h.value,mode:l(y).graphMode,"onUpdate:modelValue":c},null,8,["model-value","mode"])):w("",!0),t.value==1?(i(),f("span",{key:3,id:"graphRightButton",type:"button",class:H(["arrowButton fa-solid fa-xl fa-chevron-circle-right p-1",{disabled:!e.showRightButton}]),onClick:S[3]||(S[3]=C=>V.$emit("shiftRight"))},null,2)):w("",!0)],2),n("div",{class:H(["d-flex align-items-center",I.value])},[t.value==1?(i(),f("span",{key:0,type:"button",class:"p-1",onClick:d},S[8]||(S[8]=[n("span",{class:"fa-solid fa-xl fa-gear"},null,-1)]))):w("",!0),t.value==1?(i(),f("span",{key:1,id:"graphLeftButton",type:"button",class:H(["arrowButton fa-solid fa-xl fa-chevron-circle-down p-1",{disabled:!e.showLeftButton}]),onClick:S[4]||(S[4]=C=>V.$emit("shiftDown"))},null,2)):w("",!0),t.value>0?(i(),f("span",{key:2,type:"button",class:"p-1",onClick:S[5]||(S[5]=C=>t.value=0)},S[9]||(S[9]=[n("span",{class:"fa-solid fa-xl fa-circle-check"},null,-1)]))):w("",!0)],2)],4))}}),ra=j(mo,[["__scopeId","data-v-d75ec1a4"]]),fo=["x","fill"],vo=["x"],Be=B({__name:"PgToolTipLine",props:{cat:{},name:{},indent:{},power:{},width:{}},setup(a){const e=a;return(t,o)=>(i(),f(W,null,[t.power>0?(i(),f("tspan",{key:0,x:t.indent,dy:"1.3em",class:H(t.name?"":"fas"),fill:l(ie)[t.cat].color},x(t.name?t.name:l(ie)[t.cat].icon)+"   ",11,fo)):w("",!0),n("tspan",{"text-anchor":"end",x:t.width-t.indent},[e.power>0?(i(),$(bt,{key:0,watt:t.power*1e3},null,8,["watt"])):w("",!0)],8,vo)],64))}}),bo=["transform"],yo=["width","height"],_o={"text-anchor":"start",x:"5",y:"20","font-size":"16",fill:"var(--color-fg)"},wo=["x"],ko=B({__name:"PgToolTipItem",props:{entry:{},boxwidth:{},xScale:{type:[Function,Object]}},setup(a){const e=a,t=g(()=>Object.values(e.entry).filter(c=>c>0).length),o=g(()=>t.value*16),s=g(()=>Object.entries(e.entry).filter(([c,d])=>c.startsWith("pv")&&c.length>2&&d>0).map(([c,d])=>({power:d,name:Ne.value.get(c)?h(Ne.value.get(c)):"Wechselr.",id:c}))),r=g(()=>Object.entries(e.entry).filter(([c,d])=>c.startsWith("cp")&&c.length>2&&d>0).map(([c,d])=>({power:d,name:Ne.value.get(c)?h(Ne.value.get(c)):"Ladep.",id:c}))),p=g(()=>Object.entries(e.entry).filter(([c,d])=>c.startsWith("sh")&&c.length>2&&d>0).map(([c,d])=>({power:d,name:Ne.value.get(c)?h(Ne.value.get(c)):"Gerät",id:c})));function h(c){return c.length>6?c.slice(0,6)+"...":c}return(c,d)=>(i(),f("g",{class:"ttmessage",transform:"translate("+c.xScale(c.entry.date)+",0)"},[n("rect",{rx:"5",width:c.boxwidth,height:o.value,fill:"var(--color-bg)",opacity:"80%",stroke:"var(--color-menu)"},null,8,yo),n("text",_o,[n("tspan",{"text-anchor":"middle",x:c.boxwidth/2,dy:"0em"},x(l(it)("%H:%M")(new Date(c.entry.date))),9,wo),d[0]||(d[0]=n("line",{y:"120",x1:"5",x2:"100",stroke:"var(--color-fg)","stroke-width":"1"},null,-1)),b(Be,{cat:"evuIn",indent:5,power:c.entry.evuIn,width:c.boxwidth},null,8,["power","width"]),b(Be,{cat:"batOut",indent:5,power:c.entry.batOut,width:c.boxwidth},null,8,["power","width"]),b(Be,{cat:"pv",indent:5,power:c.entry.pv,width:c.boxwidth},null,8,["power","width"]),(i(!0),f(W,null,Q(s.value,u=>(i(),$(Be,{key:u.id,cat:"pv",name:u.name,power:u.power,indent:10,width:c.boxwidth},null,8,["name","power","width"]))),128)),b(Be,{cat:"house",indent:5,power:c.entry.house,width:c.boxwidth},null,8,["power","width"]),b(Be,{cat:"charging",indent:5,power:c.entry.charging,width:c.boxwidth},null,8,["power","width"]),(i(!0),f(W,null,Q(r.value,u=>(i(),$(Be,{key:u.id,cat:"charging",name:u.name,power:u.power,indent:10,width:c.boxwidth},null,8,["name","power","width"]))),128)),b(Be,{cat:"devices",indent:5,power:c.entry.devices,width:c.boxwidth},null,8,["power","width"]),(i(!0),f(W,null,Q(p.value,u=>(i(),$(Be,{key:u.id,cat:"devices",name:u.name,power:u.power,indent:10,width:c.boxwidth},null,8,["name","power","width"]))),128)),b(Be,{cat:"batIn",indent:5,power:c.entry.batIn,width:c.boxwidth},null,8,["power","width"]),b(Be,{cat:"evuOut",indent:5,power:c.entry.evuOut,width:c.boxwidth},null,8,["power","width"])])],8,bo))}}),xo=["origin","transform"],So=["x","height","width"],fa=140,$o=B({__name:"PgToolTips",props:{width:{},height:{},margin:{},data:{}},setup(a){const e=a,t=g(()=>{const r=Te(e.data,p=>new Date(p.date));return r[0]&&r[1]?Ft().domain(r).range([0,e.width-e.margin.right]):at().range([0,0])}),o=g(()=>{const r=Te(e.data,p=>new Date(p.date));return r[0]&&r[1]?Ft().domain(r).range([0,e.width-e.margin.right-fa]):at().range([0,0])}),s=g(()=>((y.graphMode=="day"||y.graphMode=="today")&&(t.value.range(Ze.value),ge("g#pgToolTips").selectAll("g.ttarea").select("rect").attr("x",(r,p)=>e.data.length>p?t.value(e.data[p].date):0).attr("width",e.data.length>0?(Ze.value[1]-Ze.value[0])/e.data.length:0)),"PgToolTips.vue:autozoom"));return(r,p)=>(i(),f("g",{id:"pgToolTips",origin:s.value,transform:"translate("+r.margin.left+","+r.margin.top+")"},[(i(!0),f(W,null,Q(r.data,h=>(i(),f("g",{key:h.date,class:"ttarea"},[n("rect",{x:t.value(h.date),y:"0",height:r.height,class:"ttrect",width:l(y).data.length>0?r.width/l(y).data.length:0,opacity:"1%",fill:"var(--color-charging)"},null,8,So),b(ko,{entry:h,boxwidth:fa,"x-scale":o.value},null,8,["entry","x-scale"])]))),128))],8,xo))}}),Mo={class:"d-flex justify-content-end"},Po={id:"powergraphFigure",class:"p-0 m-0"},Co=["viewBox"],Io=["transform"],Bo=["x","y"],Vo=2,Lo=B({__name:"PowerGraph",setup(a){const e=g(()=>{switch(y.graphMode){case"year":return"Jahresübersicht";case"month":return"Monatsübersicht";default:return"Leistung / Ladestand"}});function t(){let h=m.usageStackOrder+1;h>Vo&&(h=0),m.usageStackOrder=h,Mn(!0)}function o(h){const c=[[0,N.top],[ke,Ce-N.top]];h.call(Ka().scaleExtent([1,8]).translateExtent([[0,0],[ke,Ce]]).extent(c).filter(r).on("zoom",s))}function s(h){Ba.value=h.transform}function r(h){return h.preventDefault(),(!h.ctrlKey||h.type==="wheel")&&!h.button}function p(){m.zoomedWidget=1,m.zoomGraph=!m.zoomGraph}return Oe(()=>{const h=ge("svg#powergraph");o(h)}),(h,c)=>(i(),$(yt,{"full-width":!0},{title:_(()=>[R(x(e.value),1)]),buttons:_(()=>[n("div",Mo,[b(ra,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!1,onShiftLeft:l(Ct),onShiftRight:l(ea),onShiftUp:l(ta),onShiftDown:l(aa)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),l(We)?(i(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:p},c[0]||(c[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[ft(n("figure",Po,[(i(),f("svg",{id:"powergraph",class:"powergraphSvg",viewBox:"0 0 "+l(ke)+" "+l(Ce)},[b(Ir,{width:l(ke)-l(N).left-2*l(N).right,height:(l(Ce)-l(N).top-l(N).bottom)/2,margin:l(N)},null,8,["width","height","margin"]),b(Vr,{width:l(ke)-l(N).left-2*l(N).right,height:(l(Ce)-l(N).top-l(N).bottom)/2,margin:l(N),"stack-order":l(m).usageStackOrder},null,8,["width","height","margin","stack-order"]),b(Ur,{width:l(ke)-l(N).left-l(N).right,height:l(Ce)-l(N).top-l(N).bottom,margin:l(N)},null,8,["width","height","margin"]),n("g",{transform:"translate("+l(N).left+","+l(N).top+")"},[(l(y).graphMode=="day"||l(y).graphMode=="today"||l(y).graphMode=="live")&&Object.values(l(Z)).filter(d=>d.visible).length>0?(i(),$(Vt,{key:0,width:l(ke)-l(N).left-2*l(N).right,height:(l(Ce)-l(N).top-l(N).bottom)/2,margin:l(N),order:0},null,8,["width","height","margin"])):w("",!0),(l(y).graphMode=="day"||l(y).graphMode=="today"||l(y).graphMode=="live")&&Object.values(l(Z)).filter(d=>d.visible).length>1?(i(),$(Vt,{key:1,width:l(ke)-l(N).left-2*l(N).right,height:(l(Ce)-l(N).top-l(N).bottom)/2,margin:l(N),order:1},null,8,["width","height","margin"])):w("",!0),(l(y).graphMode=="day"||l(y).graphMode=="today"||l(y).graphMode=="live")&&l(he).isBatteryConfigured?(i(),$(Vt,{key:2,width:l(ke)-l(N).left-2*l(N).right,height:(l(Ce)-l(N).top-l(N).bottom)/2,margin:l(N),order:2},null,8,["width","height","margin"])):w("",!0),l(y).graphMode=="day"||l(y).graphMode=="today"||l(y).graphMode=="live"?(i(),$(qr,{key:3,width:l(ke)-l(N).left-l(N).right,height:(l(Ce)-l(N).top-l(N).bottom)/2,margin:l(N)},null,8,["width","height","margin"])):w("",!0)],8,Io),l(y).graphMode=="day"||l(y).graphMode=="today"?(i(),$($o,{key:0,width:l(ke)-l(N).left-l(N).right,height:l(Ce)-l(N).top-l(N).bottom,margin:l(N),data:l(y).data},null,8,["width","height","margin","data"])):w("",!0),n("g",{id:"button",type:"button",onClick:t},[n("text",{x:l(ke)-10,y:l(Ce)-10,color:"var(--color-menu)","text-anchor":"end"},c[1]||(c[1]=[n("tspan",{fill:"var(--color-menu)",class:"fas fa-lg"},x(""),-1)]),8,Bo)])],8,Co))],512),[[Xa,l(y).data.length>0]])]),_:1}))}}),To=j(Lo,[["__scopeId","data-v-d40bf528"]]),Oo=["id"],Ao=["x","width","height","fill"],Eo=["x","width","height"],zo=["x","y","width","height"],Do=B({__name:"EmBar",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(a){const e=a,t=g(()=>e.height-e.yScale(e.item.energy)-e.margin.top-e.margin.bottom),o=g(()=>{let r=0;return e.item.energyPv>0&&(r=e.height-e.yScale(e.item.energyPv)-e.margin.top-e.margin.bottom),r>t.value&&(r=t.value),r}),s=g(()=>{let r=0;return e.item.energyBat>0&&(r=e.height-e.yScale(e.item.energyBat)-e.margin.top-e.margin.bottom),r>t.value&&(r=t.value),r});return(r,p)=>(i(),f("g",{id:"bar-"+e.item.name,transform:"scale(1,-1) translate (0,-445)"},[n("rect",{class:"bar",x:e.xScale(r.item.name),y:"0",width:e.xScale.bandwidth(),height:t.value,fill:r.item.color},null,8,Ao),n("rect",{class:"bar",x:e.xScale(r.item.name)+e.xScale.bandwidth()/6,y:"0",width:e.xScale.bandwidth()*2/3,height:o.value,fill:"var(--color-pv)","fill-opacity":"66%"},null,8,Eo),n("rect",{class:"bar",x:e.xScale(r.item.name)+e.xScale.bandwidth()/6,y:o.value,width:e.xScale.bandwidth()*2/3,height:s.value,fill:"var(--color-battery)","fill-opacity":"66%"},null,8,zo)],8,Oo))}}),Wo={id:"emBargraph"},Go=B({__name:"EMBarGraph",props:{plotdata:{},xScale:{},yScale:{},margin:{},height:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="day"?J:T.items,h=(y.graphMode=="live"||y.graphMode=="day"?F:T.items).evuOut.energy,c=r.pv.energy;return Math.round((c-h)/c*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="day"?J:T.items,p=y.graphMode=="live"||y.graphMode=="day"?F:T.items,h=p.evuOut.energy,c=r.evuIn.energy,d=r.pv.energy,u=r.batOut.energy,k=p.batIn.energy;return Math.round((d+u-h-k)/(d+u+c-h-k)*100)}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(i(),f("g",Wo,[(i(!0),f(W,null,Q(e.plotdata,(p,h)=>(i(),f("g",{key:h},[b(Do,{item:p,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(p),autarchy:t(p)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128)),r[0]||(r[0]=n("animateTransform",{"attribute-name":"transform",type:"scale",from:"1 0",to:"1 1",begin:"0s",dur:"2s"},null,-1))]))}}),jo=["origin"],Uo=B({__name:"EMYAxis",props:{yScale:{type:[Function,Object]},width:{},fontsize:{}},setup(a){const e=a,t=g(()=>mt(e.yScale).tickFormat(r=>s(r)).ticks(6).tickSizeInner(-e.width)),o=g(()=>{const r=ge("g#emYAxis");return r.attr("class","axis").call(t.value),r.append("text").attr("y",6).attr("dy","0.71em").attr("text-anchor","end").text("energy"),r.selectAll(".tick").attr("font-size",e.fontsize),m.showGrid?r.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):r.selectAll(".tick line").attr("stroke","var(--color-bg)"),r.select(".domain").attr("stroke","var(--color-bg)"),"emYAxis.vue"});function s(r){return r>0?y.graphMode=="year"?(r/1e6).toString():(r/1e3).toString():""}return(r,p)=>(i(),f("g",{id:"emYAxis",class:"axis",origin:o.value},null,8,jo))}}),Fo=["id"],No=["x","y","font-size"],Ho=["x","y","font-size","fill"],Ro=["x","y","font-size","fill"],Jo=B({__name:"EmLabel",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(a){const e=a,t=g(()=>e.autarchy?e.yScale(e.item.energy)-25:e.yScale(e.item.energy)-10),o=g(()=>{let c=16,d=e.barcount;return d<=5?c=16:d==6?c=14:d>6&&d<=8?c=13:d==9?c=11:d==10?c=10:c=9,c}),s=g(()=>{let c=12,d=e.barcount;return d<=5?c=12:d==6?c=11:d>6&&d<=8||d==9?c=8:d==10?c=7:c=6,c});function r(c,d){return d.length>s.value?d.substring(0,s.value)+".":d}function p(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function h(){return"var(--color-pv)"}return(c,d)=>(i(),f("g",{id:"barlabel-"+e.item.name},[n("text",{x:e.xScale(c.item.name)+e.xScale.bandwidth()/2,y:t.value,"font-size":o.value,"text-anchor":"middle",fill:"var(--color-menu)"},x(l(Re)(c.item.energy,l(m).decimalPlaces,!1)),9,No),n("text",{x:e.xScale(c.item.name)+e.xScale.bandwidth()/2,y:e.yScale(c.item.energy)-10,"font-size":o.value-2,"text-anchor":"middle",fill:h()},x(p()),9,Ho),n("text",{x:e.xScale(c.item.name)+e.xScale.bandwidth()/2,y:e.height-e.margin.bottom-5,"font-size":o.value,"text-anchor":"middle",fill:c.item.color,class:H(c.item.icon.length<=2?"fas":"")},x(r(c.item.name,c.item.icon)),11,Ro)],8,Fo))}}),qo={id:"emBarLabels"},Yo=B({__name:"EMLabels",props:{plotdata:{},xScale:{},yScale:{},height:{},margin:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="today"?J:T.items,h=(y.graphMode=="live"||y.graphMode=="today"?F:T.items).evuOut.energy,c=r.pv.energy;return Math.round((c-h)/c*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="today"?J:T.items,p=y.graphMode=="live"||y.graphMode=="today"?F:T.items,h=p.evuOut.energy,c=r.evuIn.energy,d=r.pv.energy,u=r.batOut.energy,k=p.batIn.energy;return d+u-h-k>0?Math.round((d+u-h-k)/(d+u+c-h-k)*100):0}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(i(),f("g",qo,[(i(!0),f(W,null,Q(e.plotdata,(p,h)=>(i(),f("g",{key:h},[b(Jo,{item:p,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(p),autarchy:t(p)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128))]))}}),Qo={class:"d-flex justify-content-end"},Zo={id:"energymeter",class:"p-0 m-0"},Xo={viewBox:"0 0 500 500"},Ko=["transform"],es=["x"],ts={key:0},va=500,Lt=500,ba=12,as="Energie",ns=B({__name:"EnergyMeter",setup(a){const e={top:25,bottom:30,left:25,right:0},t=g(()=>{let c=Object.values(J),d=r.value;const u=T.items;let k=[];switch(m.debug&&p(),ut.value==!0&&(ut.value=!1),y.graphMode){default:case"live":case"today":k=c.concat(d);break;case"day":case"month":case"year":Object.values(u).length==0?Xe.value=!0:(Xe.value=!1,k=[u.evuIn,u.pv,u.evuOut,u.batOut,u.charging],Object.values(O).length>1&&Object.keys(O).forEach(M=>{u["cp"+M]&&k.push(u["cp"+M])}),k.push(u.devices),ne.forEach((M,A)=>{M.showInGraph&&u["sh"+A]&&k.push(u["sh"+A])}),k=k.concat([u.batIn,u.house]))}return k.filter(M=>M.energy&&M.energy>0)}),o=g(()=>kt().range([0,va-e.left-e.right]).domain(t.value.map(c=>c.name)).padding(.4)),s=g(()=>Je().range([Lt-e.bottom-e.top,15]).domain([0,Sa(t.value,c=>c.energy)])),r=g(()=>{const c=Object.values(O).length,d=[...ne.values()].filter(k=>k.configured).length;let u=F;return[...[u.evuOut,u.charging].concat(c>1?Object.values(O).map(k=>k.toPowerItem()):[]),...[u.devices].concat(d>1?[...ne.values()].filter(k=>k.configured&&k.showInGraph):[]).concat([F.batIn,F.house])]});function p(){console.debug(["source summary:",J]),console.debug(["usage details:",r.value]),console.debug(["historic summary:",T])}function h(){m.zoomedWidget=2,m.zoomGraph=!m.zoomGraph}return(c,d)=>(i(),$(yt,{"full-width":!0},{title:_(()=>[R(x(as))]),buttons:_(()=>[n("div",Qo,[b(ra,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:l(Ct),onShiftRight:l(ea),onShiftUp:l(ta),onShiftDown:l(aa)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),l(We)?(i(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:h},d[0]||(d[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[n("figure",Zo,[(i(),f("svg",Xo,[n("g",{transform:"translate("+e.left+","+e.top+")"},[b(Go,{plotdata:t.value,"x-scale":o.value,"y-scale":s.value,height:Lt,margin:e},null,8,["plotdata","x-scale","y-scale"]),b(Uo,{"y-scale":s.value,width:va,fontsize:ba,config:l(m)},null,8,["y-scale","config"]),n("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":ba},x(l(y).graphMode=="year"?"MWh":"kWh"),9,es),b(Yo,{plotdata:t.value,"x-scale":o.value,"y-scale":s.value,height:Lt,margin:e,config:l(m)},null,8,["plotdata","x-scale","y-scale","config"])],8,Ko)]))]),l(Xe)?(i(),f("p",ts,"No data")):w("",!0)]),_:1}))}}),rs=j(ns,[["__scopeId","data-v-32c82102"]]),os=["id"],ss=["y","width","fill"],ls=["y","width"],is=["y","x","width"],cs=B({__name:"EnergyBar",props:{id:{},item:{},yScale:{},xScale:{},itemHeight:{}},setup(a){const e=a,t=g(()=>e.xScale(e.item.energy)),o=g(()=>{let r=0;return e.item.energyPv>0&&(r=e.xScale(e.item.energyPv)),r>t.value&&(r=t.value),r}),s=g(()=>{let r=0;return e.item.energyBat>0&&(r=e.xScale(e.item.energyBat)),r>t.value&&(r=t.value),r});return(r,p)=>(i(),f("g",{id:`bar-${e.item.name}`},[n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2-4,x:"0",rx:"6",ry:"6",height:"12",width:t.value,fill:r.item.color},null,8,ss),n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2+10,x:"0",rx:"3",ry:"3",height:"7",width:o.value,fill:"var(--color-pv)","fill-opacity":"100%"},null,8,ls),n("rect",{class:"bar",y:e.yScale(e.id)+e.itemHeight/2+10,x:o.value,rx:"3",ry:"3",height:"7",width:s.value,fill:"var(--color-battery)","fill-opacity":"100%"},null,8,is)],8,os))}}),us={id:"emBargraph"},ds=B({__name:"BarGraph",props:{plotdata:{},yscale:{},xscale:{},itemHeight:{}},setup(a){const e=a;return(t,o)=>(i(),f("g",us,[(i(!0),f(W,null,Q(e.plotdata,(s,r)=>(i(),f("g",{key:r},[b(cs,{id:r.toString(),item:s,"x-scale":e.xscale,"y-scale":e.yscale,"item-height":t.itemHeight},null,8,["id","item","x-scale","y-scale","item-height"])]))),128))]))}}),hs=["id"],ps=["y","x","fill"],gs=["y","x"],ms=["y","x","font-size"],Tt=24,fs=B({__name:"EnergyLabel",props:{id:{},item:{},yscale:{},margin:{},width:{},itemHeight:{},autarchy:{},autText:{}},setup(a){const e=a,t=g(()=>e.yscale(e.id)+e.itemHeight/3);function o(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function s(r){return r.length>14?r.slice(0,13)+"...":r}return(r,p)=>(i(),f("g",{id:"barlabel-"+e.id},[n("text",{y:t.value,x:e.margin.left,"font-size":Tt,"text-anchor":"start",fill:r.item.color,class:H(r.item.icon.length<=2?"fas":"")},x(s(e.item.icon)),11,ps),n("text",{y:t.value,x:e.width/2+e.margin.left,"font-size":Tt,"text-anchor":"middle",fill:"var(--color-menu)"},x(l(Re)(r.item.energy,l(m).decimalPlaces,!1)),9,gs),n("text",{y:t.value,x:e.width-e.margin.right,"font-size":Tt-2,"text-anchor":"end",fill:"var(--color-pv)"},x(o()),9,ms)],8,hs))}}),vs={id:"emBarLabels"},bs=B({__name:"EnergyLabels",props:{plotdata:{},yscale:{},width:{},itemHeight:{},margin:{}},setup(a){const e=a;function t(s){if(s.name=="PV"){const r=y.graphMode=="live"||y.graphMode=="today"?J:T.items,h=(y.graphMode=="live"||y.graphMode=="today"?F:T.items).evuOut.energy,c=r.pv.energy;return Math.round((c-h)/c*100)}else if(s.name=="Netz"){const r=y.graphMode=="live"||y.graphMode=="today"?J:T.items,p=y.graphMode=="live"||y.graphMode=="today"?F:T.items,h=p.evuOut.energy,c=r.evuIn.energy,d=r.pv.energy,u=r.batOut.energy,k=p.batIn.energy;return d+u-h-k>0?Math.round((d+u-h-k)/(d+u+c-h-k)*100):0}else return s.pvPercentage}function o(s){return s.name=="PV"?"Eigen":"Aut"}return(s,r)=>(i(),f("g",vs,[(i(!0),f(W,null,Q(e.plotdata,(p,h)=>(i(),f("g",{key:h},[b(fs,{id:h.toString(),item:p,yscale:e.yscale,margin:e.margin,width:e.width,"item-height":s.itemHeight,"aut-text":o(p),autarchy:t(p)},null,8,["id","item","yscale","margin","width","item-height","aut-text","autarchy"])]))),128))]))}}),ys={class:"d-flex justify-content-end"},_s={id:"energymeter",class:"p-0 m-0"},ws=["viewBox"],ks=["transform"],xs=["x"],Ss={key:0},ya=500,Ot=60,$s=12,Ms="Energie",Ps=B({__name:"EnergyMeter2",setup(a){const e={top:0,bottom:30,left:0,right:0},t=g(()=>o.value.length*Ot+e.top+e.bottom),o=g(()=>{let u=Object.values(J),k=p.value;const M=T.items;let A=[];switch(m.debug&&c(),ut.value==!0&&(ut.value=!1),y.graphMode){default:case"live":case"today":A=h(u).concat(k);break;case"day":case"month":case"year":Object.values(M).length==0?Xe.value=!0:(Xe.value=!1,A=[M.evuIn,M.pv,M.evuOut,M.batOut,M.charging],Object.values(O).length>1&&Object.keys(O).forEach(G=>{M["cp"+G]&&A.push(M["cp"+G])}),A.push(M.devices),ne.forEach((G,q)=>{G.showInGraph&&M["sh"+q]&&A.push(M["sh"+q])}),A=A.concat([M.batIn,M.house]))}return A.filter(G=>G.energy&&G.energy>0)}),s=g(()=>Je().range([0,ya-e.left-e.right]).domain([0,Sa(o.value,u=>u.energy)])),r=g(()=>kt().range([e.top,t.value-e.bottom]).domain(o.value.map((u,k)=>k.toString())).padding(.1)),p=g(()=>{const u=Object.values(O).length,k=[...ne.values()].filter(A=>A.configured).length;let M=F;return[...[M.evuOut,M.charging].concat(u>1?Object.values(O).map(A=>A.toPowerItem()):[]),...[M.devices].concat(k>1?[...ne.values()].filter(A=>A.configured&&A.showInGraph):[]).concat([F.batIn,F.house])]});function h(u){let k=0;return be.value.size>1&&be.value.forEach(M=>{u.splice(2+k++,0,{name:M.name,type:K.inverter,power:M.power,energy:M.energy,energyPv:0,energyBat:0,pvPercentage:0,color:M.color,icon:M.name,showInGraph:!0})}),se.value.size>1&&se.value.forEach(M=>{u.splice(3+k++,0,{name:M.name,type:K.battery,power:M.power,energy:M.dailyYieldExport,energyPv:0,energyBat:0,pvPercentage:0,color:M.color,icon:M.name,showInGraph:!0})}),u}function c(){console.debug(["source summary:",J]),console.debug(["usage details:",p.value]),console.debug(["historic summary:",T])}function d(){m.zoomedWidget=2,m.zoomGraph=!m.zoomGraph}return(u,k)=>(i(),$(yt,{"full-width":!0},{title:_(()=>[R(x(Ms))]),buttons:_(()=>[n("div",ys,[b(ra,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:l(Ct),onShiftRight:l(ea),onShiftUp:l(ta),onShiftDown:l(aa)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),l(We)?(i(),f("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:d},k[0]||(k[0]=[n("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)]))):w("",!0)])]),default:_(()=>[n("figure",_s,[(i(),f("svg",{viewBox:"0 0 500 "+t.value},[n("g",{transform:"translate("+e.left+","+e.top+")"},[b(ds,{plotdata:o.value,xscale:s.value,yscale:r.value,"item-height":Ot},null,8,["plotdata","xscale","yscale"]),n("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":$s},x(l(y).graphMode=="year"?"MWh":"kWh"),9,xs),b(bs,{plotdata:o.value,yscale:r.value,width:ya,"item-height":Ot,margin:e},null,8,["plotdata","yscale"])],8,ks)],8,ws))]),l(Xe)?(i(),f("p",Ss,"No data")):w("",!0)]),_:1}))}}),Cs=j(Ps,[["__scopeId","data-v-dc8e49b2"]]),Is={class:"d-flex flex-column align-items-center justify-content-start infoitem"},Bs=B({__name:"InfoItem",props:{heading:{},small:{type:Boolean}},setup(a){const e=a,t=g(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-small)"}),o=g(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-normal)"}),s=g(()=>e.small?"mt-0":"mt-1");return(r,p)=>(i(),f("span",Is,[n("span",{class:H(["d-flex heading",s.value]),style:te(t.value)},x(e.heading),7),n("span",{class:"d-flex my-0 me-0 align-items-center content",style:te(o.value)},[de(r.$slots,"default",{},void 0,!0)],4)]))}}),ee=j(Bs,[["__scopeId","data-v-f6af00e8"]]),Vs={class:"d-flex justify-content-between align-items-center titlerow"},Ls={class:"buttonarea d-flex float-right justify-content-end align-items-center"},Ts={class:"contentrow grid-col-12"},Os=B({__name:"WbSubwidget",props:{titlecolor:{},fullwidth:{type:Boolean},small:{type:Boolean}},setup(a){const e=a,t=g(()=>{let s={"font-weight":"bold",color:"var(--color-fg)","font-size":"var(--font-normal)"};return e.titlecolor&&(s.color=e.titlecolor),e.small&&(s["font-size"]="var(--font-verysmall)"),s}),o=g(()=>e.fullwidth?"grid-col-12":"grid-col-4");return(s,r)=>(i(),f("div",{class:H(["wb-subwidget-noborder px-0 pe-1 my-0 pb-2",o.value])},[n("div",Vs,[n("div",{class:"d-flex widgetname p-0 m-0",style:te(t.value)},[de(s.$slots,"title",{},void 0,!0)],4),n("div",Ls,[de(s.$slots,"buttons",{},void 0,!0)])]),n("div",Ts,[de(s.$slots,"default",{},void 0,!0)])],2))}}),nt=j(Os,[["__scopeId","data-v-2aa2b95f"]]),As={class:"grid-col-12 mt-0 mb-0 px-0 py-0 configitem"},Es={class:"titlecolumn m-0 p-0 d-flex justify-content-between align-items-baseline"},zs={class:"d-flex justify-content-end align-items-baseline"},Ds={class:"d-flex align-items-center"},Ws={class:"d-flex"},Gs={class:"d-flex justify-content-end m-0 p-0"},js={class:"ms-1 mb-2 p-0 pt-2 d-flex justify-content-stretch align-items-center contentrow"},Us=B({__name:"ConfigItem",props:{title:{},infotext:{},icon:{},fullwidth:{type:Boolean}},setup(a){const e=a,t=Y(!1);function o(){t.value=!t.value}const s=g(()=>{let r={color:"var(--color-charging)"};return t.value&&(r.color="var(--color-battery)"),r});return(r,p)=>(i(),$(nt,{fullwidth:!!r.fullwidth},{default:_(()=>[n("div",As,[n("div",Es,[n("span",zs,[n("span",{class:"d-flex align-items-baseline m-0 p-0",onClick:o},[e.icon?(i(),f("i",{key:0,class:H(["fa-solid fa-sm m-0 p-0 me-2 item-icon",e.icon])},null,2)):w("",!0),R(" "+x(r.title),1)])]),n("span",Ds,[n("span",Ws,[e.infotext?(i(),f("i",{key:0,class:"fa-solid fa-sm fa-circle-question ms-4 me-2",style:te(s.value),onClick:o},null,4)):w("",!0)]),n("span",Gs,[de(r.$slots,"inline-item",{},void 0,!0)])])]),t.value?(i(),f("p",{key:0,class:"infotext shadow m-0 ps-2 mb-1 p-1",onClick:o},[p[0]||(p[0]=n("i",{class:"me-1 fa-solid fa-sm fa-circle-info"},null,-1)),R(" "+x(r.infotext),1)])):w("",!0),n("div",js,[de(r.$slots,"default",{},void 0,!0)])])]),_:3},8,["fullwidth"]))}}),U=j(Us,[["__scopeId","data-v-25ab3fbb"]]),Fs={class:"d-flex flex-column rangeinput"},Ns={class:"d-flex flex-fill justify-content-between align-items-center"},Hs={class:"d-flex flex-fill flex-column justify-content-center m-0 p-0"},Rs={key:0,id:"rangeIndicator",class:"rangeIndicator"},Js={viewBox:"0 0 100 2"},qs=["width"],Ys=["x","width"],Qs=["x","width"],Zs=["id","min","max","step"],Xs={class:"d-flex justify-content-between align-items-center"},Ks={class:"minlabel ps-4"},el={class:"valuelabel"},tl={class:"maxlabel pe-4"},al=B({__name:"RangeInput",props:{id:{},min:{},max:{},step:{},unit:{},decimals:{},showSubrange:{type:Boolean},subrangeMin:{},subrangeMax:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=t.decimals??0,s=e,r=g({get(){return Math.round(t.modelValue*Math.pow(10,o))/Math.pow(10,o)},set(k){s("update:modelValue",k)}});function p(){r.value>t.min&&(r.value=Math.round((r.value-t.step)*Math.pow(10,o))/Math.pow(10,o))}function h(){r.valueJe().domain([t.min,t.max]).range([0,100])),d=g(()=>c.value(t.subrangeMin?t.subrangeMin:0)),u=g(()=>t.subrangeMin&&t.subrangeMax?c.value(t.subrangeMax)-c.value(t.subrangeMin):0);return(k,M)=>(i(),f("span",Fs,[n("span",Ns,[n("span",{type:"button",class:"minusButton",onClick:p},M[1]||(M[1]=[n("i",{class:"fa fa-xl fa-minus-square me-2"},null,-1)])),n("div",Hs,[t.showSubrange?(i(),f("figure",Rs,[(i(),f("svg",Js,[n("g",null,[n("rect",{class:"below",x:0,y:"0",width:d.value,height:"2",rx:"1",ry:"1",fill:"var(--color-evu)"},null,8,qs),n("rect",{class:"bar",x:d.value,y:"0",width:u.value,height:"2",rx:"1",ry:"1",fill:"var(--color-charging)"},null,8,Ys),n("rect",{class:"above",x:d.value+u.value,y:"0",width:d.value,height:"2",rx:"1",ry:"1",fill:"var(--color-pv)"},null,8,Qs)])]))])):w("",!0),ft(n("input",{id:k.id,"onUpdate:modelValue":M[0]||(M[0]=A=>r.value=A),type:"range",class:"form-range flex-fill",min:k.min,max:k.max,step:k.step},null,8,Zs),[[en,r.value,void 0,{number:!0}]])]),n("span",{type:"button",class:"plusButton",onClick:h},M[2]||(M[2]=[n("i",{class:"fa fa-xl fa-plus-square ms-2"},null,-1)]))]),n("span",Xs,[n("span",Ks,x(k.min),1),n("span",el,x(r.value)+" "+x(k.unit),1),n("span",tl,x(k.max),1)])]))}}),we=j(al,[["__scopeId","data-v-af945965"]]),nl=["id","value"],rl=B({__name:"RadioInput2",props:{options:{},modelValue:{},columns:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=g({get(){return t.modelValue},set(h){o("update:modelValue",h)}});function r(h){const c=t.options[h][2]||"var(--color-fg)",d="var(--color-bg)";return t.options[h][1]==s.value?{color:d,background:t.options[h][2]||"var(--color-menu)"}:{color:c,background:d}}function p(h){let c=h.target;for(;c&&!c.value&&c.parentElement;)c=c.parentElement;c.value&&(typeof t.options[0][1]=="number"?s.value=Number(c.value):s.value=c.value)}return(h,c)=>(i(),f("div",{class:"buttongrid",style:te({"grid-template-columns":"repeat("+(t.columns||3)+", 1fr)"})},[(i(!0),f(W,null,Q(t.options,(d,u)=>(i(),f("button",{id:"radio-"+d[1],key:u,class:H(["btn btn-outline-secondary radiobutton me-0 mb-0 px-2",d[1]==s.value?"active":""]),value:d[1],style:te(r(u)),onClick:p},[n("span",{style:te(r(u))},[d[3]?(i(),f("i",{key:0,class:H(["fa-solid",d[3]])},null,2)):w("",!0),R(" "+x(d[0]),1)],4)],14,nl))),128))],4))}}),xe=j(rl,[["__scopeId","data-v-88c9ea7a"]]),ol={class:"mt-2"},sl={key:0},ll=B({__name:"ConfigInstant",props:{chargepoint:{}},setup(a){const t=Y(a.chargepoint),o=g({get(){return t.value.instantMaxEnergy/1e3},set(s){t.value.instantMaxEnergy=s*1e3}});return(s,r)=>(i(),f("div",ol,[r[5]||(r[5]=n("p",{class:"heading ms-1"},"Sofortladen:",-1)),b(U,{title:"Stromstärke",icon:"fa-bolt",fullwidth:!0},{default:_(()=>[b(we,{id:"targetCurrent",modelValue:t.value.instantTargetCurrent,"onUpdate:modelValue":r[0]||(r[0]=p=>t.value.instantTargetCurrent=p),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1}),b(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[b(xe,{modelValue:t.value.instantTargetPhases,"onUpdate:modelValue":r[1]||(r[1]=p=>t.value.instantTargetPhases=p),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),t.value.instantChargeLimitMode!="none"?(i(),f("hr",sl)):w("",!0),b(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[b(xe,{modelValue:t.value.instantChargeLimitMode,"onUpdate:modelValue":r[2]||(r[2]=p=>t.value.instantChargeLimitMode=p),options:l(Qt).map(p=>[p.name,p.id])},null,8,["modelValue","options"])]),_:1}),t.value.instantChargeLimitMode=="soc"?(i(),$(U,{key:1,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[b(we,{id:"maxSoc",modelValue:t.value.instantTargetSoc,"onUpdate:modelValue":r[3]||(r[3]=p=>t.value.instantTargetSoc=p),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.instantChargeLimitMode=="amount"?(i(),$(U,{key:2,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[b(we,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=p=>o.value=p),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0)]))}}),il=j(ll,[["__scopeId","data-v-de6b86dd"]]),cl={class:"form-check form-switch"},ce=B({__name:"SwitchInput",props:{modelValue:{type:Boolean},onColor:{},offColor:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=g({get(){return t.modelValue},set(p){o("update:modelValue",p)}}),r=g(()=>s.value?{"background-color":"green"}:{"background-color":"white"});return(p,h)=>(i(),f("div",cl,[ft(n("input",{"onUpdate:modelValue":h[0]||(h[0]=c=>s.value=c),class:"form-check-input",type:"checkbox",role:"switch",style:te(r.value)},null,4),[[$a,s.value]])]))}}),ul={class:"pt-2 d-flex flex-column"},dl={class:"subconfigstack grid-col-12"},hl={key:0,class:"subconfig subgrid"},pl={key:0,class:"subconfigstack"},gl={class:"subconfig subgrid"},ml={class:"subconfig subgrid"},fl={class:"subconfig subgrid"},vl=B({__name:"ConfigPv",props:{chargepoint:{}},setup(a){const t=Y(a.chargepoint),o=g({get(){return t.value.pvMaxEnergy/1e3},set(p){t.value.pvMaxEnergy=p*1e3}}),s=g({get(){return t.value.pvMinCurrent>5},set(p){p?t.value.pvMinCurrent=6:t.value.pvMinCurrent=0}}),r=g({get(){return t.value.pvMinSoc>0},set(p){p?t.value.pvMinSoc=50:t.value.pvMinSoc=0}});return(p,h)=>(i(),f("div",ul,[h[16]||(h[16]=n("div",{class:"heading ms-1"},"PV-Laden:",-1)),b(U,{title:"Minimaler Ladestrom",icon:"fa-bolt",infotext:l(qe).minpv,fullwidth:!0},{"inline-item":_(()=>[b(ce,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=c=>s.value=c)},null,8,["modelValue"])]),default:_(()=>[n("div",dl,[s.value?(i(),f("div",hl,[h[11]||(h[11]=n("span",{class:"subconfigtitle grid-col-1"},"Stärke:",-1)),b(we,{id:"minCurrent",modelValue:t.value.pvMinCurrent,"onUpdate:modelValue":h[1]||(h[1]=c=>t.value.pvMinCurrent=c),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])])):w("",!0)])]),_:1},8,["infotext"]),b(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[b(xe,{modelValue:t.value.pvTargetPhases,"onUpdate:modelValue":h[2]||(h[2]=c=>t.value.pvTargetPhases=c),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),b(U,{title:"Mindest-Ladestand",icon:"fa-battery-half",infotext:l(qe).minsoc,fullwidth:!0},{"inline-item":_(()=>[b(ce,{modelValue:r.value,"onUpdate:modelValue":h[3]||(h[3]=c=>r.value=c),class:"grid-col-3"},null,8,["modelValue"])]),default:_(()=>[r.value?(i(),f("div",pl,[n("div",gl,[h[12]||(h[12]=n("span",{class:"subconfigtitle grid-col-1"},"SoC:",-1)),b(we,{id:"minSoc",modelValue:t.value.pvMinSoc,"onUpdate:modelValue":h[4]||(h[4]=c=>t.value.pvMinSoc=c),class:"grid-col-2",min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),n("div",ml,[h[13]||(h[13]=n("span",{class:"subconfigtitle grid-col-1"},"Ladestrom:",-1)),b(we,{id:"minSocCurrent",modelValue:t.value.pvMinSocCurrent,"onUpdate:modelValue":h[5]||(h[5]=c=>t.value.pvMinSocCurrent=c),class:"grid-col-2",min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),n("div",fl,[h[14]||(h[14]=n("span",{class:"subconfigtitle grid-col-1"},"Phasen:",-1)),b(xe,{modelValue:t.value.pvMinSocPhases,"onUpdate:modelValue":h[6]||(h[6]=c=>t.value.pvMinSocPhases=c),class:"grid-col-1",columns:2,options:[["1",1],["Maximum",3]]},null,8,["modelValue"])]),h[15]||(h[15]=n("hr",{class:"grid-col-3"},null,-1))])):w("",!0)]),_:1},8,["infotext"]),b(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[b(xe,{modelValue:t.value.pvChargeLimitMode,"onUpdate:modelValue":h[7]||(h[7]=c=>t.value.pvChargeLimitMode=c),options:l(Qt).map(c=>[c.name,c.id])},null,8,["modelValue","options"])]),_:1}),t.value.pvChargeLimitMode=="soc"?(i(),$(U,{key:0,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[b(we,{id:"maxSoc",modelValue:t.value.pvTargetSoc,"onUpdate:modelValue":h[8]||(h[8]=c=>t.value.pvTargetSoc=c),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.pvChargeLimitMode=="amount"?(i(),$(U,{key:1,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[b(we,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":h[9]||(h[9]=c=>o.value=c),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0),b(U,{title:"Einspeisegrenze beachten",icon:"fa-hand",fullwidth:!0},{"inline-item":_(()=>[b(ce,{modelValue:t.value.pvFeedInLimit,"onUpdate:modelValue":h[10]||(h[10]=c=>t.value.pvFeedInLimit=c)},null,8,["modelValue"])]),_:1})]))}}),bl=j(vl,[["__scopeId","data-v-d7ee4d2a"]]),yl={class:"plandetails d-flex flex-cloumn"},_l={class:"heading"},wl={key:0},kl=B({__name:"ScheduleDetails",props:{plan:{}},emits:["close"],setup(a){const e=a,t=g(()=>e.plan.limit.selected=="soc"?`Lade bis ${e.plan.time} auf ${e.plan.limit.soc_scheduled}% (maximal ${e.plan.limit.soc_limit}% mit PV)`:e.plan.limit.selected=="amount"?`Energiemenge: ${Re(e.plan.limit.amount)}`:"Keine Begrenzung"),o=g(()=>{let r="Wiederholung ";switch(e.plan.frequency.selected){case"daily":r+="täglich";break;case"once":r+=`einmal (${e.plan.frequency.once})`;break;case"weekly":r+="wöchentlich "+s.value;break;default:r+="unbekannt"}return r}),s=g(()=>{const r=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"];let p="(";return e.plan.frequency.weekly.forEach((h,c)=>{h&&(p+=`${r[c]} `)}),p=p.trim(),p+=")",p});return(r,p)=>(i(),f("div",yl,[p[1]||(p[1]=n("hr",null,null,-1)),n("span",_l,"Details für "+x(e.plan.name)+":",1),n("ul",null,[n("li",null,x(t.value),1),n("li",null,x(o.value),1),e.plan.et_active?(i(),f("li",wl,"Preisbasiert laden")):w("",!0)]),n("button",{class:"btn btn-outline-secondary btn-sm",onClick:p[0]||(p[0]=h=>r.$emit("close"))}," Ok ")]))}}),xl=j(kl,[["__scopeId","data-v-2f5cb5c1"]]),Sl={key:0,class:"table table-borderless"},$l={class:"tablecell left"},Ml=["onClick"],Pl={class:"tablecell left"},Cl={class:"tablecell"},Il={class:"tablecell"},Bl={class:"tablecell"},Vl={class:"tablecell right"},Ll={key:1,class:"ms-1"},Tl={key:2},Ol=B({__name:"ConfigScheduled",props:{chargePoint:{}},setup(a){const e=Y(!1),t={daily:"Täglich",once:"Einmal",weekly:"Woche"},o=a,s=g(()=>{var c,d;return((d=(c=o.chargePoint)==null?void 0:c.chargeTemplate)==null?void 0:d.chargemode.scheduled_charging.plans)??[]});function r(c){return s.value[c].time}function p(c){return{color:s.value[c].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function h(c){o.chargePoint.chargeTemplate.chargemode.scheduled_charging.plans[c].active=!s.value[c].active,le(o.chargePoint.id)}return(c,d)=>(i(),f(W,null,[d[3]||(d[3]=n("p",{class:"heading ms-1 pt-2"},"Pläne für Zielladen:",-1)),s.value.length>0?(i(),f("table",Sl,[d[2]||(d[2]=n("thead",null,[n("tr",null,[n("th",{class:"tableheader left"}),n("th",{class:"tableheader left"},"Plan"),n("th",{class:"tableheader"},"Zeit"),n("th",{class:"tableheader"},"Ziel"),n("th",{class:"tableheader"},"Wiederh."),n("th",{class:"tableheader right"})])],-1)),n("tbody",null,[(i(!0),f(W,null,Q(s.value,(u,k)=>{var M;return i(),f("tr",{key:k,class:H(u.active?"text-bold":"text-normal")},[n("td",$l,[((M=o.chargePoint.chargeTemplate)==null?void 0:M.id)!=null?(i(),f("a",{key:0,onClick:A=>h(k)},[n("span",{class:H([u.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:te(p(k)),type:"button"},null,6)],8,Ml)):w("",!0)]),n("td",Pl,x(u.name),1),n("td",Cl,x(r(k)),1),n("td",Il,x(u.limit.selected=="soc"?u.limit.soc_scheduled+"%":l(Re)(u.limit.amount,0)),1),n("td",Bl,x(t[u.frequency.selected]),1),n("td",Vl,[n("i",{class:"me-1 fa-solid fa-sm fa-circle-info",onClick:d[0]||(d[0]=A=>e.value=!e.value)})])],2)}),128))])])):(i(),f("p",Ll," Pläne für das Zielladen können in den Einstellungen des Ladeprofils angelegt werden . ")),e.value?(i(),f("div",Tl,[(i(!0),f(W,null,Q(s.value,u=>(i(),$(xl,{key:u.id,plan:u,onClose:d[1]||(d[1]=k=>e.value=!1)},null,8,["plan"]))),128))])):w("",!0)],64))}}),Al=j(Ol,[["__scopeId","data-v-08df44d8"]]),El={class:"plandetails d-flex flex-cloumn"},zl={class:"heading"},Dl=B({__name:"TimePlanDetails",props:{plan:{}},emits:["close"],setup(a){const e=a,t=g(()=>`Lade von ${e.plan.time[0]} bis ${e.plan.time[1]} mit ${e.plan.current}A`),o=g(()=>e.plan.limit.selected=="soc"?`Lade bis maximal ${e.plan.limit.soc}%`:e.plan.limit.selected=="amount"?`Lade maximal ${Re(e.plan.limit.amount)}`:"Keine Begrenzung"),s=g(()=>{let p="Wiederholung ";switch(e.plan.frequency.selected){case"daily":p+="täglich";break;case"once":p+=`einmal (${e.plan.frequency.once})`;break;case"weekly":p+="wöchentlich "+r.value;break;default:p+="unbekannt"}return p}),r=g(()=>{const p=["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"];let h="(";return e.plan.frequency.weekly.forEach((c,d)=>{c&&(h+=`${p[d]} `)}),h=h.trim(),h+=")",h});return(p,h)=>(i(),f("div",El,[h[1]||(h[1]=n("hr",null,null,-1)),n("span",zl,"Details für "+x(e.plan.name)+":",1),n("ul",null,[n("li",null,x(t.value),1),n("li",null,x(o.value),1),n("li",null,x(s.value),1)]),n("button",{class:"btn btn-outline-secondary btn-sm",onClick:h[0]||(h[0]=c=>p.$emit("close"))}," Ok ")]))}}),Wl=j(Dl,[["__scopeId","data-v-eaa44cb2"]]),Gl={class:"table table-borderless"},jl={class:"tablecell left"},Ul=["onClick"],Fl={class:"tablecell"},Nl={class:"tablecell"},Hl={class:"tablecell"},Rl={class:"tablecell"},Jl={class:"tablecell right"},ql={key:0},Yl=B({__name:"ConfigTimed",props:{chargePoint:{}},setup(a){const e=a,t=Y(!1),o=e.chargePoint,s={daily:"Täglich",once:"Einmal",weekly:"Woche"},r=g(()=>{var c,d;return((d=(c=e.chargePoint)==null?void 0:c.chargeTemplate)==null?void 0:d.time_charging.plans)??[]});function p(c){return{color:r.value[c].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function h(c){e.chargePoint.chargeTemplate.time_charging.plans[c].active=!r.value[c].active,le(e.chargePoint.id)}return(c,d)=>(i(),f(W,null,[b(U,{title:"Zeitplan aktiv",icon:"fa-clock",fullwidth:!0},{"inline-item":_(()=>[b(ce,{modelValue:l(o).timedCharging,"onUpdate:modelValue":d[0]||(d[0]=u=>l(o).timedCharging=u)},null,8,["modelValue"])]),_:1}),d[4]||(d[4]=n("p",{class:"heading ms-1 pt-2"},"Zeitpläne:",-1)),n("table",Gl,[d[3]||(d[3]=n("thead",null,[n("tr",null,[n("th",{class:"tableheader left"}),n("th",{class:"tableheader"},"Von"),n("th",{class:"tableheader"},"Bis"),n("th",{class:"tableheader"},"Strom"),n("th",{class:"tableheader"},"Wiederh."),n("th",{class:"tableheader right"})])],-1)),n("tbody",null,[(i(!0),f(W,null,Q(r.value,(u,k)=>{var M;return i(),f("tr",{key:k,class:H(u.active?"text-bold":"text-normal")},[n("td",jl,[((M=e.chargePoint.chargeTemplate)==null?void 0:M.id)!=null?(i(),f("span",{key:0,onClick:A=>h(k)},[n("span",{class:H([u.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:te(p(k)),type:"button"},null,6)],8,Ul)):w("",!0)]),n("td",Fl,x(u.time[0]),1),n("td",Nl,x(u.time[1]),1),n("td",Hl,x(u.current)+" A",1),n("td",Rl,x(s[u.frequency.selected]),1),n("td",Jl,[n("i",{class:"me-1 fa-solid fa-sm fa-circle-info",onClick:d[1]||(d[1]=A=>t.value=!t.value)})])],2)}),128))])]),t.value?(i(),f("div",ql,[(i(!0),f(W,null,Q(r.value,u=>(i(),$(Wl,{key:u.id,plan:u,onClose:d[2]||(d[2]=k=>t.value=!1)},null,8,["plan"]))),128))])):w("",!0)],64))}}),Ql=j(Yl,[["__scopeId","data-v-543e8ca2"]]),Zl={class:"providername ms-1"},Xl={class:"container"},Kl={id:"pricechart",class:"p-0 m-0"},ei={viewBox:"0 0 400 300"},ti=["id","origin","transform"],ai={key:0,class:"p-3"},ni={key:1,class:"d-flex justify-content-end"},ri=["disabled"],rt=400,_a=250,wa=12,oi=B({__name:"PriceChart",props:{chargepoint:{},globalview:{type:Boolean}},setup(a){const e=a;let t=e.chargepoint?Y(e.chargepoint.etMaxPrice):Y(0);const o=Y(!1),s=Y(e.chargepoint),r=g({get(){return t.value},set(D){t.value=D,o.value=!0}});function p(){s.value&&(O[s.value.id].etMaxPrice=r.value),o.value=!1}const h=Y(!1),c={top:0,bottom:15,left:20,right:5},d=g(()=>{let D=[];return oe.etPriceList.size>0&&oe.etPriceList.forEach((X,Ae)=>{D.push([Ae,X])}),D}),u=g(()=>d.value.length>1?(rt-c.left-c.right)/d.value.length-1:0),k=g(()=>o.value?{background:"var(--color-charging)"}:{background:"var(--color-menu)"}),M=g(()=>{let D=Te(d.value,X=>X[0]);return D[1]&&(D[1]=new Date(D[1]),D[1].setTime(D[1].getTime()+36e5)),at().range([c.left,rt-c.right]).domain(D)}),A=g(()=>{let D=[0,0];return d.value.length>0?(D=Te(d.value,X=>X[1]),D[0]=Math.floor(D[0]-1),D[1]=Math.floor(D[1]+1)):D=[0,0],D}),G=g(()=>Je().range([_a-c.bottom,0]).domain(A.value)),q=g(()=>{const D=He(),X=[[c.left,G.value(r.value)],[rt-c.right,G.value(r.value)]];return D(X)}),I=g(()=>{const D=He(),X=[[c.left,G.value(m.lowerPriceBound)],[rt-c.right,G.value(m.lowerPriceBound)]];return D(X)}),P=g(()=>{const D=He(),X=[[c.left,G.value(m.upperPriceBound)],[rt-c.right,G.value(m.upperPriceBound)]];return D(X)}),V=g(()=>{const D=He(),X=[[c.left,G.value(0)],[rt-c.right,G.value(0)]];return D(X)}),S=g(()=>pt(M.value).ticks(6).tickSize(5).tickFormat(it("%H:%M"))),C=g(()=>mt(G.value).ticks(A.value[1]-A.value[0]).tickSizeInner(-375).tickFormat(D=>D%5!=0?"":D.toString())),z=g(()=>{h.value==!0;const D=ge("g#"+E.value);D.selectAll("*").remove(),D.selectAll("bar").data(d.value).enter().append("g").append("rect").attr("class","bar").attr("x",Ue=>M.value(Ue[0])).attr("y",Ue=>G.value(Ue[1])).attr("width",u.value).attr("height",Ue=>G.value(A.value[0])-G.value(Ue[1])).attr("fill",Ue=>Ue[1]<=r.value?"var(--color-charging)":"var(--color-axis)");const Ae=D.append("g").attr("class","axis").call(S.value);Ae.attr("transform","translate(0,"+(_a-c.bottom)+")"),Ae.selectAll(".tick").attr("font-size",wa).attr("color","var(--color-bg)"),Ae.selectAll(".tick line").attr("stroke","var(--color-fg)").attr("stroke-width","0.5"),Ae.select(".domain").attr("stroke","var(--color-bg");const _t=D.append("g").attr("class","axis").call(C.value);return _t.attr("transform","translate("+c.left+",0)"),_t.selectAll(".tick").attr("font-size",wa).attr("color","var(--color-bg)"),_t.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",Ue=>Ue%5==0?"2":"0.5"),_t.select(".domain").attr("stroke","var(--color-bg)"),A.value[0]<0&&D.append("path").attr("d",V.value).attr("stroke","var(--color-fg)"),D.append("path").attr("d",I.value).attr("stroke","green"),D.append("path").attr("d",P.value).attr("stroke","red"),D.append("path").attr("d",q.value).attr("stroke","yellow"),"PriceChart.vue"}),E=g(()=>e.chargepoint?"priceChartCanvas"+e.chargepoint.id:"priceChartCanvasGlobal"),L=g(()=>{let D=[];return oe.etPriceList.forEach(X=>{D.push(X)}),D.sort((X,Ae)=>X-Ae)});function re(){let D=L.value[0];for(let X of L.value){if(X>=r.value)break;D=X}r.value=D}function $e(){let D=L.value[0];for(let X of L.value)if(X>r.value){D=X;break}else D=X;r.value=D}return Oe(()=>{h.value=!h.value}),(D,X)=>(i(),f(W,null,[n("p",Zl,"Anbieter: "+x(l(oe).etProvider),1),X[3]||(X[3]=n("hr",null,null,-1)),n("div",Xl,[n("figure",Kl,[(i(),f("svg",ei,[n("g",{id:E.value,origin:z.value,transform:"translate("+c.top+","+c.right+")"},null,8,ti)]))])]),D.chargepoint!=null?(i(),f("div",ai,[b(we,{id:"pricechart_local",modelValue:r.value,"onUpdate:modelValue":X[0]||(X[0]=Ae=>r.value=Ae),min:Math.floor(L.value[0]-1),max:Math.ceil(L.value[L.value.length-1]+1),step:.1,decimals:2,"show-subrange":!0,"subrange-min":L.value[0],"subrange-max":L.value[L.value.length-1],unit:"ct"},null,8,["modelValue","min","max","subrange-min","subrange-max"])])):w("",!0),n("div",{class:"d-flex justify-content-between px-3 pb-2 pt-0 mt-0"},[n("button",{type:"button",class:"btn btn-sm jumpbutton",onClick:re},X[1]||(X[1]=[n("i",{class:"fa fa-sm fa-arrow-left"},null,-1)])),n("button",{type:"button",class:"btn btn-sm jumpbutton",onClick:$e},X[2]||(X[2]=[n("i",{class:"fa fa-sm fa-arrow-right"},null,-1)]))]),D.chargepoint!=null?(i(),f("div",ni,[n("span",{class:"me-3 pt-0",onClick:p},[n("button",{type:"button",class:"btn btn-secondary confirmButton",style:te(k.value),disabled:!o.value}," Bestätigen ",12,ri)])])):w("",!0)],64))}}),za=j(oi,[["__scopeId","data-v-28b81885"]]),si={class:"pt-2 d-flex flex-column"},li={class:"subconfigstack grid-col-12"},ii={class:"subconfig subgrid"},ci=B({__name:"ConfigEco",props:{chargepoint:{}},setup(a){const t=Y(a.chargepoint),o=g({get(){return t.value.ecoMaxEnergy/1e3},set(s){t.value.ecoMaxEnergy=s*1e3}});return(s,r)=>(i(),f("div",si,[r[6]||(r[6]=n("div",{class:"heading ms-1"},"Eco-Laden:",-1)),l(oe).active?(i(),$(za,{key:0,chargepoint:t.value},null,8,["chargepoint"])):w("",!0),l(oe).active?(i(),$(U,{key:1,title:"Minimaler Ladestrom unter der Preisgrenze:",icon:"fa-bolt",fullwidth:!0},{default:_(()=>[n("div",li,[n("div",ii,[r[5]||(r[5]=n("span",{class:"subconfigtitle grid-col-1"},"Stärke:",-1)),b(we,{id:"minCurrent",modelValue:t.value.ecoMinCurrent,"onUpdate:modelValue":r[0]||(r[0]=p=>t.value.ecoMinCurrent=p),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])])])]),_:1})):w("",!0),b(U,{title:"Anzahl Phasen",icon:"fa-plug",fullwidth:!0},{default:_(()=>[b(xe,{modelValue:t.value.ecoTargetPhases,"onUpdate:modelValue":r[1]||(r[1]=p=>t.value.ecoTargetPhases=p),options:[["1",1],["Maximum",3],["Auto",0]]},null,8,["modelValue"])]),_:1}),b(U,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:_(()=>[b(xe,{modelValue:t.value.ecoChargeLimitMode,"onUpdate:modelValue":r[2]||(r[2]=p=>t.value.ecoChargeLimitMode=p),options:l(Qt).map(p=>[p.name,p.id])},null,8,["modelValue","options"])]),_:1}),t.value.ecoChargeLimitMode=="soc"?(i(),$(U,{key:2,title:"Maximaler Ladestand",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[b(we,{id:"maxSoc",modelValue:t.value.ecoTargetSoc,"onUpdate:modelValue":r[3]||(r[3]=p=>t.value.ecoTargetSoc=p),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):w("",!0),t.value.ecoChargeLimitMode=="amount"?(i(),$(U,{key:3,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:_(()=>[b(we,{id:"maxEnergy",modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=p=>o.value=p),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):w("",!0)]))}}),ui=j(ci,[["__scopeId","data-v-106a9fca"]]),di={class:"settingsheader mt-2 ms-1"},hi=B({__name:"ConfigGeneral",props:{chargepoint:{}},emits:["closeConfig"],setup(a){const t=a.chargepoint;return(o,s)=>(i(),f(W,null,[n("p",di," Ladeeinstellungen für "+x(l(t).vehicleName)+": ",1),b(U,{title:"Lademodus",icon:"fa-charging-station",infotext:l(qe).chargemode,fullwidth:!0},{default:_(()=>[b(xe,{modelValue:l(t).chargeMode,"onUpdate:modelValue":s[0]||(s[0]=r=>l(t).chargeMode=r),columns:3,options:Object.keys(l(ye)).map(r=>[l(ye)[r].name,r,l(ye)[r].color,l(ye)[r].icon])},null,8,["modelValue","options"])]),_:1},8,["infotext"]),Object.values(l(Z)).filter(r=>r.visible).length>1?(i(),$(U,{key:0,title:"Fahrzeug wechseln",icon:"fa-car",infotext:l(qe).vehicle,fullwidth:!0},{default:_(()=>[b(xe,{modelValue:l(t).connectedVehicle,"onUpdate:modelValue":s[1]||(s[1]=r=>l(t).connectedVehicle=r),modelModifiers:{number:!0},options:Object.values(l(Z)).filter(r=>r.visible).map(r=>[r.name,r.id])},null,8,["modelValue","options"])]),_:1},8,["infotext"])):w("",!0),b(U,{title:"Sperren",icon:"fa-lock",infotext:l(qe).locked,fullwidth:!0},{"inline-item":_(()=>[b(ce,{modelValue:l(t).isLocked,"onUpdate:modelValue":s[2]||(s[2]=r=>l(t).isLocked=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),b(U,{title:"Priorität",icon:"fa-star",infotext:l(qe).priority,fullwidth:!0},{"inline-item":_(()=>[b(ce,{modelValue:l(t).hasPriority,"onUpdate:modelValue":s[3]||(s[3]=r=>l(t).hasPriority=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),b(U,{title:"Zeitplan",icon:"fa-clock",infotext:l(qe).timeplan,fullwidth:!0},{"inline-item":_(()=>[b(ce,{modelValue:l(t).timedCharging,"onUpdate:modelValue":s[4]||(s[4]=r=>l(t).timedCharging=r)},null,8,["modelValue"])]),_:1},8,["infotext"]),l(he).isBatteryConfigured?(i(),$(U,{key:1,title:"PV-Priorität",icon:"fa-car-battery",infotext:l(qe).pvpriority,fullwidth:!0},{default:_(()=>[b(xe,{modelValue:l(he).pvBatteryPriority,"onUpdate:modelValue":s[5]||(s[5]=r=>l(he).pvBatteryPriority=r),options:l(hn)},null,8,["modelValue","options"])]),_:1},8,["infotext"])):w("",!0)],64))}}),pi=j(hi,[["__scopeId","data-v-e6ae9e07"]]),gi={class:"status-string"},mi={style:{color:"red"}},fi={class:"m-0 mt-4 p-0 grid-col-12 tabarea"},vi={class:"nav nav-tabs nav-justified mx-1 mt-1",role:"tablist"},bi=["data-bs-target"],yi=["data-bs-target"],_i=["data-bs-target"],wi=["data-bs-target"],ki=["data-bs-target"],xi=["data-bs-target"],Si={id:"settingsPanes",class:"tab-content mx-1 p-1 pb-3"},$i=["id"],Mi=["id"],Pi=["id"],Ci=["id"],Ii=["id"],Bi=["id"],Vi=B({__name:"ChargeConfigPanel",props:{chargepoint:{}},emits:["closeConfig"],setup(a){const t=a.chargepoint,o=g(()=>{var r;return((r=t.chargeTemplate)==null?void 0:r.id)??0}),s=g(()=>t.id);return Oe(()=>{}),(r,p)=>(i(),f(W,null,[b(U,{title:"Status",icon:"fa-info-circle",fullwidth:!0,class:"item"},{default:_(()=>[n("span",gi,x(l(t).stateStr),1)]),_:1}),l(t).faultState!=0?(i(),$(U,{key:0,title:"Fehler",class:"grid-col-12",icon:"fa-triangle-exclamation"},{default:_(()=>[n("span",mi,x(l(t).faultStr),1)]),_:1})):w("",!0),n("div",fi,[n("nav",vi,[n("a",{class:"nav-link active","data-bs-toggle":"tab","data-bs-target":"#chargeSettings"+s.value},p[0]||(p[0]=[n("i",{class:"fa-solid fa-charging-station"},null,-1)]),8,bi),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#instantSettings"+s.value},p[1]||(p[1]=[n("i",{class:"fa-solid fa-lg fa-bolt"},null,-1)]),8,yi),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pvSettings"+s.value},p[2]||(p[2]=[n("i",{class:"fa-solid fa-solar-panel me-1"},null,-1)]),8,_i),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#scheduledSettings"+s.value},p[3]||(p[3]=[n("i",{class:"fa-solid fa-bullseye me-1"},null,-1)]),8,wi),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#ecoSettings"+s.value},p[4]||(p[4]=[n("i",{class:"fa-solid fa-coins"},null,-1)]),8,ki),n("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#timedSettings"+s.value},p[5]||(p[5]=[n("i",{class:"fa-solid fa-clock"},null,-1)]),8,xi)]),n("div",Si,[n("div",{id:"chargeSettings"+s.value,class:"tab-pane active",role:"tabpanel","aria-labelledby":"instant-tab"},[b(pi,{chargepoint:r.chargepoint},null,8,["chargepoint"])],8,$i),n("div",{id:"instantSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"instant-tab"},[b(il,{chargepoint:l(t),vehicles:l(Z),"charge-templates":l(Nt)},null,8,["chargepoint","vehicles","charge-templates"])],8,Mi),n("div",{id:"pvSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"pv-tab"},[b(bl,{chargepoint:l(t),vehicles:l(Z),"charge-templates":l(Nt)},null,8,["chargepoint","vehicles","charge-templates"])],8,Pi),n("div",{id:"scheduledSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[o.value!=null?(i(),$(Al,{key:0,"charge-point":l(t)},null,8,["charge-point"])):w("",!0)],8,Ci),n("div",{id:"ecoSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"eco-tab"},[o.value!=null?(i(),$(ui,{key:0,chargepoint:l(t)},null,8,["chargepoint"])):w("",!0)],8,Ii),n("div",{id:"timedSettings"+s.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[o.value!=null?(i(),$(Ql,{key:0,"charge-point":l(t)},null,8,["charge-point"])):w("",!0)],8,Bi)])])],64))}}),Rt=j(Vi,[["__scopeId","data-v-cd92fe69"]]),Ge=B({__name:"FormatWattH",props:{wattH:{}},setup(a){const e=a,t=g(()=>Re(e.wattH,m.decimalPlaces));return(o,s)=>(i(),f("span",null,x(t.value),1))}}),Li={class:"wb-widget p-0 m-0 shadow widgetWidth"},Ti={class:"py-4 px-3 d-flex justify-content-between align-items-center titlerow"},Oi={class:"d-flex align-items-center widgetname p-0 m-0"},Ai={class:"buttonrea d-flex float-right justify-content-end align-items-center"},Ei={class:"grid12 pb-3 px-3"},zi=B({__name:"WbWidgetFlex",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(a){const e=a,t=g(()=>e.fullWidth?"col-12":e.variableWidth&&m.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,s)=>(i(),f("div",{class:H(["p-2 m-0",t.value])},[n("div",Li,[n("div",Ti,[n("div",Oi,[de(o.$slots,"title",{},()=>[s[0]||(s[0]=n("div",{class:"p-0"},"(title goes here)",-1))],!0),de(o.$slots,"subtitle",{},void 0,!0)]),n("div",Ai,[de(o.$slots,"buttons",{},void 0,!0)])]),n("div",Ei,[de(o.$slots,"default",{},void 0,!0)])])],2))}}),je=j(zi,[["__scopeId","data-v-fb6ac7a4"]]),Di={class:"d-flex justify-content-center align-items-center"},Wi=B({__name:"BatterySymbol",props:{soc:{},color:{}},setup(a){const e=a,t=g(()=>e.soc<=12?"fa-battery-empty":e.soc<38?"fa-battery-quarter":e.soc<62?"fa-battery-half":e.soc<87?"fa-battery-three-quarters":"fa-battery-full"),o=g(()=>({color:e.color??"var(--color-menu)"}));return(s,r)=>(i(),f("span",Di,[n("i",{class:H(["fa me-1",t.value]),style:te(o.value)},null,6),R(" "+x(Math.round(s.soc)+"%"),1)]))}}),It=j(Wi,[["__scopeId","data-v-a68c844a"]]),Gi=B({__name:"WbBadge",props:{color:{},bgcolor:{}},setup(a){const e=a,t=g(()=>({color:e.color??"var(--color-bg)","background-color":e.bgcolor??"var(--color-menu)"}));return(o,s)=>(i(),f("span",{class:"pillWbBadge rounded-pill ms-2 px-2",style:te(t.value)},[de(o.$slots,"default",{},void 0,!0)],4))}}),Ie=j(Gi,[["__scopeId","data-v-36112fa3"]]),ji={style:{color:"var(--color-charging)"}},Ui={style:{color:"var(--color-charging)"}},Fi={style:{color:"var(--color-charging)"}},Ni={class:"targetCurrent"},Hi=B({__name:"ChargingState",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(a){const e=a,t=g(()=>(Math.round(e.chargepoint.current*10)/10).toLocaleString(void 0)+" A"),o=g(()=>(Math.round(e.chargepoint.realCurrent*10)/10).toLocaleString(void 0)+" A");return(s,r)=>(i(),f(W,null,[e.chargepoint.power>0?(i(),$(ee,{key:0,heading:"Leistung:",class:"grid-col-3 grid-left mb-3"},{default:_(()=>[n("span",ji,[b(bt,{watt:e.chargepoint.power},null,8,["watt"])])]),_:1})):w("",!0),e.chargepoint.power>0?(i(),$(ee,{key:1,heading:"Strom:",class:"grid-col-3"},{default:_(()=>[n("span",Ui,x(o.value),1)]),_:1})):w("",!0),e.chargepoint.power>0?(i(),$(ee,{key:2,heading:"Phasen:",class:"grid-col-3"},{default:_(()=>[n("span",Fi,x(e.chargepoint.phasesInUse),1)]),_:1})):w("",!0),e.chargepoint.power>0?(i(),$(ee,{key:3,heading:"Sollstrom:",class:"grid-col-3 grid-right"},{default:_(()=>[n("span",Ni,x(t.value),1)]),_:1})):w("",!0)],64))}}),Ri=j(Hi,[["__scopeId","data-v-2cc82367"]]),Ji={class:"carTitleLine d-flex justify-content-between align-items-center"},qi={key:1,class:"me-1 fa-solid fa-xs fa-star ps-1"},Yi={key:2,class:"me-0 fa-solid fa-xs fa-clock ps-1"},Qi={key:0,class:"carSelector p-4 m-2"},Zi={class:"grid12"},Xi={key:2,class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12 grid-left"},Ki={class:"d-flex justify-content-stretch align-items-center"},ec={key:0,class:"fa-solid fa-sm fas fa-edit ms-2"},tc=["id"],ac=B({__name:"VehicleData",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(a){const e=a,t=e.chargepoint,o=Y(!1),s=Y(!1),r=Y(!1),p=g({get(){return t.chargeMode},set(P){t.chargeMode=P}}),h=g(()=>{const P=e.chargepoint.rangeCharged,V=e.chargepoint.chargedSincePlugged,S=e.chargepoint.dailyYield;return V>0?Math.round(P/V*S).toString()+" "+e.chargepoint.rangeUnit:"0 km"}),c=g(()=>e.chargepoint.soc),d=g({get(){return e.chargepoint.soc},set(P){O[e.chargepoint.id].soc=P}}),u=g(()=>{const[P]=oe.etPriceList.values();return(Math.round(P*10)/10).toFixed(1)}),k=g(()=>e.chargepoint.etMaxPrice>=+u.value?{color:"var(--color-charging)"}:{color:"var(--color-menu)"}),M=g(()=>Object.values(Z).filter(P=>P.visible)),A=g(()=>e.chargepoint.soc<20?"var(--color-evu)":e.chargepoint.soc>=80?"var(--color-pv)":"var(--color-battery)"),G=g(()=>{switch(e.chargepoint.chargeMode){case"stop":return{color:"var(--fg)"};default:return{color:ye[e.chargepoint.chargeMode].color}}});function q(){_e("socUpdate",1,e.chargepoint.connectedVehicle),O[e.chargepoint.id].waitingForSoc=!0}function I(){_e("setSoc",d.value,e.chargepoint.connectedVehicle),o.value=!1}return(P,V)=>(i(),f(W,null,[n("div",Ji,[n("h3",{onClick:V[0]||(V[0]=S=>r.value=!r.value)},[V[8]||(V[8]=n("i",{class:"fa-solid fa-sm fa-car me-2"},null,-1)),R(" "+x(P.chargepoint.vehicleName)+" ",1),M.value.length>1?(i(),f("span",{key:0,class:H(["fa-solid fa-xs me-2",r.value?"fa-caret-up":"fa-caret-down"])},null,2)):w("",!0),P.chargepoint.hasPriority?(i(),f("span",qi)):w("",!0),P.chargepoint.timedCharging?(i(),f("span",Yi)):w("",!0)]),P.chargepoint.isSocConfigured?(i(),$(Ie,{key:0,bgcolor:A.value},{default:_(()=>[b(It,{soc:c.value??0,color:"var(--color-bg)",class:"me-2"},null,8,["soc"]),P.chargepoint.isSocManual?(i(),f("i",{key:0,class:"fa-solid fa-sm fas fa-edit",style:{color:"var(--color-bg)"},onClick:V[1]||(V[1]=S=>o.value=!o.value)})):w("",!0),P.chargepoint.isSocManual?w("",!0):(i(),f("i",{key:1,type:"button",class:H(["fa-solid fa-sm",P.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),onClick:q},null,2))]),_:1},8,["bgcolor"])):w("",!0)]),r.value?(i(),f("div",Qi,[V[9]||(V[9]=n("span",{class:"changeCarTitle mb-2"},"Fahrzeug wechseln:",-1)),b(xe,{modelValue:l(t).connectedVehicle,"onUpdate:modelValue":[V[2]||(V[2]=S=>l(t).connectedVehicle=S),V[3]||(V[3]=S=>r.value=!1)],modelModifiers:{number:!0},options:M.value.map(S=>[S.name,S.id])},null,8,["modelValue","options"])])):w("",!0),n("div",Zi,[b(Ea,{id:"chargemode-"+P.chargepoint.name,modelValue:p.value,"onUpdate:modelValue":V[4]||(V[4]=S=>p.value=S),class:"chargemodes mt-3 mb-3",options:Object.keys(l(ye)).map(S=>({text:l(ye)[S].name,value:S,color:l(ye)[S].color,icon:l(ye)[S].icon,active:l(ye)[S].mode==P.chargepoint.chargeMode}))},null,8,["id","modelValue","options"]),P.chargepoint.power>0?(i(),$(Ri,{key:0,chargepoint:P.chargepoint,"full-width":e.fullWidth},null,8,["chargepoint","full-width"])):w("",!0),b(ee,{heading:"letzte Ladung:",class:"grid-col-4 grid-left"},{default:_(()=>[b(Ge,{"watt-h":Math.max(P.chargepoint.chargedSincePlugged,0)},null,8,["watt-h"])]),_:1}),b(ee,{heading:"gel. Reichw.:",class:"grid-col-4"},{default:_(()=>[R(x(h.value),1)]),_:1}),P.chargepoint.isSocConfigured?(i(),$(ee,{key:1,heading:"Reichweite:",class:"grid-col-4 grid-right"},{default:_(()=>[R(x(l(Z)[e.chargepoint.connectedVehicle]?Math.round(l(Z)[e.chargepoint.connectedVehicle].range):0)+" km ",1)]),_:1})):w("",!0),o.value?(i(),f("div",Xi,[V[10]||(V[10]=n("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),n("span",Ki,[n("span",null,[b(we,{id:"manualSoc",modelValue:d.value,"onUpdate:modelValue":V[5]||(V[5]=S=>d.value=S),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),n("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:I})])):w("",!0),V[12]||(V[12]=n("hr",{class:"divider grid-col-12"},null,-1)),l(oe).active?(i(),$(ee,{key:3,heading:"Strompreis:",class:"grid-col-4 grid-left"},{default:_(()=>[n("span",{style:te(k.value)},x(u.value)+" ct ",5)]),_:1})):w("",!0),l(t).etActive?(i(),$(ee,{key:4,heading:"max. Preis:",class:"grid-col-4"},{default:_(()=>[n("span",{type:"button",onClick:V[6]||(V[6]=S=>s.value=!s.value)},[R(x(e.chargepoint.etActive?(Math.round(e.chargepoint.etMaxPrice*10)/10).toFixed(1)+" ct":"-")+" ",1),e.chargepoint.etActive?(i(),f("i",ec)):w("",!0)])]),_:1})):w("",!0),s.value?(i(),f("div",{key:5,id:"priceChartInline"+e.chargepoint.id,class:"d-flex flex-column rounded priceEditor grid-col-12"},[l(Z)[e.chargepoint.connectedVehicle]!=null?(i(),$(za,{key:0,chargepoint:e.chargepoint},null,8,["chargepoint"])):w("",!0),n("span",{class:"d-flex ms-2 my-4 pe-3 pt-1 d-flex align-self-end",style:te(G.value),onClick:V[7]||(V[7]=S=>s.value=!1)},V[11]||(V[11]=[n("span",{type:"button",class:"d-flex fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]),4)],8,tc)):w("",!0)])],64))}}),nc=j(ac,[["__scopeId","data-v-e3fcbd86"]]),rc={class:"d-flex justify-content-center align-items-center"},oc={key:0,class:"WbBadge rounded-pill errorWbBadge ms-3"},sc={key:0},lc={key:1,class:"row m-0 mt-0 p-0"},ic={class:"col m-0 p-0"},cc=B({__name:"CPChargePoint",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(a){const e=a,t=Y(e.chargepoint),o=Y(!1),s=g(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei"),r=g(()=>e.chargepoint.isLocked?"var(--color-evu)":e.chargepoint.isCharging?"var(--color-charging)":e.chargepoint.isPluggedIn?"var(--color-battery)":"var(--color-axis)"),p=g(()=>{let c="";return e.chargepoint.isLocked?c="fa-lock":e.chargepoint.isCharging?c=" fa-bolt":e.chargepoint.isPluggedIn&&(c="fa-plug"),"fa "+c}),h=g(()=>({color:e.chargepoint.color}));return(c,d)=>o.value?(i(),$(je,{key:1,"full-width":e.fullWidth},{title:_(()=>[n("span",{style:te(h.value),onClick:d[3]||(d[3]=u=>o.value=!o.value)},[d[8]||(d[8]=n("span",{class:"fas fa-gear"}," ",-1)),R(" Einstellungen "+x(e.chargepoint.name),1)],4)]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",onClick:d[4]||(d[4]=u=>o.value=!o.value)},d[9]||(d[9]=[n("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]))]),default:_(()=>[c.chargepoint!=null?(i(),$(Rt,{key:0,chargepoint:c.chargepoint},null,8,["chargepoint"])):w("",!0),n("button",{type:"button",class:"close-config-button btn ms-2 pt-1",onClick:d[5]||(d[5]=u=>o.value=!o.value)}," OK ")]),_:1},8,["full-width"])):(i(),$(yt,{key:0,"variable-width":!0,"full-width":e.fullWidth},{title:_(()=>[n("span",rc,[n("span",{style:te(h.value),onClick:d[0]||(d[0]=u=>o.value=!o.value)},[d[6]||(d[6]=n("span",{class:"fa-solid fa-charging-station"}," ",-1)),R(" "+x(e.chargepoint.name),1)],4),t.value.faultState==2?(i(),f("span",oc,"Fehler")):w("",!0)])]),buttons:_(()=>[n("span",{type:"button",class:"ms-2 ps-1 pt-1",onClick:d[1]||(d[1]=u=>o.value=!o.value)},d[7]||(d[7]=[n("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)]))]),footer:_(()=>[o.value?w("",!0):(i(),$(nc,{key:0,chargepoint:e.chargepoint,"full-width":e.fullWidth},null,8,["chargepoint","full-width"]))]),default:_(()=>[o.value?w("",!0):(i(),f("div",sc,[n("div",{class:"grid12",onClick:d[2]||(d[2]=u=>o.value=!o.value)},[b(ee,{heading:"Status:",class:"grid-col-4 grid-left"},{default:_(()=>[n("span",{style:te({color:r.value})},[n("i",{class:H(p.value)},null,2),R(" "+x(s.value),1)],4)]),_:1}),b(ee,{heading:"Geladen:",class:"grid-col-4 grid-left"},{default:_(()=>[b(Ge,{"watt-h":c.chargepoint.dailyYield},null,8,["watt-h"])]),_:1})])])),o.value?(i(),f("div",lc,[n("div",ic,[c.chargepoint!=null?(i(),$(Rt,{key:0,chargepoint:c.chargepoint},null,8,["chargepoint"])):w("",!0)])])):w("",!0)]),_:1},8,["full-width"]))}}),uc=j(cc,[["__scopeId","data-v-b35defc2"]]),dc=["id"],hc={class:"modal-dialog modal-lg modal-fullscreen-lg-down"},pc={class:"modal-content"},gc={class:"modal-header"},mc={class:"modal-title"},fc={class:"modal-body",style:{"background-color":"var(--color-bg)"}},vc=B({__name:"ModalComponent",props:{modalId:{}},setup(a){const e=a;return Oe(()=>{}),(t,o)=>(i(),f("div",{id:e.modalId,class:"modal fade"},[n("div",hc,[n("div",pc,[n("div",gc,[n("h3",mc,[de(t.$slots,"title",{},void 0,!0)]),o[0]||(o[0]=n("button",{type:"button",class:"btn-close buttonTextSize d-flex justify-content-center pt-3 pb-0","data-bs-dismiss":"modal"},[n("i",{class:"fa-solid fa-lg fa-rectangle-xmark m-0 p-0"})],-1))]),n("div",fc,[de(t.$slots,"default",{},void 0,!0),o[1]||(o[1]=n("button",{class:"btn btn-secondary float-end mt-3 ms-1","data-bs-dismiss":"modal"}," Schließen ",-1))])])])],8,dc))}}),Da=j(vc,[["__scopeId","data-v-eaefae30"]]),bc={class:"d-flex align-items-center"},yc={class:"cpname"},_c={class:"d-flex float-right justify-content-end align-items-center"},wc=["data-bs-target"],kc=["data-bs-target"],xc={class:"subgrid"},Sc={key:0,class:"d-flex justify-content-center align-items-center vehiclestatus"},$c={class:"d-flex flex-column align-items-center px-0"},Mc={class:"d-flex justify-content-center flex-wrap"},Pc={class:"d-flex align-items-center"},Cc={class:"badge phasesInUse rounded-pill"},Ic={class:"d-flex flex-wrap justify-content-center chargeinfo"},Bc={class:"me-1"},Vc={key:0,class:"subgrid socEditRow m-0 p-0"},Lc={class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12"},Tc={class:"d-flex justify-content-stretch align-items-center"},Oc=B({__name:"CpsListItem2",props:{chargepoint:{}},setup(a){const e=a,t=Y(!1),o=g(()=>ye[e.chargepoint.chargeMode].icon),s=g(()=>{let P="";return e.chargepoint.isLocked?P="fa-lock":e.chargepoint.isCharging?P=" fa-bolt":e.chargepoint.isPluggedIn&&(P="fa-plug"),"fa "+P}),r=g(()=>{let P="var(--color-axis)";return e.chargepoint.isLocked?P="var(--color-evu)":e.chargepoint.isCharging?P="var(--color-charging)":e.chargepoint.isPluggedIn&&(P="var(--color-battery)"),{color:P,border:`0.5px solid ${P} `}}),p=g(()=>{switch(e.chargepoint.chargeMode){case"stop":return{"background-color":"var(--color-input)"};default:return{"background-color":ye[e.chargepoint.chargeMode].color}}}),h=g(()=>Pe(e.chargepoint.power,m.decimalPlaces)),c=g(()=>e.chargepoint.current+" A"),d=g(()=>e.chargepoint.phasesInUse),u=g(()=>e.chargepoint.dailyYield>0?Re(e.chargepoint.dailyYield,m.decimalPlaces):"0 Wh"),k=g(()=>"("+Math.round(e.chargepoint.rangeCharged).toString()+" "+e.chargepoint.rangeUnit+")"),M=g(()=>ye[e.chargepoint.chargeMode].name);function A(){_e("socUpdate",1,e.chargepoint.connectedVehicle),O[e.chargepoint.id].waitingForSoc=!0}function G(){_e("setSoc",q.value,e.chargepoint.connectedVehicle),t.value=!1}const q=g({get(){return e.chargepoint.soc},set(P){O[e.chargepoint.id].soc=P}}),I=g(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei");return(P,V)=>(i(),f(W,null,[b(nt,{titlecolor:P.chargepoint.color,fullwidth:!0,small:!0},{title:_(()=>[n("div",bc,[n("span",yc,x(P.chargepoint.name),1),n("span",{class:"badge rounded-pill statusbadge mx-2",style:te(r.value)},[n("i",{class:H([s.value,"me-1"])},null,2),R(" "+x(I.value),1)],4)])]),buttons:_(()=>[n("div",_c,[n("span",{class:"badge rounded-pill modebadge mx-2",type:"button",style:te(p.value),"data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+P.chargepoint.id},[n("i",{class:H(["fa me-1",o.value])},null,2),R(" "+x(M.value),1)],12,wc),n("span",{class:"fa-solid ms-2 fa-lg fa-edit ps-1",type:"button","data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+P.chargepoint.id},null,8,kc)])]),default:_(()=>[n("div",xc,[b(ee,{heading:P.chargepoint.vehicleName,small:!0,class:"grid-left grid-col-4"},{default:_(()=>[P.chargepoint.isSocConfigured?(i(),f("span",Sc,[P.chargepoint.soc?(i(),$(It,{key:0,class:"me-1",soc:P.chargepoint.soc},null,8,["soc"])):w("",!0),P.chargepoint.isSocConfigured&&P.chargepoint.isSocManual?(i(),f("i",{key:1,type:"button",class:"fa-solid fa-sm fas fa-edit",style:{color:"var(--color-menu)"},onClick:V[0]||(V[0]=S=>t.value=!t.value)})):w("",!0),P.chargepoint.isSocConfigured&&!P.chargepoint.isSocManual?(i(),f("i",{key:2,type:"button",class:H(["fa-solid fa-sm me-2",P.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),style:{color:"var(--color-menu)"},onClick:A},null,2)):w("",!0)])):w("",!0)]),_:1},8,["heading"]),b(ee,{heading:"Parameter:",small:!0,class:"grid-col-4"},{default:_(()=>[n("div",$c,[n("span",Mc,[n("span",null,x(h.value),1),n("span",Pc,[n("span",Cc,x(d.value),1),n("span",null,x(c.value),1)])])])]),_:1}),b(ee,{heading:"Geladen:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[n("div",Ic,[n("span",Bc,x(u.value),1),n("span",null,x(k.value),1)])]),_:1})]),t.value?(i(),f("div",Vc,[n("div",Lc,[V[2]||(V[2]=n("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),n("span",Tc,[n("span",null,[b(we,{id:"manualSoc",modelValue:q.value,"onUpdate:modelValue":V[1]||(V[1]=S=>q.value=S),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),n("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:G})])])):w("",!0)]),_:1},8,["titlecolor"]),(i(),$(tn,{to:"body"},[(i(),$(Da,{key:P.chargepoint.id,"modal-id":"cpsconfig-"+P.chargepoint.id},{title:_(()=>[R(" Konfiguration: "+x(P.chargepoint.name),1)]),default:_(()=>[P.chargepoint!=null?(i(),$(Rt,{key:0,chargepoint:P.chargepoint},null,8,["chargepoint"])):w("",!0)]),_:1},8,["modal-id"]))]))],64))}}),Ac=j(Oc,[["__scopeId","data-v-9260919a"]]),Ec=B({__name:"CpSimpleList2",setup(a){const e=g(()=>Object.values(O));return(t,o)=>(i(),$(je,{"variable-width":!0},{title:_(()=>o[0]||(o[0]=[n("span",{class:"fa-solid fa-charging-station"}," ",-1),R(" Ladepunkte ")])),buttons:_(()=>[l(oe).active?(i(),$(Ie,{key:0,bgcolor:"var(--color-menu)"},{default:_(()=>[R("Strompreis: "+x(l(oe).etCurrentPriceString),1)]),_:1})):w("",!0)]),default:_(()=>[(i(!0),f(W,null,Q(e.value,(s,r)=>(i(),f("div",{key:r,class:"subgrid pb-2"},[b(Ac,{chargepoint:s},null,8,["chargepoint"])]))),128))]),_:1}))}}),zc=j(Ec,[["__scopeId","data-v-b8c6b557"]]),At=B({__name:"ChargePointList",props:{id:{},compact:{type:Boolean}},setup(a){let e,t;const o=a,s=g(()=>{let d=Object.values(O);return c(),d}),r=g(()=>p.value+" "+h.value),p=g(()=>{switch(Object.values(O).length){case 0:return m.preferWideBoxes?"col-lg-6":"col-lg-4";case 1:return m.preferWideBoxes?"col-lg-6":"col-lg-4";case 2:return m.preferWideBoxes?"col-lg-12":"col-lg-8 ";default:return"col-lg-12"}}),h=g(()=>"swiper-chargepoints-"+o.id);function c(){let d=document.querySelector("."+h.value);if(d&&(t=d,e=t.swiper),e){let u="1";if(We.value)switch(Object.values(O).length){case 0:case 1:u="1";break;case 2:u="2";break;default:u="3"}t.setAttribute("slides-per-view",u),e.update()}}return Oe(()=>{let d=document.querySelector("."+h.value);d&&(t=d,e=t.swiper),window.addEventListener("resize",c),window.document.addEventListener("visibilitychange",c)}),(d,u)=>(i(),f(W,null,[o.compact?w("",!0):(i(),f("swiper-container",{key:0,"space-between":0,"slides-per-view":1,pagination:{clickable:!0},class:H(["cplist m-0 p-0 d-flex align-items-stretch",r.value])},[(i(!0),f(W,null,Q(s.value,k=>(i(),f("swiper-slide",{key:k.id},[n("div",{class:H([l(We)?"mb-0":"mb-5","d-flex align-items-stretch flex-fill"])},[b(uc,{chargepoint:k,"full-width":!0},null,8,["chargepoint"])],2)]))),128))],2)),o.compact?(i(),$(zc,{key:1})):w("",!0)],64))}}),Dc={class:"container-fluid p-0 m-0"},Wc={class:"row p-0 m-0"},Gc={class:"d-grid gap-2"},jc=["onClick"],Uc={class:"col-md-4 p-1"},Fc={class:"d-grid gap-2"},Nc={key:0},Hc={class:"row justify-content-center m-1 p-0"},Rc={class:"col-lg-4 p-1 m-0"},Jc={class:"d-grid gap-2"},qc={class:"col-lg-4 p-1 m-0"},Yc={class:"d-grid gap-2"},Qc={class:"col-lg-4 p-1 m-0"},Zc={class:"d-grid gap-2"},Xc=B({__name:"BBSelect",props:{cpId:{}},setup(a){const e=a,t=[{mode:"instant_charging",name:"Sofort",color:"var(--color-charging)"},{mode:"pv_charging",name:"PV",color:"var(--color-pv)"},{mode:"scheduled_charging",name:"Zielladen",color:"var(--color-battery)"},{mode:"eco_charging",name:"Eco",color:"var(--color-devices)"},{mode:"stop",name:"Stop",color:"var(--color-axis)"}],o=g(()=>O[e.cpId]);function s(d){return d==o.value.chargeMode?"btn btn-success buttonTextSize":"btn btn-secondary buttonTextSize"}function r(d){return he.pvBatteryPriority==d?"btn-success":"btn-secondary"}function p(d){o.value.chargeMode=d}function h(d){o.value.isLocked=d}function c(d){he.pvBatteryPriority=d}return(d,u)=>(i(),f("div",Dc,[n("div",Wc,[(i(),f(W,null,Q(t,(k,M)=>n("div",{key:M,class:"col-md-4 p-1"},[n("div",Gc,[n("button",{type:"button",class:H(s(k.mode)),style:{},onClick:A=>p(k.mode)},x(k.name),11,jc)])])),64)),n("div",Uc,[n("div",Fc,[o.value.isLocked?(i(),f("button",{key:0,type:"button",class:"btn btn-outline-success buttonTextSize","data-bs-dismiss":"modal",onClick:u[0]||(u[0]=k=>h(!1))}," Entsperren ")):w("",!0),o.value.isLocked?w("",!0):(i(),f("button",{key:1,type:"button",class:"btn btn-outline-danger buttonTextSize","data-bs-dismiss":"modal",onClick:u[1]||(u[1]=k=>h(!0))}," Sperren "))])])]),l(he).isBatteryConfigured?(i(),f("div",Nc,[u[8]||(u[8]=n("hr",null,null,-1)),u[9]||(u[9]=n("div",{class:"row"},[n("div",{class:"col text-center"},"Vorrang im Lademodus PV-Laden:")],-1)),n("div",Hc,[n("div",Rc,[n("div",Jc,[n("button",{id:"evPriorityBtn",type:"button",class:H(["priorityModeBtn btn btn-secondary buttonTextSize",r("ev_mode")]),"data-dismiss":"modal",priority:"1",onClick:u[2]||(u[2]=k=>c("ev_mode"))},u[5]||(u[5]=[R(" EV "),n("span",{class:"fas fa-car ms-2"}," ",-1)]),2)])]),n("div",qc,[n("div",Yc,[n("button",{id:"batteryPriorityBtn",type:"button",class:H(["priorityModeBtn btn btn-secondary buttonTextSize",r("bat_mode")]),"data-dismiss":"modal",priority:"0",onClick:u[3]||(u[3]=k=>c("bat_mode"))},u[6]||(u[6]=[R(" Speicher "),n("span",{class:"fas fa-car-battery ms-2"}," ",-1)]),2)])]),n("div",Qc,[n("div",Zc,[n("button",{id:"minsocPriorityBtn",type:"button",class:H(["priorityModeBtn btn btn-secondary buttonTextSize",r("min_soc_bat_mode")]),"data-dismiss":"modal",priority:"0",onClick:u[4]||(u[4]=k=>c("min_soc_bat_mode"))},u[7]||(u[7]=[R(" MinSoc "),n("span",{class:"fas fa-battery-half"}," ",-1)]),2)])])])])):w("",!0)]))}}),Kc={class:"col-lg-4 p-0 m-0 mt-1"},eu={class:"d-grid gap-2"},tu=["data-bs-target"],au={class:"m-0 p-0 d-flex justify-content-between align-items-center"},nu={class:"mx-1 badge rounded-pill smallTextSize plugIndicator"},ru={key:0,class:"ms-2"},ou={class:"m-0 p-0"},su={key:0,class:"ps-1"},lu=B({__name:"BbChargeButton",props:{chargepoint:{}},setup(a){const e=a,t="chargeSelectModal"+e.chargepoint.id,o=g(()=>ye[e.chargepoint.chargeMode].name),s=g(()=>{let u={background:"var(--color-menu)"};return e.chargepoint.isLocked?u.background="var(--color-evu)":e.chargepoint.isCharging?u.background="var(--color-charging)":e.chargepoint.isPluggedIn&&(u.background="var(--color-battery)"),u}),r=g(()=>{{let u={background:ye[e.chargepoint.chargeMode].color,color:"white"};switch(e.chargepoint.chargeMode){case Me.instant_charging:e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(u=d(u));break;case Me.stop:u.background="darkgrey",u.color="black";break;case Me.scheduled_charging:e.chargepoint.isPluggedIn&&!e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(u=d(u));break}return u}}),p=g(()=>ye[e.chargepoint.chargeMode].icon),h=g(()=>{switch(he.pvBatteryPriority){case"ev_mode":return"fa-car";case"bat_mode":return"fa-car-battery";case"min_soc_bat_mode":return"fa-battery-half";default:return console.log("default"),""}}),c=g(()=>{let u="fa-ellipsis";return e.chargepoint.isLocked?u="fa-lock":e.chargepoint.isCharging?u=" fa-bolt":e.chargepoint.isPluggedIn&&(u="fa-plug"),"fa "+u});function d(u){let k=u.color;return u.color=u.background,u.background=k,u}return(u,k)=>(i(),f("div",Kc,[n("div",eu,[n("button",{type:"button",class:"btn mx-1 mb-0 p-1 mediumTextSize chargeButton shadow",style:te(s.value),"data-bs-toggle":"modal","data-bs-target":"#"+t},[n("div",au,[n("span",nu,[n("i",{class:H(c.value)},null,2),u.chargepoint.isCharging?(i(),f("span",ru,x(l(Pe)(u.chargepoint.power)),1)):w("",!0)]),n("span",ou,x(u.chargepoint.name),1),n("span",{class:"mx-2 m-0 badge rounded-pill smallTextSize modeIndicator",style:te(r.value)},[n("i",{class:H(["fa me-1",p.value])},null,2),R(" "+x(o.value)+" ",1),u.chargepoint.chargeMode==l(Me).pv_charging&&l(he).isBatteryConfigured?(i(),f("span",su,[k[0]||(k[0]=R(" ( ")),n("i",{class:H(["fa m-0",h.value])},null,2),k[1]||(k[1]=R(") "))])):w("",!0)],4)])],12,tu)]),b(Da,{"modal-id":t},{title:_(()=>[R(" Lademodus für "+x(u.chargepoint.vehicleName),1)]),default:_(()=>[b(Xc,{"cp-id":u.chargepoint.id},null,8,["cp-id"])]),_:1})]))}}),iu=j(lu,[["__scopeId","data-v-71bb7e5f"]]),cu={class:"row p-0 mt-0 mb-1 m-0"},uu={class:"col p-0 m-0"},du={class:"container-fluid p-0 m-0"},hu={class:"row p-0 m-0 d-flex justify-content-center align-items-center"},pu={key:0,class:"col time-display"},gu=B({__name:"ButtonBar",setup(a){return(e,t)=>(i(),f("div",cu,[n("div",uu,[n("div",du,[n("div",hu,[l(m).showClock=="buttonbar"?(i(),f("span",pu,x(l(Oa)(l(Ht))),1)):w("",!0),(i(!0),f(W,null,Q(l(O),(o,s)=>(i(),$(iu,{key:s,chargepoint:o,"charge-point-count":Object.values(l(O)).length},null,8,["chargepoint","charge-point-count"]))),128))])])])]))}}),mu=j(gu,[["__scopeId","data-v-791e4be0"]]),fu={class:"battery-title"},vu={class:"subgrid pt-1"},bu=B({__name:"BLBattery",props:{bat:{}},setup(a){const e=a,t=g(()=>e.bat.power<0?`Liefert (${Pe(-e.bat.power)})`:e.bat.power>0?`Lädt (${Pe(e.bat.power)})`:"Bereit"),o=g(()=>e.bat.power<0?"var(--color-pv)":e.bat.power>0?"var(--color-battery)":"var(--color-menu)");return(s,r)=>(i(),$(nt,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",fu,x(s.bat.name),1)]),buttons:_(()=>[b(Ie,{bgcolor:o.value},{default:_(()=>[R(x(t.value),1)]),_:1},8,["bgcolor"])]),default:_(()=>[n("div",vu,[b(ee,{heading:"Ladestand:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[b(It,{soc:e.bat.soc},null,8,["soc"])]),_:1}),b(ee,{heading:"Geladen:",small:!0,class:"grid-col-4"},{default:_(()=>[b(Ge,{"watt-h":e.bat.dailyYieldImport},null,8,["watt-h"])]),_:1}),b(ee,{heading:"Geliefert:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[b(Ge,{"watt-h":e.bat.dailyYieldExport},null,8,["watt-h"])]),_:1})])]),_:1}))}}),yu=j(bu,[["__scopeId","data-v-f7f825f7"]]),_u={class:"subgrid grid-12"},wu={key:0,class:"subgrid"},ku=B({__name:"BatteryList",setup(a){const e=g(()=>J.batOut.power>0?`Liefert (${Pe(J.batOut.power)})`:F.batIn.power>0?`Lädt (${Pe(F.batIn.power)})`:"Bereit:"),t=g(()=>J.batOut.power>0?"var(--color-pv)":F.batIn.power>0?"var(--color-battery)":"var(--color-menu)"),o=g(()=>{let s=0;return se.value.forEach(r=>{s+=r.dailyYieldImport}),s});return(s,r)=>l(he).isBatteryConfigured?(i(),$(je,{key:0,"variable-width":!0,"full-width":!1},{title:_(()=>r[0]||(r[0]=[n("span",{class:"fas fa-car-battery me-2",style:{color:"var(--color-battery)"}}," ",-1),n("span",null,"Speicher",-1)])),buttons:_(()=>[b(Ie,{bgcolor:t.value},{default:_(()=>[R(x(e.value),1)]),_:1},8,["bgcolor"])]),default:_(()=>[n("div",_u,[b(ee,{heading:"Ladestand:",class:"grid-left grid-col-4"},{default:_(()=>[b(It,{color:"var(--color-battery)",soc:l(he).batterySoc},null,8,["soc"])]),_:1}),b(ee,{heading:"Geladen:",class:"grid-col-4"},{default:_(()=>[n("span",null,x(l(Re)(o.value)),1)]),_:1}),b(ee,{heading:"Geliefert",class:"grid-right grid-col-4"},{default:_(()=>[n("span",null,x(l(Re)(l(J).batOut.energy)),1)]),_:1})]),l(se).size>1?(i(),f("div",wu,[(i(!0),f(W,null,Q(l(se),([p,h])=>(i(),$(yu,{key:p,bat:h,class:"px-0"},null,8,["bat"]))),128))])):w("",!0)]),_:1})):w("",!0)}}),Et=j(ku,[["__scopeId","data-v-c2a8727a"]]),xu={class:"devicename"},Su={class:"subgrid"},$u=B({__name:"SHListItem",props:{device:{}},setup(a){const e=a,t=g(()=>e.device.status=="on"?"fa-toggle-on fa-xl":e.device.status=="waiting"?"fa-spinner fa-spin":"fa-toggle-off fa-xl"),o=g(()=>{let h="var(--color-switchRed)";switch(e.device.status){case"on":h="var(--color-switchGreen)";break;case"detection":h="var(--color-switchBlue)";break;case"timeout":h="var(--color-switchWhite)";break;case"waiting":h="var(--color-menu)";break;default:h="var(--color-switchRed)"}return{color:h}});function s(){e.device.isAutomatic||(e.device.status=="on"?_e("shSwitchOn",0,e.device.id):_e("shSwitchOn",1,e.device.id),ne.get(e.device.id).status="waiting")}function r(){e.device.isAutomatic?_e("shSetManual",1,e.device.id):_e("shSetManual",0,e.device.id)}const p=g(()=>e.device.isAutomatic?"Auto":"Man");return(h,c)=>(i(),$(nt,{titlecolor:h.device.color,fullwidth:!0},{title:_(()=>[n("span",xu,x(h.device.name),1)]),buttons:_(()=>[(i(!0),f(W,null,Q(h.device.temp,(d,u)=>(i(),f("span",{key:u},[d<300?(i(),$(Ie,{key:0,bgcolor:"var(--color-battery)"},{default:_(()=>[n("span",null,x(l(Jn)(d)),1)]),_:2},1024)):w("",!0)]))),128)),e.device.canSwitch?(i(),f("span",{key:0,class:H([t.value,"fa-solid statusbutton mr-2 ms-2"]),style:te(o.value),onClick:s},null,6)):w("",!0),e.device.canSwitch?(i(),$(Ie,{key:1,type:"button",onClick:r},{default:_(()=>[R(x(p.value),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",Su,[b(ee,{heading:"Leistung:",small:!0,class:"grid-col-4 grid-left"},{default:_(()=>[b(bt,{watt:h.device.power},null,8,["watt"])]),_:1}),b(ee,{heading:"Energie:",small:!0,class:"grid-col-4"},{default:_(()=>[b(Ge,{"watt-h":h.device.energy},null,8,["watt-h"])]),_:1}),b(ee,{heading:"Laufzeit:",small:!0,class:"grid-col-4 grid-right"},{default:_(()=>[R(x(l(Hn)(h.device.runningTime)),1)]),_:1})])]),_:1},8,["titlecolor"]))}}),Mu=j($u,[["__scopeId","data-v-20651ac6"]]),Pu={class:"sh-title py-4"},Cu=["id","onUpdate:modelValue","value"],Iu=["for"],Bu=3,Vu=B({__name:"SmartHomeList",setup(a){const e=g(()=>We.value?t.value.reduce((p,h)=>{const c=p;let d=p[p.length-1];return d.length>=Bu?p.push([h]):d.push(h),c},[[]]):[t.value]),t=g(()=>[...ne.values()].filter(p=>p.configured));function o(p){return"Geräte"+(We.value&&e.value.length>1?"("+(p+1)+")":"")}function s(){r.value=!r.value}const r=Y(!1);return(p,h)=>(i(),f(W,null,[(i(!0),f(W,null,Q(e.value,(c,d)=>(i(),$(je,{key:d,"variable-width":!0},{title:_(()=>[n("span",{onClick:s},[h[0]||(h[0]=n("span",{class:"fas fa-plug me-2",style:{color:"var(--color-devices)"}}," ",-1)),n("span",Pu,x(o(d)),1)])]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",onClick:s},h[1]||(h[1]=[n("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)]))]),default:_(()=>[(i(!0),f(W,null,Q(c,u=>(i(),$(Mu,{key:u.id,device:u,class:"subgrid pb-2"},null,8,["device"]))),128))]),_:2},1024))),128)),r.value?(i(),$(je,{key:0},{title:_(()=>[n("span",{class:"smarthome",onClick:s},h[2]||(h[2]=[n("span",{class:"fas fa-gear"}," ",-1),R(" Einstellungen")]))]),buttons:_(()=>[n("span",{class:"ms-2 pt-1",onClick:s},h[3]||(h[3]=[n("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)]))]),default:_(()=>[b(U,{title:"Im Energie-Graph anzeigen:",icon:"fa-chart-column",fullwidth:!0},{default:_(()=>[(i(!0),f(W,null,Q(t.value,(c,d)=>(i(),f("div",{key:d},[ft(n("input",{id:"check"+d,"onUpdate:modelValue":u=>c.showInGraph=u,class:"form-check-input",type:"checkbox",value:c},null,8,Cu),[[$a,c.showInGraph]]),n("label",{class:"form-check-label px-2",for:"check"+d},x(c.name),9,Iu)]))),128))]),_:1}),n("div",{class:"row p-0 m-0",onClick:s},h[4]||(h[4]=[n("div",{class:"col-12 mb-3 pe-3 mt-0"},[n("button",{class:"btn btn-sm btn-secondary float-end"},"Schließen")],-1)]))]),_:1})):w("",!0)],64))}}),zt=j(Vu,[["__scopeId","data-v-5b5cf6b3"]]),Lu={class:"countername"},Tu={class:"subgrid pt-1"},Ou=B({__name:"ClCounter",props:{counter:{}},setup(a){const e=a,t=g(()=>e.counter.power>0?"Bezug":"Export"),o=g(()=>e.counter.power>0?"var(--color-evu)":"var(--color-pv)");return(s,r)=>(i(),$(nt,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",Lu,x(s.counter.name),1)]),buttons:_(()=>[e.counter.power!=0?(i(),$(Ie,{key:0,bgcolor:o.value},{default:_(()=>[R(x(t.value),1)]),_:1},8,["bgcolor"])):w("",!0),b(Ie,{color:"var(--color-bg)"},{default:_(()=>[R(" ID: "+x(e.counter.id),1)]),_:1})]),default:_(()=>[n("div",Tu,[b(ee,{heading:"Leistung:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[b(bt,{watt:Math.abs(e.counter.power)},null,8,["watt"])]),_:1}),b(ee,{heading:"Bezogen:",small:!0,class:"grid-col-4"},{default:_(()=>[b(Ge,{"watt-h":e.counter.energy_imported},null,8,["watt-h"])]),_:1}),b(ee,{heading:"Exportiert:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[b(Ge,{"watt-h":e.counter.energy_exported},null,8,["watt-h"])]),_:1})])]),_:1}))}}),Au=j(Ou,[["__scopeId","data-v-01dd8c4d"]]);class Eu{constructor(e){v(this,"id");v(this,"name","Zähler");v(this,"power",0);v(this,"energy_imported",0);v(this,"energy_exported",0);v(this,"grid",!1);v(this,"counterType","counter");v(this,"type",K.counter);v(this,"color","var(--color-evu)");v(this,"energy",0);v(this,"energyPv",0);v(this,"energyBat",0);v(this,"pvPercentage",0);v(this,"icon","");v(this,"showInGraph",!0);this.id=e}}const Se=pe({});function zu(a,e){if(a in Se)console.info("Duplicate counter message: "+a);else switch(Se[a]=new Eu(a),Se[a].counterType=e,e){case"counter":Se[a].color="var(--color-evu)";break;case"inverter":Se[a].color="var(--color-pv)";break;case"cp":Se[a].color="var(--color-charging)";break;case"bat":Se[a].color="var(--color-bat)";break}}const Du=B({__name:"CounterList",setup(a){return(e,t)=>(i(),$(je,{"variable-width":!0},{title:_(()=>t[0]||(t[0]=[n("span",{class:"fas fa-bolt me-2",style:{color:"var(--color-evu)"}}," ",-1),n("span",null,"Zähler",-1)])),default:_(()=>[(i(!0),f(W,null,Q(l(Se),(o,s)=>(i(),f("div",{key:s,class:"subgrid pb-2"},[b(Au,{counter:o},null,8,["counter"])]))),128))]),_:1}))}}),Dt=j(Du,[["__scopeId","data-v-5f059284"]]),Wu={class:"vehiclename"},Gu={class:"subgrid"},ju=B({__name:"VlVehicle",props:{vehicle:{}},setup(a){const e=a,t=g(()=>{let s="Unterwegs",r=e.vehicle.chargepoint;return r!=null&&(r.isCharging?s="Lädt ("+r.name+")":r.isPluggedIn&&(s="Bereit ("+r.name+")")),s}),o=g(()=>{let s=e.vehicle.chargepoint;return s!=null?s.isLocked?"var(--color-evu)":s.isCharging?"var(--color-charging)":s.isPluggedIn?"var(--color-battery)":"var(--color-axis)":"var(--color-axis)"});return(s,r)=>(i(),$(nt,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",Wu,x(e.vehicle.name),1)]),default:_(()=>[n("div",Gu,[b(ee,{heading:"Status:",small:!0,class:"grid-left grid-col-4"},{default:_(()=>[n("span",{style:te({color:o.value}),class:"d-flex justify-content-center align-items-center status-string"},x(t.value),5)]),_:1}),b(ee,{heading:"Ladestand:",small:!0,class:"grid-col-4"},{default:_(()=>[R(x(Math.round(e.vehicle.soc))+" % ",1)]),_:1}),b(ee,{heading:"Reichweite:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[R(x(Math.round(e.vehicle.range))+" km ",1)]),_:1})])]),_:1}))}}),Uu=j(ju,[["__scopeId","data-v-9e2cb63e"]]),Fu=B({__name:"VehicleList",setup(a){return(e,t)=>(i(),$(je,{"variable-width":!0},{title:_(()=>t[0]||(t[0]=[n("span",{class:"fas fa-car me-2",style:{color:"var(--color-charging)"}}," ",-1),n("span",null,"Fahrzeuge",-1)])),default:_(()=>[(i(!0),f(W,null,Q(Object.values(l(Z)).filter(o=>o.visible),(o,s)=>(i(),f("div",{key:s,class:"subgrid px-4"},[b(Uu,{vehicle:o},null,8,["vehicle"])]))),128))]),_:1}))}}),Wt=j(Fu,[["__scopeId","data-v-716be083"]]),Nu={class:"grapharea"},Hu={id:"pricechart",class:"p-1 m-0 pricefigure"},Ru={viewBox:"0 0 400 280"},Ju=["id","origin","transform"],dt=380,ka=250,Gt=12,qu=B({__name:"GlobalPriceChart",props:{id:{}},setup(a){const e=a,t=Y(!1),o={top:0,bottom:15,left:20,right:0},s=g(()=>{let I=[];return oe.etPriceList.size>0&&oe.etPriceList.forEach((P,V)=>{I.push([V,P])}),I}),r=g(()=>s.value.length>1?(dt-o.left-o.right)/s.value.length:0),p=g(()=>{let I=Te(s.value,P=>P[0]);return I[1]&&(I[1]=new Date(I[1]),I[1].setTime(I[1].getTime()+36e5)),at().range([o.left,dt-o.right]).domain(I)}),h=g(()=>{let I=[0,0];return s.value.length>0&&(I=Te(s.value,P=>P[1]),I[0]=Math.floor(I[0])-1,I[1]=Math.floor(I[1])+1),I}),c=g(()=>Je().range([ka-o.bottom,0]).domain(h.value)),d=g(()=>{const I=He(),P=[[o.left,c.value(m.lowerPriceBound)],[dt-o.right,c.value(m.lowerPriceBound)]];return I(P)}),u=g(()=>{const I=He(),P=[[o.left,c.value(m.upperPriceBound)],[dt-o.right,c.value(m.upperPriceBound)]];return I(P)}),k=g(()=>{const I=He(),P=[[o.left,c.value(0)],[dt-o.right,c.value(0)]];return I(P)}),M=g(()=>pt(p.value).ticks(s.value.length).tickSize(5).tickSizeInner(-250).tickFormat(I=>I.getHours()%6==0?it("%H:%M")(I):"")),A=g(()=>mt(c.value).ticks(h.value[1]-h.value[0]).tickSize(0).tickSizeInner(-360).tickFormat(I=>I%5!=0?"":I.toString())),G=g(()=>{t.value==!0;const I=ge("g#"+q.value);I.selectAll("*").remove(),I.selectAll("bar").data(s.value).enter().append("g").append("rect").attr("class","bar").attr("x",L=>p.value(L[0])).attr("y",L=>c.value(L[1])).attr("width",r.value).attr("height",L=>c.value(h.value[0])-c.value(L[1])).attr("fill","var(--color-charging)");const V=I.append("g").attr("class","axis").call(M.value);V.attr("transform","translate(0,"+(ka-o.bottom)+")"),V.selectAll(".tick").attr("font-size",Gt).attr("color","var(--color-bg)"),V.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",L=>L.getHours()%6==0?"2":"0.5"),V.select(".domain").attr("stroke","var(--color-bg");const S=I.append("g").attr("class","axis").call(A.value);S.attr("transform","translate("+o.left+",0)"),S.selectAll(".tick").attr("font-size",Gt).attr("color","var(--color-bg)"),S.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",L=>L%5==0?"2":"0.5"),S.select(".domain").attr("stroke","var(--color-bg)"),h.value[0]<0&&I.append("path").attr("d",k.value).attr("stroke","var(--color-fg)"),I.append("path").attr("d",d.value).attr("stroke","green"),I.append("path").attr("d",u.value).attr("stroke","red");const C=I.selectAll("ttip").data(s.value).enter().append("g").attr("class","ttarea");C.append("rect").attr("x",L=>p.value(L[0])).attr("y",L=>c.value(L[1])).attr("height",L=>c.value(h.value[0])-c.value(L[1])).attr("class","ttrect").attr("width",r.value).attr("opacity","1%").attr("fill","var(--color-charging)");const z=C.append("g").attr("class","ttmessage").attr("transform",L=>"translate("+(p.value(L[0])-30+r.value/2)+","+(c.value(L[1])-16)+")");z.append("rect").attr("rx",5).attr("width","60").attr("height","30").attr("fill","var(--color-menu)");const E=z.append("text").attr("text-anchor","middle").attr("x",30).attr("y",12).attr("font-size",Gt).attr("fill","var(--color-bg)");return E.append("tspan").attr("x",30).attr("dy","0em").text(L=>it("%H:%M")(L[0])),E.append("tspan").attr("x",30).attr("dy","1.1em").text(L=>Math.round(L[1]*10)/10+" ct"),"PriceChart.vue"}),q=g(()=>"priceChartCanvas"+e.id);return Oe(()=>{t.value=!t.value}),(I,P)=>(i(),$(je,{"variable-width":!0},{title:_(()=>P[0]||(P[0]=[n("span",{class:"fas fa-coins me-2",style:{color:"var(--color-battery)"}}," ",-1),n("span",null,"Strompreis",-1)])),buttons:_(()=>[l(oe).active?(i(),$(Ie,{key:0,bgcolor:"var(--color-charging)"},{default:_(()=>[R(x(l(oe).etCurrentPriceString),1)]),_:1})):w("",!0),l(oe).active?(i(),$(Ie,{key:1,bgcolor:"var(--color-menu)"},{default:_(()=>[R(x(l(oe).etProvider),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",Nu,[n("figure",Hu,[(i(),f("svg",Ru,[n("g",{id:q.value,origin:G.value,transform:"translate("+o.top+","+o.left+") "},null,8,Ju)]))])])]),_:1}))}}),jt=j(qu,[["__scopeId","data-v-578b98b5"]]),Yu={class:"subgrid pt-1"},Qu=B({__name:"IlInverter",props:{inverter:{}},setup(a){const e=a,t=g(()=>({color:e.inverter.color}));return(o,s)=>(i(),$(nt,{titlecolor:"var(--color-title)",fullwidth:!0},{title:_(()=>[n("span",{class:"invertername",style:te(t.value)},x(o.inverter.name),5)]),buttons:_(()=>[e.inverter.power<0?(i(),$(Ie,{key:0,bgcolor:"var(--color-pv)"},{default:_(()=>[R(x(l(Pe)(-e.inverter.power)),1)]),_:1})):w("",!0)]),default:_(()=>[n("div",Yu,[b(ee,{heading:"Heute:",small:!0,class:"grid-col-4 grid-left"},{default:_(()=>[b(Ge,{"watt-h":e.inverter.energy},null,8,["watt-h"])]),_:1}),b(ee,{heading:"Monat:",small:!0,class:"grid-col-4"},{default:_(()=>[b(Ge,{"watt-h":e.inverter.energy_month},null,8,["watt-h"])]),_:1}),b(ee,{heading:"Jahr:",small:!0,class:"grid-right grid-col-4"},{default:_(()=>[b(Ge,{"watt-h":e.inverter.energy_year},null,8,["watt-h"])]),_:1})])]),_:1}))}}),Zu=j(Qu,[["__scopeId","data-v-258d8f17"]]),Xu=B({__name:"InverterList",setup(a){const e=g(()=>[...be.value.values()].sort((t,o)=>t.id-o.id));return(t,o)=>(i(),$(je,{"variable-width":!0},{title:_(()=>o[0]||(o[0]=[n("span",{class:"fas fa-solar-panel me-2",style:{color:"var(--color-pv)"}}," ",-1),n("span",null,"Wechselrichter",-1)])),buttons:_(()=>[l(J).pv.power>0?(i(),$(Ie,{key:0,bgcolor:"var(--color-pv)"},{default:_(()=>[R(x(l(Pe)(l(J).pv.power)),1)]),_:1})):w("",!0)]),default:_(()=>[(i(!0),f(W,null,Q(e.value,s=>(i(),f("div",{key:s.id,class:"subgrid pb-2"},[b(Zu,{inverter:s},null,8,["inverter"])]))),128))]),_:1}))}}),Ut=j(Xu,[["__scopeId","data-v-8a9444cf"]]),Ku={class:"row py-0 px-0 m-0"},ed=["breakpoints"],td=B({__name:"CarouselFix",setup(a){let e,t;const o=Y(!1),s=g(()=>o.value?{992:{slidesPerView:1,spaceBetween:0}}:{992:{slidesPerView:3,spaceBetween:0}});return an(()=>m.zoomGraph,r=>{if(e){let p=r?"1":"3";t.setAttribute("slides-per-view",p),e.activeIndex=m.zoomedWidget,e.update()}}),Oe(()=>{let r=document.querySelector(".swiper-carousel");r&&(t=r,e=t.swiper)}),(r,p)=>(i(),f("div",Ku,[n("swiper-container",{"space-between":0,pagination:{clickable:!0},"slides-per-view":"1",class:"p-0 m-0 swiper-carousel",breakpoints:s.value},[n("swiper-slide",null,[n("div",{class:H([l(We)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[de(r.$slots,"item1",{},void 0,!0)],2)]),n("swiper-slide",null,[n("div",{class:H([l(We)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[de(r.$slots,"item2",{},void 0,!0)],2)]),n("swiper-slide",null,[n("div",{class:H([l(We)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[de(r.$slots,"item3",{},void 0,!0)],2)])],8,ed)]))}}),ad=j(td,[["__scopeId","data-v-17424929"]]);function nd(a,e){a=="openWB/graph/boolDisplayLiveGraph"?he.displayLiveGraph=+e==1:a.match(/^openwb\/graph\/alllivevaluesJson[1-9][0-9]*$/i)?rd(a,e):a=="openWB/graph/lastlivevaluesJson"?od(a,e):a=="openWB/graph/config/duration"&&(me.duration=JSON.parse(e))}function rd(a,e){if(!me.initialized){let t=[];const o=e.toString().split(` -`);o.length>1?t=o.map(p=>JSON.parse(p)):t=[];const s=a.match(/(\d+)$/g),r=s?s[0]:"";r!=""&&typeof me.rawDataPacks[+r-1]>"u"&&(me.rawDataPacks[+r-1]=t,me.initCounter++)}if(me.initCounter==16){const t=[];me.unsubscribeRefresh(),me.initialized=!0,me.rawDataPacks.forEach(o=>{o.forEach(s=>{const r=Wa(s);t.push(r)})}),vt(t),me.subscribeUpdates()}}function od(a,e){const t=JSON.parse(e),o=Wa(t);me.graphRefreshCounter++,vt(y.data.concat(o)),me.graphRefreshCounter>60&&me.activate()}function Wa(a){const e=Object.values(O).length>0?Object.values(O)[0].connectedVehicle:0,t=Object.values(O).length>1?Object.values(O)[1].connectedVehicle:1,o="ev"+e+"-soc",s="ev"+t+"-soc",r={};r.date=+a.timestamp*1e3,+a.grid>0?(r.evuIn=+a.grid,r.evuOut=0):+a.grid<=0?(r.evuIn=0,r.evuOut=-a.grid):(r.evuIn=0,r.evuOut=0),+a["pv-all"]>=0?(r.pv=+a["pv-all"],r.inverter=0):(r.pv=0,r.inverter=-a["pv-all"]),r.house=+a["house-power"],+a["bat-all-power"]>0?(r.batOut=0,r.batIn=+a["bat-all-power"]):+a["bat-all-power"]<0?(r.batOut=-a["bat-all-power"],r.batIn=0):(r.batOut=0,r.batIn=0),a["bat-all-soc"]?r.batSoc=+a["bat-all-soc"]:r.batSoc=0,a[o]&&(r["soc"+e]=+a[o]),a[s]&&(r["soc"+t]=+a[s]),r.charging=+a["charging-all"];for(let p=0;p<10;p++){const h="cp"+p;r[h]=+(a[h+"-power"]??0)}return r.selfUsage=r.pv-r.evuOut,r.selfUsage<0&&(r.selfUsage=0),r.devices=0,r}const sd=["evuIn","pv","batOut","evuOut","charging","house"];let Mt=[];function ld(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Ne.value=new Map(Object.entries(o)),na(),Mt=[],Xt.forEach(p=>{T.setEnergyPv(p,0),T.setEnergyBat(p,0)});const r=id(t);vt(r),Kt(s,Mt),m.debug&&ud(t,s,r),y.graphMode=="today"&&setTimeout(()=>ue.activate(),3e5)}function id(a){const e=[];let t={};return a.forEach(o=>{t=cd(o);const s=t;e.push(s)}),e}function cd(a){const e={};e.date=a.timestamp*1e3,e.evuOut=0,e.evuIn=0,Object.entries(a.counter).forEach(([s,r])=>{r.grid&&(e.evuOut+=r.power_exported,e.evuIn+=r.power_imported,Mt.includes(s)||Mt.push(s))}),e.evuOut==0&&e.evuIn==0&&Object.entries(a.counter).forEach(s=>{e.evuOut+=s[1].power_exported,e.evuIn+=s[1].power_imported}),Object.entries(a.pv).forEach(([s,r])=>{s!="all"?e[s]=r.power_exported:e.pv=r.power_exported}),Object.entries(a.bat).length>0?(e.batIn=a.bat.all.power_imported,e.batOut=a.bat.all.power_exported,e.batSoc=a.bat.all.soc??0):(e.batIn=0,e.batOut=0,e.batSoc=0),Object.entries(a.cp).forEach(([s,r])=>{s!="all"?(e[s]=r.power_imported,T.keys().includes(s)||T.addItem(s)):e.charging=r.power_imported}),Object.entries(a.ev).forEach(([s,r])=>{s!="all"&&(e["soc"+s.substring(2)]=r.soc)}),e.devices=0;let t=0;return Object.entries(a.sh).forEach(([s,r])=>{var p;s!="all"&&(e[s]=r.power_imported??0,T.keys().includes(s)||(T.addItem(s),T.items[s].showInGraph=ne.get(+s.slice(2)).showInGraph),(p=ne.get(+s.slice(2)))!=null&&p.countAsHouse?t+=e[s]:e.devices+=r.power_imported??0)}),e.selfUsage=Math.max(0,e.pv-e.evuOut),a.hc&&a.hc.all?e.house=a.hc.all.power_imported-t:e.house=e.evuIn+e.batOut+e.pv-e.evuOut-e.charging-e.devices-e.batOut,e.evuIn+e.batOut+e.pv>0?T.keys().filter(s=>!sd.includes(s)&&s!="charging").forEach(s=>{Cn(s,e)}):Object.keys(e).forEach(s=>{e[s+"Pv"]=0,e[s+"Bat"]=0}),e}function ud(a,e,t){console.debug("---------------------------------------- Graph Data -"),console.debug(["--- Incoming graph data:",a]),console.debug(["--- Incoming energy data:",e]),console.debug(["--- Data to be displayed:",t]),console.debug("-----------------------------------------------------")}let wt={};const oa=["charging","house","batIn","devices"],dd=["evuIn","pv","batOut","batIn","evuOut","devices","sh1","sh2","sh3","sh4","sh5","sh6","sh7","sh8","sh9"];let tt=[];function hd(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Ne.value=new Map(Object.entries(o)),na(),tt=[],oa.forEach(r=>{T.items[r].energyPv=0,T.items[r].energyBat=0}),t.length>0&&vt(Ga(t)),Kt(s,tt)}function pd(a,e){const{entries:t,names:o,totals:s}=JSON.parse(e);Ne.value=new Map(Object.entries(o)),na(),tt=[],oa.forEach(r=>{T.items[r].energyPv=0,T.items[r].energyBat=0}),t.length>0&&vt(Ga(t)),Kt(s,tt)}function Ga(a){const e=[];let t={};return wt={},a.forEach(o=>{t=gd(o),e.push(t),Object.keys(t).forEach(s=>{s!="date"&&(t[s]<0&&(console.warn(`Negative energy value for ${s} in row ${t.date}. Ignoring the value.`),t[s]=0),wt[s]?wt[s]+=t[s]:wt[s]=t[s])})}),e}function gd(a){const e={},t=nn("%Y%m%d")(a.date);t&&(e.date=y.graphMode=="month"?t.getDate():t.getMonth()+1),e.evuOut=0,e.evuIn=0;let o=0,s=0;return Object.entries(a.counter).forEach(([p,h])=>{o+=h.energy_exported,s+=h.energy_imported,h.grid&&(e.evuOut+=h.energy_exported,e.evuIn+=h.energy_imported,tt.includes(p)||tt.push(p))}),tt.length==0&&(e.evuOut=o,e.evuIn=s),e.pv=a.pv.all.energy_exported,Object.entries(a.bat).length>0?(a.bat.all.energy_imported>=0?e.batIn=a.bat.all.energy_imported:(console.warn("ignoring negative value for batIn on day "+e.date),e.batIn=0),a.bat.all.energy_exported>=0?e.batOut=a.bat.all.energy_exported:(console.warn("ignoring negative value for batOut on day "+e.date),e.batOut=0)):(e.batIn=0,e.batOut=0),Object.entries(a.cp).forEach(([p,h])=>{p!="all"?(T.keys().includes(p)||T.addItem(p),e[p]=h.energy_imported):e.charging=h.energy_imported}),Object.entries(a.ev).forEach(([p,h])=>{p!="all"&&(e["soc-"+p]=h.soc)}),e.devices=Object.entries(a.sh).reduce((p,h)=>(T.keys().includes(h[0])||T.addItem(h[0]),h[1].energy_imported>=0?p+=h[1].energy_imported:console.warn(`Negative energy value for device ${h[0]} in row ${e.date}. Ignoring this value`),p),0),a.hc&&a.hc.all?e.house=a.hc.all.energy_imported:e.house=e.pv+e.evuIn+e.batOut-e.evuOut-e.batIn-e.charging,e.selfUsage=e.pv-e.evuOut,e.evuIn+e.batOut+e.pv>0?T.keys().filter(p=>!dd.includes(p)).forEach(p=>{In(p,e)}):oa.map(p=>{e[p+"Pv"]=0,e[p+"Bat"]=0}),e}function md(a,e){const t=fd(a);if(t&&!se.value.has(t)){console.warn("Invalid battery index: ",t);return}a=="openWB/bat/config/configured"?he.isBatteryConfigured=e=="true":a=="openWB/bat/get/power"?+e>0?(F.batIn.power=+e,J.batOut.power=0):(F.batIn.power=0,J.batOut.power=-e):a=="openWB/bat/get/soc"?he.batterySoc=+e:a=="openWB/bat/get/daily_exported"?J.batOut.energy=+e:a=="openWB/bat/get/daily_imported"?F.batIn.energy=+e:t&&se.value.has(t)&&(a.match(/^openwb\/bat\/[0-9]+\/get\/daily_exported$/i)?se.value.get(t).dailyYieldExport=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/daily_imported$/i)?se.value.get(t).dailyYieldImport=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/exported$/i)?se.value.get(t).exported=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/fault_state$/i)?se.value.get(t).faultState=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/fault_str$/i)?se.value.get(t).faultStr=e:a.match(/^openwb\/bat\/[0-9]+\/get\/imported$/i)?se.value.get(t).imported=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/power$/i)?se.value.get(t).power=+e:a.match(/^openwb\/bat\/[0-9]+\/get\/soc$/i)&&(se.value.get(t).soc=+e))}function fd(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}function vd(a,e){if(a=="openWB/optional/et/provider")JSON.parse(e).type==null?oe.active=!1:(oe.active=!0,oe.etProvider=JSON.parse(e).name);else if(a=="openWB/optional/et/get/prices"){const t=JSON.parse(e);oe.etPriceList=new Map,Object.keys(t).forEach(o=>{oe.etPriceList.set(new Date(+o*1e3),t[o]*1e5)})}}function bd(a,e){const t=ja(a);if(t&&!(t in O)){console.warn("Invalid chargepoint id received: "+t);return}if(a=="openWB/chargepoint/get/power"?F.charging.power=+e:a=="openWB/chargepoint/get/daily_imported"&&(F.charging.energy=+e),a=="openWB/chargepoint/get/daily_exported")he.cpDailyExported=+e;else if(t)if(a.match(/^openwb\/chargepoint\/[0-9]+\/config$/i))if(O[t]){const o=JSON.parse(e);O[t].name=o.name,O[t].icon=o.name,ie["cp"+t]?(ie["cp"+t].name=o.name,ie["cp"+t].icon=o.name):ie["cp"+t]={name:o.name,icon:o.name,color:"var(--color-charging)"}}else console.warn("invalid chargepoint index: "+t);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/state_str$/i))O[t].stateStr=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_str$/i))O[t].faultStr=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_state$/i))O[t].faultState=+e;else if(a.match(/^openWB\/chargepoint\/[0-9]+\/get\/power$/i))O[t].power=+e;else if(a.match(/^openWB\/chargepoint\/[0-9]+\/get\/daily_imported$/i))O[t].dailyYield=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/plug_state$/i))O[t].isPluggedIn=e=="true";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/charge_state$/i))O[t].isCharging=e=="true";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/manual_lock$/i))O[t].updateIsLocked(e=="true");else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/enabled$/i))O[t].isEnabled=e=="1";else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/phases_in_use/i))O[t].phasesInUse=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/current/i))O[t].current=+e;else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/currents/i))O[t].currents=JSON.parse(e);else if(a.match(/^openwb\/chargepoint\/[0-9]+\/set\/log/i)){const o=JSON.parse(e);O[t].chargedSincePlugged=o.imported_since_plugged}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/soc$/i)){const o=JSON.parse(e);O[t].soc=o.soc,O[t].waitingForSoc=!1,O[t].rangeCharged=o.range_charged,O[t].rangeUnit=o.range_unit}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/info$/i)){const o=JSON.parse(e);O[t].vehicleName=String(o.name),O[t].updateConnectedVehicle(+o.id)}else if(a.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/config$/i)){const o=JSON.parse(e);O[t].averageConsumption=o.average_consumption}else a.match(/^openwb\/chargepoint\/[0-9]+\/set\/charge_template$/i)&&(O[t].chargeTemplate=JSON.parse(e))}function yd(a,e){const t=ja(a);if(t!=null){if(!(t in Z)){const o=new wn(t);Z[t]=o}if(a.match(/^openwb\/vehicle\/[0-9]+\/name$/i))Object.values(O).forEach(o=>{o.connectedVehicle==t&&(o.vehicleName=JSON.parse(e))}),Z[t].name=JSON.parse(e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/get\/soc$/i))Z[t].soc=JSON.parse(e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/get\/range$/i))isNaN(+e)?Z[t].range=0:Z[t].range=+e;else if(a.match(/^openwb\/vehicle\/[0-9]+\/charge_template$/i))Z[t].updateChargeTemplateId(+e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/ev_template$/i))Z[t].updateEvTemplateId(+e);else if(a.match(/^openwb\/vehicle\/[0-9]+\/soc_module\/config$/i)){const o=JSON.parse(e);Object.values(O).forEach(s=>{s.connectedVehicle==t&&(s.isSocConfigured=o.type!==null,s.isSocManual=o.type=="manual")}),Z[t].isSocConfigured=o.type!==null,Z[t].isSocManual=o.type=="manual"}}}function _d(a,e){if(a.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+$/i)){const t=a.match(/[0-9]+$/i);if(t){const o=+t[0];Nt[o]=JSON.parse(e)}}else if(a.match(/^openwb\/vehicle\/template\/ev_template\/[0-9]+$/i)){const t=a.match(/[0-9]+$/i);if(t){const o=+t[0],s=JSON.parse(e);kn[o]=s}}}function ja(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}function wd(a,e){a.match(/^openWB\/LegacySmarthome\/config\//i)?kd(a,e):a.match(/^openWB\/LegacySmarthome\/Devices\//i)&&xd(a,e)}function kd(a,e){const t=Ua(a);if(t==null)return;ne.has(t)||qt(t);const o=ne.get(t);a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_configured$/i)?(o.configured=e!="0",Jt("power"),Jt("energy")):a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_name$/i)?(o.name=e.toString(),o.icon=e.toString(),ie["sh"+t].name=e.toString(),ie["sh"+t].icon=e.toString()):a.match(/^openWB\/LegacySmarthome\/config\/set\/Devices\/[0-9]+\/mode$/i)?o.isAutomatic=e=="0":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_canSwitch$/i)?o.canSwitch=e=="1":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_homeConsumtion$/i)?o.countAsHouse=e=="1":a.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_temperatur_configured$/i)&&(o.tempConfigured=+e)}function xd(a,e){const t=Ua(a);if(t==null){console.warn("Smarthome: Missing index in "+a);return}ne.has(t)||qt(t);const o=ne.get(t);if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Watt$/i))o.power=+e,Jt("power");else if(!a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Wh$/i)){if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/RunningTimeToday$/i))o.runningTime=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor0$/i))o.temp[0]=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor1$/i))o.temp[1]=+e;else if(a.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor2$/i))o.temp[2]=+e;else if(a.match(/^openWB\/LegacySmartHome\/Devices\/[0-9]+\/Status$/i))switch(+e){case 10:o.status="off";break;case 11:o.status="on";break;case 20:o.status="detection";break;case 30:o.status="timeout";break;default:o.status="off"}}}function Jt(a){switch(a){case"power":F.devices.power=[...ne.values()].filter(e=>e.configured&&!e.countAsHouse).reduce((e,t)=>e+t.power,0);break;case"energy":F.devices.energy=[...ne.values()].filter(e=>e.configured&&!e.countAsHouse).reduce((e,t)=>e+t.energy,0);break;default:console.error("Unknown category")}}function Ua(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}const Pt=pe([]);class sa{constructor(e,t,o,s){v(this,"name");v(this,"children");v(this,"count");v(this,"lastValue");this.name=e,this.children=t,this.count=o,this.lastValue=s}insert(e,t){if(e.length){const o=e.splice(1);if(e[0]==this.name)if(o.length){let s=!1;if(this.children.forEach(r=>{r.name==o[0]&&(r.insert(o,t),s=!0)}),!s){const r=new sa(o[0],[],0,"");r.insert(o,t),this.children.push(r)}}else this.count=this.count+1,this.lastValue=t}}}function Sd(a,e){const t=a.split("/");if(t.length){let o=!1;if(Pt.forEach(s=>{s.name==t[0]&&(s.insert(t,e),o=!0)}),!o){const s=new sa(t[0],[],0,"");Pt.push(s),s.insert(t,e)}}}const $d=["openWB/counter/#","openWB/bat/#","openWB/pv/#","openWB/chargepoint/#","openWB/vehicle/#","openWB/general/chargemode_config/pv_charging/#","openWB/optional/et/#","openWB/system/#","openWB/LegacySmartHome/#","openWB/command/"+Yt()+"/#"];function Md(){bn(Pd),$d.forEach(a=>{et(a)}),ve()}function Pd(a,e){Sd(a,e.toString());const t=e.toString();a.match(/^openwb\/counter\/[0-9]+\//i)?Cd(a,t):a.match(/^openwb\/counter\//i)?Id(a,t):a.match(/^openwb\/bat\//i)?md(a,t):a.match(/^openwb\/pv\//i)?Bd(a,t):a.match(/^openwb\/chargepoint\//i)?bd(a,t):a.match(/^openwb\/vehicle\/template\//i)?_d(a,t):a.match(/^openwb\/vehicle\//i)?yd(a,t):a.match(/^openwb\/general\/chargemode_config\/pv_charging\//i)?Vd(a,t):a.match(/^openwb\/graph\//i)?nd(a,t):a.match(/^openwb\/log\/daily\//i)?ld(a,t):a.match(/^openwb\/log\/monthly\//i)?hd(a,t):a.match(/^openwb\/log\/yearly\//i)?pd(a,t):a.match(/^openwb\/optional\/et\//i)?vd(a,t):a.match(/^openwb\/system\//i)?Td(a,t):a.match(/^openwb\/LegacySmartHome\//i)?wd(a,t):a.match(/^openwb\/command\//i)&&Od(a,t)}function Cd(a,e){const t=a.split("/"),o=+t[2];if(o==he.evuId?Ld(a,e):t[3]=="config",t[3]=="get"&&o in Se)switch(t[4]){case"power":Se[o].power=+e;break;case"config":break;case"fault_str":break;case"fault_state":break;case"power_factors":break;case"imported":break;case"exported":break;case"frequency":break;case"daily_imported":Se[o].energy_imported=+e;break;case"daily_exported":Se[o].energy_exported=+e;break}}function Id(a,e){if(a.match(/^openwb\/counter\/get\/hierarchy$/i)){const t=JSON.parse(e);if(t.length){Sn(),Nn();for(const o of t)o.type=="counter"&&(he.evuId=o.id);Fa(t[0])}}else a.match(/^openwb\/counter\/set\/home_consumption$/i)?F.house.power=+e:a.match(/^openwb\/counter\/set\/daily_yield_home_consumption$/i)&&(F.house.energy=+e)}function Fa(a){switch(a.type){case"counter":zu(a.id,a.type);break;case"cp":xn(a.id);break;case"bat":Ta(a.id);break;case"inverter":Gn(a.id);break}a.children.forEach(e=>Fa(e))}function Bd(a,e){const t=Ad(a);t&&!be.value.has(t)?console.warn("Invalid PV system index: "+t):a=="openWB/pv/get/power"?J.pv.power=-e:a=="openWB/pv/get/daily_exported"?J.pv.energy=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/power$/i)?be.value.get(t).power=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/daily_exported$/i)?be.value.get(t).energy=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/monthly_exported$/i)?be.value.get(t).energy_month=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/yearly_exported$/i)?be.value.get(t).energy_year=+e:a.match(/^openWB\/pv\/[0-9]+\/get\/exported$/i)&&(be.value.get(t).energy_total=+e)}function Vd(a,e){const t=a.split("/");if(t.length>0)switch(t[4]){case"bat_mode":he.updatePvBatteryPriority(JSON.parse(e));break}}function Ld(a,e){switch(a.split("/")[4]){case"power":+e>0?(J.evuIn.power=+e,F.evuOut.power=0):(J.evuIn.power=0,F.evuOut.power=-e);break;case"daily_imported":J.evuIn.energy=+e;break;case"daily_exported":F.evuOut.energy=+e;break}}function Td(a,e){if(a.match(/^openWB\/system\/device\/[0-9]+\/component\/[0-9]+\/config$/i)){const t=JSON.parse(e);switch(t.type){case"counter":case"consumption_counter":Se[t.id]&&(Se[t.id].name=t.name);break;case"inverter":case"inverter_secondary":be.value.has(t.id)||be.value.set(t.id,new Ma(t.id)),be.value.get(t.id).name=t.name;break;case"bat":se.value.has(t.id)||Ta(t.id),se.value.get(t.id).name=t.name}}}function Od(a,e){const t=a.split("/");if(a.match(/^openWB\/command\/[a-z]+\/error$/i)&&t[2]==Yt()){const o=JSON.parse(e);console.error(`Error message from openWB: -Command: ${o.command} -Data: JSON.stringify(err.data) -Error: - ${o.error}`)}}function Ad(a){let e=0;try{const t=a.match(/(?:\/)([0-9]+)(?=\/)/g);return t?(e=+t[0].replace(/[^0-9]+/g,""),e):void 0}catch(t){console.warn("Parser error in getIndex for topic "+a+": "+t)}}const Ed={key:0,class:"fas fa-caret-down"},zd={key:1,class:"fas fa-caret-right"},Dd={key:0,class:"content p-2 m-2"},Wd={key:1,class:"sublist col-md-9 m-0 p-0 ps-2"},Gd=B({__name:"MqttNode",props:{node:{},level:{},hide:{type:Boolean},expandAll:{type:Boolean}},setup(a){const e=a;let t=Y(!e.hide),o=Y(!1);const s=g(()=>e.node.name),r=g(()=>[...e.node.children].sort((u,k)=>u.namee.node.count>0?"("+e.node.count+")":""),h=g(()=>e.node.children.length),c=g(()=>e.node.lastValue!=""?{"font-style":"italic","grid-column-start":e.level,"grid-column-end":-1}:{"grid-column-start":e.level,"grid-column-end":-1});function d(){h.value>0&&(t.value=!t.value),e.node.lastValue!=""&&(o.value=!o.value)}return(u,k)=>{const M=rn("MqttNode",!0);return i(),f(W,null,[n("div",{class:"name py-2 px-2 m-0",style:te(c.value),onClick:d},[(l(t)||e.expandAll)&&h.value>0||l(o)?(i(),f("span",Ed)):(i(),f("span",zd)),R(" "+x(s.value)+x(p.value),1)],4),l(o)?(i(),f("div",Dd,[n("code",null,x(e.node.lastValue),1)])):w("",!0),(l(t)||e.expandAll)&&h.value>0?(i(),f("div",Wd,[(i(!0),f(W,null,Q(r.value,(A,G)=>(i(),$(M,{key:G,level:e.level+1,node:A,hide:!0,"expand-all":e.expandAll},null,8,["level","node","expand-all"]))),128))])):w("",!0)],64)}}}),jd=j(Gd,[["__scopeId","data-v-df7e578a"]]),Ud={class:"mqviewer"},Fd={class:"row pt-2"},Nd={class:"col"},Hd={key:0,class:"topiclist"},Rd=B({__name:"MQTTViewer",setup(a){Oe(()=>{});const e=Y(!1);function t(){e.value=!e.value}const o=g(()=>e.value?"active":"");return(s,r)=>(i(),f("div",Ud,[n("div",Fd,[n("div",Nd,[r[0]||(r[0]=n("h3",{class:"mqtitle ps-2"},"MQTT Message Viewer",-1)),r[1]||(r[1]=n("hr",null,null,-1)),n("button",{class:H(["btn btn-small btn-outline-primary ms-2",o.value]),onClick:t}," Expand All ",2),r[2]||(r[2]=n("hr",null,null,-1))])]),l(Pt)[0]?(i(),f("div",Hd,[(i(!0),f(W,null,Q(l(Pt)[0].children.sort((p,h)=>p.name(i(),$(jd,{key:h,node:p,level:1,hide:!0,"expand-all":e.value},null,8,["node","expand-all"]))),128))])):w("",!0)]))}}),Jd=j(Rd,[["__scopeId","data-v-a349646d"]]),qd=["value"],Yd=B({__name:"SelectInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,o=e,s=g({get(){return t.modelValue},set(r){o("update:modelValue",r)}});return(r,p)=>ft((i(),f("select",{id:"selectme","onUpdate:modelValue":p[0]||(p[0]=h=>s.value=h),class:"form-select"},[(i(!0),f(W,null,Q(r.options,(h,c)=>(i(),f("option",{key:c,value:h[1]},x(h[0]),9,qd))),128))],512)),[[on,s.value]])}}),Qd=j(Yd,[["__scopeId","data-v-5e33ce1f"]]),Zd={class:"subgrid m-0 p-0"},Xd={class:"settingscolumn"},Kd={class:"settingscolumn"},eh={class:"settingscolumn"},th=B({__name:"ThemeSettings",emits:["reset-arcs"],setup(a,{emit:e}){const t=e,o=[["Dunkel","dark"],["Hell","light"],["Blau","blue"]],s=[["3 kW","0"],["3,1 kW","1"],["3,14 kW","2"],["3,141 kW","3"],["3141 W","4"]],r=[["Orange","normal"],["Grün/Violett","standard"],["Bunt","advanced"]],p=[["Aus","off"],["Menü","navbar"],["Buttonleiste","buttonbar"]],h=[["Aus","no"],['"Alles"-Reiter',"infoview"],["Immer","always"]];return(c,d)=>(i(),$(je,{"full-width":!0},{title:_(()=>d[23]||(d[23]=[R(" Look & Feel ")])),buttons:_(()=>d[24]||(d[24]=[n("span",{type:"button",class:"float-end mt-0 ms-1","data-bs-toggle":"collapse","data-bs-target":"#themesettings"},[n("span",null,[n("i",{class:"fa-solid fa-circle-check"})])],-1)])),default:_(()=>[n("div",Zd,[n("div",Xd,[b(U,{fullwidth:!0,title:"Farbschema",icon:"fa-adjust",infotext:"Hintergrundfarbe"},{default:_(()=>[b(xe,{modelValue:l(m).displayMode,"onUpdate:modelValue":d[0]||(d[0]=u=>l(m).displayMode=u),options:o},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Farbschema Smart-Home-Geräte",icon:"fa-palette",infotext:"Für die Smart-Home-Geräte stehen mehrere Schemata zur Verfügung."},{default:_(()=>[b(xe,{modelValue:l(m).smartHomeColors,"onUpdate:modelValue":d[1]||(d[1]=u=>l(m).smartHomeColors=u),options:r},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Grafik: Raster",icon:"fa-th",infotext:"Verwende ein Hintergrundraster in den Grafiken"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showGrid,"onUpdate:modelValue":d[2]||(d[2]=u=>l(m).showGrid=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Variable Bogenlänge",icon:"fa-chart-area",infotext:"Im Graph 'Aktuelle Leistung' können die Bögen immer die volle Länge haben, oder entsprechend des aktuellen Gesamtleistung verkürzt dargestellt werden."},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showRelativeArcs,"onUpdate:modelValue":d[3]||(d[3]=u=>l(m).showRelativeArcs=u)},null,8,["modelValue"])]),_:1}),l(m).showRelativeArcs?(i(),$(U,{key:0,fullwidth:!0,title:"Bögen zurücksetzen",icon:"fa-undo",infotext:"Durch Click auf den Button wird die Maximallänge der Bögen auf den aktuellen Wert gesetzt."},{default:_(()=>[l(m).showRelativeArcs?(i(),f("button",{key:0,class:"btn btn-secondary",onClick:d[4]||(d[4]=u=>t("reset-arcs"))}," Reset ")):w("",!0)]),_:1})):w("",!0),b(U,{fullwidth:!0,title:"Anzahl Dezimalstellen",icon:"fa-sliders-h",infotext:"Alle kW- und kWh-Werte werden mit der gewählten Anzahl an Stellen angezeigt."},{default:_(()=>[b(Qd,{modelValue:l(m).decimalPlaces,"onUpdate:modelValue":d[5]||(d[5]=u=>l(m).decimalPlaces=u),options:s},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Uhrzeit anzeigen",icon:"fa-clock",infotext:"Zeige die aktuelle Uhrzeit an. In der Menüleiste oder neben den Lade-Buttons."},{default:_(()=>[b(xe,{modelValue:l(m).showClock,"onUpdate:modelValue":d[6]||(d[6]=u=>l(m).showClock=u),options:p},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Kompakte Ladepunktliste",icon:"fa-list",infotext:"Zeige eine einzelne Ladepunktliste statt separater Element pro Ladepunkt."},{default:_(()=>[b(xe,{modelValue:l(m).shortCpList,"onUpdate:modelValue":d[7]||(d[7]=u=>l(m).shortCpList=u),options:h},null,8,["modelValue"])]),_:1})]),n("div",Kd,[b(U,{fullwidth:!0,title:"Buttonleiste für Ladepunkte",icon:"fa-window-maximize",infotext:"Informationen zu Ladepunkten über den Diagrammen anzeigen."},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showButtonBar,"onUpdate:modelValue":d[8]||(d[8]=u=>l(m).showButtonBar=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Filter-Buttons",icon:"fa-filter",infotext:"Hauptseite mit Buttons zur Auswahl der Kategorie."},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showQuickAccess,"onUpdate:modelValue":d[9]||(d[9]=u=>l(m).showQuickAccess=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Breite Widgets",icon:"fa-desktop",infotext:"Widgets immer breit machen"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).preferWideBoxes,"onUpdate:modelValue":d[10]||(d[10]=u=>l(m).preferWideBoxes=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Stufenlose Displaybreite",icon:"fa-maximize",infotext:"Die Breite des Displays wird immer voll ausgenutzt. Dies kann in einigen Fällen zu inkorrekter Darstellung führen."},{"inline-item":_(()=>[b(ce,{modelValue:l(m).fluidDisplay,"onUpdate:modelValue":d[11]||(d[11]=u=>l(m).fluidDisplay=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Animationen",icon:"fa-film",infotext:"Animationen anzeigen"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showAnimations,"onUpdate:modelValue":d[12]||(d[12]=u=>l(m).showAnimations=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Zähler anzeigen",icon:"fa-chart-bar",infotext:"Zeige die Werte zusätzlich angelegter Zähler"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showCounters,"onUpdate:modelValue":d[13]||(d[13]=u=>l(m).showCounters=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Fahrzeuge anzeigen",icon:"fa-car",infotext:"Zeige alle Fahrzeuge mit Ladestand und Reichweite"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showVehicles,"onUpdate:modelValue":d[14]||(d[14]=u=>l(m).showVehicles=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Standardfahrzeug anzeigen",icon:"fa-car",infotext:"Zeige das Standard-Fahrzeug in der Fahzeugliste"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showStandardVehicle,"onUpdate:modelValue":d[15]||(d[15]=u=>l(m).showStandardVehicle=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Wechselrichter-Details anzeigen",icon:"fa-solar-panel",infotext:"Zeige Details zu den einzelnen Wechselrichtern"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showInverters,"onUpdate:modelValue":d[16]||(d[16]=u=>l(m).showInverters=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Alternatives Energie-Widget",icon:"fa-chart-area",infotext:"Horizontale Darstellung der Energie-Werte"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).alternativeEnergy,"onUpdate:modelValue":d[17]||(d[17]=u=>l(m).alternativeEnergy=u)},null,8,["modelValue"])]),_:1})]),n("div",eh,[b(U,{fullwidth:!0,title:"Preistabelle anzeigen",icon:"fa-car",infotext:"Zeige die Strompreistabelle in einer separaten Box an"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).showPrices,"onUpdate:modelValue":d[18]||(d[18]=u=>l(m).showPrices=u)},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Untere Markierung in der Preistabelle",icon:"fa-car",infotext:"Position der unteren Markierung festlegen"},{default:_(()=>[b(we,{id:"lowerPriceBound",modelValue:l(m).lowerPriceBound,"onUpdate:modelValue":d[19]||(d[19]=u=>l(m).lowerPriceBound=u),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"Obere Markierung in der Preistabelle",icon:"fa-car",infotext:"Position der oberen Markierung festlegen"},{default:_(()=>[b(we,{id:"upperPriceBound",modelValue:l(m).upperPriceBound,"onUpdate:modelValue":d[20]||(d[20]=u=>l(m).upperPriceBound=u),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])]),_:1}),b(U,{fullwidth:!0,title:"IFrame-Support für Einstellungen (Experimentell)",icon:"fa-gear",infotext:"Erlaubt das Lesen der Einstellungen, wenn das UI in andere Applikationen eingebettet ist (z.B. HomeAssistant). Erfordert eine mit SSL verschlüsselte Verbindung über HTTPS! Experimentelles Feature."},{"inline-item":_(()=>[b(ce,{modelValue:l(m).sslPrefs,"onUpdate:modelValue":d[21]||(d[21]=u=>l(m).sslPrefs=u)},null,8,["modelValue"])]),_:1}),d[25]||(d[25]=n("hr",null,null,-1)),b(U,{fullwidth:!0,title:"Debug-Modus",icon:"fa-bug-slash",infotext:"Kontrollausgaben in der Console sowie Anzeige von Bildschirmbreite und MQ-Viewer"},{"inline-item":_(()=>[b(ce,{modelValue:l(m).debug,"onUpdate:modelValue":d[22]||(d[22]=u=>l(m).debug=u)},null,8,["modelValue"])]),_:1}),d[26]||(d[26]=n("hr",null,null,-1))]),d[27]||(d[27]=n("div",{class:"grid-col-12 mb-3 me-3"},[n("button",{class:"btn btn-sm btn-secondary float-end","data-bs-toggle":"collapse","data-bs-target":"#themesettings"}," Schließen ")],-1))])]),_:1}))}}),ah=j(th,[["__scopeId","data-v-785bc80b"]]),nh={class:"container-fluid px-2 m-0 theme-colors"},rh={id:"themesettings",class:"collapse"},oh={class:"row py-0 px-0 m-0"},sh={key:1,class:"row py-0 m-0 d-flex justify-content-center"},lh={key:2,class:"nav nav-tabs nav-justified mx-1 mt-2",role:"tablist"},ih={key:0,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pricecharttabbed"},ch={key:1,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#vehiclelist"},uh={key:2,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#batterylist"},dh={key:3,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#smarthomelist"},hh={key:4,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#counterlist"},ph={key:5,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#inverterlist"},gh={key:3,id:"cpContent",class:"tab-content mx-0 pt-1"},mh={id:"showAll",class:"tab-pane active",role:"tabpanel","aria-labelledby":"showall-tab"},fh={class:"row py-0 m-0 d-flex justify-content-center"},vh={id:"chargepointlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"chargepoint-tab"},bh={class:"row py-0 m-0 d-flex justify-content-center"},yh={id:"vehiclelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"vehicle-tab"},_h={key:0,class:"row py-0 m-0 d-flex justify-content-center"},wh={id:"batterylist",class:"tab-pane",role:"tabpanel","aria-labelledby":"battery-tab"},kh={class:"row py-0 m-0 d-flex justify-content-center"},xh={id:"smarthomelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"smarthome-tab"},Sh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},$h={id:"counterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"counter-tab"},Mh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},Ph={id:"inverterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"inverter-tab"},Ch={key:0,class:"row py-0 m-0 d-flex justify-content-center"},Ih={id:"pricecharttabbed",class:"tab-pane",role:"tabpanel","aria-labelledby":"price-tab"},Bh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},Vh={key:0,class:"row p-2 mt-5"},Lh={class:"col p-2"},Th={class:"d-flex justify-content-between"},Oh={class:"mx-4"},Ah={key:0},Eh=B({__name:"ColorsTheme",setup(a){const e=Y(!1),t=g(()=>[...ne.values()].filter(p=>p.configured).length>0);function o(){Va()}function s(){e.value=!e.value}Oe(()=>{o(),window.addEventListener("resize",On),window.addEventListener("focus",r),Md()});function r(){document.hasFocus()&&ve(!0)}return(p,h)=>(i(),f(W,null,[n("div",nh,[n("div",rh,[b(ah,{onResetArcs:l(zn)},null,8,["onResetArcs"])]),l(m).showButtonBar?(i(),$(mu,{key:0})):w("",!0),n("div",oh,[b(ad,null,sn({item1:_(()=>[b(Pr)]),item2:_(()=>[b(To)]),_:2},[l(m).alternativeEnergy?{name:"item3",fn:_(()=>[b(Cs)]),key:"0"}:{name:"item3",fn:_(()=>[b(rs)]),key:"1"}]),1024)]),l(m).showQuickAccess?w("",!0):(i(),f("div",sh,[b(At,{id:"1",compact:l(m).shortCpList=="always"},null,8,["compact"]),l(m).showPrices?(i(),$(jt,{key:0,id:"NoTabs"})):w("",!0),l(m).showVehicles?(i(),$(Wt,{key:1})):w("",!0),b(Et),t.value?(i(),$(zt,{key:2})):w("",!0),l(m).showCounters?(i(),$(Dt,{key:3})):w("",!0),l(m).showInverters?(i(),$(Ut,{key:4})):w("",!0)])),l(m).showQuickAccess?(i(),f("nav",lh,[h[6]||(h[6]=ln('AllesLadepunkte',2)),l(m).showPrices?(i(),f("a",ih,h[0]||(h[0]=[n("i",{class:"fa-solid fa-lg fa-coins"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Strompreis",-1)]))):w("",!0),l(m).showVehicles?(i(),f("a",ch,h[1]||(h[1]=[n("i",{class:"fa-solid fa-lg fa-car"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Fahrzeuge",-1)]))):w("",!0),l(he).isBatteryConfigured?(i(),f("a",uh,h[2]||(h[2]=[n("i",{class:"fa-solid fa-lg fa-car-battery"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Speicher",-1)]))):w("",!0),t.value?(i(),f("a",dh,h[3]||(h[3]=[n("i",{class:"fa-solid fa-lg fa-plug"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Smart Home",-1)]))):w("",!0),l(m).showCounters?(i(),f("a",hh,h[4]||(h[4]=[n("i",{class:"fa-solid fa-lg fa-bolt"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Zähler",-1)]))):w("",!0),l(m).showInverters?(i(),f("a",ph,h[5]||(h[5]=[n("i",{class:"fa-solid fa-lg fa-solar-panel"},null,-1),n("span",{class:"d-none d-md-inline ms-2"},"Wechselrichter",-1)]))):w("",!0)])):w("",!0),l(m).showQuickAccess?(i(),f("div",gh,[n("div",mh,[n("div",fh,[b(At,{id:"2",compact:l(m).shortCpList!="no"},null,8,["compact"]),l(m).showPrices?(i(),$(jt,{key:0,id:"Overview"})):w("",!0),l(m).showVehicles?(i(),$(Wt,{key:1})):w("",!0),b(Et),t.value?(i(),$(zt,{key:2})):w("",!0),l(m).showCounters?(i(),$(Dt,{key:3})):w("",!0),l(m).showInverters?(i(),$(Ut,{key:4})):w("",!0)])]),n("div",vh,[n("div",bh,[b(At,{id:"3",compact:l(m).shortCpList=="always"},null,8,["compact"])])]),n("div",yh,[l(m).showVehicles?(i(),f("div",_h,[b(Wt)])):w("",!0)]),n("div",wh,[n("div",kh,[b(Et)])]),n("div",xh,[t.value?(i(),f("div",Sh,[b(zt)])):w("",!0)]),n("div",$h,[l(m).showCounters?(i(),f("div",Mh,[b(Dt)])):w("",!0)]),n("div",Ph,[l(m).showInverters?(i(),f("div",Ch,[b(Ut)])):w("",!0)]),n("div",Ih,[l(m).showPrices?(i(),f("div",Bh,[b(jt,{id:"Tabbed"})])):w("",!0)])])):w("",!0)]),l(m).debug?(i(),f("div",Vh,[n("div",Lh,[h[7]||(h[7]=n("hr",null,null,-1)),n("div",Th,[n("p",Oh,"Screen Width: "+x(l($t).x),1),n("button",{class:"btn btn-sm btn-secondary mx-4",onClick:s}," MQ Viewer ")]),e.value?(i(),f("hr",Ah)):w("",!0),e.value?(i(),$(Jd,{key:1})):w("",!0)])])):w("",!0)],64))}}),zh=j(Eh,[["__scopeId","data-v-0542a138"]]),Dh={class:"navbar navbar-expand-lg px-0 mb-0"},Wh={key:0,class:"position-absolute-50 navbar-text ms-4 navbar-time",style:{color:"var(--color-menu)"}},Gh=B({__name:"NavigationBar",setup(a){let e;const t=g(()=>m.fluidDisplay?"container-fluid":"container-lg");return Oe(()=>{e=setInterval(()=>{Ht.value=new Date},1e3)}),cn(()=>{clearInterval(e)}),(o,s)=>(i(),f(W,null,[n("nav",Dh,[n("div",{class:H(t.value)},[s[0]||(s[0]=n("a",{href:"/",class:"navbar-brand"},[n("span",null,"openWB")],-1)),l(m).showClock=="navbar"?(i(),f("span",Wh,x(l(Oa)(l(Ht))),1)):w("",!0),s[1]||(s[1]=n("button",{class:"navbar-toggler togglebutton ps-5",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mainNavbar","aria-controls":"mainNavbar","aria-expanded":"false","aria-label":"Toggle navigation"},[n("span",{class:"fa-solid fa-ellipsis-vertical"})],-1)),s[2]||(s[2]=n("div",{id:"mainNavbar",class:"collapse navbar-collapse justify-content-end"},[n("div",{class:"nav navbar-nav"},[n("a",{id:"navStatus",class:"nav-link",href:"../../settings/#/Status"},"Status"),n("div",{class:"nav-item dropdown"},[n("a",{id:"loggingDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[R("Auswertungen "),n("i",{class:"fa-solid fa-caret-down"})]),n("div",{class:"dropdown-menu","aria-labelledby":"loggingDropdown"},[n("a",{href:"../../settings/#/Logging/ChargeLog",class:"dropdown-item"},"Ladeprotokoll"),n("a",{href:"../../settings/#/Logging/Chart",class:"dropdown-item"},"Diagramme")])]),n("div",{class:"nav-item dropdown"},[n("a",{id:"settingsDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[R("Einstellungen "),n("span",{class:"fa-solid fa-caret-down"})]),n("div",{class:"dropdown-menu","aria-labelledby":"settingsDropdown"},[n("a",{id:"navSettings",class:"nav-link",href:"../../settings/index.html"},"openWB"),n("a",{class:"nav-link","data-bs-toggle":"collapse","data-bs-target":"#themesettings","aria-expanded":"false","aria-controls":"themeSettings"},[n("span",null,[R("Look&Feel"),n("span",{class:"fa-solid fa-caret-down"})])])])])])],-1))],2)]),n("div",{class:H(t.value)},s[3]||(s[3]=[n("hr",{class:"m-0 p-0 mb-2"},null,-1)]),2)],64))}}),jh=j(Gh,[["__scopeId","data-v-ed619966"]]),Uh={id:"app",class:"m-0 p-0"},Fh={class:"row p-0 m-0"},Nh={class:"col-12 p-0 m-0"},Hh=B({__name:"App",setup(a){const e=g(()=>m.fluidDisplay?"container-fluid":"container-lg");return(t,o)=>(i(),f("div",Uh,[b(jh),n("div",{class:H(["p-0",e.value])},[n("div",Fh,[n("div",Nh,[b(zh)])])],2)]))}}),Rh=un(Hh);dn();Rh.mount("#app"); diff --git a/packages/modules/web_themes/colors/web/assets/vendor-DgMVsSab.js b/packages/modules/web_themes/colors/web/assets/vendor-DgMVsSab.js deleted file mode 100644 index 3294f08523..0000000000 --- a/packages/modules/web_themes/colors/web/assets/vendor-DgMVsSab.js +++ /dev/null @@ -1,62 +0,0 @@ -var JE=Object.defineProperty;var qp=t=>{throw TypeError(t)};var ZE=(t,e,r)=>e in t?JE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var nt=(t,e,r)=>ZE(t,typeof e!="symbol"?e+"":e,r),Au=(t,e,r)=>e.has(t)||qp("Cannot "+r);var ge=(t,e,r)=>(Au(t,e,"read from private field"),r?r.call(t):e.get(t)),Ue=(t,e,r)=>e.has(t)?qp("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Ne=(t,e,r,n)=>(Au(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Re=(t,e,r)=>(Au(t,e,"access private method"),r);var ea=(t,e,r,n)=>({set _(s){Ne(t,e,s,r)},get _(){return ge(t,e,n)}});const Si=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function wh(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const Ge={},is=[],Pr=()=>{},eS=()=>!1,Fl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),_h=t=>t.startsWith("onUpdate:"),Mt=Object.assign,vh=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},tS=Object.prototype.hasOwnProperty,He=(t,e)=>tS.call(t,e),De=Array.isArray,ss=t=>Fo(t)==="[object Map]",Is=t=>Fo(t)==="[object Set]",Yp=t=>Fo(t)==="[object Date]",Be=t=>typeof t=="function",lt=t=>typeof t=="string",_r=t=>typeof t=="symbol",Qe=t=>t!==null&&typeof t=="object",Uy=t=>(Qe(t)||Be(t))&&Be(t.then)&&Be(t.catch),jy=Object.prototype.toString,Fo=t=>jy.call(t),rS=t=>Fo(t).slice(8,-1),Wy=t=>Fo(t)==="[object Object]",Eh=t=>lt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,go=wh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ul=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},nS=/-(\w)/g,lr=Ul(t=>t.replace(nS,(e,r)=>r?r.toUpperCase():"")),iS=/\B([A-Z])/g,Oi=Ul(t=>t.replace(iS,"-$1").toLowerCase()),jl=Ul(t=>t.charAt(0).toUpperCase()+t.slice(1)),Cu=Ul(t=>t?`on${jl(t)}`:""),Ln=(t,e)=>!Object.is(t,e),ka=(t,...e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},ol=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Gp;const Wl=()=>Gp||(Gp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Si<"u"?Si:{});function Sh(t){if(De(t)){const e={};for(let r=0;r{if(r){const n=r.split(oS);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Th(t){let e="";if(lt(t))e=t;else if(De(t))for(let r=0;rUo(r,e))}const Vy=t=>!!(t&&t.__v_isRef===!0),dS=t=>lt(t)?t:t==null?"":De(t)||Qe(t)&&(t.toString===jy||!Be(t.toString))?Vy(t)?dS(t.value):JSON.stringify(t,qy,2):String(t),qy=(t,e)=>Vy(e)?qy(t,e.value):ss(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,s],i)=>(r[Iu(n,i)+" =>"]=s,r),{})}:Is(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>Iu(r))}:_r(e)?Iu(e):Qe(e)&&!De(e)&&!Wy(e)?String(e):e,Iu=(t,e="")=>{var r;return _r(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let zt;class hS{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=zt,!e&&zt&&(this.index=(zt.scopes||(zt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e0)return;if(bo){let e=bo;for(bo=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;mo;){let e=mo;for(mo=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function Xy(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Qy(t){let e,r=t.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),Ih(n),gS(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}t.deps=e,t.depsTail=r}function cf(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Jy(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Jy(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ao))return;t.globalVersion=Ao;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!cf(t)){t.flags&=-3;return}const r=Xe,n=yr;Xe=t,yr=!0;try{Xy(t);const s=t.fn(t._value);(e.version===0||Ln(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{Xe=r,yr=n,Qy(t),t.flags&=-3}}function Ih(t,e=!1){const{dep:r,prevSub:n,nextSub:s}=t;if(n&&(n.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Ih(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function gS(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}let yr=!0;const Zy=[];function Fn(){Zy.push(yr),yr=!1}function Un(){const t=Zy.pop();yr=t===void 0?!0:t}function Kp(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=Xe;Xe=void 0;try{e()}finally{Xe=r}}}let Ao=0;class mS{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Mh{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Xe||!yr||Xe===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Xe)r=this.activeLink=new mS(Xe,this),Xe.deps?(r.prevDep=Xe.depsTail,Xe.depsTail.nextDep=r,Xe.depsTail=r):Xe.deps=Xe.depsTail=r,ew(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Xe.depsTail,r.nextDep=void 0,Xe.depsTail.nextDep=r,Xe.depsTail=r,Xe.deps===r&&(Xe.deps=n)}return r}trigger(e){this.version++,Ao++,this.notify(e)}notify(e){Ah();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Ch()}}}function ew(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)ew(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const ff=new WeakMap,mi=Symbol(""),df=Symbol(""),Co=Symbol("");function xt(t,e,r){if(yr&&Xe){let n=ff.get(t);n||ff.set(t,n=new Map);let s=n.get(r);s||(n.set(r,s=new Mh),s.map=n,s.key=r),s.track()}}function Gr(t,e,r,n,s,i){const a=ff.get(t);if(!a){Ao++;return}const o=l=>{l&&l.trigger()};if(Ah(),e==="clear")a.forEach(o);else{const l=De(t),u=l&&Eh(r);if(l&&r==="length"){const c=Number(n);a.forEach((f,d)=>{(d==="length"||d===Co||!_r(d)&&d>=c)&&o(f)})}else switch((r!==void 0||a.has(void 0))&&o(a.get(r)),u&&o(a.get(Co)),e){case"add":l?u&&o(a.get("length")):(o(a.get(mi)),ss(t)&&o(a.get(df)));break;case"delete":l||(o(a.get(mi)),ss(t)&&o(a.get(df)));break;case"set":ss(t)&&o(a.get(mi));break}}Ch()}function Hi(t){const e=We(t);return e===t?e:(xt(e,"iterate",Co),or(t)?e:e.map(At))}function Hl(t){return xt(t=We(t),"iterate",Co),t}const bS={__proto__:null,[Symbol.iterator](){return Ou(this,Symbol.iterator,At)},concat(...t){return Hi(this).concat(...t.map(e=>De(e)?Hi(e):e))},entries(){return Ou(this,"entries",t=>(t[1]=At(t[1]),t))},every(t,e){return Fr(this,"every",t,e,void 0,arguments)},filter(t,e){return Fr(this,"filter",t,e,r=>r.map(At),arguments)},find(t,e){return Fr(this,"find",t,e,At,arguments)},findIndex(t,e){return Fr(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Fr(this,"findLast",t,e,At,arguments)},findLastIndex(t,e){return Fr(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Fr(this,"forEach",t,e,void 0,arguments)},includes(...t){return Pu(this,"includes",t)},indexOf(...t){return Pu(this,"indexOf",t)},join(t){return Hi(this).join(t)},lastIndexOf(...t){return Pu(this,"lastIndexOf",t)},map(t,e){return Fr(this,"map",t,e,void 0,arguments)},pop(){return js(this,"pop")},push(...t){return js(this,"push",t)},reduce(t,...e){return Xp(this,"reduce",t,e)},reduceRight(t,...e){return Xp(this,"reduceRight",t,e)},shift(){return js(this,"shift")},some(t,e){return Fr(this,"some",t,e,void 0,arguments)},splice(...t){return js(this,"splice",t)},toReversed(){return Hi(this).toReversed()},toSorted(t){return Hi(this).toSorted(t)},toSpliced(...t){return Hi(this).toSpliced(...t)},unshift(...t){return js(this,"unshift",t)},values(){return Ou(this,"values",At)}};function Ou(t,e,r){const n=Hl(t),s=n[e]();return n!==t&&!or(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=r(i.value)),i}),s}const yS=Array.prototype;function Fr(t,e,r,n,s,i){const a=Hl(t),o=a!==t&&!or(t),l=a[e];if(l!==yS[e]){const f=l.apply(t,i);return o?At(f):f}let u=r;a!==t&&(o?u=function(f,d){return r.call(this,At(f),d,t)}:r.length>2&&(u=function(f,d){return r.call(this,f,d,t)}));const c=l.call(a,u,n);return o&&s?s(c):c}function Xp(t,e,r,n){const s=Hl(t);let i=r;return s!==t&&(or(t)?r.length>3&&(i=function(a,o,l){return r.call(this,a,o,l,t)}):i=function(a,o,l){return r.call(this,a,At(o),l,t)}),s[e](i,...n)}function Pu(t,e,r){const n=We(t);xt(n,"iterate",Co);const s=n[e](...r);return(s===-1||s===!1)&&Rh(r[0])?(r[0]=We(r[0]),n[e](...r)):s}function js(t,e,r=[]){Fn(),Ah();const n=We(t)[e].apply(t,r);return Ch(),Un(),n}const wS=wh("__proto__,__v_isRef,__isVue"),tw=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_r));function _S(t){_r(t)||(t=String(t));const e=We(this);return xt(e,"has",t),e.hasOwnProperty(t)}class rw{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?OS:ow:i?sw:iw).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=De(e);if(!s){let l;if(a&&(l=bS[r]))return l;if(r==="hasOwnProperty")return _S}const o=Reflect.get(e,r,It(e)?e:n);return(_r(r)?tw.has(r):wS(r))||(s||xt(e,"get",r),i)?o:It(o)?a&&Eh(r)?o:o.value:Qe(o)?s?aw(o):Ph(o):o}}class nw extends rw{constructor(e=!1){super(!1,e)}set(e,r,n,s){let i=e[r];if(!this._isShallow){const l=Ti(i);if(!or(n)&&!Ti(n)&&(i=We(i),n=We(n)),!De(e)&&It(i)&&!It(n))return l?!1:(i.value=n,!0)}const a=De(e)&&Eh(r)?Number(r)t,ta=t=>Reflect.getPrototypeOf(t);function xS(t,e,r){return function(...n){const s=this.__v_raw,i=We(s),a=ss(i),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,u=s[t](...n),c=r?hf:e?pf:At;return!e&&xt(i,"iterate",l?df:mi),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:o?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function ra(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function AS(t,e){const r={get(s){const i=this.__v_raw,a=We(i),o=We(s);t||(Ln(s,o)&&xt(a,"get",s),xt(a,"get",o));const{has:l}=ta(a),u=e?hf:t?pf:At;if(l.call(a,s))return u(i.get(s));if(l.call(a,o))return u(i.get(o));i!==a&&i.get(s)},get size(){const s=this.__v_raw;return!t&&xt(We(s),"iterate",mi),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,a=We(i),o=We(s);return t||(Ln(s,o)&&xt(a,"has",s),xt(a,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const a=this,o=a.__v_raw,l=We(o),u=e?hf:t?pf:At;return!t&&xt(l,"iterate",mi),o.forEach((c,f)=>s.call(i,u(c),u(f),a))}};return Mt(r,t?{add:ra("add"),set:ra("set"),delete:ra("delete"),clear:ra("clear")}:{add(s){!e&&!or(s)&&!Ti(s)&&(s=We(s));const i=We(this);return ta(i).has.call(i,s)||(i.add(s),Gr(i,"add",s,s)),this},set(s,i){!e&&!or(i)&&!Ti(i)&&(i=We(i));const a=We(this),{has:o,get:l}=ta(a);let u=o.call(a,s);u||(s=We(s),u=o.call(a,s));const c=l.call(a,s);return a.set(s,i),u?Ln(i,c)&&Gr(a,"set",s,i):Gr(a,"add",s,i),this},delete(s){const i=We(this),{has:a,get:o}=ta(i);let l=a.call(i,s);l||(s=We(s),l=a.call(i,s)),o&&o.call(i,s);const u=i.delete(s);return l&&Gr(i,"delete",s,void 0),u},clear(){const s=We(this),i=s.size!==0,a=s.clear();return i&&Gr(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=xS(s,t,e)}),r}function Oh(t,e){const r=AS(t,e);return(n,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(He(r,s)&&s in n?r:n,s,i)}const CS={get:Oh(!1,!1)},IS={get:Oh(!1,!0)},MS={get:Oh(!0,!1)};const iw=new WeakMap,sw=new WeakMap,ow=new WeakMap,OS=new WeakMap;function PS(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function kS(t){return t.__v_skip||!Object.isExtensible(t)?0:PS(rS(t))}function Ph(t){return Ti(t)?t:kh(t,!1,ES,CS,iw)}function RS(t){return kh(t,!1,TS,IS,sw)}function aw(t){return kh(t,!0,SS,MS,ow)}function kh(t,e,r,n,s){if(!Qe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=s.get(t);if(i)return i;const a=kS(t);if(a===0)return t;const o=new Proxy(t,a===2?n:r);return s.set(t,o),o}function os(t){return Ti(t)?os(t.__v_raw):!!(t&&t.__v_isReactive)}function Ti(t){return!!(t&&t.__v_isReadonly)}function or(t){return!!(t&&t.__v_isShallow)}function Rh(t){return t?!!t.__v_raw:!1}function We(t){const e=t&&t.__v_raw;return e?We(e):t}function LS(t){return!He(t,"__v_skip")&&Object.isExtensible(t)&&Hy(t,"__v_skip",!0),t}const At=t=>Qe(t)?Ph(t):t,pf=t=>Qe(t)?aw(t):t;function It(t){return t?t.__v_isRef===!0:!1}function sF(t){return NS(t,!1)}function NS(t,e){return It(t)?t:new DS(t,e)}class DS{constructor(e,r){this.dep=new Mh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:We(e),this._value=r?e:At(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||or(e)||Ti(e);e=n?e:We(e),Ln(e,r)&&(this._rawValue=e,this._value=n?e:At(e),this.dep.trigger())}}function BS(t){return It(t)?t.value:t}const $S={get:(t,e,r)=>e==="__v_raw"?t:BS(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const s=t[e];return It(s)&&!It(r)?(s.value=r,!0):Reflect.set(t,e,r,n)}};function lw(t){return os(t)?t:new Proxy(t,$S)}class FS{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new Mh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ao-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Xe!==this)return Ky(this,!0),!0}get value(){const e=this.dep.track();return Jy(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function US(t,e,r=!1){let n,s;return Be(t)?n=t:(n=t.get,s=t.set),new FS(n,s,r)}const na={},al=new WeakMap;let ii;function jS(t,e=!1,r=ii){if(r){let n=al.get(r);n||al.set(r,n=[]),n.push(t)}}function WS(t,e,r=Ge){const{immediate:n,deep:s,once:i,scheduler:a,augmentJob:o,call:l}=r,u=T=>s?T:or(T)||s===!1||s===0?Kr(T,1):Kr(T);let c,f,d,p,m=!1,b=!1;if(It(t)?(f=()=>t.value,m=or(t)):os(t)?(f=()=>u(t),m=!0):De(t)?(b=!0,m=t.some(T=>os(T)||or(T)),f=()=>t.map(T=>{if(It(T))return T.value;if(os(T))return u(T);if(Be(T))return l?l(T,2):T()})):Be(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){Fn();try{d()}finally{Un()}}const T=ii;ii=c;try{return l?l(t,3,[p]):t(p)}finally{ii=T}}:f=Pr,e&&s){const T=f,x=s===!0?1/0:s;f=()=>Kr(T(),x)}const v=pS(),_=()=>{c.stop(),v&&v.active&&vh(v.effects,c)};if(i&&e){const T=e;e=(...x)=>{T(...x),_()}}let E=b?new Array(t.length).fill(na):na;const y=T=>{if(!(!(c.flags&1)||!c.dirty&&!T))if(e){const x=c.run();if(s||m||(b?x.some((A,P)=>Ln(A,E[P])):Ln(x,E))){d&&d();const A=ii;ii=c;try{const P=[x,E===na?void 0:b&&E[0]===na?[]:E,p];l?l(e,3,P):e(...P),E=x}finally{ii=A}}}else c.run()};return o&&o(y),c=new Yy(f),c.scheduler=a?()=>a(y,!1):y,p=T=>jS(T,!1,c),d=c.onStop=()=>{const T=al.get(c);if(T){if(l)l(T,4);else for(const x of T)x();al.delete(c)}},e?n?y(!0):E=c.run():a?a(y.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Kr(t,e=1/0,r){if(e<=0||!Qe(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,It(t))Kr(t.value,e,r);else if(De(t))for(let n=0;n{Kr(n,e,r)});else if(Wy(t)){for(const n in t)Kr(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&Kr(t[n],e,r)}return t}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function jo(t,e,r,n){try{return n?t(...n):t()}catch(s){zl(s,e,r)}}function Nr(t,e,r,n){if(Be(t)){const s=jo(t,e,r,n);return s&&Uy(s)&&s.catch(i=>{zl(i,e,r)}),s}if(De(t)){const s=[];for(let i=0;i>>1,s=kt[n],i=Io(s);i=Io(r)?kt.push(t):kt.splice(zS(e),0,t),t.flags|=1,fw()}}function fw(){ll||(ll=uw.then(hw))}function VS(t){De(t)?as.push(...t):On&&t.id===-1?On.splice(Gi+1,0,t):t.flags&1||(as.push(t),t.flags|=1),fw()}function Qp(t,e,r=Cr+1){for(;rIo(r)-Io(n));if(as.length=0,On){On.push(...e);return}for(On=e,Gi=0;Git.id==null?t.flags&2?-1:1/0:t.id;function hw(t){try{for(Cr=0;Cr{n._d&&cg(-1);const i=ul(e);let a;try{a=t(...s)}finally{ul(i),n._d&&cg(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function oF(t,e){if(bt===null)return t;const r=Gl(bt),n=t.dirs||(t.dirs=[]);for(let s=0;st.__isTeleport,yo=t=>t&&(t.disabled||t.disabled===""),Jp=t=>t&&(t.defer||t.defer===""),Zp=t=>typeof SVGElement<"u"&&t instanceof SVGElement,eg=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,gf=(t,e)=>{const r=t&&t.to;return lt(r)?e?e(r):null:r},mw={name:"Teleport",__isTeleport:!0,process(t,e,r,n,s,i,a,o,l,u){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:m,createText:b,createComment:v}}=u,_=yo(e.props);let{shapeFlag:E,children:y,dynamicChildren:T}=e;if(t==null){const x=e.el=b(""),A=e.anchor=b("");p(x,r,n),p(A,r,n);const P=(W,U)=>{E&16&&(s&&s.isCE&&(s.ce._teleportTarget=W),c(y,W,U,s,i,a,o,l))},L=()=>{const W=e.target=gf(e.props,m),U=bw(W,e,b,p);W&&(a!=="svg"&&Zp(W)?a="svg":a!=="mathml"&&eg(W)&&(a="mathml"),_||(P(W,U),Ra(e,!1)))};_&&(P(r,A),Ra(e,!0)),Jp(e.props)?Pt(()=>{L(),e.el.__isMounted=!0},i):L()}else{if(Jp(e.props)&&!t.el.__isMounted){Pt(()=>{mw.process(t,e,r,n,s,i,a,o,l,u),delete t.el.__isMounted},i);return}e.el=t.el,e.targetStart=t.targetStart;const x=e.anchor=t.anchor,A=e.target=t.target,P=e.targetAnchor=t.targetAnchor,L=yo(t.props),W=L?r:A,U=L?x:P;if(a==="svg"||Zp(A)?a="svg":(a==="mathml"||eg(A))&&(a="mathml"),T?(d(t.dynamicChildren,T,W,s,i,a,o),Bh(t,e,!0)):l||f(t,e,W,U,s,i,a,o,!1),_)L?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):ia(e,r,x,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const H=e.target=gf(e.props,m);H&&ia(e,H,null,u,0)}else L&&ia(e,A,P,u,1);Ra(e,_)}},remove(t,e,r,{um:n,o:{remove:s}},i){const{shapeFlag:a,children:o,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=t;if(f&&(s(u),s(c)),i&&s(l),a&16){const p=i||!yo(d);for(let m=0;mcl(m,e&&(De(e)?e[b]:e),r,n,s));return}if(ls(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&cl(t,e,r,n.component.subTree);return}const i=n.shapeFlag&4?Gl(n.component):n.el,a=s?null:i,{i:o,r:l}=t,u=e&&e.r,c=o.refs===Ge?o.refs={}:o.refs,f=o.setupState,d=We(f),p=f===Ge?()=>!1:m=>He(d,m);if(u!=null&&u!==l&&(lt(u)?(c[u]=null,p(u)&&(f[u]=null)):It(u)&&(u.value=null)),Be(l))jo(l,o,12,[a,c]);else{const m=lt(l),b=It(l);if(m||b){const v=()=>{if(t.f){const _=m?p(l)?f[l]:c[l]:l.value;s?De(_)&&vh(_,i):De(_)?_.includes(i)||_.push(i):m?(c[l]=[i],p(l)&&(f[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else m?(c[l]=a,p(l)&&(f[l]=a)):b&&(l.value=a,t.k&&(c[t.k]=a))};a?(v.id=-1,Pt(v,r)):v()}}}Wl().requestIdleCallback;Wl().cancelIdleCallback;const ls=t=>!!t.type.__asyncLoader,ww=t=>t.type.__isKeepAlive;function KS(t,e){_w(t,"a",e)}function XS(t,e){_w(t,"da",e)}function _w(t,e,r=Ct){const n=t.__wdc||(t.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Vl(e,n,r),r){let s=r.parent;for(;s&&s.parent;)ww(s.parent.vnode)&&QS(n,e,r,s),s=s.parent}}function QS(t,e,r,n){const s=Vl(e,t,n,!0);vw(()=>{vh(n[e],s)},r)}function Vl(t,e,r=Ct,n=!1){if(r){const s=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...a)=>{Fn();const o=Wo(r),l=Nr(e,r,t,a);return o(),Un(),l});return n?s.unshift(i):s.push(i),i}}const mn=t=>(e,r=Ct)=>{(!Oo||t==="sp")&&Vl(t,(...n)=>e(...n),r)},JS=mn("bm"),ZS=mn("m"),e1=mn("bu"),t1=mn("u"),r1=mn("bum"),vw=mn("um"),n1=mn("sp"),i1=mn("rtg"),s1=mn("rtc");function o1(t,e=Ct){Vl("ec",t,e)}const a1="components";function uF(t,e){return u1(a1,t,!0,e)||t}const l1=Symbol.for("v-ndc");function u1(t,e,r=!0,n=!1){const s=bt||Ct;if(s){const i=s.type;{const o=Q1(i,!1);if(o&&(o===e||o===lr(e)||o===jl(lr(e))))return i}const a=tg(s[t]||i[t],e)||tg(s.appContext[t],e);return!a&&n?i:a}}function tg(t,e){return t&&(t[e]||t[lr(e)]||t[jl(lr(e))])}function cF(t,e,r,n){let s;const i=r,a=De(t);if(a||lt(t)){const o=a&&os(t);let l=!1;o&&(l=!or(t),t=Hl(t)),s=new Array(t.length);for(let u=0,c=t.length;ue(o,l,void 0,i));else{const o=Object.keys(t);s=new Array(o.length);for(let l=0,u=o.length;l{const i=n.fn(...s);return i&&(i.key=n.key),i}:n.fn)}return t}function dF(t,e,r={},n,s){if(bt.ce||bt.parent&&ls(bt.parent)&&bt.parent.ce)return e!=="default"&&(r.name=e),_f(),vf(nr,null,[wr("slot",r,n&&n())],64);let i=t[e];i&&i._c&&(i._d=!1),_f();const a=i&&Ew(i(r)),o=r.key||a&&a.key,l=vf(nr,{key:(o&&!_r(o)?o:`_${e}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&t._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Ew(t){return t.some(e=>Fh(e)?!(e.type===Nn||e.type===nr&&!Ew(e.children)):!0)?t:null}const mf=t=>t?Ww(t)?Gl(t):mf(t.parent):null,wo=Mt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>mf(t.parent),$root:t=>mf(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Tw(t),$forceUpdate:t=>t.f||(t.f=()=>{Lh(t.update)}),$nextTick:t=>t.n||(t.n=cw.bind(t.proxy)),$watch:t=>P1.bind(t)}),ku=(t,e)=>t!==Ge&&!t.__isScriptSetup&&He(t,e),c1={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:i,accessCache:a,type:o,appContext:l}=t;let u;if(e[0]!=="$"){const p=a[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return s[e];case 4:return r[e];case 3:return i[e]}else{if(ku(n,e))return a[e]=1,n[e];if(s!==Ge&&He(s,e))return a[e]=2,s[e];if((u=t.propsOptions[0])&&He(u,e))return a[e]=3,i[e];if(r!==Ge&&He(r,e))return a[e]=4,r[e];bf&&(a[e]=0)}}const c=wo[e];let f,d;if(c)return e==="$attrs"&&xt(t.attrs,"get",""),c(t);if((f=o.__cssModules)&&(f=f[e]))return f;if(r!==Ge&&He(r,e))return a[e]=4,r[e];if(d=l.config.globalProperties,He(d,e))return d[e]},set({_:t},e,r){const{data:n,setupState:s,ctx:i}=t;return ku(s,e)?(s[e]=r,!0):n!==Ge&&He(n,e)?(n[e]=r,!0):He(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:s,propsOptions:i}},a){let o;return!!r[a]||t!==Ge&&He(t,a)||ku(e,a)||(o=i[0])&&He(o,a)||He(n,a)||He(wo,a)||He(s.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:He(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function rg(t){return De(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let bf=!0;function f1(t){const e=Tw(t),r=t.proxy,n=t.ctx;bf=!1,e.beforeCreate&&ng(e.beforeCreate,t,"bc");const{data:s,computed:i,methods:a,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:m,activated:b,deactivated:v,beforeDestroy:_,beforeUnmount:E,destroyed:y,unmounted:T,render:x,renderTracked:A,renderTriggered:P,errorCaptured:L,serverPrefetch:W,expose:U,inheritAttrs:H,components:C,directives:I,filters:N}=e;if(u&&d1(u,n,null),a)for(const te in a){const B=a[te];Be(B)&&(n[te]=B.bind(r))}if(s){const te=s.call(r,r);Qe(te)&&(t.data=Ph(te))}if(bf=!0,i)for(const te in i){const B=i[te],ae=Be(B)?B.bind(r,r):Be(B.get)?B.get.bind(r,r):Pr,Y=!Be(B)&&Be(B.set)?B.set.bind(r):Pr,ce=Z1({get:ae,set:Y});Object.defineProperty(n,te,{enumerable:!0,configurable:!0,get:()=>ce.value,set:$=>ce.value=$})}if(o)for(const te in o)Sw(o[te],n,r,te);if(l){const te=Be(l)?l.call(r):l;Reflect.ownKeys(te).forEach(B=>{y1(B,te[B])})}c&&ng(c,t,"c");function ne(te,B){De(B)?B.forEach(ae=>te(ae.bind(r))):B&&te(B.bind(r))}if(ne(JS,f),ne(ZS,d),ne(e1,p),ne(t1,m),ne(KS,b),ne(XS,v),ne(o1,L),ne(s1,A),ne(i1,P),ne(r1,E),ne(vw,T),ne(n1,W),De(U))if(U.length){const te=t.exposed||(t.exposed={});U.forEach(B=>{Object.defineProperty(te,B,{get:()=>r[B],set:ae=>r[B]=ae})})}else t.exposed||(t.exposed={});x&&t.render===Pr&&(t.render=x),H!=null&&(t.inheritAttrs=H),C&&(t.components=C),I&&(t.directives=I),W&&yw(t)}function d1(t,e,r=Pr){De(t)&&(t=yf(t));for(const n in t){const s=t[n];let i;Qe(s)?"default"in s?i=La(s.from||n,s.default,!0):i=La(s.from||n):i=La(s),It(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):e[n]=i}}function ng(t,e,r){Nr(De(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function Sw(t,e,r,n){let s=n.includes(".")?Dw(r,n):()=>r[n];if(lt(t)){const i=e[t];Be(i)&&Lu(s,i)}else if(Be(t))Lu(s,t.bind(r));else if(Qe(t))if(De(t))t.forEach(i=>Sw(i,e,r,n));else{const i=Be(t.handler)?t.handler.bind(r):e[t.handler];Be(i)&&Lu(s,i,t)}}function Tw(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=t.appContext,o=i.get(e);let l;return o?l=o:!s.length&&!r&&!n?l=e:(l={},s.length&&s.forEach(u=>fl(l,u,a,!0)),fl(l,e,a)),Qe(e)&&i.set(e,l),l}function fl(t,e,r,n=!1){const{mixins:s,extends:i}=e;i&&fl(t,i,r,!0),s&&s.forEach(a=>fl(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const o=h1[a]||r&&r[a];t[a]=o?o(t[a],e[a]):e[a]}return t}const h1={data:ig,props:sg,emits:sg,methods:so,computed:so,beforeCreate:Ot,created:Ot,beforeMount:Ot,mounted:Ot,beforeUpdate:Ot,updated:Ot,beforeDestroy:Ot,beforeUnmount:Ot,destroyed:Ot,unmounted:Ot,activated:Ot,deactivated:Ot,errorCaptured:Ot,serverPrefetch:Ot,components:so,directives:so,watch:g1,provide:ig,inject:p1};function ig(t,e){return e?t?function(){return Mt(Be(t)?t.call(this,this):t,Be(e)?e.call(this,this):e)}:e:t}function p1(t,e){return so(yf(t),yf(e))}function yf(t){if(De(t)){const e={};for(let r=0;r1)return r&&Be(e)?e.call(n&&n.proxy):e}}const Aw={},Cw=()=>Object.create(Aw),Iw=t=>Object.getPrototypeOf(t)===Aw;function w1(t,e,r,n=!1){const s={},i=Cw();t.propsDefaults=Object.create(null),Mw(t,e,s,i);for(const a in t.propsOptions[0])a in s||(s[a]=void 0);r?t.props=n?s:RS(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function _1(t,e,r,n){const{props:s,attrs:i,vnode:{patchFlag:a}}=t,o=We(s),[l]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const c=t.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=Ow(f,e,!0);Mt(a,d),p&&o.push(...p)};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return Qe(t)&&n.set(t,is),is;if(De(i))for(let c=0;ct[0]==="_"||t==="$stable",Dh=t=>De(t)?t.map(Ir):[Ir(t)],E1=(t,e,r)=>{if(e._n)return e;const n=qS((...s)=>Dh(e(...s)),r);return n._c=!1,n},kw=(t,e,r)=>{const n=t._ctx;for(const s in t){if(Pw(s))continue;const i=t[s];if(Be(i))e[s]=E1(s,i,n);else if(i!=null){const a=Dh(i);e[s]=()=>a}}},Rw=(t,e)=>{const r=Dh(e);t.slots.default=()=>r},Lw=(t,e,r)=>{for(const n in e)(r||n!=="_")&&(t[n]=e[n])},S1=(t,e,r)=>{const n=t.slots=Cw();if(t.vnode.shapeFlag&32){const s=e._;s?(Lw(n,e,r),r&&Hy(n,"_",s,!0)):kw(e,n)}else e&&Rw(t,e)},T1=(t,e,r)=>{const{vnode:n,slots:s}=t;let i=!0,a=Ge;if(n.shapeFlag&32){const o=e._;o?r&&o===1?i=!1:Lw(s,e,r):(i=!e.$stable,kw(e,s)),a=e}else e&&(Rw(t,e),a={default:1});if(i)for(const o in s)!Pw(o)&&a[o]==null&&delete s[o]},Pt=$1;function x1(t){return A1(t)}function A1(t,e){const r=Wl();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:a,createText:o,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=Pr,insertStaticContent:m}=t,b=(M,O,F,R=null,V=null,q=null,oe=void 0,Q=null,G=!!O.dynamicChildren)=>{if(M===O)return;M&&!Ws(M,O)&&(R=j(M),$(M,V,q,!0),M=null),O.patchFlag===-2&&(G=!1,O.dynamicChildren=null);const{type:re,ref:z,shapeFlag:ie}=O;switch(re){case Yl:v(M,O,F,R);break;case Nn:_(M,O,F,R);break;case Na:M==null&&E(O,F,R,oe);break;case nr:C(M,O,F,R,V,q,oe,Q,G);break;default:ie&1?x(M,O,F,R,V,q,oe,Q,G):ie&6?I(M,O,F,R,V,q,oe,Q,G):(ie&64||ie&128)&&re.process(M,O,F,R,V,q,oe,Q,G,le)}z!=null&&V&&cl(z,M&&M.ref,q,O||M,!O)},v=(M,O,F,R)=>{if(M==null)n(O.el=o(O.children),F,R);else{const V=O.el=M.el;O.children!==M.children&&u(V,O.children)}},_=(M,O,F,R)=>{M==null?n(O.el=l(O.children||""),F,R):O.el=M.el},E=(M,O,F,R)=>{[M.el,M.anchor]=m(M.children,O,F,R,M.el,M.anchor)},y=({el:M,anchor:O},F,R)=>{let V;for(;M&&M!==O;)V=d(M),n(M,F,R),M=V;n(O,F,R)},T=({el:M,anchor:O})=>{let F;for(;M&&M!==O;)F=d(M),s(M),M=F;s(O)},x=(M,O,F,R,V,q,oe,Q,G)=>{O.type==="svg"?oe="svg":O.type==="math"&&(oe="mathml"),M==null?A(O,F,R,V,q,oe,Q,G):W(M,O,V,q,oe,Q,G)},A=(M,O,F,R,V,q,oe,Q)=>{let G,re;const{props:z,shapeFlag:ie,transition:he,dirs:be}=M;if(G=M.el=a(M.type,q,z&&z.is,z),ie&8?c(G,M.children):ie&16&&L(M.children,G,null,R,V,Ru(M,q),oe,Q),be&&Gn(M,null,R,"created"),P(G,M,M.scopeId,oe,R),z){for(const g in z)g!=="value"&&!go(g)&&i(G,g,null,z[g],q,R);"value"in z&&i(G,"value",null,z.value,q),(re=z.onVnodeBeforeMount)&&Sr(re,R,M)}be&&Gn(M,null,R,"beforeMount");const S=C1(V,he);S&&he.beforeEnter(G),n(G,O,F),((re=z&&z.onVnodeMounted)||S||be)&&Pt(()=>{re&&Sr(re,R,M),S&&he.enter(G),be&&Gn(M,null,R,"mounted")},V)},P=(M,O,F,R,V)=>{if(F&&p(M,F),R)for(let q=0;q{for(let re=G;re{const Q=O.el=M.el;let{patchFlag:G,dynamicChildren:re,dirs:z}=O;G|=M.patchFlag&16;const ie=M.props||Ge,he=O.props||Ge;let be;if(F&&Kn(F,!1),(be=he.onVnodeBeforeUpdate)&&Sr(be,F,O,M),z&&Gn(O,M,F,"beforeUpdate"),F&&Kn(F,!0),(ie.innerHTML&&he.innerHTML==null||ie.textContent&&he.textContent==null)&&c(Q,""),re?U(M.dynamicChildren,re,Q,F,R,Ru(O,V),q):oe||B(M,O,Q,null,F,R,Ru(O,V),q,!1),G>0){if(G&16)H(Q,ie,he,F,V);else if(G&2&&ie.class!==he.class&&i(Q,"class",null,he.class,V),G&4&&i(Q,"style",ie.style,he.style,V),G&8){const S=O.dynamicProps;for(let g=0;g{be&&Sr(be,F,O,M),z&&Gn(O,M,F,"updated")},R)},U=(M,O,F,R,V,q,oe)=>{for(let Q=0;Q{if(O!==F){if(O!==Ge)for(const q in O)!go(q)&&!(q in F)&&i(M,q,O[q],null,V,R);for(const q in F){if(go(q))continue;const oe=F[q],Q=O[q];oe!==Q&&q!=="value"&&i(M,q,Q,oe,V,R)}"value"in F&&i(M,"value",O.value,F.value,V)}},C=(M,O,F,R,V,q,oe,Q,G)=>{const re=O.el=M?M.el:o(""),z=O.anchor=M?M.anchor:o("");let{patchFlag:ie,dynamicChildren:he,slotScopeIds:be}=O;be&&(Q=Q?Q.concat(be):be),M==null?(n(re,F,R),n(z,F,R),L(O.children||[],F,z,V,q,oe,Q,G)):ie>0&&ie&64&&he&&M.dynamicChildren?(U(M.dynamicChildren,he,F,V,q,oe,Q),(O.key!=null||V&&O===V.subTree)&&Bh(M,O,!0)):B(M,O,F,z,V,q,oe,Q,G)},I=(M,O,F,R,V,q,oe,Q,G)=>{O.slotScopeIds=Q,M==null?O.shapeFlag&512?V.ctx.activate(O,F,R,oe,G):N(O,F,R,V,q,oe,G):J(M,O,G)},N=(M,O,F,R,V,q,oe)=>{const Q=M.component=q1(M,R,V);if(ww(M)&&(Q.ctx.renderer=le),Y1(Q,!1,oe),Q.asyncDep){if(V&&V.registerDep(Q,ne,oe),!M.el){const G=Q.subTree=wr(Nn);_(null,G,O,F)}}else ne(Q,M,O,F,V,q,oe)},J=(M,O,F)=>{const R=O.component=M.component;if(D1(M,O,F))if(R.asyncDep&&!R.asyncResolved){te(R,O,F);return}else R.next=O,R.update();else O.el=M.el,R.vnode=O},ne=(M,O,F,R,V,q,oe)=>{const Q=()=>{if(M.isMounted){let{next:ie,bu:he,u:be,parent:S,vnode:g}=M;{const de=Nw(M);if(de){ie&&(ie.el=g.el,te(M,ie,oe)),de.asyncDep.then(()=>{M.isUnmounted||Q()});return}}let h=ie,w;Kn(M,!1),ie?(ie.el=g.el,te(M,ie,oe)):ie=g,he&&ka(he),(w=ie.props&&ie.props.onVnodeBeforeUpdate)&&Sr(w,S,ie,g),Kn(M,!0);const k=lg(M),Z=M.subTree;M.subTree=k,b(Z,k,f(Z.el),j(Z),M,V,q),ie.el=k.el,h===null&&B1(M,k.el),be&&Pt(be,V),(w=ie.props&&ie.props.onVnodeUpdated)&&Pt(()=>Sr(w,S,ie,g),V)}else{let ie;const{el:he,props:be}=O,{bm:S,m:g,parent:h,root:w,type:k}=M,Z=ls(O);Kn(M,!1),S&&ka(S),!Z&&(ie=be&&be.onVnodeBeforeMount)&&Sr(ie,h,O),Kn(M,!0);{w.ce&&w.ce._injectChildStyle(k);const de=M.subTree=lg(M);b(null,de,F,R,M,V,q),O.el=de.el}if(g&&Pt(g,V),!Z&&(ie=be&&be.onVnodeMounted)){const de=O;Pt(()=>Sr(ie,h,de),V)}(O.shapeFlag&256||h&&ls(h.vnode)&&h.vnode.shapeFlag&256)&&M.a&&Pt(M.a,V),M.isMounted=!0,O=F=R=null}};M.scope.on();const G=M.effect=new Yy(Q);M.scope.off();const re=M.update=G.run.bind(G),z=M.job=G.runIfDirty.bind(G);z.i=M,z.id=M.uid,G.scheduler=()=>Lh(z),Kn(M,!0),re()},te=(M,O,F)=>{O.component=M;const R=M.vnode.props;M.vnode=O,M.next=null,_1(M,O.props,R,F),T1(M,O.children,F),Fn(),Qp(M),Un()},B=(M,O,F,R,V,q,oe,Q,G=!1)=>{const re=M&&M.children,z=M?M.shapeFlag:0,ie=O.children,{patchFlag:he,shapeFlag:be}=O;if(he>0){if(he&128){Y(re,ie,F,R,V,q,oe,Q,G);return}else if(he&256){ae(re,ie,F,R,V,q,oe,Q,G);return}}be&8?(z&16&&K(re,V,q),ie!==re&&c(F,ie)):z&16?be&16?Y(re,ie,F,R,V,q,oe,Q,G):K(re,V,q,!0):(z&8&&c(F,""),be&16&&L(ie,F,R,V,q,oe,Q,G))},ae=(M,O,F,R,V,q,oe,Q,G)=>{M=M||is,O=O||is;const re=M.length,z=O.length,ie=Math.min(re,z);let he;for(he=0;hez?K(M,V,q,!0,!1,ie):L(O,F,R,V,q,oe,Q,G,ie)},Y=(M,O,F,R,V,q,oe,Q,G)=>{let re=0;const z=O.length;let ie=M.length-1,he=z-1;for(;re<=ie&&re<=he;){const be=M[re],S=O[re]=G?Pn(O[re]):Ir(O[re]);if(Ws(be,S))b(be,S,F,null,V,q,oe,Q,G);else break;re++}for(;re<=ie&&re<=he;){const be=M[ie],S=O[he]=G?Pn(O[he]):Ir(O[he]);if(Ws(be,S))b(be,S,F,null,V,q,oe,Q,G);else break;ie--,he--}if(re>ie){if(re<=he){const be=he+1,S=behe)for(;re<=ie;)$(M[re],V,q,!0),re++;else{const be=re,S=re,g=new Map;for(re=S;re<=he;re++){const Me=O[re]=G?Pn(O[re]):Ir(O[re]);Me.key!=null&&g.set(Me.key,re)}let h,w=0;const k=he-S+1;let Z=!1,de=0;const ye=new Array(k);for(re=0;re=k){$(Me,V,q,!0);continue}let xe;if(Me.key!=null)xe=g.get(Me.key);else for(h=S;h<=he;h++)if(ye[h-S]===0&&Ws(Me,O[h])){xe=h;break}xe===void 0?$(Me,V,q,!0):(ye[xe-S]=re+1,xe>=de?de=xe:Z=!0,b(Me,O[xe],F,null,V,q,oe,Q,G),w++)}const Ae=Z?I1(ye):is;for(h=Ae.length-1,re=k-1;re>=0;re--){const Me=S+re,xe=O[Me],Pe=Me+1{const{el:q,type:oe,transition:Q,children:G,shapeFlag:re}=M;if(re&6){ce(M.component.subTree,O,F,R);return}if(re&128){M.suspense.move(O,F,R);return}if(re&64){oe.move(M,O,F,le);return}if(oe===nr){n(q,O,F);for(let ie=0;ieQ.enter(q),V);else{const{leave:ie,delayLeave:he,afterLeave:be}=Q,S=()=>n(q,O,F),g=()=>{ie(q,()=>{S(),be&&be()})};he?he(q,S,g):g()}else n(q,O,F)},$=(M,O,F,R=!1,V=!1)=>{const{type:q,props:oe,ref:Q,children:G,dynamicChildren:re,shapeFlag:z,patchFlag:ie,dirs:he,cacheIndex:be}=M;if(ie===-2&&(V=!1),Q!=null&&cl(Q,null,F,M,!0),be!=null&&(O.renderCache[be]=void 0),z&256){O.ctx.deactivate(M);return}const S=z&1&&he,g=!ls(M);let h;if(g&&(h=oe&&oe.onVnodeBeforeUnmount)&&Sr(h,O,M),z&6)ee(M.component,F,R);else{if(z&128){M.suspense.unmount(F,R);return}S&&Gn(M,null,O,"beforeUnmount"),z&64?M.type.remove(M,O,F,le,R):re&&!re.hasOnce&&(q!==nr||ie>0&&ie&64)?K(re,O,F,!1,!0):(q===nr&&ie&384||!V&&z&16)&&K(G,O,F),R&&ue(M)}(g&&(h=oe&&oe.onVnodeUnmounted)||S)&&Pt(()=>{h&&Sr(h,O,M),S&&Gn(M,null,O,"unmounted")},F)},ue=M=>{const{type:O,el:F,anchor:R,transition:V}=M;if(O===nr){me(F,R);return}if(O===Na){T(M);return}const q=()=>{s(F),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(M.shapeFlag&1&&V&&!V.persisted){const{leave:oe,delayLeave:Q}=V,G=()=>oe(F,q);Q?Q(M.el,q,G):G()}else q()},me=(M,O)=>{let F;for(;M!==O;)F=d(M),s(M),M=F;s(O)},ee=(M,O,F)=>{const{bum:R,scope:V,job:q,subTree:oe,um:Q,m:G,a:re}=M;ag(G),ag(re),R&&ka(R),V.stop(),q&&(q.flags|=8,$(oe,M,O,F)),Q&&Pt(Q,O),Pt(()=>{M.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},K=(M,O,F,R=!1,V=!1,q=0)=>{for(let oe=q;oe{if(M.shapeFlag&6)return j(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const O=d(M.anchor||M.el),F=O&&O[gw];return F?d(F):O};let D=!1;const X=(M,O,F)=>{M==null?O._vnode&&$(O._vnode,null,null,!0):b(O._vnode||null,M,O,null,null,null,F),O._vnode=M,D||(D=!0,Qp(),dw(),D=!1)},le={p:b,um:$,m:ce,r:ue,mt:N,mc:L,pc:B,pbc:U,n:j,o:t};return{render:X,hydrate:void 0,createApp:b1(X)}}function Ru({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Kn({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function C1(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Bh(t,e,r=!1){const n=t.children,s=e.children;if(De(n)&&De(s))for(let i=0;i>1,t[r[o]]0&&(e[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=e[a];return r}function Nw(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Nw(e)}function ag(t){if(t)for(let e=0;eLa(M1);function hF(t,e){return $h(t,null,e)}function Lu(t,e,r){return $h(t,e,r)}function $h(t,e,r=Ge){const{immediate:n,deep:s,flush:i,once:a}=r,o=Mt({},r),l=e&&n||!e&&i!=="post";let u;if(Oo){if(i==="sync"){const p=O1();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Pr,p.resume=Pr,p.pause=Pr,p}}const c=Ct;o.call=(p,m,b)=>Nr(p,c,m,b);let f=!1;i==="post"?o.scheduler=p=>{Pt(p,c&&c.suspense)}:i!=="sync"&&(f=!0,o.scheduler=(p,m)=>{m?p():Lh(p)}),o.augmentJob=p=>{e&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const d=WS(t,e,o);return Oo&&(u?u.push(d):l&&d()),d}function P1(t,e,r){const n=this.proxy,s=lt(t)?t.includes(".")?Dw(n,t):()=>n[t]:t.bind(n,n);let i;Be(e)?i=e:(i=e.handler,r=e);const a=Wo(this),o=$h(s,i.bind(n),r);return a(),o}function Dw(t,e){const r=e.split(".");return()=>{let n=t;for(let s=0;se==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${lr(e)}Modifiers`]||t[`${Oi(e)}Modifiers`];function R1(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||Ge;let s=r;const i=e.startsWith("update:"),a=i&&k1(n,e.slice(7));a&&(a.trim&&(s=r.map(c=>lt(c)?c.trim():c)),a.number&&(s=r.map(ol)));let o,l=n[o=Cu(e)]||n[o=Cu(lr(e))];!l&&i&&(l=n[o=Cu(Oi(e))]),l&&Nr(l,t,6,s);const u=n[o+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Nr(u,t,6,s)}}function Bw(t,e,r=!1){const n=e.emitsCache,s=n.get(t);if(s!==void 0)return s;const i=t.emits;let a={},o=!1;if(!Be(t)){const l=u=>{const c=Bw(u,e,!0);c&&(o=!0,Mt(a,c))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!o?(Qe(t)&&n.set(t,null),null):(De(i)?i.forEach(l=>a[l]=null):Mt(a,i),Qe(t)&&n.set(t,a),a)}function ql(t,e){return!t||!Fl(e)?!1:(e=e.slice(2).replace(/Once$/,""),He(t,e[0].toLowerCase()+e.slice(1))||He(t,Oi(e))||He(t,e))}function lg(t){const{type:e,vnode:r,proxy:n,withProxy:s,propsOptions:[i],slots:a,attrs:o,emit:l,render:u,renderCache:c,props:f,data:d,setupState:p,ctx:m,inheritAttrs:b}=t,v=ul(t);let _,E;try{if(r.shapeFlag&4){const T=s||n,x=T;_=Ir(u.call(x,T,c,f,p,d,m)),E=o}else{const T=e;_=Ir(T.length>1?T(f,{attrs:o,slots:a,emit:l}):T(f,null)),E=e.props?o:L1(o)}}catch(T){_o.length=0,zl(T,t,1),_=wr(Nn)}let y=_;if(E&&b!==!1){const T=Object.keys(E),{shapeFlag:x}=y;T.length&&x&7&&(i&&T.some(_h)&&(E=N1(E,i)),y=ds(y,E,!1,!0))}return r.dirs&&(y=ds(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Nh(y,r.transition),_=y,ul(v),_}const L1=t=>{let e;for(const r in t)(r==="class"||r==="style"||Fl(r))&&((e||(e={}))[r]=t[r]);return e},N1=(t,e)=>{const r={};for(const n in t)(!_h(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function D1(t,e,r){const{props:n,children:s,component:i}=t,{props:a,children:o,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?ug(n,a,u):!!a;if(l&8){const c=e.dynamicProps;for(let f=0;ft.__isSuspense;function $1(t,e){e&&e.pendingBranch?De(t)?e.effects.push(...t):e.effects.push(t):VS(t)}const nr=Symbol.for("v-fgt"),Yl=Symbol.for("v-txt"),Nn=Symbol.for("v-cmt"),Na=Symbol.for("v-stc"),_o=[];let Gt=null;function _f(t=!1){_o.push(Gt=t?null:[])}function F1(){_o.pop(),Gt=_o[_o.length-1]||null}let Mo=1;function cg(t,e=!1){Mo+=t,t<0&&Gt&&e&&(Gt.hasOnce=!0)}function Fw(t){return t.dynamicChildren=Mo>0?Gt||is:null,F1(),Mo>0&&Gt&&Gt.push(t),t}function pF(t,e,r,n,s,i){return Fw(jw(t,e,r,n,s,i,!0))}function vf(t,e,r,n,s){return Fw(wr(t,e,r,n,s,!0))}function Fh(t){return t?t.__v_isVNode===!0:!1}function Ws(t,e){return t.type===e.type&&t.key===e.key}const Uw=({key:t})=>t??null,Da=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?lt(t)||It(t)||Be(t)?{i:bt,r:t,k:e,f:!!r}:t:null);function jw(t,e=null,r=null,n=0,s=null,i=t===nr?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Uw(e),ref:e&&Da(e),scopeId:pw,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:bt};return o?(Uh(l,r),i&128&&t.normalize(l)):r&&(l.shapeFlag|=lt(r)?8:16),Mo>0&&!a&&Gt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Gt.push(l),l}const wr=U1;function U1(t,e=null,r=null,n=0,s=null,i=!1){if((!t||t===l1)&&(t=Nn),Fh(t)){const o=ds(t,e,!0);return r&&Uh(o,r),Mo>0&&!i&&Gt&&(o.shapeFlag&6?Gt[Gt.indexOf(t)]=o:Gt.push(o)),o.patchFlag=-2,o}if(J1(t)&&(t=t.__vccOpts),e){e=j1(e);let{class:o,style:l}=e;o&&!lt(o)&&(e.class=Th(o)),Qe(l)&&(Rh(l)&&!De(l)&&(l=Mt({},l)),e.style=Sh(l))}const a=lt(t)?1:$w(t)?128:YS(t)?64:Qe(t)?4:Be(t)?2:0;return jw(t,e,r,n,s,a,i,!0)}function j1(t){return t?Rh(t)||Iw(t)?Mt({},t):t:null}function ds(t,e,r=!1,n=!1){const{props:s,ref:i,patchFlag:a,children:o,transition:l}=t,u=e?H1(s||{},e):s,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Uw(u),ref:e&&e.ref?r&&i?De(i)?i.concat(Da(e)):[i,Da(e)]:Da(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==nr?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ds(t.ssContent),ssFallback:t.ssFallback&&ds(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&Nh(c,l.clone(c)),c}function W1(t=" ",e=0){return wr(Yl,null,t,e)}function gF(t,e){const r=wr(Na,null,t);return r.staticCount=e,r}function mF(t="",e=!1){return e?(_f(),vf(Nn,null,t)):wr(Nn,null,t)}function Ir(t){return t==null||typeof t=="boolean"?wr(Nn):De(t)?wr(nr,null,t.slice()):Fh(t)?Pn(t):wr(Yl,null,String(t))}function Pn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ds(t)}function Uh(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(De(e))r=16;else if(typeof e=="object")if(n&65){const s=e.default;s&&(s._c&&(s._d=!1),Uh(t,s()),s._c&&(s._d=!0));return}else{r=32;const s=e._;!s&&!Iw(e)?e._ctx=bt:s===3&&bt&&(bt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Be(e)?(e={default:e,_ctx:bt},r=32):(e=String(e),n&64?(r=16,e=[W1(e)]):r=8);t.children=e,t.shapeFlag|=r}function H1(...t){const e={};for(let r=0;r{let s;return(s=t[r])||(s=t[r]=[]),s.push(n),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};dl=e("__VUE_INSTANCE_SETTERS__",r=>Ct=r),Ef=e("__VUE_SSR_SETTERS__",r=>Oo=r)}const Wo=t=>{const e=Ct;return dl(t),t.scope.on(),()=>{t.scope.off(),dl(e)}},fg=()=>{Ct&&Ct.scope.off(),dl(null)};function Ww(t){return t.vnode.shapeFlag&4}let Oo=!1;function Y1(t,e=!1,r=!1){e&&Ef(e);const{props:n,children:s}=t.vnode,i=Ww(t);w1(t,n,i,e),S1(t,s,r);const a=i?G1(t,e):void 0;return e&&Ef(!1),a}function G1(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,c1);const{setup:n}=r;if(n){Fn();const s=t.setupContext=n.length>1?X1(t):null,i=Wo(t),a=jo(n,t,0,[t.props,s]),o=Uy(a);if(Un(),i(),(o||t.sp)&&!ls(t)&&yw(t),o){if(a.then(fg,fg),e)return a.then(l=>{dg(t,l)}).catch(l=>{zl(l,t,0)});t.asyncDep=a}else dg(t,a)}else Hw(t)}function dg(t,e,r){Be(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Qe(e)&&(t.setupState=lw(e)),Hw(t)}function Hw(t,e,r){const n=t.type;t.render||(t.render=n.render||Pr);{const s=Wo(t);Fn();try{f1(t)}finally{Un(),s()}}}const K1={get(t,e){return xt(t,"get",""),t[e]}};function X1(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,K1),slots:t.slots,emit:t.emit,expose:e}}function Gl(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(lw(LS(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in wo)return wo[r](t)},has(e,r){return r in e||r in wo}})):t.proxy}function Q1(t,e=!0){return Be(t)?t.displayName||t.name:t.name||e&&t.__name}function J1(t){return Be(t)&&"__vccOpts"in t}const Z1=(t,e)=>US(t,e,Oo),eT="3.5.13";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Sf;const hg=typeof window<"u"&&window.trustedTypes;if(hg)try{Sf=hg.createPolicy("vue",{createHTML:t=>t})}catch{}const zw=Sf?t=>Sf.createHTML(t):t=>t,tT="http://www.w3.org/2000/svg",rT="http://www.w3.org/1998/Math/MathML",zr=typeof document<"u"?document:null,pg=zr&&zr.createElement("template"),nT={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const s=e==="svg"?zr.createElementNS(tT,t):e==="mathml"?zr.createElementNS(rT,t):r?zr.createElement(t,{is:r}):zr.createElement(t);return t==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:t=>zr.createTextNode(t),createComment:t=>zr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>zr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,s,i){const a=r?r.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{pg.innerHTML=zw(n==="svg"?`${t}`:n==="mathml"?`${t}`:t);const o=pg.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},iT=Symbol("_vtc");function sT(t,e,r){const n=t[iT];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const hl=Symbol("_vod"),Vw=Symbol("_vsh"),bF={beforeMount(t,{value:e},{transition:r}){t[hl]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Hs(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Hs(t,!0),n.enter(t)):n.leave(t,()=>{Hs(t,!1)}):Hs(t,e))},beforeUnmount(t,{value:e}){Hs(t,e)}};function Hs(t,e){t.style.display=e?t[hl]:"none",t[Vw]=!e}const oT=Symbol(""),aT=/(^|;)\s*display\s*:/;function lT(t,e,r){const n=t.style,s=lt(r);let i=!1;if(r&&!s){if(e)if(lt(e))for(const a of e.split(";")){const o=a.slice(0,a.indexOf(":")).trim();r[o]==null&&Ba(n,o,"")}else for(const a in e)r[a]==null&&Ba(n,a,"");for(const a in r)a==="display"&&(i=!0),Ba(n,a,r[a])}else if(s){if(e!==r){const a=n[oT];a&&(r+=";"+a),n.cssText=r,i=aT.test(r)}}else e&&t.removeAttribute("style");hl in t&&(t[hl]=i?n.display:"",t[Vw]&&(n.display="none"))}const gg=/\s*!important$/;function Ba(t,e,r){if(De(r))r.forEach(n=>Ba(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=uT(t,e);gg.test(r)?t.setProperty(Oi(n),r.replace(gg,""),"important"):t[n]=r}}const mg=["Webkit","Moz","ms"],Nu={};function uT(t,e){const r=Nu[e];if(r)return r;let n=lr(e);if(n!=="filter"&&n in t)return Nu[e]=n;n=jl(n);for(let s=0;sDu||(hT.then(()=>Du=0),Du=Date.now());function gT(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Nr(mT(n,r.value),e,5,[n])};return r.value=t,r.attached=pT(),r}function mT(t,e){if(De(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>s=>!s._stopped&&n&&n(s))}else return e}const Eg=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,bT=(t,e,r,n,s,i)=>{const a=s==="svg";e==="class"?sT(t,n,a):e==="style"?lT(t,r,n):Fl(e)?_h(e)||fT(t,e,r,n,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):yT(t,e,n,a))?(wg(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&yg(t,e,n,a,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!lt(n))?wg(t,lr(e),n,i,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),yg(t,e,n,a))};function yT(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&Eg(e)&&Be(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Eg(e)&<(r)?!1:e in t}const hs=t=>{const e=t.props["onUpdate:modelValue"]||!1;return De(e)?r=>ka(e,r):e};function wT(t){t.target.composing=!0}function Sg(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const nn=Symbol("_assign"),yF={created(t,{modifiers:{lazy:e,trim:r,number:n}},s){t[nn]=hs(s);const i=n||s.props&&s.props.type==="number";kn(t,e?"change":"input",a=>{if(a.target.composing)return;let o=t.value;r&&(o=o.trim()),i&&(o=ol(o)),t[nn](o)}),r&&kn(t,"change",()=>{t.value=t.value.trim()}),e||(kn(t,"compositionstart",wT),kn(t,"compositionend",Sg),kn(t,"change",Sg))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:n,trim:s,number:i}},a){if(t[nn]=hs(a),t.composing)return;const o=(i||t.type==="number")&&!/^0\d/.test(t.value)?ol(t.value):t.value,l=e??"";o!==l&&(document.activeElement===t&&t.type!=="range"&&(n&&e===r||s&&t.value.trim()===l)||(t.value=l))}},wF={deep:!0,created(t,e,r){t[nn]=hs(r),kn(t,"change",()=>{const n=t._modelValue,s=Po(t),i=t.checked,a=t[nn];if(De(n)){const o=xh(n,s),l=o!==-1;if(i&&!l)a(n.concat(s));else if(!i&&l){const u=[...n];u.splice(o,1),a(u)}}else if(Is(n)){const o=new Set(n);i?o.add(s):o.delete(s),a(o)}else a(qw(t,i))})},mounted:Tg,beforeUpdate(t,e,r){t[nn]=hs(r),Tg(t,e,r)}};function Tg(t,{value:e,oldValue:r},n){t._modelValue=e;let s;if(De(e))s=xh(e,n.props.value)>-1;else if(Is(e))s=e.has(n.props.value);else{if(e===r)return;s=Uo(e,qw(t,!0))}t.checked!==s&&(t.checked=s)}const _F={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const s=Is(e);kn(t,"change",()=>{const i=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?ol(Po(a)):Po(a));t[nn](t.multiple?s?new Set(i):i:i[0]),t._assigning=!0,cw(()=>{t._assigning=!1})}),t[nn]=hs(n)},mounted(t,{value:e}){xg(t,e)},beforeUpdate(t,e,r){t[nn]=hs(r)},updated(t,{value:e}){t._assigning||xg(t,e)}};function xg(t,e){const r=t.multiple,n=De(e);if(!(r&&!n&&!Is(e))){for(let s=0,i=t.options.length;sString(u)===String(o)):a.selected=xh(e,o)>-1}else a.selected=e.has(o);else if(Uo(Po(a),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Po(t){return"_value"in t?t._value:t.value}function qw(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const _T=Mt({patchProp:bT},nT);let Ag;function vT(){return Ag||(Ag=x1(_T))}const vF=(...t)=>{const e=vT().createApp(...t),{mount:r}=e;return e.mount=n=>{const s=ST(n);if(!s)return;const i=e._component;!Be(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=r(s,!1,ET(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},e};function ET(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function ST(t){return lt(t)?document.querySelector(t):t}function $a(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function TT(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function jh(t){let e,r,n;t.length!==2?(e=$a,r=(o,l)=>$a(t(o),l),n=(o,l)=>t(o)-l):(e=t===$a||t===TT?t:xT,r=t,n=t);function s(o,l,u=0,c=o.length){if(u>>1;r(o[f],l)<0?u=f+1:c=f}while(u>>1;r(o[f],l)<=0?u=f+1:c=f}while(uu&&n(o[f-1],l)>-n(o[f],l)?f-1:f}return{left:s,center:a,right:i}}function xT(){return 0}function AT(t){return t===null?NaN:+t}const CT=jh($a),IT=CT.right;jh(AT).center;function EF(t,e){let r,n;if(e===void 0)for(const s of t)s!=null&&(r===void 0?s>=s&&(r=n=s):(r>s&&(r=s),n=i&&(r=n=i):(r>i&&(r=i),n=kT?10:i>=RT?5:i>=LT?2:1;let o,l,u;return s<0?(u=Math.pow(10,-s)/a,o=Math.round(t*u),l=Math.round(e*u),o/ue&&--l,u=-u):(u=Math.pow(10,s)*a,o=Math.round(t/u),l=Math.round(e/u),o*ue&&--l),l0))return[];if(t===e)return[t];const n=e=s))return[];const o=i-s+1,l=new Array(o);if(n)if(a<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let s of t)(s=e(s,++n,t))!=null&&(r=s)&&(r=s)}return r}function DT(t,e,r){t=+t,e=+e,r=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+r;for(var n=-1,s=Math.max(0,Math.ceil((e-t)/r))|0,i=new Array(s);++n+t(e)}function jT(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function WT(){return!this.__axis}function Kl(t,e){var r=[],n=null,s=null,i=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Fa||t===oo?-1:1,c=t===oo||t===Ua?"x":"y",f=t===Fa||t===Af?$T:FT;function d(p){var m=n??(e.ticks?e.ticks.apply(e,r):e.domain()),b=s??(e.tickFormat?e.tickFormat.apply(e,r):BT),v=Math.max(i,0)+o,_=e.range(),E=+_[0]+l,y=+_[_.length-1]+l,T=(e.bandwidth?jT:UT)(e.copy(),l),x=p.selection?p.selection():p,A=x.selectAll(".domain").data([null]),P=x.selectAll(".tick").data(m,e).order(),L=P.exit(),W=P.enter().append("g").attr("class","tick"),U=P.select("line"),H=P.select("text");A=A.merge(A.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(W),U=U.merge(W.append("line").attr("stroke","currentColor").attr(c+"2",u*i)),H=H.merge(W.append("text").attr("fill","currentColor").attr(c,u*v).attr("dy",t===Fa?"0em":t===Af?"0.71em":"0.32em")),p!==x&&(A=A.transition(p),P=P.transition(p),U=U.transition(p),H=H.transition(p),L=L.transition(p).attr("opacity",Mg).attr("transform",function(C){return isFinite(C=T(C))?f(C+l):this.getAttribute("transform")}),W.attr("opacity",Mg).attr("transform",function(C){var I=this.parentNode.__axis;return f((I&&isFinite(I=I(C))?I:T(C))+l)})),L.remove(),A.attr("d",t===oo||t===Ua?a?"M"+u*a+","+E+"H"+l+"V"+y+"H"+u*a:"M"+l+","+E+"V"+y:a?"M"+E+","+u*a+"V"+l+"H"+y+"V"+u*a:"M"+E+","+l+"H"+y),P.attr("opacity",1).attr("transform",function(C){return f(T(C)+l)}),U.attr(c+"2",u*i),H.attr(c,u*v).text(b),x.filter(WT).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ua?"start":t===oo?"end":"middle"),x.each(function(){this.__axis=T})}return d.scale=function(p){return arguments.length?(e=p,d):e},d.ticks=function(){return r=Array.from(arguments),d},d.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),d):r.slice()},d.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),d):n&&n.slice()},d.tickFormat=function(p){return arguments.length?(s=p,d):s},d.tickSize=function(p){return arguments.length?(i=a=+p,d):i},d.tickSizeInner=function(p){return arguments.length?(i=+p,d):i},d.tickSizeOuter=function(p){return arguments.length?(a=+p,d):a},d.tickPadding=function(p){return arguments.length?(o=+p,d):o},d.offset=function(p){return arguments.length?(l=+p,d):l},d}function TF(t){return Kl(Fa,t)}function xF(t){return Kl(Ua,t)}function AF(t){return Kl(Af,t)}function CF(t){return Kl(oo,t)}var HT={value:()=>{}};function Wh(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ja.prototype=Wh.prototype={constructor:ja,on:function(t,e){var r=this._,n=zT(t+"",r),s,i=-1,a=n.length;if(arguments.length<2){for(;++i0)for(var r=new Array(s),n=0,s,i;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Pg.hasOwnProperty(e)?{space:Pg[e],local:t}:t}function qT(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Cf&&e.documentElement.namespaceURI===Cf?e.createElement(t):e.createElementNS(r,t)}}function YT(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Yw(t){var e=Xl(t);return(e.local?YT:qT)(e)}function GT(){}function Hh(t){return t==null?GT:function(){return this.querySelector(t)}}function KT(t){typeof t!="function"&&(t=Hh(t));for(var e=this._groups,r=e.length,n=new Array(r),s=0;s=y&&(y=E+1);!(x=v[y])&&++y=0;)(a=n[s])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function vx(t){t||(t=Ex);function e(f,d){return f&&d?t(f.__data__,d.__data__):!f-!d}for(var r=this._groups,n=r.length,s=new Array(n),i=0;ie?1:t>=e?0:NaN}function Sx(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Tx(){return Array.from(this)}function xx(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?Dx:typeof e=="function"?$x:Bx)(t,e,r??"")):ps(this.node(),t)}function ps(t,e){return t.style.getPropertyValue(e)||Jw(t).getComputedStyle(t,null).getPropertyValue(e)}function Ux(t){return function(){delete this[t]}}function jx(t,e){return function(){this[t]=e}}function Wx(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Hx(t,e){return arguments.length>1?this.each((e==null?Ux:typeof e=="function"?Wx:jx)(t,e)):this.node()[t]}function Zw(t){return t.trim().split(/^|\s+/)}function zh(t){return t.classList||new e0(t)}function e0(t){this._node=t,this._names=Zw(t.getAttribute("class")||"")}e0.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function t0(t,e){for(var r=zh(t),n=-1,s=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function bA(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,s=e.length,i;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?sa(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?sa(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=MA.exec(t))?new Ft(e[1],e[2],e[3],1):(e=OA.exec(t))?new Ft(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=PA.exec(t))?sa(e[1],e[2],e[3],e[4]):(e=kA.exec(t))?sa(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=RA.exec(t))?$g(e[1],e[2]/100,e[3]/100,1):(e=LA.exec(t))?$g(e[1],e[2]/100,e[3]/100,e[4]):kg.hasOwnProperty(t)?Ng(kg[t]):t==="transparent"?new Ft(NaN,NaN,NaN,0):null}function Ng(t){return new Ft(t>>16&255,t>>8&255,t&255,1)}function sa(t,e,r,n){return n<=0&&(t=e=r=NaN),new Ft(t,e,r,n)}function BA(t){return t instanceof zo||(t=xi(t)),t?(t=t.rgb(),new Ft(t.r,t.g,t.b,t.opacity)):new Ft}function Of(t,e,r,n){return arguments.length===1?BA(t):new Ft(t,e,r,n??1)}function Ft(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Vh(Ft,Of,s0(zo,{brighter(t){return t=t==null?ml:Math.pow(ml,t),new Ft(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ko:Math.pow(ko,t),new Ft(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ft(bi(this.r),bi(this.g),bi(this.b),bl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Dg,formatHex:Dg,formatHex8:$A,formatRgb:Bg,toString:Bg}));function Dg(){return`#${ui(this.r)}${ui(this.g)}${ui(this.b)}`}function $A(){return`#${ui(this.r)}${ui(this.g)}${ui(this.b)}${ui((isNaN(this.opacity)?1:this.opacity)*255)}`}function Bg(){const t=bl(this.opacity);return`${t===1?"rgb(":"rgba("}${bi(this.r)}, ${bi(this.g)}, ${bi(this.b)}${t===1?")":`, ${t})`}`}function bl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function bi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ui(t){return t=bi(t),(t<16?"0":"")+t.toString(16)}function $g(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new br(t,e,r,n)}function o0(t){if(t instanceof br)return new br(t.h,t.s,t.l,t.opacity);if(t instanceof zo||(t=xi(t)),!t)return new br;if(t instanceof br)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,s=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,o=i-s,l=(i+s)/2;return o?(e===i?a=(r-n)/o+(r0&&l<1?0:a,new br(a,o,l,t.opacity)}function FA(t,e,r,n){return arguments.length===1?o0(t):new br(t,e,r,n??1)}function br(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Vh(br,FA,s0(zo,{brighter(t){return t=t==null?ml:Math.pow(ml,t),new br(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ko:Math.pow(ko,t),new br(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,s=2*r-n;return new Ft(Bu(t>=240?t-240:t+120,s,n),Bu(t,s,n),Bu(t<120?t+240:t-120,s,n),this.opacity)},clamp(){return new br(Fg(this.h),oa(this.s),oa(this.l),bl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=bl(this.opacity);return`${t===1?"hsl(":"hsla("}${Fg(this.h)}, ${oa(this.s)*100}%, ${oa(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Fg(t){return t=(t||0)%360,t<0?t+360:t}function oa(t){return Math.max(0,Math.min(1,t||0))}function Bu(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const qh=t=>()=>t;function UA(t,e){return function(r){return t+r*e}}function jA(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function WA(t){return(t=+t)==1?a0:function(e,r){return r-e?jA(e,r,t):qh(isNaN(e)?r:e)}}function a0(t,e){var r=e-t;return r?UA(t,r):qh(isNaN(t)?e:t)}const yl=function t(e){var r=WA(e);function n(s,i){var a=r((s=Of(s)).r,(i=Of(i)).r),o=r(s.g,i.g),l=r(s.b,i.b),u=a0(s.opacity,i.opacity);return function(c){return s.r=a(c),s.g=o(c),s.b=l(c),s.opacity=u(c),s+""}}return n.gamma=t,n}(1);function HA(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),s;return function(i){for(s=0;sr&&(i=e.slice(r,i),o[a]?o[a]+=i:o[++a]=i),(n=n[0])===(s=s[0])?o[a]?o[a]+=s:o[++a]=s:(o[++a]=null,l.push({i:a,x:mr(n,s)})),r=$u.lastIndex;return r180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(s(f)+"rotate(",null,n)-2,x:mr(u,c)})):c&&f.push(s(f)+"rotate("+c+n)}function o(u,c,f,d){u!==c?d.push({i:f.push(s(f)+"skewX(",null,n)-2,x:mr(u,c)}):c&&f.push(s(f)+"skewX("+c+n)}function l(u,c,f,d,p,m){if(u!==f||c!==d){var b=p.push(s(p)+"scale(",null,",",null,")");m.push({i:b-4,x:mr(u,f)},{i:b-2,x:mr(c,d)})}else(f!==1||d!==1)&&p.push(s(p)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=t(u),c=t(c),i(u.translateX,u.translateY,c.translateX,c.translateY,f,d),a(u.rotate,c.rotate,f,d),o(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(p){for(var m=-1,b=d.length,v;++m=0&&t._call.call(void 0,e),t=t._next;--gs}function Wg(){Ai=(_l=Lo.now())+Ql,gs=ao=0;try{oC()}finally{gs=0,lC(),Ai=0}}function aC(){var t=Lo.now(),e=t-_l;e>f0&&(Ql-=e,_l=t)}function lC(){for(var t,e=wl,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:wl=r);lo=t,Rf(n)}function Rf(t){if(!gs){ao&&(ao=clearTimeout(ao));var e=t-Ai;e>24?(t<1/0&&(ao=setTimeout(Wg,t-Lo.now()-Ql)),zs&&(zs=clearInterval(zs))):(zs||(_l=Lo.now(),zs=setInterval(aC,f0)),gs=1,d0(Wg))}}function Hg(t,e,r){var n=new vl;return e=e==null?0:+e,n.restart(s=>{n.stop(),t(s+e)},e,r),n}var uC=Wh("start","end","cancel","interrupt"),cC=[],p0=0,zg=1,Lf=2,Wa=3,Vg=4,Nf=5,Ha=6;function Jl(t,e,r,n,s,i){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;fC(t,r,{name:e,index:n,group:s,on:uC,tween:cC,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:p0})}function Kh(t,e){var r=vr(t,e);if(r.state>p0)throw new Error("too late; already scheduled");return r}function Br(t,e){var r=vr(t,e);if(r.state>Wa)throw new Error("too late; already running");return r}function vr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function fC(t,e,r){var n=t.__transition,s;n[e]=r,r.timer=h0(i,0,r.time);function i(u){r.state=zg,r.timer.restart(a,r.delay,r.time),r.delay<=u&&a(u-r.delay)}function a(u){var c,f,d,p;if(r.state!==zg)return l();for(c in n)if(p=n[c],p.name===r.name){if(p.state===Wa)return Hg(a);p.state===Vg?(p.state=Ha,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[c]):+cLf&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function jC(t,e,r){var n,s,i=UC(e)?Kh:Br;return function(){var a=i(this,t),o=a.on;o!==n&&(s=(n=o).copy()).on(e,r),a.on=s}}function WC(t,e){var r=this._id;return arguments.length<2?vr(this.node(),r).on.on(t):this.each(jC(r,t,e))}function HC(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function zC(){return this.on("end.remove",HC(this._id))}function VC(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Hh(t));for(var n=this._groups,s=n.length,i=new Array(s),a=0;a+t;function dI(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var hI={time:null,delay:0,duration:250,ease:dI};function pI(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function gI(t){var e,r;t instanceof an?(e=t._id,t=t._name):(e=b0(),(r=hI).time=Gh(),t=t==null?null:t+"");for(var n=this._groups,s=n.length,i=0;i=0))throw new Error(`invalid digits: ${t}`);if(e>15)return y0;const r=10**e;return function(n){this._+=n[0];for(let s=1,i=n.length;ssi)if(!(Math.abs(f*l-u*c)>si)||!i)this._append`L${this._x1=e},${this._y1=r}`;else{let p=n-a,m=s-o,b=l*l+u*u,v=p*p+m*m,_=Math.sqrt(b),E=Math.sqrt(d),y=i*Math.tan((Df-Math.acos((b+d-v)/(2*_*E)))/2),T=y/E,x=y/_;Math.abs(T-1)>si&&this._append`L${e+T*c},${r+T*f}`,this._append`A${i},${i},0,0,${+(f*p>c*m)},${this._x1=e+x*l},${this._y1=r+x*u}`}}arc(e,r,n,s,i,a){if(e=+e,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(s),l=n*Math.sin(s),u=e+o,c=r+l,f=1^a,d=a?s-i:i-s;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>si||Math.abs(this._y1-c)>si)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%Bf+Bf),d>mI?this._append`A${n},${n},0,1,${f},${e-o},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>si&&this._append`A${n},${n},0,${+(d>=Df)},${f},${this._x1=e+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(e,r,n,s){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+s}h${-n}Z`}toString(){return this._}}function wI(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function El(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function ms(t){return t=El(Math.abs(t)),t?t[1]:NaN}function _I(t,e){return function(r,n){for(var s=r.length,i=[],a=0,o=t[0],l=0;s>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),i.push(r.substring(s-=o,s+o)),!((l+=o+1)>n));)o=t[a=(a+1)%t.length];return i.reverse().join(e)}}function vI(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var EI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Sl(t){if(!(e=EI.exec(t)))throw new Error("invalid format: "+t);var e;return new Qh({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Sl.prototype=Qh.prototype;function Qh(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Qh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function SI(t){e:for(var e=t.length,r=1,n=-1,s;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(s+1):t}var w0;function TI(t,e){var r=El(t,e);if(!r)return t+"";var n=r[0],s=r[1],i=s-(w0=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+El(t,Math.max(0,e+i-1))[0]}function qg(t,e){var r=El(t,e);if(!r)return t+"";var n=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+n:n.length>s+1?n.slice(0,s+1)+"."+n.slice(s+1):n+new Array(s-n.length+2).join("0")}const Yg={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:wI,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>qg(t*100,e),r:qg,s:TI,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Gg(t){return t}var Kg=Array.prototype.map,Xg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xI(t){var e=t.grouping===void 0||t.thousands===void 0?Gg:_I(Kg.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",s=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?Gg:vI(Kg.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(f){f=Sl(f);var d=f.fill,p=f.align,m=f.sign,b=f.symbol,v=f.zero,_=f.width,E=f.comma,y=f.precision,T=f.trim,x=f.type;x==="n"?(E=!0,x="g"):Yg[x]||(y===void 0&&(y=12),T=!0,x="g"),(v||d==="0"&&p==="=")&&(v=!0,d="0",p="=");var A=b==="$"?r:b==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",P=b==="$"?n:/[%p]/.test(x)?a:"",L=Yg[x],W=/[defgprs%]/.test(x);y=y===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function U(H){var C=A,I=P,N,J,ne;if(x==="c")I=L(H)+I,H="";else{H=+H;var te=H<0||1/H<0;if(H=isNaN(H)?l:L(Math.abs(H),y),T&&(H=SI(H)),te&&+H==0&&m!=="+"&&(te=!1),C=(te?m==="("?m:o:m==="-"||m==="("?"":m)+C,I=(x==="s"?Xg[8+w0/3]:"")+I+(te&&m==="("?")":""),W){for(N=-1,J=H.length;++Nne||ne>57){I=(ne===46?s+H.slice(N+1):H.slice(N))+I,H=H.slice(0,N);break}}}E&&!v&&(H=e(H,1/0));var B=C.length+H.length+I.length,ae=B<_?new Array(_-B+1).join(d):"";switch(E&&v&&(H=e(ae+H,ae.length?_-I.length:1/0),ae=""),p){case"<":H=C+H+I+ae;break;case"=":H=C+ae+H+I;break;case"^":H=ae.slice(0,B=ae.length>>1)+C+H+I+ae.slice(B);break;default:H=ae+C+H+I;break}return i(H)}return U.toString=function(){return f+""},U}function c(f,d){var p=u((f=Sl(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(ms(d)/3)))*3,b=Math.pow(10,-m),v=Xg[8+m/3];return function(_){return p(b*_)+v}}return{format:u,formatPrefix:c}}var la,_0,v0;AI({thousands:",",grouping:[3],currency:["$",""]});function AI(t){return la=xI(t),_0=la.format,v0=la.formatPrefix,la}function CI(t){return Math.max(0,-ms(Math.abs(t)))}function II(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ms(e)/3)))*3-ms(Math.abs(t)))}function MI(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ms(e)-ms(t))+1}function Vo(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const Qg=Symbol("implicit");function E0(){var t=new Cg,e=[],r=[],n=Qg;function s(i){let a=t.get(i);if(a===void 0){if(n!==Qg)return n;t.set(i,a=e.push(i)-1)}return r[a%r.length]}return s.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Cg;for(const a of i)t.has(a)||t.set(a,e.push(a)-1);return s},s.range=function(i){return arguments.length?(r=Array.from(i),s):r.slice()},s.unknown=function(i){return arguments.length?(n=i,s):n},s.copy=function(){return E0(e,r).unknown(n)},Vo.apply(s,arguments),s}function OI(){var t=E0().unknown(void 0),e=t.domain,r=t.range,n=0,s=1,i,a,o=!1,l=0,u=0,c=.5;delete t.unknown;function f(){var d=e().length,p=se&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function LI(t,e,r){var n=t[0],s=t[1],i=e[0],a=e[1];return s2?NI:LI,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=o(t.map(n),e,r)))(n(a(d)))}return f.invert=function(d){return a(s((u||(u=o(e,t.map(n),mr)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,kI),c()):t.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),c()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),r=XA,c()},f.clamp=function(d){return arguments.length?(a=d?!0:es,c()):a!==es},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,p){return n=d,s=p,c()}}function T0(){return DI()(es,es)}function BI(t,e,r,n){var s=xf(t,e,r),i;switch(n=Sl(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(i=II(s,a))&&(n.precision=i),v0(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=MI(s,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=CI(s))&&(n.precision=i-(n.type==="%")*2);break}}return _0(n)}function $I(t){var e=t.domain;return t.ticks=function(r){var n=e();return NT(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var s=e();return BI(s[0],s[s.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),s=0,i=n.length-1,a=n[s],o=n[i],l,u,c=10;for(o0;){if(u=Tf(a,o,r),u===l)return n[s]=a,n[i]=o,e(n);if(u>0)a=Math.floor(a/u)*u,o=Math.ceil(o/u)*u;else if(u<0)a=Math.ceil(a*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function FI(){var t=T0();return t.copy=function(){return S0(t,FI())},Vo.apply(t,arguments),$I(t)}function UI(t,e){t=t.slice();var r=0,n=t.length-1,s=t[r],i=t[n],a;return i(t(i=new Date(+i)),i),s.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),s.round=i=>{const a=s(i),o=s.ceil(i);return i-a(e(i=new Date(+i),a==null?1:Math.floor(a)),i),s.range=(i,a,o)=>{const l=[];if(i=s.ceil(i),o=o==null?1:Math.floor(o),!(i0))return l;let u;do l.push(u=new Date(+i)),e(i,o),t(i);while(udt(a=>{if(a>=a)for(;t(a),!i(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;e(a,-1),!i(a););else for(;--o>=0;)for(;e(a,1),!i(a););}),r&&(s.count=(i,a)=>(Fu.setTime(+i),Uu.setTime(+a),t(Fu),t(Uu),Math.floor(r(Fu,Uu))),s.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?s.filter(n?a=>n(a)%i===0:a=>s.count(0,a)%i===0):s)),s}const Tl=dt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Tl.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?dt(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Tl);Tl.range;const Qr=1e3,sr=Qr*60,Jr=sr*60,ln=Jr*24,Jh=ln*7,Zg=ln*30,ju=ln*365,ci=dt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Qr)},(t,e)=>(e-t)/Qr,t=>t.getUTCSeconds());ci.range;const Zh=dt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Qr)},(t,e)=>{t.setTime(+t+e*sr)},(t,e)=>(e-t)/sr,t=>t.getMinutes());Zh.range;const ep=dt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*sr)},(t,e)=>(e-t)/sr,t=>t.getUTCMinutes());ep.range;const tp=dt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Qr-t.getMinutes()*sr)},(t,e)=>{t.setTime(+t+e*Jr)},(t,e)=>(e-t)/Jr,t=>t.getHours());tp.range;const rp=dt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Jr)},(t,e)=>(e-t)/Jr,t=>t.getUTCHours());rp.range;const qo=dt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*sr)/ln,t=>t.getDate()-1);qo.range;const Zl=dt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ln,t=>t.getUTCDate()-1);Zl.range;const x0=dt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ln,t=>Math.floor(t/ln));x0.range;function Pi(t){return dt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*sr)/Jh)}const eu=Pi(0),xl=Pi(1),jI=Pi(2),WI=Pi(3),bs=Pi(4),HI=Pi(5),zI=Pi(6);eu.range;xl.range;jI.range;WI.range;bs.range;HI.range;zI.range;function ki(t){return dt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/Jh)}const tu=ki(0),Al=ki(1),VI=ki(2),qI=ki(3),ys=ki(4),YI=ki(5),GI=ki(6);tu.range;Al.range;VI.range;qI.range;ys.range;YI.range;GI.range;const np=dt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());np.range;const ip=dt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());ip.range;const un=dt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());un.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});un.range;const cn=dt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());cn.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});cn.range;function A0(t,e,r,n,s,i){const a=[[ci,1,Qr],[ci,5,5*Qr],[ci,15,15*Qr],[ci,30,30*Qr],[i,1,sr],[i,5,5*sr],[i,15,15*sr],[i,30,30*sr],[s,1,Jr],[s,3,3*Jr],[s,6,6*Jr],[s,12,12*Jr],[n,1,ln],[n,2,2*ln],[r,1,Jh],[e,1,Zg],[e,3,3*Zg],[t,1,ju]];function o(u,c,f){const d=cv).right(a,d);if(p===a.length)return t.every(xf(u/ju,c/ju,f));if(p===0)return Tl.every(Math.max(xf(u,c,f),1));const[m,b]=a[d/a[p-1][2]53)return null;"w"in M||(M.w=1),"Z"in M?(F=Hu(Vs(M.y,0,1)),R=F.getUTCDay(),F=R>4||R===0?Al.ceil(F):Al(F),F=Zl.offset(F,(M.V-1)*7),M.y=F.getUTCFullYear(),M.m=F.getUTCMonth(),M.d=F.getUTCDate()+(M.w+6)%7):(F=Wu(Vs(M.y,0,1)),R=F.getDay(),F=R>4||R===0?xl.ceil(F):xl(F),F=qo.offset(F,(M.V-1)*7),M.y=F.getFullYear(),M.m=F.getMonth(),M.d=F.getDate()+(M.w+6)%7)}else("W"in M||"U"in M)&&("w"in M||(M.w="u"in M?M.u%7:"W"in M?1:0),R="Z"in M?Hu(Vs(M.y,0,1)).getUTCDay():Wu(Vs(M.y,0,1)).getDay(),M.m=0,M.d="W"in M?(M.w+6)%7+M.W*7-(R+5)%7:M.w+M.U*7-(R+6)%7);return"Z"in M?(M.H+=M.Z/100|0,M.M+=M.Z%100,Hu(M)):Wu(M)}}function L(X,le,se,M){for(var O=0,F=le.length,R=se.length,V,q;O=R)return-1;if(V=le.charCodeAt(O++),V===37){if(V=le.charAt(O++),q=x[V in em?le.charAt(O++):V],!q||(M=q(X,se,M))<0)return-1}else if(V!=se.charCodeAt(M++))return-1}return M}function W(X,le,se){var M=u.exec(le.slice(se));return M?(X.p=c.get(M[0].toLowerCase()),se+M[0].length):-1}function U(X,le,se){var M=p.exec(le.slice(se));return M?(X.w=m.get(M[0].toLowerCase()),se+M[0].length):-1}function H(X,le,se){var M=f.exec(le.slice(se));return M?(X.w=d.get(M[0].toLowerCase()),se+M[0].length):-1}function C(X,le,se){var M=_.exec(le.slice(se));return M?(X.m=E.get(M[0].toLowerCase()),se+M[0].length):-1}function I(X,le,se){var M=b.exec(le.slice(se));return M?(X.m=v.get(M[0].toLowerCase()),se+M[0].length):-1}function N(X,le,se){return L(X,e,le,se)}function J(X,le,se){return L(X,r,le,se)}function ne(X,le,se){return L(X,n,le,se)}function te(X){return a[X.getDay()]}function B(X){return i[X.getDay()]}function ae(X){return l[X.getMonth()]}function Y(X){return o[X.getMonth()]}function ce(X){return s[+(X.getHours()>=12)]}function $(X){return 1+~~(X.getMonth()/3)}function ue(X){return a[X.getUTCDay()]}function me(X){return i[X.getUTCDay()]}function ee(X){return l[X.getUTCMonth()]}function K(X){return o[X.getUTCMonth()]}function j(X){return s[+(X.getUTCHours()>=12)]}function D(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var le=A(X+="",y);return le.toString=function(){return X},le},parse:function(X){var le=P(X+="",!1);return le.toString=function(){return X},le},utcFormat:function(X){var le=A(X+="",T);return le.toString=function(){return X},le},utcParse:function(X){var le=P(X+="",!0);return le.toString=function(){return X},le}}}var em={"-":"",_:" ",0:"0"},gt=/^\s*\d+/,eM=/^%/,tM=/[\\^$*+?|[\]().{}]/g;function je(t,e,r){var n=t<0?"-":"",s=(n?-t:t)+"",i=s.length;return n+(i[e.toLowerCase(),r]))}function nM(t,e,r){var n=gt.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function iM(t,e,r){var n=gt.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function sM(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function oM(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function aM(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function tm(t,e,r){var n=gt.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function rm(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function lM(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function uM(t,e,r){var n=gt.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function cM(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function nm(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function fM(t,e,r){var n=gt.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function im(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function dM(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function hM(t,e,r){var n=gt.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function pM(t,e,r){var n=gt.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function gM(t,e,r){var n=gt.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function mM(t,e,r){var n=eM.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function bM(t,e,r){var n=gt.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function yM(t,e,r){var n=gt.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function sm(t,e){return je(t.getDate(),e,2)}function wM(t,e){return je(t.getHours(),e,2)}function _M(t,e){return je(t.getHours()%12||12,e,2)}function vM(t,e){return je(1+qo.count(un(t),t),e,3)}function C0(t,e){return je(t.getMilliseconds(),e,3)}function EM(t,e){return C0(t,e)+"000"}function SM(t,e){return je(t.getMonth()+1,e,2)}function TM(t,e){return je(t.getMinutes(),e,2)}function xM(t,e){return je(t.getSeconds(),e,2)}function AM(t){var e=t.getDay();return e===0?7:e}function CM(t,e){return je(eu.count(un(t)-1,t),e,2)}function I0(t){var e=t.getDay();return e>=4||e===0?bs(t):bs.ceil(t)}function IM(t,e){return t=I0(t),je(bs.count(un(t),t)+(un(t).getDay()===4),e,2)}function MM(t){return t.getDay()}function OM(t,e){return je(xl.count(un(t)-1,t),e,2)}function PM(t,e){return je(t.getFullYear()%100,e,2)}function kM(t,e){return t=I0(t),je(t.getFullYear()%100,e,2)}function RM(t,e){return je(t.getFullYear()%1e4,e,4)}function LM(t,e){var r=t.getDay();return t=r>=4||r===0?bs(t):bs.ceil(t),je(t.getFullYear()%1e4,e,4)}function NM(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+je(e/60|0,"0",2)+je(e%60,"0",2)}function om(t,e){return je(t.getUTCDate(),e,2)}function DM(t,e){return je(t.getUTCHours(),e,2)}function BM(t,e){return je(t.getUTCHours()%12||12,e,2)}function $M(t,e){return je(1+Zl.count(cn(t),t),e,3)}function M0(t,e){return je(t.getUTCMilliseconds(),e,3)}function FM(t,e){return M0(t,e)+"000"}function UM(t,e){return je(t.getUTCMonth()+1,e,2)}function jM(t,e){return je(t.getUTCMinutes(),e,2)}function WM(t,e){return je(t.getUTCSeconds(),e,2)}function HM(t){var e=t.getUTCDay();return e===0?7:e}function zM(t,e){return je(tu.count(cn(t)-1,t),e,2)}function O0(t){var e=t.getUTCDay();return e>=4||e===0?ys(t):ys.ceil(t)}function VM(t,e){return t=O0(t),je(ys.count(cn(t),t)+(cn(t).getUTCDay()===4),e,2)}function qM(t){return t.getUTCDay()}function YM(t,e){return je(Al.count(cn(t)-1,t),e,2)}function GM(t,e){return je(t.getUTCFullYear()%100,e,2)}function KM(t,e){return t=O0(t),je(t.getUTCFullYear()%100,e,2)}function XM(t,e){return je(t.getUTCFullYear()%1e4,e,4)}function QM(t,e){var r=t.getUTCDay();return t=r>=4||r===0?ys(t):ys.ceil(t),je(t.getUTCFullYear()%1e4,e,4)}function JM(){return"+0000"}function am(){return"%"}function lm(t){return+t}function um(t){return Math.floor(+t/1e3)}var zi,P0,ZM,k0;eO({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function eO(t){return zi=ZI(t),P0=zi.format,ZM=zi.parse,k0=zi.utcFormat,zi.utcParse,zi}function tO(t){return new Date(t)}function rO(t){return t instanceof Date?+t:+new Date(+t)}function sp(t,e,r,n,s,i,a,o,l,u){var c=T0(),f=c.invert,d=c.domain,p=u(".%L"),m=u(":%S"),b=u("%I:%M"),v=u("%I %p"),_=u("%a %d"),E=u("%b %d"),y=u("%B"),T=u("%Y");function x(A){return(l(A)1?0:t<-1?No:Math.acos(t)}function fm(t){return t>=1?Cl:t<=-1?-Cl:Math.asin(t)}function op(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new yI(e)}function sO(t){return t.innerRadius}function oO(t){return t.outerRadius}function aO(t){return t.startAngle}function lO(t){return t.endAngle}function uO(t){return t&&t.padAngle}function cO(t,e,r,n,s,i,a,o){var l=r-t,u=n-e,c=a-s,f=o-i,d=f*l-c*u;if(!(d*dN*N+J*J&&(L=U,W=H),{cx:L,cy:W,x01:-c,y01:-f,x11:L*(s/x-1),y11:W*(s/x-1)}}function PF(){var t=sO,e=oO,r=Fe(0),n=null,s=aO,i=lO,a=uO,o=null,l=op(u);function u(){var c,f,d=+t.apply(this,arguments),p=+e.apply(this,arguments),m=s.apply(this,arguments)-Cl,b=i.apply(this,arguments)-Cl,v=cm(b-m),_=b>m;if(o||(o=c=l()),pBt))o.moveTo(0,0);else if(v>Va-Bt)o.moveTo(p*Qn(m),p*Tr(m)),o.arc(0,0,p,m,b,!_),d>Bt&&(o.moveTo(d*Qn(b),d*Tr(b)),o.arc(0,0,d,b,m,_));else{var E=m,y=b,T=m,x=b,A=v,P=v,L=a.apply(this,arguments)/2,W=L>Bt&&(n?+n.apply(this,arguments):ts(d*d+p*p)),U=zu(cm(p-d)/2,+r.apply(this,arguments)),H=U,C=U,I,N;if(W>Bt){var J=fm(W/d*Tr(L)),ne=fm(W/p*Tr(L));(A-=J*2)>Bt?(J*=_?1:-1,T+=J,x-=J):(A=0,T=x=(m+b)/2),(P-=ne*2)>Bt?(ne*=_?1:-1,E+=ne,y-=ne):(P=0,E=y=(m+b)/2)}var te=p*Qn(E),B=p*Tr(E),ae=d*Qn(x),Y=d*Tr(x);if(U>Bt){var ce=p*Qn(y),$=p*Tr(y),ue=d*Qn(T),me=d*Tr(T),ee;if(vBt?C>Bt?(I=ua(ue,me,te,B,p,C,_),N=ua(ce,$,ae,Y,p,C,_),o.moveTo(I.cx+I.x01,I.cy+I.y01),CBt)||!(A>Bt)?o.lineTo(ae,Y):H>Bt?(I=ua(ae,Y,ce,$,d,-H,_),N=ua(te,B,ue,me,d,-H,_),o.lineTo(I.cx+I.x01,I.cy+I.y01),H=p;--m)o.point(y[m],T[m]);o.lineEnd(),o.areaEnd()}_&&(y[d]=+t(v,d,f),T[d]=+e(v,d,f),o.point(n?+n(v,d,f):y[d],r?+r(v,d,f):T[d]))}if(E)return o=null,E+""||null}function c(){return fO().defined(s).curve(a).context(i)}return u.x=function(f){return arguments.length?(t=typeof f=="function"?f:Fe(+f),n=null,u):t},u.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Fe(+f),u):t},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Fe(+f),u):n},u.y=function(f){return arguments.length?(e=typeof f=="function"?f:Fe(+f),r=null,u):e},u.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Fe(+f),u):e},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Fe(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(n).y(e)},u.defined=function(f){return arguments.length?(s=typeof f=="function"?f:Fe(!!f),u):s},u.curve=function(f){return arguments.length?(a=f,i!=null&&(o=a(i)),u):a},u.context=function(f){return arguments.length?(f==null?i=o=null:o=a(i=f),u):i},u}function dO(t,e){return et?1:e>=t?0:NaN}function hO(t){return t}function RF(){var t=hO,e=dO,r=null,n=Fe(0),s=Fe(Va),i=Fe(0);function a(o){var l,u=(o=ru(o)).length,c,f,d=0,p=new Array(u),m=new Array(u),b=+n.apply(this,arguments),v=Math.min(Va,Math.max(-Va,s.apply(this,arguments)-b)),_,E=Math.min(Math.abs(v)/u,i.apply(this,arguments)),y=E*(v<0?-1:1),T;for(l=0;l0&&(d+=T);for(e!=null?p.sort(function(x,A){return e(m[x],m[A])}):r!=null&&p.sort(function(x,A){return r(o[x],o[A])}),l=0,f=d?(v-u*y)/d:0;l0?T*f:0)+y,m[c]={data:o[c],index:l,value:T,startAngle:b,endAngle:_,padAngle:E};return m}return a.value=function(o){return arguments.length?(t=typeof o=="function"?o:Fe(+o),a):t},a.sortValues=function(o){return arguments.length?(e=o,r=null,a):e},a.sort=function(o){return arguments.length?(r=o,e=null,a):r},a.startAngle=function(o){return arguments.length?(n=typeof o=="function"?o:Fe(+o),a):n},a.endAngle=function(o){return arguments.length?(s=typeof o=="function"?o:Fe(+o),a):s},a.padAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Fe(+o),a):i},a}class pO{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function LF(t){return new pO(t,!0)}function dm(t,e){if((a=t.length)>1)for(var r=1,n,s,i=t[e[0]],a,o=i.length;r=0;)r[e]=e;return r}function gO(t,e){return t[e]}function mO(t){const e=[];return e.key=t,e}function NF(){var t=Fe([]),e=hm,r=dm,n=gO;function s(i){var a=Array.from(t.apply(this,arguments),mO),o,l=a.length,u=-1,c;for(const f of i)for(o=0,++u;o()=>t;function bO(t,{sourceEvent:e,target:r,transform:n,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:s}})}function Zr(t,e,r){this.k=t,this.x=e,this.y=r}Zr.prototype={constructor:Zr,scale:function(t){return t===1?this:new Zr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Zr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var B0=new Zr(1,0,0);Zr.prototype;function Vu(t){t.stopImmediatePropagation()}function Gs(t){t.preventDefault(),t.stopImmediatePropagation()}function yO(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function wO(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function pm(){return this.__zoom||B0}function _O(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function vO(){return navigator.maxTouchPoints||"ontouchstart"in this}function EO(t,e,r){var n=t.invertX(e[0][0])-r[0][0],s=t.invertX(e[1][0])-r[1][0],i=t.invertY(e[0][1])-r[0][1],a=t.invertY(e[1][1])-r[1][1];return t.translate(s>n?(n+s)/2:Math.min(0,n)||Math.max(0,s),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function DF(){var t=yO,e=wO,r=EO,n=_O,s=vO,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],o=250,l=iC,u=Wh("start","zoom","end"),c,f,d,p=500,m=150,b=0,v=10;function _(N){N.property("__zoom",pm).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",W).on("dblclick.zoom",U).filter(s).on("touchstart.zoom",H).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function(N,J,ne,te){var B=N.selection?N.selection():N;B.property("__zoom",pm),N!==B?x(N,J,ne,te):B.interrupt().each(function(){A(this,arguments).event(te).start().zoom(null,typeof J=="function"?J.apply(this,arguments):J).end()})},_.scaleBy=function(N,J,ne,te){_.scaleTo(N,function(){var B=this.__zoom.k,ae=typeof J=="function"?J.apply(this,arguments):J;return B*ae},ne,te)},_.scaleTo=function(N,J,ne,te){_.transform(N,function(){var B=e.apply(this,arguments),ae=this.__zoom,Y=ne==null?T(B):typeof ne=="function"?ne.apply(this,arguments):ne,ce=ae.invert(Y),$=typeof J=="function"?J.apply(this,arguments):J;return r(y(E(ae,$),Y,ce),B,a)},ne,te)},_.translateBy=function(N,J,ne,te){_.transform(N,function(){return r(this.__zoom.translate(typeof J=="function"?J.apply(this,arguments):J,typeof ne=="function"?ne.apply(this,arguments):ne),e.apply(this,arguments),a)},null,te)},_.translateTo=function(N,J,ne,te,B){_.transform(N,function(){var ae=e.apply(this,arguments),Y=this.__zoom,ce=te==null?T(ae):typeof te=="function"?te.apply(this,arguments):te;return r(B0.translate(ce[0],ce[1]).scale(Y.k).translate(typeof J=="function"?-J.apply(this,arguments):-J,typeof ne=="function"?-ne.apply(this,arguments):-ne),ae,a)},te,B)};function E(N,J){return J=Math.max(i[0],Math.min(i[1],J)),J===N.k?N:new Zr(J,N.x,N.y)}function y(N,J,ne){var te=J[0]-ne[0]*N.k,B=J[1]-ne[1]*N.k;return te===N.x&&B===N.y?N:new Zr(N.k,te,B)}function T(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function x(N,J,ne,te){N.on("start.zoom",function(){A(this,arguments).event(te).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(te).end()}).tween("zoom",function(){var B=this,ae=arguments,Y=A(B,ae).event(te),ce=e.apply(B,ae),$=ne==null?T(ce):typeof ne=="function"?ne.apply(B,ae):ne,ue=Math.max(ce[1][0]-ce[0][0],ce[1][1]-ce[0][1]),me=B.__zoom,ee=typeof J=="function"?J.apply(B,ae):J,K=l(me.invert($).concat(ue/me.k),ee.invert($).concat(ue/ee.k));return function(j){if(j===1)j=ee;else{var D=K(j),X=ue/D[2];j=new Zr(X,$[0]-D[0]*X,$[1]-D[1]*X)}Y.zoom(null,j)}})}function A(N,J,ne){return!ne&&N.__zooming||new P(N,J)}function P(N,J){this.that=N,this.args=J,this.active=0,this.sourceEvent=null,this.extent=e.apply(N,J),this.taps=0}P.prototype={event:function(N){return N&&(this.sourceEvent=N),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(N,J){return this.mouse&&N!=="mouse"&&(this.mouse[1]=J.invert(this.mouse[0])),this.touch0&&N!=="touch"&&(this.touch0[1]=J.invert(this.touch0[0])),this.touch1&&N!=="touch"&&(this.touch1[1]=J.invert(this.touch1[0])),this.that.__zoom=J,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(N){var J=ai(this.that).datum();u.call(N,this.that,new bO(N,{sourceEvent:this.sourceEvent,target:_,type:N,transform:this.that.__zoom,dispatch:u}),J)}};function L(N,...J){if(!t.apply(this,arguments))return;var ne=A(this,J).event(N),te=this.__zoom,B=Math.max(i[0],Math.min(i[1],te.k*Math.pow(2,n.apply(this,arguments)))),ae=Xn(N);if(ne.wheel)(ne.mouse[0][0]!==ae[0]||ne.mouse[0][1]!==ae[1])&&(ne.mouse[1]=te.invert(ne.mouse[0]=ae)),clearTimeout(ne.wheel);else{if(te.k===B)return;ne.mouse=[ae,te.invert(ae)],za(this),ne.start()}Gs(N),ne.wheel=setTimeout(Y,m),ne.zoom("mouse",r(y(E(te,B),ne.mouse[0],ne.mouse[1]),ne.extent,a));function Y(){ne.wheel=null,ne.end()}}function W(N,...J){if(d||!t.apply(this,arguments))return;var ne=N.currentTarget,te=A(this,J,!0).event(N),B=ai(N.view).on("mousemove.zoom",$,!0).on("mouseup.zoom",ue,!0),ae=Xn(N,ne),Y=N.clientX,ce=N.clientY;AA(N.view),Vu(N),te.mouse=[ae,this.__zoom.invert(ae)],za(this),te.start();function $(me){if(Gs(me),!te.moved){var ee=me.clientX-Y,K=me.clientY-ce;te.moved=ee*ee+K*K>b}te.event(me).zoom("mouse",r(y(te.that.__zoom,te.mouse[0]=Xn(me,ne),te.mouse[1]),te.extent,a))}function ue(me){B.on("mousemove.zoom mouseup.zoom",null),CA(me.view,te.moved),Gs(me),te.event(me).end()}}function U(N,...J){if(t.apply(this,arguments)){var ne=this.__zoom,te=Xn(N.changedTouches?N.changedTouches[0]:N,this),B=ne.invert(te),ae=ne.k*(N.shiftKey?.5:2),Y=r(y(E(ne,ae),te,B),e.apply(this,J),a);Gs(N),o>0?ai(this).transition().duration(o).call(x,Y,te,N):ai(this).call(_.transform,Y,te,N)}}function H(N,...J){if(t.apply(this,arguments)){var ne=N.touches,te=ne.length,B=A(this,J,N.changedTouches.length===te).event(N),ae,Y,ce,$;for(Vu(N),Y=0;Y()=>(t&&(e=t(t=0)),e),Te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ri=(t,e)=>{for(var r in e)ap(t,r,{get:e[r],enumerable:!0})},AO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of TO(e))!xO.call(t,s)&&s!==r&&ap(t,s,{get:()=>e[s],enumerable:!(n=SO(e,s))||n.enumerable});return t},Ke=t=>AO(ap({},"__esModule",{value:!0}),t),we=wt(()=>{}),ze={};Ri(ze,{_debugEnd:()=>bd,_debugProcess:()=>md,_events:()=>kd,_eventsCount:()=>Rd,_exiting:()=>rd,_fatalExceptions:()=>hd,_getActiveHandles:()=>z0,_getActiveRequests:()=>H0,_kill:()=>sd,_linkedBinding:()=>j0,_maxListeners:()=>Pd,_preload_modules:()=>Md,_rawDebug:()=>Zf,_startProfilerIdleNotifier:()=>yd,_stopProfilerIdleNotifier:()=>wd,_tickCallback:()=>gd,abort:()=>Sd,addListener:()=>Ld,allowedNodeEnvironmentFlags:()=>fd,arch:()=>Uf,argv:()=>Hf,argv0:()=>Id,assert:()=>V0,binding:()=>Gf,chdir:()=>Qf,config:()=>nd,cpuUsage:()=>uo,cwd:()=>Xf,debugPort:()=>Cd,default:()=>up,dlopen:()=>W0,domain:()=>td,emit:()=>Fd,emitWarning:()=>Yf,env:()=>Wf,execArgv:()=>zf,execPath:()=>Ad,exit:()=>ud,features:()=>dd,hasUncaughtExceptionCaptureCallback:()=>q0,hrtime:()=>qa,kill:()=>ld,listeners:()=>G0,memoryUsage:()=>ad,moduleLoadList:()=>ed,nextTick:()=>F0,off:()=>Dd,on:()=>Wr,once:()=>Nd,openStdin:()=>cd,pid:()=>Td,platform:()=>jf,ppid:()=>xd,prependListener:()=>Ud,prependOnceListener:()=>jd,reallyExit:()=>id,release:()=>Jf,removeAllListeners:()=>$d,removeListener:()=>Bd,resourceUsage:()=>od,setSourceMapsEnabled:()=>Od,setUncaughtExceptionCaptureCallback:()=>pd,stderr:()=>vd,stdin:()=>Ed,stdout:()=>_d,title:()=>Ff,umask:()=>Kf,uptime:()=>Y0,version:()=>Vf,versions:()=>qf});function lp(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function CO(){!yi||!fi||(yi=!1,fi.length?Mr=fi.concat(Mr):vo=-1,Mr.length&&$0())}function $0(){if(!yi){var t=setTimeout(CO,0);yi=!0;for(var e=Mr.length;e;){for(fi=Mr,Mr=[];++vo1)for(var r=1;r{we(),ve(),_e(),Mr=[],yi=!1,vo=-1,U0.prototype.run=function(){this.fun.apply(null,this.array)},Ff="browser",Uf="x64",jf="browser",Wf={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Hf=["/usr/bin/node"],zf=[],Vf="v16.8.0",qf={},Yf=function(t,e){console.warn((e?e+": ":"")+t)},Gf=function(t){lp("binding")},Kf=function(t){return 0},Xf=function(){return"/"},Qf=function(t){},Jf={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Zf=Tt,ed=[],td={},rd=!1,nd={},id=Tt,sd=Tt,uo=function(){return{}},od=uo,ad=uo,ld=Tt,ud=Tt,cd=Tt,fd={},dd={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},hd=Tt,pd=Tt,gd=Tt,md=Tt,bd=Tt,yd=Tt,wd=Tt,_d=void 0,vd=void 0,Ed=void 0,Sd=Tt,Td=2,xd=1,Ad="/bin/usr/node",Cd=9229,Id="node",Md=[],Od=Tt,Yr={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Yr.now===void 0&&(qu=Date.now(),Yr.timing&&Yr.timing.navigationStart&&(qu=Yr.timing.navigationStart),Yr.now=()=>Date.now()-qu),Ya=1e9,qa.bigint=function(t){var e=qa(t);return typeof BigInt>"u"?e[0]*Ya+e[1]:BigInt(e[0]*Ya)+BigInt(e[1])},Pd=10,kd={},Rd=0,Ld=Wr,Nd=Wr,Dd=Wr,Bd=Wr,$d=Wr,Fd=Tt,Ud=Wr,jd=Wr,up={version:Vf,versions:qf,arch:Uf,platform:jf,release:Jf,_rawDebug:Zf,moduleLoadList:ed,binding:Gf,_linkedBinding:j0,_events:kd,_eventsCount:Rd,_maxListeners:Pd,on:Wr,addListener:Ld,once:Nd,off:Dd,removeListener:Bd,removeAllListeners:$d,emit:Fd,prependListener:Ud,prependOnceListener:jd,listeners:G0,domain:td,_exiting:rd,config:nd,dlopen:W0,uptime:Y0,_getActiveRequests:H0,_getActiveHandles:z0,reallyExit:id,_kill:sd,cpuUsage:uo,resourceUsage:od,memoryUsage:ad,kill:ld,exit:ud,openStdin:cd,allowedNodeEnvironmentFlags:fd,assert:V0,features:dd,_fatalExceptions:hd,setUncaughtExceptionCaptureCallback:pd,hasUncaughtExceptionCaptureCallback:q0,emitWarning:Yf,nextTick:F0,_tickCallback:gd,_debugProcess:md,_debugEnd:bd,_startProfilerIdleNotifier:yd,_stopProfilerIdleNotifier:wd,stdout:_d,stdin:Ed,stderr:vd,abort:Sd,umask:Kf,chdir:Qf,cwd:Xf,env:Wf,title:Ff,argv:Hf,execArgv:zf,pid:Td,ppid:xd,execPath:Ad,debugPort:Cd,hrtime:qa,argv0:Id,_preload_modules:Md,setSourceMapsEnabled:Od}}),_e=wt(()=>{IO()}),_t={};Ri(_t,{Buffer:()=>Il,INSPECT_MAX_BYTES:()=>K0,default:()=>Hr,kMaxLength:()=>X0});function MO(){if(Wd)return Ki;Wd=!0,Ki.byteLength=o,Ki.toByteArray=u,Ki.fromByteArray=d;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,i=n.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var b=p.indexOf("=");b===-1&&(b=m);var v=b===m?0:4-b%4;return[b,v]}function o(p){var m=a(p),b=m[0],v=m[1];return(b+v)*3/4-v}function l(p,m,b){return(m+b)*3/4-b}function u(p){var m,b=a(p),v=b[0],_=b[1],E=new r(l(p,v,_)),y=0,T=_>0?v-4:v,x;for(x=0;x>16&255,E[y++]=m>>8&255,E[y++]=m&255;return _===2&&(m=e[p.charCodeAt(x)]<<2|e[p.charCodeAt(x+1)]>>4,E[y++]=m&255),_===1&&(m=e[p.charCodeAt(x)]<<10|e[p.charCodeAt(x+1)]<<4|e[p.charCodeAt(x+2)]>>2,E[y++]=m>>8&255,E[y++]=m&255),E}function c(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function f(p,m,b){for(var v,_=[],E=m;ET?T:y+E));return v===1?(m=p[b-1],_.push(t[m>>2]+t[m<<4&63]+"==")):v===2&&(m=(p[b-2]<<8)+p[b-1],_.push(t[m>>10]+t[m>>4&63]+t[m<<2&63]+"=")),_.join("")}return Ki}function OO(){return Hd?co:(Hd=!0,co.read=function(t,e,r,n,s){var i,a,o=s*8-n-1,l=(1<>1,c=-7,f=r?s-1:0,d=r?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=o;c>0;i=i*256+t[e+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=a*256+t[e+f],f+=d,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-u}return(p?-1:1)*a*Math.pow(2,i-n)},co.write=function(t,e,r,n,s,i){var a,o,l,u=i*8-s-1,c=(1<>1,d=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,m=n?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?e+=d/l:e+=d*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=c?(o=0,a=c):a+f>=1?(o=(e*l-1)*Math.pow(2,s),a=a+f):(o=e*Math.pow(2,f-1)*Math.pow(2,s),a=0));s>=8;t[r+p]=o&255,p+=m,o/=256,s-=8);for(a=a<0;t[r+p]=a&255,p+=m,a/=256,u-=8);t[r+p-m]|=b*128},co)}function PO(){if(zd)return Sn;zd=!0;let t=MO(),e=OO(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Sn.Buffer=a,Sn.SlowBuffer=_,Sn.INSPECT_MAX_BYTES=50;let n=2147483647;Sn.kMaxLength=n,a.TYPED_ARRAY_SUPPORT=s(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{let S=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(S,g),S.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function i(S){if(S>n)throw new RangeError('The value "'+S+'" is invalid for option "size"');let g=new Uint8Array(S);return Object.setPrototypeOf(g,a.prototype),g}function a(S,g,h){if(typeof S=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(S)}return o(S,g,h)}a.poolSize=8192;function o(S,g,h){if(typeof S=="string")return f(S,g);if(ArrayBuffer.isView(S))return p(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(re(S,ArrayBuffer)||S&&re(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(re(S,SharedArrayBuffer)||S&&re(S.buffer,SharedArrayBuffer)))return m(S,g,h);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let w=S.valueOf&&S.valueOf();if(w!=null&&w!==S)return a.from(w,g,h);let k=b(S);if(k)return k;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return a.from(S[Symbol.toPrimitive]("string"),g,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}a.from=function(S,g,h){return o(S,g,h)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function u(S,g,h){return l(S),S<=0?i(S):g!==void 0?typeof h=="string"?i(S).fill(g,h):i(S).fill(g):i(S)}a.alloc=function(S,g,h){return u(S,g,h)};function c(S){return l(S),i(S<0?0:v(S)|0)}a.allocUnsafe=function(S){return c(S)},a.allocUnsafeSlow=function(S){return c(S)};function f(S,g){if((typeof g!="string"||g==="")&&(g="utf8"),!a.isEncoding(g))throw new TypeError("Unknown encoding: "+g);let h=E(S,g)|0,w=i(h),k=w.write(S,g);return k!==h&&(w=w.slice(0,k)),w}function d(S){let g=S.length<0?0:v(S.length)|0,h=i(g);for(let w=0;w=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return S|0}function _(S){return+S!=S&&(S=0),a.alloc(+S)}a.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==a.prototype},a.compare=function(S,g){if(re(S,Uint8Array)&&(S=a.from(S,S.offset,S.byteLength)),re(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(S)||!a.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===g)return 0;let h=S.length,w=g.length;for(let k=0,Z=Math.min(h,w);kw.length?(a.isBuffer(Z)||(Z=a.from(Z)),Z.copy(w,k)):Uint8Array.prototype.set.call(w,Z,k);else if(a.isBuffer(Z))Z.copy(w,k);else throw new TypeError('"list" argument must be an Array of Buffers');k+=Z.length}return w};function E(S,g){if(a.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||re(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);let h=S.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&h===0)return 0;let k=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return V(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Q(S).length;default:if(k)return w?-1:V(S).length;g=(""+g).toLowerCase(),k=!0}}a.byteLength=E;function y(S,g,h){let w=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,g>>>=0,h<=g))return"";for(S||(S="utf8");;)switch(S){case"hex":return B(this,g,h);case"utf8":case"utf-8":return I(this,g,h);case"ascii":return ne(this,g,h);case"latin1":case"binary":return te(this,g,h);case"base64":return C(this,g,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,g,h);default:if(w)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),w=!0}}a.prototype._isBuffer=!0;function T(S,g,h){let w=S[g];S[g]=S[h],S[h]=w}a.prototype.swap16=function(){let S=this.length;if(S%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;gg&&(S+=" ... "),""},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(S,g,h,w,k){if(re(S,Uint8Array)&&(S=a.from(S,S.offset,S.byteLength)),!a.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(g===void 0&&(g=0),h===void 0&&(h=S?S.length:0),w===void 0&&(w=0),k===void 0&&(k=this.length),g<0||h>S.length||w<0||k>this.length)throw new RangeError("out of range index");if(w>=k&&g>=h)return 0;if(w>=k)return-1;if(g>=h)return 1;if(g>>>=0,h>>>=0,w>>>=0,k>>>=0,this===S)return 0;let Z=k-w,de=h-g,ye=Math.min(Z,de),Ae=this.slice(w,k),Me=S.slice(g,h);for(let xe=0;xe2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,z(h)&&(h=k?0:S.length-1),h<0&&(h=S.length+h),h>=S.length){if(k)return-1;h=S.length-1}else if(h<0)if(k)h=0;else return-1;if(typeof g=="string"&&(g=a.from(g,w)),a.isBuffer(g))return g.length===0?-1:A(S,g,h,w,k);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(S,g,h):Uint8Array.prototype.lastIndexOf.call(S,g,h):A(S,[g],h,w,k);throw new TypeError("val must be string, number or Buffer")}function A(S,g,h,w,k){let Z=1,de=S.length,ye=g.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(S.length<2||g.length<2)return-1;Z=2,de/=2,ye/=2,h/=2}function Ae(xe,Pe){return Z===1?xe[Pe]:xe.readUInt16BE(Pe*Z)}let Me;if(k){let xe=-1;for(Me=h;Mede&&(h=de-ye),Me=h;Me>=0;Me--){let xe=!0;for(let Pe=0;Pek&&(w=k)):w=k;let Z=g.length;w>Z/2&&(w=Z/2);let de;for(de=0;de>>0,isFinite(h)?(h=h>>>0,w===void 0&&(w="utf8")):(w=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let k=this.length-g;if((h===void 0||h>k)&&(h=k),S.length>0&&(h<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");w||(w="utf8");let Z=!1;for(;;)switch(w){case"hex":return P(this,S,g,h);case"utf8":case"utf-8":return L(this,S,g,h);case"ascii":case"latin1":case"binary":return W(this,S,g,h);case"base64":return U(this,S,g,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,S,g,h);default:if(Z)throw new TypeError("Unknown encoding: "+w);w=(""+w).toLowerCase(),Z=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(S,g,h){return g===0&&h===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(g,h))}function I(S,g,h){h=Math.min(S.length,h);let w=[],k=g;for(;k239?4:Z>223?3:Z>191?2:1;if(k+ye<=h){let Ae,Me,xe,Pe;switch(ye){case 1:Z<128&&(de=Z);break;case 2:Ae=S[k+1],(Ae&192)===128&&(Pe=(Z&31)<<6|Ae&63,Pe>127&&(de=Pe));break;case 3:Ae=S[k+1],Me=S[k+2],(Ae&192)===128&&(Me&192)===128&&(Pe=(Z&15)<<12|(Ae&63)<<6|Me&63,Pe>2047&&(Pe<55296||Pe>57343)&&(de=Pe));break;case 4:Ae=S[k+1],Me=S[k+2],xe=S[k+3],(Ae&192)===128&&(Me&192)===128&&(xe&192)===128&&(Pe=(Z&15)<<18|(Ae&63)<<12|(Me&63)<<6|xe&63,Pe>65535&&Pe<1114112&&(de=Pe))}}de===null?(de=65533,ye=1):de>65535&&(de-=65536,w.push(de>>>10&1023|55296),de=56320|de&1023),w.push(de),k+=ye}return J(w)}let N=4096;function J(S){let g=S.length;if(g<=N)return String.fromCharCode.apply(String,S);let h="",w=0;for(;ww)&&(h=w);let k="";for(let Z=g;Zh&&(S=h),g<0?(g+=h,g<0&&(g=0)):g>h&&(g=h),gh)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(S,g,h){S=S>>>0,g=g>>>0,h||Y(S,g,this.length);let w=this[S],k=1,Z=0;for(;++Z>>0,g=g>>>0,h||Y(S,g,this.length);let w=this[S+--g],k=1;for(;g>0&&(k*=256);)w+=this[S+--g]*k;return w},a.prototype.readUint8=a.prototype.readUInt8=function(S,g){return S=S>>>0,g||Y(S,1,this.length),this[S]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(S,g){return S=S>>>0,g||Y(S,2,this.length),this[S]|this[S+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(S,g){return S=S>>>0,g||Y(S,2,this.length),this[S]<<8|this[S+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(S,g){return S=S>>>0,g||Y(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(S,g){return S=S>>>0,g||Y(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},a.prototype.readBigUInt64LE=he(function(S){S=S>>>0,M(S,"offset");let g=this[S],h=this[S+7];(g===void 0||h===void 0)&&O(S,this.length-8);let w=g+this[++S]*2**8+this[++S]*2**16+this[++S]*2**24,k=this[++S]+this[++S]*2**8+this[++S]*2**16+h*2**24;return BigInt(w)+(BigInt(k)<>>0,M(S,"offset");let g=this[S],h=this[S+7];(g===void 0||h===void 0)&&O(S,this.length-8);let w=g*2**24+this[++S]*2**16+this[++S]*2**8+this[++S],k=this[++S]*2**24+this[++S]*2**16+this[++S]*2**8+h;return(BigInt(w)<>>0,g=g>>>0,h||Y(S,g,this.length);let w=this[S],k=1,Z=0;for(;++Z=k&&(w-=Math.pow(2,8*g)),w},a.prototype.readIntBE=function(S,g,h){S=S>>>0,g=g>>>0,h||Y(S,g,this.length);let w=g,k=1,Z=this[S+--w];for(;w>0&&(k*=256);)Z+=this[S+--w]*k;return k*=128,Z>=k&&(Z-=Math.pow(2,8*g)),Z},a.prototype.readInt8=function(S,g){return S=S>>>0,g||Y(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},a.prototype.readInt16LE=function(S,g){S=S>>>0,g||Y(S,2,this.length);let h=this[S]|this[S+1]<<8;return h&32768?h|4294901760:h},a.prototype.readInt16BE=function(S,g){S=S>>>0,g||Y(S,2,this.length);let h=this[S+1]|this[S]<<8;return h&32768?h|4294901760:h},a.prototype.readInt32LE=function(S,g){return S=S>>>0,g||Y(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},a.prototype.readInt32BE=function(S,g){return S=S>>>0,g||Y(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},a.prototype.readBigInt64LE=he(function(S){S=S>>>0,M(S,"offset");let g=this[S],h=this[S+7];(g===void 0||h===void 0)&&O(S,this.length-8);let w=this[S+4]+this[S+5]*2**8+this[S+6]*2**16+(h<<24);return(BigInt(w)<>>0,M(S,"offset");let g=this[S],h=this[S+7];(g===void 0||h===void 0)&&O(S,this.length-8);let w=(g<<24)+this[++S]*2**16+this[++S]*2**8+this[++S];return(BigInt(w)<>>0,g||Y(S,4,this.length),e.read(this,S,!0,23,4)},a.prototype.readFloatBE=function(S,g){return S=S>>>0,g||Y(S,4,this.length),e.read(this,S,!1,23,4)},a.prototype.readDoubleLE=function(S,g){return S=S>>>0,g||Y(S,8,this.length),e.read(this,S,!0,52,8)},a.prototype.readDoubleBE=function(S,g){return S=S>>>0,g||Y(S,8,this.length),e.read(this,S,!1,52,8)};function ce(S,g,h,w,k,Z){if(!a.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>k||gS.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(S,g,h,w){if(S=+S,g=g>>>0,h=h>>>0,!w){let de=Math.pow(2,8*h)-1;ce(this,S,g,h,de,0)}let k=1,Z=0;for(this[g]=S&255;++Z>>0,h=h>>>0,!w){let de=Math.pow(2,8*h)-1;ce(this,S,g,h,de,0)}let k=h-1,Z=1;for(this[g+k]=S&255;--k>=0&&(Z*=256);)this[g+k]=S/Z&255;return g+h},a.prototype.writeUint8=a.prototype.writeUInt8=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,1,255,0),this[g]=S&255,g+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,2,65535,0),this[g]=S&255,this[g+1]=S>>>8,g+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,2,65535,0),this[g]=S>>>8,this[g+1]=S&255,g+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,4,4294967295,0),this[g+3]=S>>>24,this[g+2]=S>>>16,this[g+1]=S>>>8,this[g]=S&255,g+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,4,4294967295,0),this[g]=S>>>24,this[g+1]=S>>>16,this[g+2]=S>>>8,this[g+3]=S&255,g+4};function $(S,g,h,w,k){se(g,w,k,S,h,7);let Z=Number(g&BigInt(4294967295));S[h++]=Z,Z=Z>>8,S[h++]=Z,Z=Z>>8,S[h++]=Z,Z=Z>>8,S[h++]=Z;let de=Number(g>>BigInt(32)&BigInt(4294967295));return S[h++]=de,de=de>>8,S[h++]=de,de=de>>8,S[h++]=de,de=de>>8,S[h++]=de,h}function ue(S,g,h,w,k){se(g,w,k,S,h,7);let Z=Number(g&BigInt(4294967295));S[h+7]=Z,Z=Z>>8,S[h+6]=Z,Z=Z>>8,S[h+5]=Z,Z=Z>>8,S[h+4]=Z;let de=Number(g>>BigInt(32)&BigInt(4294967295));return S[h+3]=de,de=de>>8,S[h+2]=de,de=de>>8,S[h+1]=de,de=de>>8,S[h]=de,h+8}a.prototype.writeBigUInt64LE=he(function(S,g=0){return $(this,S,g,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=he(function(S,g=0){return ue(this,S,g,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(S,g,h,w){if(S=+S,g=g>>>0,!w){let ye=Math.pow(2,8*h-1);ce(this,S,g,h,ye-1,-ye)}let k=0,Z=1,de=0;for(this[g]=S&255;++k>0)-de&255;return g+h},a.prototype.writeIntBE=function(S,g,h,w){if(S=+S,g=g>>>0,!w){let ye=Math.pow(2,8*h-1);ce(this,S,g,h,ye-1,-ye)}let k=h-1,Z=1,de=0;for(this[g+k]=S&255;--k>=0&&(Z*=256);)S<0&&de===0&&this[g+k+1]!==0&&(de=1),this[g+k]=(S/Z>>0)-de&255;return g+h},a.prototype.writeInt8=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,1,127,-128),S<0&&(S=255+S+1),this[g]=S&255,g+1},a.prototype.writeInt16LE=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,2,32767,-32768),this[g]=S&255,this[g+1]=S>>>8,g+2},a.prototype.writeInt16BE=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,2,32767,-32768),this[g]=S>>>8,this[g+1]=S&255,g+2},a.prototype.writeInt32LE=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,4,2147483647,-2147483648),this[g]=S&255,this[g+1]=S>>>8,this[g+2]=S>>>16,this[g+3]=S>>>24,g+4},a.prototype.writeInt32BE=function(S,g,h){return S=+S,g=g>>>0,h||ce(this,S,g,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[g]=S>>>24,this[g+1]=S>>>16,this[g+2]=S>>>8,this[g+3]=S&255,g+4},a.prototype.writeBigInt64LE=he(function(S,g=0){return $(this,S,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=he(function(S,g=0){return ue(this,S,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function me(S,g,h,w,k,Z){if(h+w>S.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function ee(S,g,h,w,k){return g=+g,h=h>>>0,k||me(S,g,h,4),e.write(S,g,h,w,23,4),h+4}a.prototype.writeFloatLE=function(S,g,h){return ee(this,S,g,!0,h)},a.prototype.writeFloatBE=function(S,g,h){return ee(this,S,g,!1,h)};function K(S,g,h,w,k){return g=+g,h=h>>>0,k||me(S,g,h,8),e.write(S,g,h,w,52,8),h+8}a.prototype.writeDoubleLE=function(S,g,h){return K(this,S,g,!0,h)},a.prototype.writeDoubleBE=function(S,g,h){return K(this,S,g,!1,h)},a.prototype.copy=function(S,g,h,w){if(!a.isBuffer(S))throw new TypeError("argument should be a Buffer");if(h||(h=0),!w&&w!==0&&(w=this.length),g>=S.length&&(g=S.length),g||(g=0),w>0&&w=this.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("sourceEnd out of bounds");w>this.length&&(w=this.length),S.length-g>>0,h=h===void 0?this.length:h>>>0,S||(S=0);let k;if(typeof S=="number")for(k=g;k2**32?k=X(String(h)):typeof h=="bigint"&&(k=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(k=X(k)),k+="n"),w+=` It must be ${g}. Received ${k}`,w},RangeError);function X(S){let g="",h=S.length,w=S[0]==="-"?1:0;for(;h>=w+4;h-=3)g=`_${S.slice(h-3,h)}${g}`;return`${S.slice(0,h)}${g}`}function le(S,g,h){M(g,"offset"),(S[g]===void 0||S[g+h]===void 0)&&O(g,S.length-(h+1))}function se(S,g,h,w,k,Z){if(S>h||S= 0${de} and < 2${de} ** ${(Z+1)*8}${de}`:ye=`>= -(2${de} ** ${(Z+1)*8-1}${de}) and < 2 ** ${(Z+1)*8-1}${de}`,new j.ERR_OUT_OF_RANGE("value",ye,S)}le(w,k,Z)}function M(S,g){if(typeof S!="number")throw new j.ERR_INVALID_ARG_TYPE(g,"number",S)}function O(S,g,h){throw Math.floor(S)!==S?(M(S,h),new j.ERR_OUT_OF_RANGE("offset","an integer",S)):g<0?new j.ERR_BUFFER_OUT_OF_BOUNDS:new j.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${g}`,S)}let F=/[^+/0-9A-Za-z-_]/g;function R(S){if(S=S.split("=")[0],S=S.trim().replace(F,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function V(S,g){g=g||1/0;let h,w=S.length,k=null,Z=[];for(let de=0;de55295&&h<57344){if(!k){if(h>56319){(g-=3)>-1&&Z.push(239,191,189);continue}else if(de+1===w){(g-=3)>-1&&Z.push(239,191,189);continue}k=h;continue}if(h<56320){(g-=3)>-1&&Z.push(239,191,189),k=h;continue}h=(k-55296<<10|h-56320)+65536}else k&&(g-=3)>-1&&Z.push(239,191,189);if(k=null,h<128){if((g-=1)<0)break;Z.push(h)}else if(h<2048){if((g-=2)<0)break;Z.push(h>>6|192,h&63|128)}else if(h<65536){if((g-=3)<0)break;Z.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((g-=4)<0)break;Z.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return Z}function q(S){let g=[];for(let h=0;h>8,k=h%256,Z.push(k),Z.push(w);return Z}function Q(S){return t.toByteArray(R(S))}function G(S,g,h,w){let k;for(k=0;k=g.length||k>=S.length);++k)g[k+h]=S[k];return k}function re(S,g){return S instanceof g||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===g.name}function z(S){return S!==S}let ie=function(){let S="0123456789abcdef",g=new Array(256);for(let h=0;h<16;++h){let w=h*16;for(let k=0;k<16;++k)g[w+k]=S[h]+S[k]}return g}();function he(S){return typeof BigInt>"u"?be:S}function be(){throw new Error("BigInt not supported")}return Sn}var Ki,Wd,co,Hd,Sn,zd,Hr,Il,K0,X0,vt=wt(()=>{we(),ve(),_e(),Ki={},Wd=!1,co={},Hd=!1,Sn={},zd=!1,Hr=PO(),Hr.Buffer,Hr.SlowBuffer,Hr.INSPECT_MAX_BYTES,Hr.kMaxLength,Il=Hr.Buffer,K0=Hr.INSPECT_MAX_BYTES,X0=Hr.kMaxLength}),ve=wt(()=>{vt()}),kO=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=class{constructor(r){this.aliasToTopic={},this.max=r}put(r,n){return n===0||n>this.max?!1:(this.aliasToTopic[n]=r,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(r){return this.aliasToTopic[r]}clear(){this.aliasToTopic={}}};t.default=e}),ft=Te((t,e)=>{we(),ve(),_e(),e.exports={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,n){return r.includes(n)},ArrayPrototypeIndexOf(r,n){return r.indexOf(n)},ArrayPrototypeJoin(r,n){return r.join(n)},ArrayPrototypeMap(r,n){return r.map(n)},ArrayPrototypePop(r,n){return r.pop(n)},ArrayPrototypePush(r,n){return r.push(n)},ArrayPrototypeSlice(r,n,s){return r.slice(n,s)},Error,FunctionPrototypeCall(r,n,...s){return r.call(n,...s)},FunctionPrototypeSymbolHasInstance(r,n){return Function.prototype[Symbol.hasInstance].call(r,n)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(r,n){return Object.defineProperties(r,n)},ObjectDefineProperty(r,n,s){return Object.defineProperty(r,n,s)},ObjectGetOwnPropertyDescriptor(r,n){return Object.getOwnPropertyDescriptor(r,n)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,n){return Object.setPrototypeOf(r,n)},Promise,PromisePrototypeCatch(r,n){return r.catch(n)},PromisePrototypeThen(r,n,s){return r.then(n,s)},PromiseReject(r){return Promise.reject(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,n){return r.test(n)},SafeSet:Set,String,StringPrototypeSlice(r,n,s){return r.slice(n,s)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(r,n,s){return r.set(n,s)},Uint8Array}}),fn=Te((t,e)=>{we(),ve(),_e();var r=(vt(),Ke(_t)),n=Object.getPrototypeOf(async function(){}).constructor,s=globalThis.Blob||r.Blob,i=typeof s<"u"?function(o){return o instanceof s}:function(o){return!1},a=class extends Error{constructor(o){if(!Array.isArray(o))throw new TypeError(`Expected input to be an Array, got ${typeof o}`);let l="";for(let u=0;u{o=u,l=c}),resolve:o,reject:l}},promisify(o){return new Promise((l,u)=>{o((c,...f)=>c?u(c):l(...f))})},debuglog(){return function(){}},format(o,...l){return o.replace(/%([sdifj])/g,function(...[u,c]){let f=l.shift();return c==="f"?f.toFixed(6):c==="j"?JSON.stringify(f):c==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(o){switch(typeof o){case"string":if(o.includes("'"))if(o.includes('"')){if(!o.includes("`")&&!o.includes("${"))return`\`${o}\``}else return`"${o}"`;return`'${o}'`;case"number":return isNaN(o)?"NaN":Object.is(o,-0)?String(o):o;case"bigint":return`${String(o)}n`;case"boolean":case"undefined":return String(o);case"object":return"{}"}},types:{isAsyncFunction(o){return o instanceof n},isArrayBufferView(o){return ArrayBuffer.isView(o)}},isBlob:i},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),cp=Te((t,e)=>{we(),ve(),_e();var{AbortController:r,AbortSignal:n}=typeof self<"u"?self:typeof window<"u"?window:void 0;e.exports=r,e.exports.AbortSignal=n,e.exports.default=r}),jt=Te((t,e)=>{we(),ve(),_e();var{format:r,inspect:n,AggregateError:s}=fn(),i=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),o=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,u="__node_internal_",c={};function f(E,y){if(!E)throw new c.ERR_INTERNAL_ASSERTION(y)}function d(E){let y="",T=E.length,x=E[0]==="-"?1:0;for(;T>=x+4;T-=3)y=`_${E.slice(T-3,T)}${y}`;return`${E.slice(0,T)}${y}`}function p(E,y,T){if(typeof y=="function")return f(y.length<=T.length,`Code: ${E}; The provided arguments length (${T.length}) does not match the required ones (${y.length}).`),y(...T);let x=(y.match(/%[dfijoOs]/g)||[]).length;return f(x===T.length,`Code: ${E}; The provided arguments length (${T.length}) does not match the required ones (${x}).`),T.length===0?y:r(y,...T)}function m(E,y,T){T||(T=Error);class x extends T{constructor(...P){super(p(E,y,P))}toString(){return`${this.name} [${E}]: ${this.message}`}}Object.defineProperties(x.prototype,{name:{value:T.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${E}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),x.prototype.code=E,x.prototype[a]=!0,c[E]=x}function b(E){let y=u+E.name;return Object.defineProperty(E,"name",{value:y}),E}function v(E,y){if(E&&y&&E!==y){if(Array.isArray(y.errors))return y.errors.push(E),y;let T=new i([y,E],y.message);return T.code=y.code,T}return E||y}var _=class extends Error{constructor(E="The operation was aborted",y=void 0){if(y!==void 0&&typeof y!="object")throw new c.ERR_INVALID_ARG_TYPE("options","Object",y);super(E,y),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(E,y,T)=>{f(typeof E=="string","'name' must be a string"),Array.isArray(y)||(y=[y]);let x="The ";E.endsWith(" argument")?x+=`${E} `:x+=`"${E}" ${E.includes(".")?"property":"argument"} `,x+="must be ";let A=[],P=[],L=[];for(let U of y)f(typeof U=="string","All expected entries have to be of type string"),o.includes(U)?A.push(U.toLowerCase()):l.test(U)?P.push(U):(f(U!=="object",'The value "object" should be written as "Object"'),L.push(U));if(P.length>0){let U=A.indexOf("object");U!==-1&&(A.splice(A,U,1),P.push("Object"))}if(A.length>0){switch(A.length){case 1:x+=`of type ${A[0]}`;break;case 2:x+=`one of type ${A[0]} or ${A[1]}`;break;default:{let U=A.pop();x+=`one of type ${A.join(", ")}, or ${U}`}}(P.length>0||L.length>0)&&(x+=" or ")}if(P.length>0){switch(P.length){case 1:x+=`an instance of ${P[0]}`;break;case 2:x+=`an instance of ${P[0]} or ${P[1]}`;break;default:{let U=P.pop();x+=`an instance of ${P.join(", ")}, or ${U}`}}L.length>0&&(x+=" or ")}switch(L.length){case 0:break;case 1:L[0].toLowerCase()!==L[0]&&(x+="an "),x+=`${L[0]}`;break;case 2:x+=`one of ${L[0]} or ${L[1]}`;break;default:{let U=L.pop();x+=`one of ${L.join(", ")}, or ${U}`}}if(T==null)x+=`. Received ${T}`;else if(typeof T=="function"&&T.name)x+=`. Received function ${T.name}`;else if(typeof T=="object"){var W;if((W=T.constructor)!==null&&W!==void 0&&W.name)x+=`. Received an instance of ${T.constructor.name}`;else{let U=n(T,{depth:-1});x+=`. Received ${U}`}}else{let U=n(T,{colors:!1});U.length>25&&(U=`${U.slice(0,25)}...`),x+=`. Received type ${typeof T} (${U})`}return x},TypeError),m("ERR_INVALID_ARG_VALUE",(E,y,T="is invalid")=>{let x=n(y);return x.length>128&&(x=x.slice(0,128)+"..."),`The ${E.includes(".")?"property":"argument"} '${E}' ${T}. Received ${x}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(E,y,T)=>{var x;let A=T!=null&&(x=T.constructor)!==null&&x!==void 0&&x.name?`instance of ${T.constructor.name}`:`type ${typeof T}`;return`Expected ${E} to be returned from the "${y}" function but got ${A}.`},TypeError),m("ERR_MISSING_ARGS",(...E)=>{f(E.length>0,"At least one arg needs to be specified");let y,T=E.length;switch(E=(Array.isArray(E)?E:[E]).map(x=>`"${x}"`).join(" or "),T){case 1:y+=`The ${E[0]} argument`;break;case 2:y+=`The ${E[0]} and ${E[1]} arguments`;break;default:{let x=E.pop();y+=`The ${E.join(", ")}, and ${x} arguments`}break}return`${y} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(E,y,T)=>{f(y,'Missing "range" argument');let x;return Number.isInteger(T)&&Math.abs(T)>2**32?x=d(String(T)):typeof T=="bigint"?(x=String(T),(T>2n**32n||T<-(2n**32n))&&(x=d(x)),x+="n"):x=n(T),`The value of "${E}" is out of range. It must be ${y}. Received ${x}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:_,aggregateTwoErrors:b(v),hideStackFrames:b,codes:c}}),nu=Te((t,e)=>{we(),ve(),_e();var{ArrayIsArray:r,ArrayPrototypeIncludes:n,ArrayPrototypeJoin:s,ArrayPrototypeMap:i,NumberIsInteger:a,NumberIsNaN:o,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:b}=ft(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:_,ERR_INVALID_ARG_TYPE:E,ERR_INVALID_ARG_VALUE:y,ERR_OUT_OF_RANGE:T,ERR_UNKNOWN_SIGNAL:x}}=jt(),{normalizeEncoding:A}=fn(),{isAsyncFunction:P,isArrayBufferView:L}=fn().types,W={};function U(G){return G===(G|0)}function H(G){return G===G>>>0}var C=/^[0-7]+$/,I="must be a 32-bit unsigned integer or an octal string";function N(G,re,z){if(typeof G>"u"&&(G=z),typeof G=="string"){if(d(C,G)===null)throw new y(re,G,I);G=c(G,8)}return te(G,re),G}var J=v((G,re,z=u,ie=l)=>{if(typeof G!="number")throw new E(re,"number",G);if(!a(G))throw new T(re,"an integer",G);if(Gie)throw new T(re,`>= ${z} && <= ${ie}`,G)}),ne=v((G,re,z=-2147483648,ie=2147483647)=>{if(typeof G!="number")throw new E(re,"number",G);if(!a(G))throw new T(re,"an integer",G);if(Gie)throw new T(re,`>= ${z} && <= ${ie}`,G)}),te=v((G,re,z=!1)=>{if(typeof G!="number")throw new E(re,"number",G);if(!a(G))throw new T(re,"an integer",G);let ie=z?1:0,he=4294967295;if(Ghe)throw new T(re,`>= ${ie} && <= ${he}`,G)});function B(G,re){if(typeof G!="string")throw new E(re,"string",G)}function ae(G,re,z=void 0,ie){if(typeof G!="number")throw new E(re,"number",G);if(z!=null&&Gie||(z!=null||ie!=null)&&o(G))throw new T(re,`${z!=null?`>= ${z}`:""}${z!=null&&ie!=null?" && ":""}${ie!=null?`<= ${ie}`:""}`,G)}var Y=v((G,re,z)=>{if(!n(z,G)){let ie="must be one of: "+s(i(z,he=>typeof he=="string"?`'${he}'`:p(he)),", ");throw new y(re,G,ie)}});function ce(G,re){if(typeof G!="boolean")throw new E(re,"boolean",G)}function $(G,re,z){return G==null||!f(G,re)?z:G[re]}var ue=v((G,re,z=null)=>{let ie=$(z,"allowArray",!1),he=$(z,"allowFunction",!1);if(!$(z,"nullable",!1)&&G===null||!ie&&r(G)||typeof G!="object"&&(!he||typeof G!="function"))throw new E(re,"Object",G)}),me=v((G,re)=>{if(G!=null&&typeof G!="object"&&typeof G!="function")throw new E(re,"a dictionary",G)}),ee=v((G,re,z=0)=>{if(!r(G))throw new E(re,"Array",G);if(G.length{if(!L(G))throw new E(re,["Buffer","TypedArray","DataView"],G)});function le(G,re){let z=A(re),ie=G.length;if(z==="hex"&&ie%2!==0)throw new y("encoding",re,`is invalid for data of length ${ie}`)}function se(G,re="Port",z=!0){if(typeof G!="number"&&typeof G!="string"||typeof G=="string"&&b(G).length===0||+G!==+G>>>0||G>65535||G===0&&!z)throw new _(re,G,z);return G|0}var M=v((G,re)=>{if(G!==void 0&&(G===null||typeof G!="object"||!("aborted"in G)))throw new E(re,"AbortSignal",G)}),O=v((G,re)=>{if(typeof G!="function")throw new E(re,"Function",G)}),F=v((G,re)=>{if(typeof G!="function"||P(G))throw new E(re,"Function",G)}),R=v((G,re)=>{if(G!==void 0)throw new E(re,"undefined",G)});function V(G,re,z){if(!n(z,G))throw new E(re,`('${s(z,"|")}')`,G)}var q=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function oe(G,re){if(typeof G>"u"||!d(q,G))throw new y(re,G,'must be an array or string of format "; rel=preload; as=style"')}function Q(G){if(typeof G=="string")return oe(G,"hints"),G;if(r(G)){let re=G.length,z="";if(re===0)return z;for(let ie=0;ie; rel=preload; as=style"')}e.exports={isInt32:U,isUint32:H,parseFileMode:N,validateArray:ee,validateStringArray:K,validateBooleanArray:j,validateBoolean:ce,validateBuffer:X,validateDictionary:me,validateEncoding:le,validateFunction:O,validateInt32:ne,validateInteger:J,validateNumber:ae,validateObject:ue,validateOneOf:Y,validatePlainFunction:F,validatePort:se,validateSignalName:D,validateString:B,validateUint32:te,validateUndefined:R,validateUnion:V,validateAbortSignal:M,validateLinkHeaderValue:Q}}),Li=Te((t,e)=>{we(),ve(),_e();var r=e.exports={},n,s;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=i}catch{n=i}try{typeof clearTimeout=="function"?s=clearTimeout:s=a}catch{s=a}})();function o(_){if(n===setTimeout)return setTimeout(_,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(_,0);try{return n(_,0)}catch{try{return n.call(null,_,0)}catch{return n.call(this,_,0)}}}function l(_){if(s===clearTimeout)return clearTimeout(_);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(_);try{return s(_)}catch{try{return s.call(null,_)}catch{return s.call(this,_)}}}var u=[],c=!1,f,d=-1;function p(){!c||!f||(c=!1,f.length?u=f.concat(u):d=-1,u.length&&m())}function m(){if(!c){var _=o(p);c=!0;for(var E=u.length;E;){for(f=u,u=[];++d1)for(var y=1;y{we(),ve(),_e();var{Symbol:r,SymbolAsyncIterator:n,SymbolIterator:s,SymbolFor:i}=ft(),a=r("kDestroyed"),o=r("kIsErrored"),l=r("kIsReadable"),u=r("kIsDisturbed"),c=i("nodejs.webstream.isClosedPromise"),f=i("nodejs.webstream.controllerErrorFunction");function d($,ue=!1){var me;return!!($&&typeof $.pipe=="function"&&typeof $.on=="function"&&(!ue||typeof $.pause=="function"&&typeof $.resume=="function")&&(!$._writableState||((me=$._readableState)===null||me===void 0?void 0:me.readable)!==!1)&&(!$._writableState||$._readableState))}function p($){var ue;return!!($&&typeof $.write=="function"&&typeof $.on=="function"&&(!$._readableState||((ue=$._writableState)===null||ue===void 0?void 0:ue.writable)!==!1))}function m($){return!!($&&typeof $.pipe=="function"&&$._readableState&&typeof $.on=="function"&&typeof $.write=="function")}function b($){return $&&($._readableState||$._writableState||typeof $.write=="function"&&typeof $.on=="function"||typeof $.pipe=="function"&&typeof $.on=="function")}function v($){return!!($&&!b($)&&typeof $.pipeThrough=="function"&&typeof $.getReader=="function"&&typeof $.cancel=="function")}function _($){return!!($&&!b($)&&typeof $.getWriter=="function"&&typeof $.abort=="function")}function E($){return!!($&&!b($)&&typeof $.readable=="object"&&typeof $.writable=="object")}function y($){return v($)||_($)||E($)}function T($,ue){return $==null?!1:ue===!0?typeof $[n]=="function":ue===!1?typeof $[s]=="function":typeof $[n]=="function"||typeof $[s]=="function"}function x($){if(!b($))return null;let ue=$._writableState,me=$._readableState,ee=ue||me;return!!($.destroyed||$[a]||ee!=null&&ee.destroyed)}function A($){if(!p($))return null;if($.writableEnded===!0)return!0;let ue=$._writableState;return ue!=null&&ue.errored?!1:typeof(ue==null?void 0:ue.ended)!="boolean"?null:ue.ended}function P($,ue){if(!p($))return null;if($.writableFinished===!0)return!0;let me=$._writableState;return me!=null&&me.errored?!1:typeof(me==null?void 0:me.finished)!="boolean"?null:!!(me.finished||ue===!1&&me.ended===!0&&me.length===0)}function L($){if(!d($))return null;if($.readableEnded===!0)return!0;let ue=$._readableState;return!ue||ue.errored?!1:typeof(ue==null?void 0:ue.ended)!="boolean"?null:ue.ended}function W($,ue){if(!d($))return null;let me=$._readableState;return me!=null&&me.errored?!1:typeof(me==null?void 0:me.endEmitted)!="boolean"?null:!!(me.endEmitted||ue===!1&&me.ended===!0&&me.length===0)}function U($){return $&&$[l]!=null?$[l]:typeof($==null?void 0:$.readable)!="boolean"?null:x($)?!1:d($)&&$.readable&&!W($)}function H($){return typeof($==null?void 0:$.writable)!="boolean"?null:x($)?!1:p($)&&$.writable&&!A($)}function C($,ue){return b($)?x($)?!0:!((ue==null?void 0:ue.readable)!==!1&&U($)||(ue==null?void 0:ue.writable)!==!1&&H($)):null}function I($){var ue,me;return b($)?$.writableErrored?$.writableErrored:(ue=(me=$._writableState)===null||me===void 0?void 0:me.errored)!==null&&ue!==void 0?ue:null:null}function N($){var ue,me;return b($)?$.readableErrored?$.readableErrored:(ue=(me=$._readableState)===null||me===void 0?void 0:me.errored)!==null&&ue!==void 0?ue:null:null}function J($){if(!b($))return null;if(typeof $.closed=="boolean")return $.closed;let ue=$._writableState,me=$._readableState;return typeof(ue==null?void 0:ue.closed)=="boolean"||typeof(me==null?void 0:me.closed)=="boolean"?(ue==null?void 0:ue.closed)||(me==null?void 0:me.closed):typeof $._closed=="boolean"&&ne($)?$._closed:null}function ne($){return typeof $._closed=="boolean"&&typeof $._defaultKeepAlive=="boolean"&&typeof $._removedConnection=="boolean"&&typeof $._removedContLen=="boolean"}function te($){return typeof $._sent100=="boolean"&&ne($)}function B($){var ue;return typeof $._consuming=="boolean"&&typeof $._dumped=="boolean"&&((ue=$.req)===null||ue===void 0?void 0:ue.upgradeOrConnect)===void 0}function ae($){if(!b($))return null;let ue=$._writableState,me=$._readableState,ee=ue||me;return!ee&&te($)||!!(ee&&ee.autoDestroy&&ee.emitClose&&ee.closed===!1)}function Y($){var ue;return!!($&&((ue=$[u])!==null&&ue!==void 0?ue:$.readableDidRead||$.readableAborted))}function ce($){var ue,me,ee,K,j,D,X,le,se,M;return!!($&&((ue=(me=(ee=(K=(j=(D=$[o])!==null&&D!==void 0?D:$.readableErrored)!==null&&j!==void 0?j:$.writableErrored)!==null&&K!==void 0?K:(X=$._readableState)===null||X===void 0?void 0:X.errorEmitted)!==null&&ee!==void 0?ee:(le=$._writableState)===null||le===void 0?void 0:le.errorEmitted)!==null&&me!==void 0?me:(se=$._readableState)===null||se===void 0?void 0:se.errored)!==null&&ue!==void 0?ue:!((M=$._writableState)===null||M===void 0)&&M.errored))}e.exports={kDestroyed:a,isDisturbed:Y,kIsDisturbed:u,isErrored:ce,kIsErrored:o,isReadable:U,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:f,isClosed:J,isDestroyed:x,isDuplexNodeStream:m,isFinished:C,isIterable:T,isReadableNodeStream:d,isReadableStream:v,isReadableEnded:L,isReadableFinished:W,isReadableErrored:N,isNodeStream:b,isWebStream:y,isWritable:H,isWritableNodeStream:p,isWritableStream:_,isWritableEnded:A,isWritableFinished:P,isWritableErrored:I,isServerRequest:B,isServerResponse:te,willEmitClose:ae,isTransformStream:E}}),jn=Te((t,e)=>{we(),ve(),_e();var r=Li(),{AbortError:n,codes:s}=jt(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:o,once:l}=fn(),{validateAbortSignal:u,validateFunction:c,validateObject:f,validateBoolean:d}=nu(),{Promise:p,PromisePrototypeThen:m}=ft(),{isClosed:b,isReadable:v,isReadableNodeStream:_,isReadableStream:E,isReadableFinished:y,isReadableErrored:T,isWritable:x,isWritableNodeStream:A,isWritableStream:P,isWritableFinished:L,isWritableErrored:W,isNodeStream:U,willEmitClose:H,kIsClosedPromise:C}=bn();function I(B){return B.setHeader&&typeof B.abort=="function"}var N=()=>{};function J(B,ae,Y){var ce,$;if(arguments.length===2?(Y=ae,ae=o):ae==null?ae=o:f(ae,"options"),c(Y,"callback"),u(ae.signal,"options.signal"),Y=l(Y),E(B)||P(B))return ne(B,ae,Y);if(!U(B))throw new i("stream",["ReadableStream","WritableStream","Stream"],B);let ue=(ce=ae.readable)!==null&&ce!==void 0?ce:_(B),me=($=ae.writable)!==null&&$!==void 0?$:A(B),ee=B._writableState,K=B._readableState,j=()=>{B.writable||le()},D=H(B)&&_(B)===ue&&A(B)===me,X=L(B,!1),le=()=>{X=!0,B.destroyed&&(D=!1),!(D&&(!B.readable||ue))&&(!ue||se)&&Y.call(B)},se=y(B,!1),M=()=>{se=!0,B.destroyed&&(D=!1),!(D&&(!B.writable||me))&&(!me||X)&&Y.call(B)},O=Q=>{Y.call(B,Q)},F=b(B),R=()=>{F=!0;let Q=W(B)||T(B);if(Q&&typeof Q!="boolean")return Y.call(B,Q);if(ue&&!se&&_(B,!0)&&!y(B,!1))return Y.call(B,new a);if(me&&!X&&!L(B,!1))return Y.call(B,new a);Y.call(B)},V=()=>{F=!0;let Q=W(B)||T(B);if(Q&&typeof Q!="boolean")return Y.call(B,Q);Y.call(B)},q=()=>{B.req.on("finish",le)};I(B)?(B.on("complete",le),D||B.on("abort",R),B.req?q():B.on("request",q)):me&&!ee&&(B.on("end",j),B.on("close",j)),!D&&typeof B.aborted=="boolean"&&B.on("aborted",R),B.on("end",M),B.on("finish",le),ae.error!==!1&&B.on("error",O),B.on("close",R),F?r.nextTick(R):ee!=null&&ee.errorEmitted||K!=null&&K.errorEmitted?D||r.nextTick(V):(!ue&&(!D||v(B))&&(X||x(B)===!1)||!me&&(!D||x(B))&&(se||v(B)===!1)||K&&B.req&&B.aborted)&&r.nextTick(V);let oe=()=>{Y=N,B.removeListener("aborted",R),B.removeListener("complete",le),B.removeListener("abort",R),B.removeListener("request",q),B.req&&B.req.removeListener("finish",le),B.removeListener("end",j),B.removeListener("close",j),B.removeListener("finish",le),B.removeListener("end",M),B.removeListener("error",O),B.removeListener("close",R)};if(ae.signal&&!F){let Q=()=>{let G=Y;oe(),G.call(B,new n(void 0,{cause:ae.signal.reason}))};if(ae.signal.aborted)r.nextTick(Q);else{let G=Y;Y=l((...re)=>{ae.signal.removeEventListener("abort",Q),G.apply(B,re)}),ae.signal.addEventListener("abort",Q)}}return oe}function ne(B,ae,Y){let ce=!1,$=N;if(ae.signal)if($=()=>{ce=!0,Y.call(B,new n(void 0,{cause:ae.signal.reason}))},ae.signal.aborted)r.nextTick($);else{let me=Y;Y=l((...ee)=>{ae.signal.removeEventListener("abort",$),me.apply(B,ee)}),ae.signal.addEventListener("abort",$)}let ue=(...me)=>{ce||r.nextTick(()=>Y.apply(B,me))};return m(B[C].promise,ue,ue),N}function te(B,ae){var Y;let ce=!1;return ae===null&&(ae=o),(Y=ae)!==null&&Y!==void 0&&Y.cleanup&&(d(ae.cleanup,"cleanup"),ce=ae.cleanup),new p(($,ue)=>{let me=J(B,ae,ee=>{ce&&me(),ee?ue(ee):$()})})}e.exports=J,e.exports.finished=te}),Ms=Te((t,e)=>{we(),ve(),_e();var r=Li(),{aggregateTwoErrors:n,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:i}=jt(),{Symbol:a}=ft(),{kDestroyed:o,isDestroyed:l,isFinished:u,isServerRequest:c}=bn(),f=a("kDestroy"),d=a("kConstruct");function p(C,I,N){C&&(C.stack,I&&!I.errored&&(I.errored=C),N&&!N.errored&&(N.errored=C))}function m(C,I){let N=this._readableState,J=this._writableState,ne=J||N;return J!=null&&J.destroyed||N!=null&&N.destroyed?(typeof I=="function"&&I(),this):(p(C,J,N),J&&(J.destroyed=!0),N&&(N.destroyed=!0),ne.constructed?b(this,C,I):this.once(f,function(te){b(this,n(te,C),I)}),this)}function b(C,I,N){let J=!1;function ne(te){if(J)return;J=!0;let B=C._readableState,ae=C._writableState;p(te,ae,B),ae&&(ae.closed=!0),B&&(B.closed=!0),typeof N=="function"&&N(te),te?r.nextTick(v,C,te):r.nextTick(_,C)}try{C._destroy(I||null,ne)}catch(te){ne(te)}}function v(C,I){E(C,I),_(C)}function _(C){let I=C._readableState,N=C._writableState;N&&(N.closeEmitted=!0),I&&(I.closeEmitted=!0),(N!=null&&N.emitClose||I!=null&&I.emitClose)&&C.emit("close")}function E(C,I){let N=C._readableState,J=C._writableState;J!=null&&J.errorEmitted||N!=null&&N.errorEmitted||(J&&(J.errorEmitted=!0),N&&(N.errorEmitted=!0),C.emit("error",I))}function y(){let C=this._readableState,I=this._writableState;C&&(C.constructed=!0,C.closed=!1,C.closeEmitted=!1,C.destroyed=!1,C.errored=null,C.errorEmitted=!1,C.reading=!1,C.ended=C.readable===!1,C.endEmitted=C.readable===!1),I&&(I.constructed=!0,I.destroyed=!1,I.closed=!1,I.closeEmitted=!1,I.errored=null,I.errorEmitted=!1,I.finalCalled=!1,I.prefinished=!1,I.ended=I.writable===!1,I.ending=I.writable===!1,I.finished=I.writable===!1)}function T(C,I,N){let J=C._readableState,ne=C._writableState;if(ne!=null&&ne.destroyed||J!=null&&J.destroyed)return this;J!=null&&J.autoDestroy||ne!=null&&ne.autoDestroy?C.destroy(I):I&&(I.stack,ne&&!ne.errored&&(ne.errored=I),J&&!J.errored&&(J.errored=I),N?r.nextTick(E,C,I):E(C,I))}function x(C,I){if(typeof C._construct!="function")return;let N=C._readableState,J=C._writableState;N&&(N.constructed=!1),J&&(J.constructed=!1),C.once(d,I),!(C.listenerCount(d)>1)&&r.nextTick(A,C)}function A(C){let I=!1;function N(J){if(I){T(C,J??new s);return}I=!0;let ne=C._readableState,te=C._writableState,B=te||ne;ne&&(ne.constructed=!0),te&&(te.constructed=!0),B.destroyed?C.emit(f,J):J?T(C,J,!0):r.nextTick(P,C)}try{C._construct(J=>{r.nextTick(N,J)})}catch(J){r.nextTick(N,J)}}function P(C){C.emit(d)}function L(C){return(C==null?void 0:C.setHeader)&&typeof C.abort=="function"}function W(C){C.emit("close")}function U(C,I){C.emit("error",I),r.nextTick(W,C)}function H(C,I){!C||l(C)||(!I&&!u(C)&&(I=new i),c(C)?(C.socket=null,C.destroy(I)):L(C)?C.abort():L(C.req)?C.req.abort():typeof C.destroy=="function"?C.destroy(I):typeof C.close=="function"?C.close():I?r.nextTick(U,C,I):r.nextTick(W,C),C.destroyed||(C[o]=!0))}e.exports={construct:x,destroyer:H,destroy:m,undestroy:y,errorOrDestroy:T}});function Ye(){Ye.init.call(this)}function Ga(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function Q0(t){return t._maxListeners===void 0?Ye.defaultMaxListeners:t._maxListeners}function gm(t,e,r,n){var s,i,a,o;if(Ga(r),(i=t._events)===void 0?(i=t._events=Object.create(null),t._eventsCount=0):(i.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),a===void 0)a=i[e]=r,++t._eventsCount;else if(typeof a=="function"?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(s=Q0(t))>0&&a.length>s&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,o=l,console&&console.warn&&console.warn(o)}return t}function RO(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function mm(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},s=RO.bind(n);return s.listener=r,n.wrapFn=s,s}function bm(t,e,r){var n=t._events;if(n===void 0)return[];var s=n[e];return s===void 0?[]:typeof s=="function"?r?[s.listener||s]:[s]:r?function(i){for(var a=new Array(i.length),o=0;o{we(),ve(),_e(),Jn=typeof Reflect=="object"?Reflect:null,Yu=Jn&&typeof Jn.apply=="function"?Jn.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)},_m=Jn&&typeof Jn.ownKeys=="function"?Jn.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},Gu=Number.isNaN||function(t){return t!=t},wm=Ye,Ye.EventEmitter=Ye,Ye.prototype._events=void 0,Ye.prototype._eventsCount=0,Ye.prototype._maxListeners=void 0,Ku=10,Object.defineProperty(Ye,"defaultMaxListeners",{enumerable:!0,get:function(){return Ku},set:function(t){if(typeof t!="number"||t<0||Gu(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Ku=t}}),Ye.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ye.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Gu(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},Ye.prototype.getMaxListeners=function(){return Q0(this)},Ye.prototype.emit=function(t){for(var e=[],r=1;r0&&(i=e[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var o=s[t];if(o===void 0)return!1;if(typeof o=="function")Yu(o,this,e);else{var l=o.length,u=J0(o,l);for(r=0;r=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,s=i;break}if(s<0)return this;s===0?r.shift():function(o,l){for(;l+1=0;n--)this.removeListener(t,e[n]);return this},Ye.prototype.listeners=function(t){return bm(this,t,!0)},Ye.prototype.rawListeners=function(t){return bm(this,t,!1)},Ye.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):ym.call(t,e)},Ye.prototype.listenerCount=ym,Ye.prototype.eventNames=function(){return this._eventsCount>0?_m(this._events):[]},Vt=wm,Vt.EventEmitter,Vt.defaultMaxListeners,Vt.init,Vt.listenerCount,Vt.EventEmitter,Vt.defaultMaxListeners,Vt.init,Vt.listenerCount}),Ni={};Ri(Ni,{EventEmitter:()=>Z0,default:()=>Vt,defaultMaxListeners:()=>e_,init:()=>t_,listenerCount:()=>r_,on:()=>n_,once:()=>i_});var Z0,e_,t_,r_,n_,i_,Os=wt(()=>{we(),ve(),_e(),vm(),vm(),Vt.once=function(t,e){return new Promise((r,n)=>{function s(...a){i!==void 0&&t.removeListener("error",i),r(a)}let i;e!=="error"&&(i=a=>{t.removeListener(name,s),n(a)},t.once("error",i)),t.once(e,s)})},Vt.on=function(t,e){let r=[],n=[],s=null,i=!1,a={async next(){let u=r.shift();if(u)return createIterResult(u,!1);if(s){let c=Promise.reject(s);return s=null,c}return i?createIterResult(void 0,!0):new Promise((c,f)=>n.push({resolve:c,reject:f}))},async return(){t.removeListener(e,o),t.removeListener("error",l),i=!0;for(let u of n)u.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(u){s=u,t.removeListener(e,o),t.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return t.on(e,o),t.on("error",l),a;function o(...u){let c=n.shift();c?c.resolve(createIterResult(u,!1)):r.push(u)}function l(u){i=!0;let c=n.shift();c?c.reject(u):s=u,a.return()}},{EventEmitter:Z0,defaultMaxListeners:e_,init:t_,listenerCount:r_,on:n_,once:i_}=Vt}),fp=Te((t,e)=>{we(),ve(),_e();var{ArrayIsArray:r,ObjectSetPrototypeOf:n}=ft(),{EventEmitter:s}=(Os(),Ke(Ni));function i(o){s.call(this,o)}n(i.prototype,s.prototype),n(i,s),i.prototype.pipe=function(o,l){let u=this;function c(_){o.writable&&o.write(_)===!1&&u.pause&&u.pause()}u.on("data",c);function f(){u.readable&&u.resume&&u.resume()}o.on("drain",f),!o._isStdio&&(!l||l.end!==!1)&&(u.on("end",p),u.on("close",m));let d=!1;function p(){d||(d=!0,o.end())}function m(){d||(d=!0,typeof o.destroy=="function"&&o.destroy())}function b(_){v(),s.listenerCount(this,"error")===0&&this.emit("error",_)}a(u,"error",b),a(o,"error",b);function v(){u.removeListener("data",c),o.removeListener("drain",f),u.removeListener("end",p),u.removeListener("close",m),u.removeListener("error",b),o.removeListener("error",b),u.removeListener("end",v),u.removeListener("close",v),o.removeListener("close",v)}return u.on("end",v),u.on("close",v),o.on("close",v),o.emit("pipe",u),o};function a(o,l,u){if(typeof o.prependListener=="function")return o.prependListener(l,u);!o._events||!o._events[l]?o.on(l,u):r(o._events[l])?o._events[l].unshift(u):o._events[l]=[u,o._events[l]]}e.exports={Stream:i,prependListener:a}}),iu=Te((t,e)=>{we(),ve(),_e();var{AbortError:r,codes:n}=jt(),{isNodeStream:s,isWebStream:i,kControllerErrorFunction:a}=bn(),o=jn(),{ERR_INVALID_ARG_TYPE:l}=n,u=(c,f)=>{if(typeof c!="object"||!("aborted"in c))throw new l(f,"AbortSignal",c)};e.exports.addAbortSignal=function(c,f){if(u(c,"signal"),!s(f)&&!i(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return e.exports.addAbortSignalNoValidate(c,f)},e.exports.addAbortSignalNoValidate=function(c,f){if(typeof c!="object"||!("aborted"in c))return f;let d=s(f)?()=>{f.destroy(new r(void 0,{cause:c.reason}))}:()=>{f[a](new r(void 0,{cause:c.reason}))};return c.aborted?d():(c.addEventListener("abort",d),o(f,()=>c.removeEventListener("abort",d))),f}}),LO=Te((t,e)=>{we(),ve(),_e();var{StringPrototypeSlice:r,SymbolIterator:n,TypedArrayPrototypeSet:s,Uint8Array:i}=ft(),{Buffer:a}=(vt(),Ke(_t)),{inspect:o}=fn();e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let u={data:l,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}unshift(l){let u={data:l,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let u=this.head,c=""+u.data;for(;(u=u.next)!==null;)c+=l+u.data;return c}concat(l){if(this.length===0)return a.alloc(0);let u=a.allocUnsafe(l>>>0),c=this.head,f=0;for(;c;)s(u,c.data,f),f+=c.data.length,c=c.next;return u}consume(l,u){let c=this.head.data;if(ld.length)u+=d,l-=d.length;else{l===d.length?(u+=d,++f,c.next?this.head=c.next:this.head=this.tail=null):(u+=r(d,0,l),this.head=c,c.data=r(d,l));break}++f}while((c=c.next)!==null);return this.length-=f,u}_getBuffer(l){let u=a.allocUnsafe(l),c=l,f=this.head,d=0;do{let p=f.data;if(l>p.length)s(u,p,c-l),l-=p.length;else{l===p.length?(s(u,p,c-l),++d,f.next?this.head=f.next:this.head=this.tail=null):(s(u,new i(p.buffer,p.byteOffset,l),c-l),this.head=f,f.data=p.slice(l));break}++d}while((f=f.next)!==null);return this.length-=d,u}[Symbol.for("nodejs.util.inspect.custom")](l,u){return o(this,{...u,depth:0,customInspect:!1})}}}),dp=Te((t,e)=>{we(),ve(),_e();var{MathFloor:r,NumberIsInteger:n}=ft(),{ERR_INVALID_ARG_VALUE:s}=jt().codes;function i(l,u,c){return l.highWaterMark!=null?l.highWaterMark:u?l[c]:null}function a(l){return l?16:16*1024}function o(l,u,c,f){let d=i(u,f,c);if(d!=null){if(!n(d)||d<0){let p=f?`options.${c}`:"options.highWaterMark";throw new s(p,d)}return r(d)}return a(l.objectMode)}e.exports={getHighWaterMark:o,getDefaultHighWaterMark:a}});function Em(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return r===-1&&(r=e),[r,r===e?0:4-r%4]}function NO(t,e,r){for(var n,s,i=[],a=e;a>18&63]+gr[s>>12&63]+gr[s>>6&63]+gr[63&s]);return i.join("")}function en(t){if(t>2147483647)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,Ee.prototype),e}function Ee(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Vd(t)}return s_(t,e,r)}function s_(t,e,r){if(typeof t=="string")return function(i,a){if(typeof a=="string"&&a!==""||(a="utf8"),!Ee.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var o=0|a_(i,a),l=en(o),u=l.write(i,a);return u!==o&&(l=l.slice(0,u)),l}(t,e);if(ArrayBuffer.isView(t))return Xu(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(tn(t,ArrayBuffer)||t&&tn(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(tn(t,SharedArrayBuffer)||t&&tn(t.buffer,SharedArrayBuffer)))return DO(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return Ee.from(n,e,r);var s=function(i){if(Ee.isBuffer(i)){var a=0|hp(i.length),o=en(a);return o.length===0||i.copy(o,0,0,a),o}if(i.length!==void 0)return typeof i.length!="number"||pp(i.length)?en(0):Xu(i);if(i.type==="Buffer"&&Array.isArray(i.data))return Xu(i.data)}(t);if(s)return s;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return Ee.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function o_(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Vd(t){return o_(t),en(t<0?0:0|hp(t))}function Xu(t){for(var e=t.length<0?0:0|hp(t.length),r=en(e),n=0;n=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function a_(t,e){if(Ee.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||tn(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var s=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return qd(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return f_(t).length;default:if(s)return n?-1:qd(t).length;e=(""+e).toLowerCase(),s=!0}}function BO(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return qO(this,e,r);case"utf8":case"utf-8":return u_(this,e,r);case"ascii":return zO(this,e,r);case"latin1":case"binary":return VO(this,e,r);case"base64":return HO(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return YO(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function Zn(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Sm(t,e,r,n,s){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),pp(r=+r)&&(r=s?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(s)return-1;r=t.length-1}else if(r<0){if(!s)return-1;r=0}if(typeof e=="string"&&(e=Ee.from(e,n)),Ee.isBuffer(e))return e.length===0?-1:Tm(t,e,r,n,s);if(typeof e=="number")return e&=255,typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Tm(t,[e],r,n,s);throw new TypeError("val must be string, number or Buffer")}function Tm(t,e,r,n,s){var i,a=1,o=t.length,l=e.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,l/=2,r/=2}function u(p,m){return a===1?p[m]:p.readUInt16BE(m*a)}if(s){var c=-1;for(i=r;io&&(r=o-l),i=r;i>=0;i--){for(var f=!0,d=0;ds&&(n=s):n=s;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a>8,l=a%256,u.push(l),u.push(o);return u}(e,t.length-r),t,r,n)}function HO(t,e,r){return e===0&&r===t.length?Ml.fromByteArray(t):Ml.fromByteArray(t.slice(e,r))}function u_(t,e,r){r=Math.min(t.length,r);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(i=t[s+1]))==128&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=t[s+1],a=t[s+2],(192&i)==128&&(192&a)==128&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=t[s+1],a=t[s+2],o=t[s+3],(192&i)==128&&(192&a)==128&&(192&o)==128&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(c=l)}c===null?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),s+=f}return function(d){var p=d.length;if(p<=4096)return String.fromCharCode.apply(String,d);for(var m="",b=0;bn)&&(r=n);for(var s="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function Dt(t,e,r,n,s,i){if(!Ee.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function c_(t,e,r,n,s,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function xm(t,e,r,n,s){return e=+e,r>>>=0,s||c_(t,0,r,4),li.write(t,e,r,n,23,4),r+4}function Am(t,e,r,n,s){return e=+e,r>>>=0,s||c_(t,0,r,8),li.write(t,e,r,n,52,8),r+8}function qd(t,e){var r;e=e||1/0;for(var n=t.length,s=null,i=[],a=0;a55295&&r<57344){if(!s){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(e-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function f_(t){return Ml.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(d_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function su(t,e,r,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+r]=t[s];return s}function tn(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function pp(t){return t!=t}function Cm(t,e){for(var r in t)e[r]=t[r]}function ei(t,e,r){return hr(t,e,r)}function Ks(t){var e;switch(this.encoding=function(r){var n=function(s){if(!s)return"utf8";for(var i;;)switch(s){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return s;default:if(i)return;s=(""+s).toLowerCase(),i=!0}}(r);if(typeof n!="string"&&(Ol.isEncoding===Yd||!Yd(r)))throw new Error("Unknown encoding: "+r);return n||r}(t),this.encoding){case"utf16le":this.text=KO,this.end=XO,e=4;break;case"utf8":this.fillLast=GO,e=4;break;case"base64":this.text=QO,this.end=JO,e=3;break;default:return this.write=ZO,this.end=eP,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ol.allocUnsafe(e)}function Qu(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function GO(t){var e=this.lastTotal-this.lastNeed,r=function(n,s,i){if((192&s[0])!=128)return n.lastNeed=0,"�";if(n.lastNeed>1&&s.length>1){if((192&s[1])!=128)return n.lastNeed=1,"�";if(n.lastNeed>2&&s.length>2&&(192&s[2])!=128)return n.lastNeed=2,"�"}}(this,t);return r!==void 0?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length,void 0)}function KO(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function XO(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function QO(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function JO(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ZO(t){return t.toString(this.encoding)}function eP(t){return t&&t.length?this.write(t):""}var Im,gr,Wt,Mm,fa,ti,Om,Pm,xr,Ml,li,Ju,d_,h_,Xs,Qs,hr,km,rs,Ol,Yd,Rm=wt(()=>{for(we(),ve(),_e(),Im={byteLength:function(t){var e=Em(t),r=e[0],n=e[1];return 3*(r+n)/4-n},toByteArray:function(t){var e,r,n=Em(t),s=n[0],i=n[1],a=new Mm(function(u,c,f){return 3*(c+f)/4-f}(0,s,i)),o=0,l=i>0?s-4:s;for(r=0;r>16&255,a[o++]=e>>8&255,a[o++]=255&e;return i===2&&(e=Wt[t.charCodeAt(r)]<<2|Wt[t.charCodeAt(r+1)]>>4,a[o++]=255&e),i===1&&(e=Wt[t.charCodeAt(r)]<<10|Wt[t.charCodeAt(r+1)]<<4|Wt[t.charCodeAt(r+2)]>>2,a[o++]=e>>8&255,a[o++]=255&e),a},fromByteArray:function(t){for(var e,r=t.length,n=r%3,s=[],i=0,a=r-n;ia?a:i+16383));return n===1?(e=t[r-1],s.push(gr[e>>2]+gr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],s.push(gr[e>>10]+gr[e>>4&63]+gr[e<<2&63]+"=")),s.join("")}},gr=[],Wt=[],Mm=typeof Uint8Array<"u"?Uint8Array:Array,fa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ti=0,Om=fa.length;ti>1,c=-7,f=r?s-1:0,d=r?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=o;c>0;i=256*i+t[e+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+t[e+f],f+=d,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},write:function(t,e,r,n,s,i){var a,o,l,u=8*i-s-1,c=(1<>1,d=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,m=n?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(o=0,a=c):a+f>=1?(o=(e*l-1)*Math.pow(2,s),a+=f):(o=e*Math.pow(2,f-1)*Math.pow(2,s),a=0));s>=8;t[r+p]=255&o,p+=m,o/=256,s-=8);for(a=a<0;t[r+p]=255&a,p+=m,a/=256,u-=8);t[r+p-m]|=128*b}},xr={},Ml=Im,li=Pm,Ju=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,xr.Buffer=Ee,xr.SlowBuffer=function(t){return+t!=t&&(t=0),Ee.alloc(+t)},xr.INSPECT_MAX_BYTES=50,xr.kMaxLength=2147483647,Ee.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}(),Ee.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Ee.prototype,"parent",{enumerable:!0,get:function(){if(Ee.isBuffer(this))return this.buffer}}),Object.defineProperty(Ee.prototype,"offset",{enumerable:!0,get:function(){if(Ee.isBuffer(this))return this.byteOffset}}),Ee.poolSize=8192,Ee.from=function(t,e,r){return s_(t,e,r)},Object.setPrototypeOf(Ee.prototype,Uint8Array.prototype),Object.setPrototypeOf(Ee,Uint8Array),Ee.alloc=function(t,e,r){return function(n,s,i){return o_(n),n<=0?en(n):s!==void 0?typeof i=="string"?en(n).fill(s,i):en(n).fill(s):en(n)}(t,e,r)},Ee.allocUnsafe=function(t){return Vd(t)},Ee.allocUnsafeSlow=function(t){return Vd(t)},Ee.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Ee.prototype},Ee.compare=function(t,e){if(tn(t,Uint8Array)&&(t=Ee.from(t,t.offset,t.byteLength)),tn(e,Uint8Array)&&(e=Ee.from(e,e.offset,e.byteLength)),!Ee.isBuffer(t)||!Ee.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,s=0,i=Math.min(r,n);se&&(t+=" ... "),""},Ju&&(Ee.prototype[Ju]=Ee.prototype.inspect),Ee.prototype.compare=function(t,e,r,n,s){if(tn(t,Uint8Array)&&(t=Ee.from(t,t.offset,t.byteLength)),!Ee.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),r===void 0&&(r=t?t.length:0),n===void 0&&(n=0),s===void 0&&(s=this.length),e<0||r>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=r)return 0;if(n>=s)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(s>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),o=Math.min(i,a),l=this.slice(n,s),u=t.slice(e,r),c=0;c>>=0,isFinite(r)?(r>>>=0,n===void 0&&(n="utf8")):(n=r,r=void 0)}var s=this.length-e;if((r===void 0||r>s)&&(r=s),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return $O(this,t,e,r);case"utf8":case"utf-8":return FO(this,t,e,r);case"ascii":return l_(this,t,e,r);case"latin1":case"binary":return UO(this,t,e,r);case"base64":return jO(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return WO(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Ee.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Ee.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=e===void 0?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||ht(t,e,this.length);for(var n=this[t],s=1,i=0;++i>>=0,e>>>=0,r||ht(t,e,this.length);for(var n=this[t+--e],s=1;e>0&&(s*=256);)n+=this[t+--e]*s;return n},Ee.prototype.readUInt8=function(t,e){return t>>>=0,e||ht(t,1,this.length),this[t]},Ee.prototype.readUInt16LE=function(t,e){return t>>>=0,e||ht(t,2,this.length),this[t]|this[t+1]<<8},Ee.prototype.readUInt16BE=function(t,e){return t>>>=0,e||ht(t,2,this.length),this[t]<<8|this[t+1]},Ee.prototype.readUInt32LE=function(t,e){return t>>>=0,e||ht(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Ee.prototype.readUInt32BE=function(t,e){return t>>>=0,e||ht(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Ee.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||ht(t,e,this.length);for(var n=this[t],s=1,i=0;++i=(s*=128)&&(n-=Math.pow(2,8*e)),n},Ee.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||ht(t,e,this.length);for(var n=e,s=1,i=this[t+--n];n>0&&(s*=256);)i+=this[t+--n]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*e)),i},Ee.prototype.readInt8=function(t,e){return t>>>=0,e||ht(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Ee.prototype.readInt16LE=function(t,e){t>>>=0,e||ht(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Ee.prototype.readInt16BE=function(t,e){t>>>=0,e||ht(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Ee.prototype.readInt32LE=function(t,e){return t>>>=0,e||ht(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Ee.prototype.readInt32BE=function(t,e){return t>>>=0,e||ht(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Ee.prototype.readFloatLE=function(t,e){return t>>>=0,e||ht(t,4,this.length),li.read(this,t,!0,23,4)},Ee.prototype.readFloatBE=function(t,e){return t>>>=0,e||ht(t,4,this.length),li.read(this,t,!1,23,4)},Ee.prototype.readDoubleLE=function(t,e){return t>>>=0,e||ht(t,8,this.length),li.read(this,t,!0,52,8)},Ee.prototype.readDoubleBE=function(t,e){return t>>>=0,e||ht(t,8,this.length),li.read(this,t,!1,52,8)},Ee.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||Dt(this,t,e,r,Math.pow(2,8*r)-1,0);var s=1,i=0;for(this[e]=255&t;++i>>=0,r>>>=0,n||Dt(this,t,e,r,Math.pow(2,8*r)-1,0);var s=r-1,i=1;for(this[e+s]=255&t;--s>=0&&(i*=256);)this[e+s]=t/i&255;return e+r},Ee.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,1,255,0),this[e]=255&t,e+1},Ee.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},Ee.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},Ee.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},Ee.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},Ee.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var s=Math.pow(2,8*r-1);Dt(this,t,e,r,s-1,-s)}var i=0,a=1,o=0;for(this[e]=255&t;++i>0)-o&255;return e+r},Ee.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var s=Math.pow(2,8*r-1);Dt(this,t,e,r,s-1,-s)}var i=r-1,a=1,o=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&o===0&&this[e+i+1]!==0&&(o=1),this[e+i]=(t/a>>0)-o&255;return e+r},Ee.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},Ee.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},Ee.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},Ee.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},Ee.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Dt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},Ee.prototype.writeFloatLE=function(t,e,r){return xm(this,t,e,!0,r)},Ee.prototype.writeFloatBE=function(t,e,r){return xm(this,t,e,!1,r)},Ee.prototype.writeDoubleLE=function(t,e,r){return Am(this,t,e,!0,r)},Ee.prototype.writeDoubleBE=function(t,e,r){return Am(this,t,e,!1,r)},Ee.prototype.copy=function(t,e,r,n){if(!Ee.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||n===0||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return s},Ee.prototype.fill=function(t,e,r,n){if(typeof t=="string"){if(typeof e=="string"?(n=e,e=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!Ee.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){var s=t.charCodeAt(0);(n==="utf8"&&s<128||n==="latin1")&&(t=s)}}else typeof t=="number"?t&=255:typeof t=="boolean"&&(t=Number(t));if(e<0||this.length>>=0,r=r===void 0?this.length:r>>>0,t||(t=0),typeof t=="number")for(i=e;i=0?(l>0&&(s.lastNeed=l-1),l):--o=0?(l>0&&(s.lastNeed=l-2),l):--o=0?(l>0&&(l===2?l=0:s.lastNeed=l-3),l):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},Ks.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length},rs.StringDecoder,rs.StringDecoder}),p_={};Ri(p_,{StringDecoder:()=>g_,default:()=>rs});var g_,tP=wt(()=>{we(),ve(),_e(),Rm(),Rm(),g_=rs.StringDecoder}),m_=Te((t,e)=>{we(),ve(),_e();var r=Li(),{PromisePrototypeThen:n,SymbolAsyncIterator:s,SymbolIterator:i}=ft(),{Buffer:a}=(vt(),Ke(_t)),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_NULL_VALUES:l}=jt().codes;function u(c,f,d){let p;if(typeof f=="string"||f instanceof a)return new c({objectMode:!0,...d,read(){this.push(f),this.push(null)}});let m;if(f&&f[s])m=!0,p=f[s]();else if(f&&f[i])m=!1,p=f[i]();else throw new o("iterable",["Iterable"],f);let b=new c({objectMode:!0,highWaterMark:1,...d}),v=!1;b._read=function(){v||(v=!0,E())},b._destroy=function(y,T){n(_(y),()=>r.nextTick(T,y),x=>r.nextTick(T,x||y))};async function _(y){let T=y!=null,x=typeof p.throw=="function";if(T&&x){let{value:A,done:P}=await p.throw(y);if(await A,P)return}if(typeof p.return=="function"){let{value:A}=await p.return();await A}}async function E(){for(;;){try{let{value:y,done:T}=m?await p.next():p.next();if(T)b.push(null);else{let x=y&&typeof y.then=="function"?await y:y;if(x===null)throw v=!1,new l;if(b.push(x))continue;v=!1}}catch(y){b.destroy(y)}break}}return b}e.exports=u}),ou=Te((t,e)=>{we(),ve(),_e();var r=Li(),{ArrayPrototypeIndexOf:n,NumberIsInteger:s,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:o,ObjectKeys:l,ObjectSetPrototypeOf:u,Promise:c,SafeSet:f,SymbolAsyncIterator:d,Symbol:p}=ft();e.exports=$,$.ReadableState=ce;var{EventEmitter:m}=(Os(),Ke(Ni)),{Stream:b,prependListener:v}=fp(),{Buffer:_}=(vt(),Ke(_t)),{addAbortSignal:E}=iu(),y=jn(),T=fn().debuglog("stream",g=>{T=g}),x=LO(),A=Ms(),{getHighWaterMark:P,getDefaultHighWaterMark:L}=dp(),{aggregateTwoErrors:W,codes:{ERR_INVALID_ARG_TYPE:U,ERR_METHOD_NOT_IMPLEMENTED:H,ERR_OUT_OF_RANGE:C,ERR_STREAM_PUSH_AFTER_EOF:I,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:N}}=jt(),{validateObject:J}=nu(),ne=p("kPaused"),{StringDecoder:te}=(tP(),Ke(p_)),B=m_();u($.prototype,b.prototype),u($,b);var ae=()=>{},{errorOrDestroy:Y}=A;function ce(g,h,w){typeof w!="boolean"&&(w=h instanceof dn()),this.objectMode=!!(g&&g.objectMode),w&&(this.objectMode=this.objectMode||!!(g&&g.readableObjectMode)),this.highWaterMark=g?P(this,g,"readableHighWaterMark",w):L(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[ne]=null,this.errorEmitted=!1,this.emitClose=!g||g.emitClose!==!1,this.autoDestroy=!g||g.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=g&&g.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,g&&g.encoding&&(this.decoder=new te(g.encoding),this.encoding=g.encoding)}function $(g){if(!(this instanceof $))return new $(g);let h=this instanceof dn();this._readableState=new ce(g,this,h),g&&(typeof g.read=="function"&&(this._read=g.read),typeof g.destroy=="function"&&(this._destroy=g.destroy),typeof g.construct=="function"&&(this._construct=g.construct),g.signal&&!h&&E(g.signal,this)),b.call(this,g),A.construct(this,()=>{this._readableState.needReadable&&se(this,this._readableState)})}$.prototype.destroy=A.destroy,$.prototype._undestroy=A.undestroy,$.prototype._destroy=function(g,h){h(g)},$.prototype[m.captureRejectionSymbol]=function(g){this.destroy(g)},$.prototype.push=function(g,h){return ue(this,g,h,!1)},$.prototype.unshift=function(g,h){return ue(this,g,h,!0)};function ue(g,h,w,k){T("readableAddChunk",h);let Z=g._readableState,de;if(Z.objectMode||(typeof h=="string"?(w=w||Z.defaultEncoding,Z.encoding!==w&&(k&&Z.encoding?h=_.from(h,w).toString(Z.encoding):(h=_.from(h,w),w=""))):h instanceof _?w="":b._isUint8Array(h)?(h=b._uint8ArrayToBuffer(h),w=""):h!=null&&(de=new U("chunk",["string","Buffer","Uint8Array"],h))),de)Y(g,de);else if(h===null)Z.reading=!1,D(g,Z);else if(Z.objectMode||h&&h.length>0)if(k)if(Z.endEmitted)Y(g,new N);else{if(Z.destroyed||Z.errored)return!1;me(g,Z,h,!0)}else if(Z.ended)Y(g,new I);else{if(Z.destroyed||Z.errored)return!1;Z.reading=!1,Z.decoder&&!w?(h=Z.decoder.write(h),Z.objectMode||h.length!==0?me(g,Z,h,!1):se(g,Z)):me(g,Z,h,!1)}else k||(Z.reading=!1,se(g,Z));return!Z.ended&&(Z.length0?(h.multiAwaitDrain?h.awaitDrainWriters.clear():h.awaitDrainWriters=null,h.dataEmitted=!0,g.emit("data",w)):(h.length+=h.objectMode?1:w.length,k?h.buffer.unshift(w):h.buffer.push(w),h.needReadable&&X(g)),se(g,h)}$.prototype.isPaused=function(){let g=this._readableState;return g[ne]===!0||g.flowing===!1},$.prototype.setEncoding=function(g){let h=new te(g);this._readableState.decoder=h,this._readableState.encoding=this._readableState.decoder.encoding;let w=this._readableState.buffer,k="";for(let Z of w)k+=h.write(Z);return w.clear(),k!==""&&w.push(k),this._readableState.length=k.length,this};var ee=1073741824;function K(g){if(g>ee)throw new C("size","<= 1GiB",g);return g--,g|=g>>>1,g|=g>>>2,g|=g>>>4,g|=g>>>8,g|=g>>>16,g++,g}function j(g,h){return g<=0||h.length===0&&h.ended?0:h.objectMode?1:i(g)?h.flowing&&h.length?h.buffer.first().length:h.length:g<=h.length?g:h.ended?h.length:0}$.prototype.read=function(g){T("read",g),g===void 0?g=NaN:s(g)||(g=a(g,10));let h=this._readableState,w=g;if(g>h.highWaterMark&&(h.highWaterMark=K(g)),g!==0&&(h.emittedReadable=!1),g===0&&h.needReadable&&((h.highWaterMark!==0?h.length>=h.highWaterMark:h.length>0)||h.ended))return T("read: emitReadable",h.length,h.ended),h.length===0&&h.ended?z(this):X(this),null;if(g=j(g,h),g===0&&h.ended)return h.length===0&&z(this),null;let k=h.needReadable;if(T("need readable",k),(h.length===0||h.length-g0?Z=re(g,h):Z=null,Z===null?(h.needReadable=h.length<=h.highWaterMark,g=0):(h.length-=g,h.multiAwaitDrain?h.awaitDrainWriters.clear():h.awaitDrainWriters=null),h.length===0&&(h.ended||(h.needReadable=!0),w!==g&&h.ended&&z(this)),Z!==null&&!h.errorEmitted&&!h.closeEmitted&&(h.dataEmitted=!0,this.emit("data",Z)),Z};function D(g,h){if(T("onEofChunk"),!h.ended){if(h.decoder){let w=h.decoder.end();w&&w.length&&(h.buffer.push(w),h.length+=h.objectMode?1:w.length)}h.ended=!0,h.sync?X(g):(h.needReadable=!1,h.emittedReadable=!0,le(g))}}function X(g){let h=g._readableState;T("emitReadable",h.needReadable,h.emittedReadable),h.needReadable=!1,h.emittedReadable||(T("emitReadable",h.flowing),h.emittedReadable=!0,r.nextTick(le,g))}function le(g){let h=g._readableState;T("emitReadable_",h.destroyed,h.length,h.ended),!h.destroyed&&!h.errored&&(h.length||h.ended)&&(g.emit("readable"),h.emittedReadable=!1),h.needReadable=!h.flowing&&!h.ended&&h.length<=h.highWaterMark,oe(g)}function se(g,h){!h.readingMore&&h.constructed&&(h.readingMore=!0,r.nextTick(M,g,h))}function M(g,h){for(;!h.reading&&!h.ended&&(h.length1&&k.pipes.includes(g)&&(T("false write response, pause",k.awaitDrainWriters.size),k.awaitDrainWriters.add(g)),w.pause()),Ae||(Ae=O(w,g),g.on("drain",Ae))}w.on("data",Oe);function Oe(mt){T("ondata");let ct=g.write(mt);T("dest.write",ct),ct===!1&&Pe()}function Ve(mt){if(T("onerror",mt),at(),g.removeListener("error",Ve),g.listenerCount("error")===0){let ct=g._writableState||g._readableState;ct&&!ct.errorEmitted?Y(g,mt):g.emit("error",mt)}}v(g,"error",Ve);function ut(){g.removeListener("finish",Je),at()}g.once("close",ut);function Je(){T("onfinish"),g.removeListener("close",ut),at()}g.once("finish",Je);function at(){T("unpipe"),w.unpipe(g)}return g.emit("pipe",w),g.writableNeedDrain===!0?k.flowing&&Pe():k.flowing||(T("pipe resume"),w.resume()),g};function O(g,h){return function(){let w=g._readableState;w.awaitDrainWriters===h?(T("pipeOnDrain",1),w.awaitDrainWriters=null):w.multiAwaitDrain&&(T("pipeOnDrain",w.awaitDrainWriters.size),w.awaitDrainWriters.delete(h)),(!w.awaitDrainWriters||w.awaitDrainWriters.size===0)&&g.listenerCount("data")&&g.resume()}}$.prototype.unpipe=function(g){let h=this._readableState,w={hasUnpiped:!1};if(h.pipes.length===0)return this;if(!g){let Z=h.pipes;h.pipes=[],this.pause();for(let de=0;de0,k.flowing!==!1&&this.resume()):g==="readable"&&!k.endEmitted&&!k.readableListening&&(k.readableListening=k.needReadable=!0,k.flowing=!1,k.emittedReadable=!1,T("on readable",k.length,k.reading),k.length?X(this):k.reading||r.nextTick(R,this)),w},$.prototype.addListener=$.prototype.on,$.prototype.removeListener=function(g,h){let w=b.prototype.removeListener.call(this,g,h);return g==="readable"&&r.nextTick(F,this),w},$.prototype.off=$.prototype.removeListener,$.prototype.removeAllListeners=function(g){let h=b.prototype.removeAllListeners.apply(this,arguments);return(g==="readable"||g===void 0)&&r.nextTick(F,this),h};function F(g){let h=g._readableState;h.readableListening=g.listenerCount("readable")>0,h.resumeScheduled&&h[ne]===!1?h.flowing=!0:g.listenerCount("data")>0?g.resume():h.readableListening||(h.flowing=null)}function R(g){T("readable nexttick read 0"),g.read(0)}$.prototype.resume=function(){let g=this._readableState;return g.flowing||(T("resume"),g.flowing=!g.readableListening,V(this,g)),g[ne]=!1,this};function V(g,h){h.resumeScheduled||(h.resumeScheduled=!0,r.nextTick(q,g,h))}function q(g,h){T("resume",h.reading),h.reading||g.read(0),h.resumeScheduled=!1,g.emit("resume"),oe(g),h.flowing&&!h.reading&&g.read(0)}$.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ne]=!0,this};function oe(g){let h=g._readableState;for(T("flow",h.flowing);h.flowing&&g.read()!==null;);}$.prototype.wrap=function(g){let h=!1;g.on("data",k=>{!this.push(k)&&g.pause&&(h=!0,g.pause())}),g.on("end",()=>{this.push(null)}),g.on("error",k=>{Y(this,k)}),g.on("close",()=>{this.destroy()}),g.on("destroy",()=>{this.destroy()}),this._read=()=>{h&&g.resume&&(h=!1,g.resume())};let w=l(g);for(let k=1;k{Z=ye?W(Z,ye):null,w(),w=ae});try{for(;;){let ye=g.destroyed?null:g.read();if(ye!==null)yield ye;else{if(Z)throw Z;if(Z===null)return;await new c(k)}}}catch(ye){throw Z=W(Z,ye),Z}finally{(Z||(h==null?void 0:h.destroyOnReturn)!==!1)&&(Z===void 0||g._readableState.autoDestroy)?A.destroyer(g,null):(g.off("readable",k),de())}}o($.prototype,{readable:{__proto__:null,get(){let g=this._readableState;return!!g&&g.readable!==!1&&!g.destroyed&&!g.errorEmitted&&!g.endEmitted},set(g){this._readableState&&(this._readableState.readable=!!g)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(g){this._readableState&&(this._readableState.flowing=g)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(g){this._readableState&&(this._readableState.destroyed=g)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),o(ce.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ne]!==!1},set(g){this[ne]=!!g}}}),$._fromList=re;function re(g,h){if(h.length===0)return null;let w;return h.objectMode?w=h.buffer.shift():!g||g>=h.length?(h.decoder?w=h.buffer.join(""):h.buffer.length===1?w=h.buffer.first():w=h.buffer.concat(h.length),h.buffer.clear()):w=h.buffer.consume(g,h.decoder),w}function z(g){let h=g._readableState;T("endReadable",h.endEmitted),h.endEmitted||(h.ended=!0,r.nextTick(ie,h,g))}function ie(g,h){if(T("endReadableNT",g.endEmitted,g.length),!g.errored&&!g.closeEmitted&&!g.endEmitted&&g.length===0){if(g.endEmitted=!0,h.emit("end"),h.writable&&h.allowHalfOpen===!1)r.nextTick(he,h);else if(g.autoDestroy){let w=h._writableState;(!w||w.autoDestroy&&(w.finished||w.writable===!1))&&h.destroy()}}}function he(g){g.writable&&!g.writableEnded&&!g.destroyed&&g.end()}$.from=function(g,h){return B($,g,h)};var be;function S(){return be===void 0&&(be={}),be}$.fromWeb=function(g,h){return S().newStreamReadableFromReadableStream(g,h)},$.toWeb=function(g,h){return S().newReadableStreamFromStreamReadable(g,h)},$.wrap=function(g,h){var w,k;return new $({objectMode:(w=(k=g.readableObjectMode)!==null&&k!==void 0?k:g.objectMode)!==null&&w!==void 0?w:!0,...h,destroy(Z,de){A.destroyer(g,Z),de(Z)}}).wrap(g)}}),b_=Te((t,e)=>{we(),ve(),_e();var r=Li(),{ArrayPrototypeSlice:n,Error:s,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:o,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:u,Symbol:c,SymbolHasInstance:f}=ft();e.exports=te,te.WritableState=J;var{EventEmitter:d}=(Os(),Ke(Ni)),p=fp().Stream,{Buffer:m}=(vt(),Ke(_t)),b=Ms(),{addAbortSignal:v}=iu(),{getHighWaterMark:_,getDefaultHighWaterMark:E}=dp(),{ERR_INVALID_ARG_TYPE:y,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:A,ERR_STREAM_DESTROYED:P,ERR_STREAM_ALREADY_FINISHED:L,ERR_STREAM_NULL_VALUES:W,ERR_STREAM_WRITE_AFTER_END:U,ERR_UNKNOWN_ENCODING:H}=jt().codes,{errorOrDestroy:C}=b;l(te.prototype,p.prototype),l(te,p);function I(){}var N=c("kOnFinished");function J(R,V,q){typeof q!="boolean"&&(q=V instanceof dn()),this.objectMode=!!(R&&R.objectMode),q&&(this.objectMode=this.objectMode||!!(R&&R.writableObjectMode)),this.highWaterMark=R?_(this,R,"writableHighWaterMark",q):E(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let oe=!!(R&&R.decodeStrings===!1);this.decodeStrings=!oe,this.defaultEncoding=R&&R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=$.bind(void 0,V),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,ne(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!R||R.emitClose!==!1,this.autoDestroy=!R||R.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[N]=[]}function ne(R){R.buffered=[],R.bufferedIndex=0,R.allBuffers=!0,R.allNoop=!0}J.prototype.getBuffer=function(){return n(this.buffered,this.bufferedIndex)},a(J.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function te(R){let V=this instanceof dn();if(!V&&!i(te,this))return new te(R);this._writableState=new J(R,this,V),R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final),typeof R.construct=="function"&&(this._construct=R.construct),R.signal&&v(R.signal,this)),p.call(this,R),b.construct(this,()=>{let q=this._writableState;q.writing||K(this,q),le(this,q)})}a(te,f,{__proto__:null,value:function(R){return i(this,R)?!0:this!==te?!1:R&&R._writableState instanceof J}}),te.prototype.pipe=function(){C(this,new A)};function B(R,V,q,oe){let Q=R._writableState;if(typeof q=="function")oe=q,q=Q.defaultEncoding;else{if(!q)q=Q.defaultEncoding;else if(q!=="buffer"&&!m.isEncoding(q))throw new H(q);typeof oe!="function"&&(oe=I)}if(V===null)throw new W;if(!Q.objectMode)if(typeof V=="string")Q.decodeStrings!==!1&&(V=m.from(V,q),q="buffer");else if(V instanceof m)q="buffer";else if(p._isUint8Array(V))V=p._uint8ArrayToBuffer(V),q="buffer";else throw new y("chunk",["string","Buffer","Uint8Array"],V);let G;return Q.ending?G=new U:Q.destroyed&&(G=new P("write")),G?(r.nextTick(oe,G),C(R,G,!0),G):(Q.pendingcb++,ae(R,Q,V,q,oe))}te.prototype.write=function(R,V,q){return B(this,R,V,q)===!0},te.prototype.cork=function(){this._writableState.corked++},te.prototype.uncork=function(){let R=this._writableState;R.corked&&(R.corked--,R.writing||K(this,R))},te.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=u(R)),!m.isEncoding(R))throw new H(R);return this._writableState.defaultEncoding=R,this};function ae(R,V,q,oe,Q){let G=V.objectMode?1:q.length;V.length+=G;let re=V.lengthq.bufferedIndex&&K(R,q),oe?q.afterWriteTickInfo!==null&&q.afterWriteTickInfo.cb===Q?q.afterWriteTickInfo.count++:(q.afterWriteTickInfo={count:1,cb:Q,stream:R,state:q},r.nextTick(ue,q.afterWriteTickInfo)):me(R,q,1,Q))}function ue({stream:R,state:V,count:q,cb:oe}){return V.afterWriteTickInfo=null,me(R,V,q,oe)}function me(R,V,q,oe){for(!V.ending&&!R.destroyed&&V.length===0&&V.needDrain&&(V.needDrain=!1,R.emit("drain"));q-- >0;)V.pendingcb--,oe();V.destroyed&&ee(V),le(R,V)}function ee(R){if(R.writing)return;for(let Q=R.bufferedIndex;Q1&&R._writev){V.pendingcb-=G-1;let z=V.allNoop?I:he=>{for(let be=re;be256?(q.splice(0,re),V.bufferedIndex=0):V.bufferedIndex=re}V.bufferProcessing=!1}te.prototype._write=function(R,V,q){if(this._writev)this._writev([{chunk:R,encoding:V}],q);else throw new T("_write()")},te.prototype._writev=null,te.prototype.end=function(R,V,q){let oe=this._writableState;typeof R=="function"?(q=R,R=null,V=null):typeof V=="function"&&(q=V,V=null);let Q;if(R!=null){let G=B(this,R,V);G instanceof s&&(Q=G)}return oe.corked&&(oe.corked=1,this.uncork()),Q||(!oe.errored&&!oe.ending?(oe.ending=!0,le(this,oe,!0),oe.ended=!0):oe.finished?Q=new L("end"):oe.destroyed&&(Q=new P("end"))),typeof q=="function"&&(Q||oe.finished?r.nextTick(q,Q):oe[N].push(q)),this};function j(R){return R.ending&&!R.destroyed&&R.constructed&&R.length===0&&!R.errored&&R.buffered.length===0&&!R.finished&&!R.writing&&!R.errorEmitted&&!R.closeEmitted}function D(R,V){let q=!1;function oe(Q){if(q){C(R,Q??x());return}if(q=!0,V.pendingcb--,Q){let G=V[N].splice(0);for(let re=0;re{j(Q)?se(oe,Q):Q.pendingcb--},R,V)):j(V)&&(V.pendingcb++,se(R,V))))}function se(R,V){V.pendingcb--,V.finished=!0;let q=V[N].splice(0);for(let oe=0;oe{we(),ve(),_e();var r=Li(),n=(vt(),Ke(_t)),{isReadable:s,isWritable:i,isIterable:a,isNodeStream:o,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:c}=bn(),f=jn(),{AbortError:d,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:m}}=jt(),{destroyer:b}=Ms(),v=dn(),_=ou(),{createDeferredPromise:E}=fn(),y=m_(),T=globalThis.Blob||n.Blob,x=typeof T<"u"?function(H){return H instanceof T}:function(H){return!1},A=globalThis.AbortController||cp().AbortController,{FunctionPrototypeCall:P}=ft(),L=class extends v{constructor(H){super(H),(H==null?void 0:H.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(H==null?void 0:H.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};e.exports=function H(C,I){if(c(C))return C;if(l(C))return U({readable:C});if(u(C))return U({writable:C});if(o(C))return U({writable:!1,readable:!1});if(typeof C=="function"){let{value:J,write:ne,final:te,destroy:B}=W(C);if(a(J))return y(L,J,{objectMode:!0,write:ne,final:te,destroy:B});let ae=J==null?void 0:J.then;if(typeof ae=="function"){let Y,ce=P(ae,J,$=>{if($!=null)throw new m("nully","body",$)},$=>{b(Y,$)});return Y=new L({objectMode:!0,readable:!1,write:ne,final($){te(async()=>{try{await ce,r.nextTick($,null)}catch(ue){r.nextTick($,ue)}})},destroy:B})}throw new m("Iterable, AsyncIterable or AsyncFunction",I,J)}if(x(C))return H(C.arrayBuffer());if(a(C))return y(L,C,{objectMode:!0,writable:!1});if(typeof(C==null?void 0:C.writable)=="object"||typeof(C==null?void 0:C.readable)=="object"){let J=C!=null&&C.readable?l(C==null?void 0:C.readable)?C==null?void 0:C.readable:H(C.readable):void 0,ne=C!=null&&C.writable?u(C==null?void 0:C.writable)?C==null?void 0:C.writable:H(C.writable):void 0;return U({readable:J,writable:ne})}let N=C==null?void 0:C.then;if(typeof N=="function"){let J;return P(N,C,ne=>{ne!=null&&J.push(ne),J.push(null)},ne=>{b(J,ne)}),J=new L({objectMode:!0,writable:!1,read(){}})}throw new p(I,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],C)};function W(H){let{promise:C,resolve:I}=E(),N=new A,J=N.signal;return{value:H(async function*(){for(;;){let ne=C;C=null;let{chunk:te,done:B,cb:ae}=await ne;if(r.nextTick(ae),B)return;if(J.aborted)throw new d(void 0,{cause:J.reason});({promise:C,resolve:I}=E()),yield te}}(),{signal:J}),write(ne,te,B){let ae=I;I=null,ae({chunk:ne,done:!1,cb:B})},final(ne){let te=I;I=null,te({done:!0,cb:ne})},destroy(ne,te){N.abort(),te(ne)}}}function U(H){let C=H.readable&&typeof H.readable.read!="function"?_.wrap(H.readable):H.readable,I=H.writable,N=!!s(C),J=!!i(I),ne,te,B,ae,Y;function ce($){let ue=ae;ae=null,ue?ue($):$&&Y.destroy($)}return Y=new L({readableObjectMode:!!(C!=null&&C.readableObjectMode),writableObjectMode:!!(I!=null&&I.writableObjectMode),readable:N,writable:J}),J&&(f(I,$=>{J=!1,$&&b(C,$),ce($)}),Y._write=function($,ue,me){I.write($,ue)?me():ne=me},Y._final=function($){I.end(),te=$},I.on("drain",function(){if(ne){let $=ne;ne=null,$()}}),I.on("finish",function(){if(te){let $=te;te=null,$()}})),N&&(f(C,$=>{N=!1,$&&b(C,$),ce($)}),C.on("readable",function(){if(B){let $=B;B=null,$()}}),C.on("end",function(){Y.push(null)}),Y._read=function(){for(;;){let $=C.read();if($===null){B=Y._read;return}if(!Y.push($))return}}),Y._destroy=function($,ue){!$&&ae!==null&&($=new d),B=null,ne=null,te=null,ae===null?ue($):(ae=ue,b(I,$),b(C,$))},Y}}),dn=Te((t,e)=>{we(),ve(),_e();var{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:n,ObjectKeys:s,ObjectSetPrototypeOf:i}=ft();e.exports=l;var a=ou(),o=b_();i(l.prototype,a.prototype),i(l,a);{let d=s(o.prototype);for(let p=0;p{we(),ve(),_e();var{ObjectSetPrototypeOf:r,Symbol:n}=ft();e.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:s}=jt().codes,i=dn(),{getHighWaterMark:a}=dp();r(l.prototype,i.prototype),r(l,i);var o=n("kCallback");function l(f){if(!(this instanceof l))return new l(f);let d=f?a(this,f,"readableHighWaterMark",!0):null;d===0&&(f={...f,highWaterMark:null,readableHighWaterMark:d,writableHighWaterMark:f.writableHighWaterMark||0}),i.call(this,f),this._readableState.sync=!1,this[o]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",c)}function u(f){typeof this._flush=="function"&&!this.destroyed?this._flush((d,p)=>{if(d){f?f(d):this.destroy(d);return}p!=null&&this.push(p),this.push(null),f&&f()}):(this.push(null),f&&f())}function c(){this._final!==u&&u.call(this)}l.prototype._final=u,l.prototype._transform=function(f,d,p){throw new s("_transform()")},l.prototype._write=function(f,d,p){let m=this._readableState,b=this._writableState,v=m.length;this._transform(f,d,(_,E)=>{if(_){p(_);return}E!=null&&this.push(E),b.ended||v===m.length||m.length{we(),ve(),_e();var{ObjectSetPrototypeOf:r}=ft();e.exports=s;var n=y_();r(s.prototype,n.prototype),r(s,n);function s(i){if(!(this instanceof s))return new s(i);n.call(this,i)}s.prototype._transform=function(i,a,o){o(null,i)}}),gp=Te((t,e)=>{we(),ve(),_e();var r=Li(),{ArrayIsArray:n,Promise:s,SymbolAsyncIterator:i}=ft(),a=jn(),{once:o}=fn(),l=Ms(),u=dn(),{aggregateTwoErrors:c,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:d,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:b},AbortError:v}=jt(),{validateFunction:_,validateAbortSignal:E}=nu(),{isIterable:y,isReadable:T,isReadableNodeStream:x,isNodeStream:A,isTransformStream:P,isWebStream:L,isReadableStream:W,isReadableEnded:U}=bn(),H=globalThis.AbortController||cp().AbortController,C,I;function N(ue,me,ee){let K=!1;ue.on("close",()=>{K=!0});let j=a(ue,{readable:me,writable:ee},D=>{K=!D});return{destroy:D=>{K||(K=!0,l.destroyer(ue,D||new m("pipe")))},cleanup:j}}function J(ue){return _(ue[ue.length-1],"streams[stream.length - 1]"),ue.pop()}function ne(ue){if(y(ue))return ue;if(x(ue))return te(ue);throw new f("val",["Readable","Iterable","AsyncIterable"],ue)}async function*te(ue){I||(I=ou()),yield*I.prototype[i].call(ue)}async function B(ue,me,ee,{end:K}){let j,D=null,X=M=>{if(M&&(j=M),D){let O=D;D=null,O()}},le=()=>new s((M,O)=>{j?O(j):D=()=>{j?O(j):M()}});me.on("drain",X);let se=a(me,{readable:!1},X);try{me.writableNeedDrain&&await le();for await(let M of ue)me.write(M)||await le();K&&me.end(),await le(),ee()}catch(M){ee(j!==M?c(j,M):M)}finally{se(),me.off("drain",X)}}async function ae(ue,me,ee,{end:K}){P(me)&&(me=me.writable);let j=me.getWriter();try{for await(let D of ue)await j.ready,j.write(D).catch(()=>{});await j.ready,K&&await j.close(),ee()}catch(D){try{await j.abort(D),ee(D)}catch(X){ee(X)}}}function Y(...ue){return ce(ue,o(J(ue)))}function ce(ue,me,ee){if(ue.length===1&&n(ue[0])&&(ue=ue[0]),ue.length<2)throw new p("streams");let K=new H,j=K.signal,D=ee==null?void 0:ee.signal,X=[];E(D,"options.signal");function le(){V(new v)}D==null||D.addEventListener("abort",le);let se,M,O=[],F=0;function R(G){V(G,--F===0)}function V(G,re){if(G&&(!se||se.code==="ERR_STREAM_PREMATURE_CLOSE")&&(se=G),!(!se&&!re)){for(;O.length;)O.shift()(se);D==null||D.removeEventListener("abort",le),K.abort(),re&&(se||X.forEach(z=>z()),r.nextTick(me,se,M))}}let q;for(let G=0;G0,he=z||(ee==null?void 0:ee.end)!==!1,be=G===ue.length-1;if(A(re)){let S=function(g){g&&g.name!=="AbortError"&&g.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(g)};if(he){let{destroy:g,cleanup:h}=N(re,z,ie);O.push(g),T(re)&&be&&X.push(h)}re.on("error",S),T(re)&&be&&X.push(()=>{re.removeListener("error",S)})}if(G===0)if(typeof re=="function"){if(q=re({signal:j}),!y(q))throw new d("Iterable, AsyncIterable or Stream","source",q)}else y(re)||x(re)||P(re)?q=re:q=u.from(re);else if(typeof re=="function"){if(P(q)){var oe;q=ne((oe=q)===null||oe===void 0?void 0:oe.readable)}else q=ne(q);if(q=re(q,{signal:j}),z){if(!y(q,!0))throw new d("AsyncIterable",`transform[${G-1}]`,q)}else{var Q;C||(C=w_());let S=new C({objectMode:!0}),g=(Q=q)===null||Q===void 0?void 0:Q.then;if(typeof g=="function")F++,g.call(q,k=>{M=k,k!=null&&S.write(k),he&&S.end(),r.nextTick(R)},k=>{S.destroy(k),r.nextTick(R,k)});else if(y(q,!0))F++,B(q,S,R,{end:he});else if(W(q)||P(q)){let k=q.readable||q;F++,B(k,S,R,{end:he})}else throw new d("AsyncIterable or Promise","destination",q);q=S;let{destroy:h,cleanup:w}=N(q,!1,!0);O.push(h),be&&X.push(w)}}else if(A(re)){if(x(q)){F+=2;let S=$(q,re,R,{end:he});T(re)&&be&&X.push(S)}else if(P(q)||W(q)){let S=q.readable||q;F++,B(S,re,R,{end:he})}else if(y(q))F++,B(q,re,R,{end:he});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],q);q=re}else if(L(re)){if(x(q))F++,ae(ne(q),re,R,{end:he});else if(W(q)||y(q))F++,ae(q,re,R,{end:he});else if(P(q))F++,ae(q.readable,re,R,{end:he});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],q);q=re}else q=u.from(re)}return(j!=null&&j.aborted||D!=null&&D.aborted)&&r.nextTick(le),q}function $(ue,me,ee,{end:K}){let j=!1;if(me.on("close",()=>{j||ee(new b)}),ue.pipe(me,{end:!1}),K){let D=function(){j=!0,me.end()};U(ue)?r.nextTick(D):ue.once("end",D)}else ee();return a(ue,{readable:!0,writable:!1},D=>{let X=ue._readableState;D&&D.code==="ERR_STREAM_PREMATURE_CLOSE"&&X&&X.ended&&!X.errored&&!X.errorEmitted?ue.once("end",ee).once("error",ee):ee(D)}),a(me,{readable:!1,writable:!0},ee)}e.exports={pipelineImpl:ce,pipeline:Y}}),__=Te((t,e)=>{we(),ve(),_e();var{pipeline:r}=gp(),n=dn(),{destroyer:s}=Ms(),{isNodeStream:i,isReadable:a,isWritable:o,isWebStream:l,isTransformStream:u,isWritableStream:c,isReadableStream:f}=bn(),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=jt(),b=jn();e.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return n.from(v[0]);let _=[...v];if(typeof v[0]=="function"&&(v[0]=n.from(v[0])),typeof v[v.length-1]=="function"){let C=v.length-1;v[C]=n.from(v[C])}for(let C=0;C0&&!(o(v[C])||c(v[C])||u(v[C])))throw new p(`streams[${C}]`,_[C],"must be writable")}let E,y,T,x,A;function P(C){let I=x;x=null,I?I(C):C?A.destroy(C):!H&&!U&&A.destroy()}let L=v[0],W=r(v,P),U=!!(o(L)||c(L)||u(L)),H=!!(a(W)||f(W)||u(W));if(A=new n({writableObjectMode:!!(L!=null&&L.writableObjectMode),readableObjectMode:!!(W!=null&&W.writableObjectMode),writable:U,readable:H}),U){if(i(L))A._write=function(I,N,J){L.write(I,N)?J():E=J},A._final=function(I){L.end(),y=I},L.on("drain",function(){if(E){let I=E;E=null,I()}});else if(l(L)){let I=(u(L)?L.writable:L).getWriter();A._write=async function(N,J,ne){try{await I.ready,I.write(N).catch(()=>{}),ne()}catch(te){ne(te)}},A._final=async function(N){try{await I.ready,I.close().catch(()=>{}),y=N}catch(J){N(J)}}}let C=u(W)?W.readable:W;b(C,()=>{if(y){let I=y;y=null,I()}})}if(H){if(i(W))W.on("readable",function(){if(T){let C=T;T=null,C()}}),W.on("end",function(){A.push(null)}),A._read=function(){for(;;){let C=W.read();if(C===null){T=A._read;return}if(!A.push(C))return}};else if(l(W)){let C=(u(W)?W.readable:W).getReader();A._read=async function(){for(;;)try{let{value:I,done:N}=await C.read();if(!A.push(I))return;if(N){A.push(null);return}}catch{return}}}}return A._destroy=function(C,I){!C&&x!==null&&(C=new d),T=null,E=null,y=null,x===null?I(C):(x=I,i(W)&&s(W,C))},A}}),nP=Te((t,e)=>{we(),ve(),_e();var r=globalThis.AbortController||cp().AbortController,{codes:{ERR_INVALID_ARG_VALUE:n,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:i,ERR_OUT_OF_RANGE:a},AbortError:o}=jt(),{validateAbortSignal:l,validateInteger:u,validateObject:c}=nu(),f=ft().Symbol("kWeak"),{finished:d}=jn(),p=__(),{addAbortSignalNoValidate:m}=iu(),{isWritable:b,isNodeStream:v}=bn(),{ArrayPrototypePush:_,MathFloor:E,Number:y,NumberIsNaN:T,Promise:x,PromiseReject:A,PromisePrototypeThen:P,Symbol:L}=ft(),W=L("kEmpty"),U=L("kEof");function H(K,j){if(j!=null&&c(j,"options"),(j==null?void 0:j.signal)!=null&&l(j.signal,"options.signal"),v(K)&&!b(K))throw new n("stream",K,"must be writable");let D=p(this,K);return j!=null&&j.signal&&m(j.signal,D),D}function C(K,j){if(typeof K!="function")throw new s("fn",["Function","AsyncFunction"],K);j!=null&&c(j,"options"),(j==null?void 0:j.signal)!=null&&l(j.signal,"options.signal");let D=1;return(j==null?void 0:j.concurrency)!=null&&(D=E(j.concurrency)),u(D,"concurrency",1),(async function*(){var X,le;let se=new r,M=this,O=[],F=se.signal,R={signal:F},V=()=>se.abort();j!=null&&(X=j.signal)!==null&&X!==void 0&&X.aborted&&V(),j==null||(le=j.signal)===null||le===void 0||le.addEventListener("abort",V);let q,oe,Q=!1;function G(){Q=!0}async function re(){try{for await(let he of M){var z;if(Q)return;if(F.aborted)throw new o;try{he=K(he,R)}catch(be){he=A(be)}he!==W&&(typeof((z=he)===null||z===void 0?void 0:z.catch)=="function"&&he.catch(G),O.push(he),q&&(q(),q=null),!Q&&O.length&&O.length>=D&&await new x(be=>{oe=be}))}O.push(U)}catch(he){let be=A(he);P(be,void 0,G),O.push(be)}finally{var ie;Q=!0,q&&(q(),q=null),j==null||(ie=j.signal)===null||ie===void 0||ie.removeEventListener("abort",V)}}re();try{for(;;){for(;O.length>0;){let z=await O[0];if(z===U)return;if(F.aborted)throw new o;z!==W&&(yield z),O.shift(),oe&&(oe(),oe=null)}await new x(z=>{q=z})}}finally{se.abort(),Q=!0,oe&&(oe(),oe=null)}}).call(this)}function I(K=void 0){return K!=null&&c(K,"options"),(K==null?void 0:K.signal)!=null&&l(K.signal,"options.signal"),(async function*(){let j=0;for await(let X of this){var D;if(K!=null&&(D=K.signal)!==null&&D!==void 0&&D.aborted)throw new o({cause:K.signal.reason});yield[j++,X]}}).call(this)}async function N(K,j=void 0){for await(let D of B.call(this,K,j))return!0;return!1}async function J(K,j=void 0){if(typeof K!="function")throw new s("fn",["Function","AsyncFunction"],K);return!await N.call(this,async(...D)=>!await K(...D),j)}async function ne(K,j){for await(let D of B.call(this,K,j))return D}async function te(K,j){if(typeof K!="function")throw new s("fn",["Function","AsyncFunction"],K);async function D(X,le){return await K(X,le),W}for await(let X of C.call(this,D,j));}function B(K,j){if(typeof K!="function")throw new s("fn",["Function","AsyncFunction"],K);async function D(X,le){return await K(X,le)?X:W}return C.call(this,D,j)}var ae=class extends i{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Y(K,j,D){var X;if(typeof K!="function")throw new s("reducer",["Function","AsyncFunction"],K);D!=null&&c(D,"options"),(D==null?void 0:D.signal)!=null&&l(D.signal,"options.signal");let le=arguments.length>1;if(D!=null&&(X=D.signal)!==null&&X!==void 0&&X.aborted){let R=new o(void 0,{cause:D.signal.reason});throw this.once("error",()=>{}),await d(this.destroy(R)),R}let se=new r,M=se.signal;if(D!=null&&D.signal){let R={once:!0,[f]:this};D.signal.addEventListener("abort",()=>se.abort(),R)}let O=!1;try{for await(let R of this){var F;if(O=!0,D!=null&&(F=D.signal)!==null&&F!==void 0&&F.aborted)throw new o;le?j=await K(j,R,{signal:M}):(j=R,le=!0)}if(!O&&!le)throw new ae}finally{se.abort()}return j}async function ce(K){K!=null&&c(K,"options"),(K==null?void 0:K.signal)!=null&&l(K.signal,"options.signal");let j=[];for await(let X of this){var D;if(K!=null&&(D=K.signal)!==null&&D!==void 0&&D.aborted)throw new o(void 0,{cause:K.signal.reason});_(j,X)}return j}function $(K,j){let D=C.call(this,K,j);return(async function*(){for await(let X of D)yield*X}).call(this)}function ue(K){if(K=y(K),T(K))return 0;if(K<0)throw new a("number",">= 0",K);return K}function me(K,j=void 0){return j!=null&&c(j,"options"),(j==null?void 0:j.signal)!=null&&l(j.signal,"options.signal"),K=ue(K),(async function*(){var D;if(j!=null&&(D=j.signal)!==null&&D!==void 0&&D.aborted)throw new o;for await(let le of this){var X;if(j!=null&&(X=j.signal)!==null&&X!==void 0&&X.aborted)throw new o;K--<=0&&(yield le)}}).call(this)}function ee(K,j=void 0){return j!=null&&c(j,"options"),(j==null?void 0:j.signal)!=null&&l(j.signal,"options.signal"),K=ue(K),(async function*(){var D;if(j!=null&&(D=j.signal)!==null&&D!==void 0&&D.aborted)throw new o;for await(let le of this){var X;if(j!=null&&(X=j.signal)!==null&&X!==void 0&&X.aborted)throw new o;if(K-- >0)yield le;else return}}).call(this)}e.exports.streamReturningOperators={asIndexedPairs:I,drop:me,filter:B,flatMap:$,map:C,take:ee,compose:H},e.exports.promiseReturningOperators={every:J,forEach:te,reduce:Y,toArray:ce,some:N,find:ne}}),v_=Te((t,e)=>{we(),ve(),_e();var{ArrayPrototypePop:r,Promise:n}=ft(),{isIterable:s,isNodeStream:i,isWebStream:a}=bn(),{pipelineImpl:o}=gp(),{finished:l}=jn();E_();function u(...c){return new n((f,d)=>{let p,m,b=c[c.length-1];if(b&&typeof b=="object"&&!i(b)&&!s(b)&&!a(b)){let v=r(c);p=v.signal,m=v.end}o(c,(v,_)=>{v?d(v):f(_)},{signal:p,end:m})})}e.exports={finished:l,pipeline:u}}),E_=Te((t,e)=>{we(),ve(),_e();var{Buffer:r}=(vt(),Ke(_t)),{ObjectDefineProperty:n,ObjectKeys:s,ReflectApply:i}=ft(),{promisify:{custom:a}}=fn(),{streamReturningOperators:o,promiseReturningOperators:l}=nP(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=jt(),c=__(),{pipeline:f}=gp(),{destroyer:d}=Ms(),p=jn(),m=v_(),b=bn(),v=e.exports=fp().Stream;v.isDisturbed=b.isDisturbed,v.isErrored=b.isErrored,v.isReadable=b.isReadable,v.Readable=ou();for(let E of s(o)){let y=function(...x){if(new.target)throw u();return v.Readable.from(i(T,this,x))},T=o[E];n(y,"name",{__proto__:null,value:T.name}),n(y,"length",{__proto__:null,value:T.length}),n(v.Readable.prototype,E,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}for(let E of s(l)){let y=function(...x){if(new.target)throw u();return i(T,this,x)},T=l[E];n(y,"name",{__proto__:null,value:T.name}),n(y,"length",{__proto__:null,value:T.length}),n(v.Readable.prototype,E,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}v.Writable=b_(),v.Duplex=dn(),v.Transform=y_(),v.PassThrough=w_(),v.pipeline=f;var{addAbortSignal:_}=iu();v.addAbortSignal=_,v.finished=p,v.destroy=d,v.compose=c,n(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),n(f,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),n(p,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(E){return E instanceof Uint8Array},v._uint8ArrayToBuffer=function(E){return r.from(E.buffer,E.byteOffset,E.byteLength)}}),Di=Te((t,e)=>{we(),ve(),_e();var r=E_(),n=v_(),s=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=s,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return n}}),e.exports.Stream=r.Stream,e.exports.default=e.exports}),iP=Te((t,e)=>{we(),ve(),_e(),typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,n){if(n){r.super_=n;var s=function(){};s.prototype=n.prototype,r.prototype=new s,r.prototype.constructor=r}}}),sP=Te((t,e)=>{we(),ve(),_e();var{Buffer:r}=(vt(),Ke(_t)),n=Symbol.for("BufferList");function s(i){if(!(this instanceof s))return new s(i);s._init.call(this,i)}s._init=function(i){Object.defineProperty(this,n,{value:!0}),this._bufs=[],this.length=0,i&&this.append(i)},s.prototype._new=function(i){return new s(i)},s.prototype._offset=function(i){if(i===0)return[0,0];let a=0;for(let o=0;othis.length||i<0)return;let a=this._offset(i);return this._bufs[a[0]][a[1]]},s.prototype.slice=function(i,a){return typeof i=="number"&&i<0&&(i+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,i,a)},s.prototype.copy=function(i,a,o,l){if((typeof o!="number"||o<0)&&(o=0),(typeof l!="number"||l>this.length)&&(l=this.length),o>=this.length||l<=0)return i||r.alloc(0);let u=!!i,c=this._offset(o),f=l-o,d=f,p=u&&a||0,m=c[1];if(o===0&&l===this.length){if(!u)return this._bufs.length===1?this._bufs[0]:r.concat(this._bufs,this.length);for(let b=0;bv)this._bufs[b].copy(i,p,m),p+=v;else{this._bufs[b].copy(i,p,m,m+d),p+=v;break}d-=v,m&&(m=0)}return i.length>p?i.slice(0,p):i},s.prototype.shallowSlice=function(i,a){if(i=i||0,a=typeof a!="number"?this.length:a,i<0&&(i+=this.length),a<0&&(a+=this.length),i===a)return this._new();let o=this._offset(i),l=this._offset(a),u=this._bufs.slice(o[0],l[0]+1);return l[1]===0?u.pop():u[u.length-1]=u[u.length-1].slice(0,l[1]),o[1]!==0&&(u[0]=u[0].slice(o[1])),this._new(u)},s.prototype.toString=function(i,a,o){return this.slice(a,o).toString(i)},s.prototype.consume=function(i){if(i=Math.trunc(i),Number.isNaN(i)||i<=0)return this;for(;this._bufs.length;)if(i>=this._bufs[0].length)i-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(i),this.length-=i;break}return this},s.prototype.duplicate=function(){let i=this._new();for(let a=0;athis.length?this.length:a;let l=this._offset(a),u=l[0],c=l[1];for(;u=i.length){let d=f.indexOf(i,c);if(d!==-1)return this._reverseOffset([u,d]);c=f.length-i.length+1}else{let d=this._reverseOffset([u,c]);if(this._match(d,i))return d;c++}c=0}return-1},s.prototype._match=function(i,a){if(this.length-i{we(),ve(),_e();var r=Di().Duplex,n=iP(),s=sP();function i(a){if(!(this instanceof i))return new i(a);if(typeof a=="function"){this._callback=a;let o=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",o)}),this.on("unpipe",function(l){l.removeListener("error",o)}),a=null}s._init.call(this,a),r.call(this)}n(i,r),Object.assign(i.prototype,s.prototype),i.prototype._new=function(a){return new i(a)},i.prototype._write=function(a,o,l){this._appendBuffer(a),typeof l=="function"&&l()},i.prototype._read=function(a){if(!this.length)return this.push(null);a=Math.min(a,this.length),this.push(this.slice(0,a)),this.consume(a)},i.prototype.end=function(a){r.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},i.prototype._destroy=function(a,o){this._bufs.length=0,this.length=0,o(a)},i.prototype._isBufferList=function(a){return a instanceof i||a instanceof s||i.isBufferList(a)},i.isBufferList=s.isBufferList,e.exports=i,e.exports.BufferListStream=i,e.exports.BufferList=s}),aP=Te((t,e)=>{we(),ve(),_e();var r=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};e.exports=r}),S_=Te((t,e)=>{we(),ve(),_e();var r=e.exports,{Buffer:n}=(vt(),Ke(_t));r.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},r.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},r.requiredHeaderFlagsErrors={};for(let i in r.requiredHeaderFlags){let a=r.requiredHeaderFlags[i];r.requiredHeaderFlagsErrors[i]="Invalid header flag bits, must be 0x"+a.toString(16)+" for "+r.types[i]+" packet"}r.codes={};for(let i in r.types){let a=r.types[i];r.codes[a]=i}r.CMD_SHIFT=4,r.CMD_MASK=240,r.DUP_MASK=8,r.QOS_MASK=3,r.QOS_SHIFT=1,r.RETAIN_MASK=1,r.VARBYTEINT_MASK=127,r.VARBYTEINT_FIN_MASK=128,r.VARBYTEINT_MAX=268435455,r.SESSIONPRESENT_MASK=1,r.SESSIONPRESENT_HEADER=n.from([r.SESSIONPRESENT_MASK]),r.CONNACK_HEADER=n.from([r.codes.connack<[0,1].map(o=>[0,1].map(l=>{let u=n.alloc(1);return u.writeUInt8(r.codes[i]<n.from([i])),r.EMPTY={pingreq:n.from([r.codes.pingreq<<4,0]),pingresp:n.from([r.codes.pingresp<<4,0]),disconnect:n.from([r.codes.disconnect<<4,0])},r.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},r.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},r.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},r.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),lP=Te((t,e)=>{we(),ve(),_e();var r=1e3,n=r*60,s=n*60,i=s*24,a=i*7,o=i*365.25;e.exports=function(d,p){p=p||{};var m=typeof d;if(m==="string"&&d.length>0)return l(d);if(m==="number"&&isFinite(d))return p.long?c(d):u(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function l(d){if(d=String(d),!(d.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(p){var m=parseFloat(p[1]),b=(p[2]||"ms").toLowerCase();switch(b){case"years":case"year":case"yrs":case"yr":case"y":return m*o;case"weeks":case"week":case"w":return m*a;case"days":case"day":case"d":return m*i;case"hours":case"hour":case"hrs":case"hr":case"h":return m*s;case"minutes":case"minute":case"mins":case"min":case"m":return m*n;case"seconds":case"second":case"secs":case"sec":case"s":return m*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function u(d){var p=Math.abs(d);return p>=i?Math.round(d/i)+"d":p>=s?Math.round(d/s)+"h":p>=n?Math.round(d/n)+"m":p>=r?Math.round(d/r)+"s":d+"ms"}function c(d){var p=Math.abs(d);return p>=i?f(d,p,i,"day"):p>=s?f(d,p,s,"hour"):p>=n?f(d,p,n,"minute"):p>=r?f(d,p,r,"second"):d+" ms"}function f(d,p,m,b){var v=p>=m*1.5;return Math.round(d/m)+" "+b+(v?"s":"")}}),uP=Te((t,e)=>{we(),ve(),_e();function r(n){i.debug=i,i.default=i,i.coerce=f,i.disable=l,i.enable=o,i.enabled=u,i.humanize=lP(),i.destroy=d,Object.keys(n).forEach(p=>{i[p]=n[p]}),i.names=[],i.skips=[],i.formatters={};function s(p){let m=0;for(let b=0;b{if(L==="%%")return"%";P++;let U=i.formatters[W];if(typeof U=="function"){let H=y[P];L=U.call(T,H),y.splice(P,1),P--}return L}),i.formatArgs.call(T,y),(T.log||i.log).apply(T,y)}return E.namespace=p,E.useColors=i.useColors(),E.color=i.selectColor(p),E.extend=a,E.destroy=i.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(v!==i.namespaces&&(v=i.namespaces,_=i.enabled(p)),_),set:y=>{b=y}}),typeof i.init=="function"&&i.init(E),E}function a(p,m){let b=i(this.namespace+(typeof m>"u"?":":m)+p);return b.log=this.log,b}function o(p){i.save(p),i.namespaces=p,i.names=[],i.skips=[];let m,b=(typeof p=="string"?p:"").split(/[\s,]+/),v=b.length;for(m=0;m"-"+m)].join(",");return i.enable(""),p}function u(p){if(p[p.length-1]==="*")return!0;let m,b;for(m=0,b=i.skips.length;m{we(),ve(),_e(),t.formatArgs=n,t.save=s,t.load=i,t.useColors=r,t.storage=a(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;l.splice(1,0,u,"color: inherit");let c=0,f=0;l[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(c++,d==="%c"&&(f=c))}),l.splice(f,0,u)}t.log=console.debug||console.log||(()=>{});function s(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function i(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof ze<"u"&&"env"in ze&&(l=ze.env.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=uP()(t);var{formatters:o}=e.exports;o.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}),cP=Te((t,e)=>{we(),ve(),_e();var r=oP(),{EventEmitter:n}=(Os(),Ke(Ni)),s=aP(),i=S_(),a=hn()("mqtt-packet:parser"),o=class Gd extends n{constructor(){super(),this.parser=this.constructor.parser}static parser(u){return this instanceof Gd?(this.settings=u||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Gd().parser(u)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new s,this.error=null,this._list=r(),this._stateCounter=0}parse(u){for(this.error&&this._resetState(),this._list.append(u),a("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let u=this._list.readUInt8(0),c=u>>i.CMD_SHIFT;this.packet.cmd=i.types[c];let f=u&15,d=i.requiredHeaderFlags[c];return d!=null&&f!==d?this._emitError(new Error(i.requiredHeaderFlagsErrors[c])):(this.packet.retain=(u&i.RETAIN_MASK)!==0,this.packet.qos=u>>i.QOS_SHIFT&i.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(u&i.DUP_MASK)!==0,a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let u=this._parseVarByteNum(!0);return u&&(this.packet.length=u.value,this._list.consume(u.bytes)),a("_parseLength %d",u.value),!!u}_parsePayload(){a("_parsePayload: payload %O",this._list);let u=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}u=!0}return a("_parsePayload complete result: %s",u),u}_parseConnect(){a("_parseConnect");let u,c,f,d,p={},m=this.packet,b=this._parseString();if(b===null)return this._emitError(new Error("Cannot parse protocolId"));if(b!=="MQTT"&&b!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=b,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));p.username=this._list.readUInt8(this._pos)&i.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&i.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&i.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&i.WILL_RETAIN_MASK),_=(this._list.readUInt8(this._pos)&i.WILL_QOS_MASK)>>i.WILL_QOS_SHIFT;if(p.will)m.will={},m.will.retain=v,m.will.qos=_;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(_)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&i.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(m.properties=y)}let E=this._parseString();if(E===null)return this._emitError(new Error("Packet too short"));if(m.clientId=E,a("_parseConnect: packet.clientId: %s",m.clientId),p.will){if(m.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(m.will.properties=y)}if(u=this._parseString(),u===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=u,a("_parseConnect: packet.will.topic: %s",m.will.topic),c=this._parseBuffer(),c===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=c,a("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(p.username){if(d=this._parseString(),d===null)return this._emitError(new Error("Cannot parse username"));m.username=d,a("_parseConnect: packet.username: %s",m.username)}if(p.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));m.password=f}return this.settings=m,a("_parseConnect: complete"),m}_parseConnack(){a("_parseConnack");let u=this.packet;if(this._list.length<1)return null;let c=this._list.readUInt8(this._pos++);if(c>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(u.sessionPresent=!!(c&i.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?u.reasonCode=this._list.readUInt8(this._pos++):u.reasonCode=0;else{if(this._list.length<2)return null;u.returnCode=this._list.readUInt8(this._pos++)}if(u.returnCode===-1||u.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(u.properties=f)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let u=this.packet;if(u.topic=this._parseString(),u.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(u.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}u.payload=this._list.slice(this._pos,u.length),a("_parsePublish: payload from buffer list: %o",u.payload)}}_parseSubscribe(){a("_parseSubscribe");let u=this.packet,c,f,d,p,m,b,v;if(u.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(u.properties=_)}if(u.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=u.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(d=f&i.SUBSCRIBE_OPTIONS_QOS_MASK,d>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(b=(f>>i.SUBSCRIBE_OPTIONS_NL_SHIFT&i.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(f>>i.SUBSCRIBE_OPTIONS_RAP_SHIFT&i.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,p=f>>i.SUBSCRIBE_OPTIONS_RH_SHIFT&i.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:c,qos:d},this.settings.protocolVersion===5?(v.nl=b,v.rap=m,v.rh=p):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",v),u.subscriptions.push(v)}}}_parseSuback(){a("_parseSuback");let u=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}if(u.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&c!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(c)}}}_parseUnsubscribe(){a("_parseUnsubscribe");let u=this.packet;if(u.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}if(u.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(u.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!i.MQTT5_PUBACK_PUBREC_CODES[u.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!i.MQTT5_PUBREL_PUBCOMP_CODES[u.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}a("_parseConfirmation: packet.reasonCode `%d`",u.reasonCode)}else u.reasonCode=0;if(u.length>3){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}}return!0}_parseDisconnect(){let u=this.packet;if(a("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(u.reasonCode=this._parseByte(),i.MQTT5_DISCONNECT_CODES[u.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):u.reasonCode=0;let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");let u=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(u.reasonCode=this._parseByte(),!i.MQTT5_AUTH_CODES[u.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let c=this._parseProperties();return Object.getOwnPropertyNames(c).length&&(u.properties=c),a("_parseAuth: result: true"),!0}_parseMessageId(){let u=this.packet;return u.messageId=this._parseNum(),u.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",u.messageId),!0)}_parseString(u){let c=this._parseNum(),f=c+this._pos;if(c===-1||f>this._list.length||f>this.packet.length)return null;let d=this._list.toString("utf8",this._pos,f);return this._pos+=c,a("_parseString: result: %s",d),d}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let u=this._parseNum(),c=u+this._pos;if(u===-1||c>this._list.length||c>this.packet.length)return null;let f=this._list.slice(this._pos,c);return this._pos+=u,a("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let u=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",u),u}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let u=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",u),u}_parseVarByteNum(u){a("_parseVarByteNum");let c=4,f=0,d=1,p=0,m=!1,b,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),m?u?m={bytes:f,value:p}:m=p:m=!1,a("_parseVarByteNum: result: %o",m),m}_parseByte(){let u;return this._pos{we(),ve(),_e();var{Buffer:r}=(vt(),Ke(_t)),n=65536,s={},i=r.isBuffer(r.from([1,2]).subarray(0,1));function a(c){let f=r.allocUnsafe(2);return f.writeUInt8(c>>8,0),f.writeUInt8(c&255,1),f}function o(){for(let c=0;c0&&(f=f|128),p.writeUInt8(f,d++);while(c>0&&d<4);return c>0&&(d=0),i?p.subarray(0,d):p.slice(0,d)}function u(c){let f=r.allocUnsafe(4);return f.writeUInt32BE(c,0),f}e.exports={cache:s,generateCache:o,generateNumber:a,genBufVariableByteInt:l,generate4ByteBuffer:u}}),dP=Te((t,e)=>{we(),ve(),_e(),typeof ze>"u"||!ze.version||ze.version.indexOf("v0.")===0||ze.version.indexOf("v1.")===0&&ze.version.indexOf("v1.8.")!==0?e.exports={nextTick:r}:e.exports=ze;function r(n,s,i,a){if(typeof n!="function")throw new TypeError('"callback" argument must be a function');var o=arguments.length,l,u;switch(o){case 0:case 1:return ze.nextTick(n);case 2:return ze.nextTick(function(){n.call(null,s)});case 3:return ze.nextTick(function(){n.call(null,s,i)});case 4:return ze.nextTick(function(){n.call(null,s,i,a)});default:for(l=new Array(o-1),u=0;u{we(),ve(),_e();var r=S_(),{Buffer:n}=(vt(),Ke(_t)),s=n.allocUnsafe(0),i=n.from([0]),a=fP(),o=dP().nextTick,l=hn()("mqtt-packet:writeToStream"),u=a.cache,c=a.generateNumber,f=a.generateCache,d=a.genBufVariableByteInt,p=a.generate4ByteBuffer,m=te,b=!0;function v(j,D,X){switch(l("generate called"),D.cork&&(D.cork(),o(_,D)),b&&(b=!1,f()),l("generate: packet.cmd: %s",j.cmd),j.cmd){case"connect":return E(j,D);case"connack":return y(j,D,X);case"publish":return T(j,D,X);case"puback":case"pubrec":case"pubrel":case"pubcomp":return x(j,D,X);case"subscribe":return A(j,D,X);case"suback":return P(j,D,X);case"unsubscribe":return L(j,D,X);case"unsuback":return W(j,D,X);case"pingreq":case"pingresp":return U(j,D);case"disconnect":return H(j,D,X);case"auth":return C(j,D,X);default:return D.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===te},set(j){j?((!u||Object.keys(u).length===0)&&(b=!0),m=te):(b=!1,m=B)}});function _(j){j.uncork()}function E(j,D,X){let le=j||{},se=le.protocolId||"MQTT",M=le.protocolVersion||4,O=le.will,F=le.clean,R=le.keepalive||0,V=le.clientId||"",q=le.username,oe=le.password,Q=le.properties;F===void 0&&(F=!0);let G=0;if(!se||typeof se!="string"&&!n.isBuffer(se))return D.destroy(new Error("Invalid protocolId")),!1;if(G+=se.length+2,M!==3&&M!==4&&M!==5)return D.destroy(new Error("Invalid protocol version")),!1;if(G+=1,(typeof V=="string"||n.isBuffer(V))&&(V||M>=4)&&(V||F))G+=n.byteLength(V)+2;else{if(M<4)return D.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(F*1===0)return D.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof R!="number"||R<0||R>65535||R%1!==0)return D.destroy(new Error("Invalid keepalive")),!1;G+=2,G+=1;let re,z;if(M===5){if(re=ce(D,Q),!re)return!1;G+=re.length}if(O){if(typeof O!="object")return D.destroy(new Error("Invalid will")),!1;if(!O.topic||typeof O.topic!="string")return D.destroy(new Error("Invalid will topic")),!1;if(G+=n.byteLength(O.topic)+2,G+=2,O.payload)if(O.payload.length>=0)typeof O.payload=="string"?G+=n.byteLength(O.payload):G+=O.payload.length;else return D.destroy(new Error("Invalid will payload")),!1;if(z={},M===5){if(z=ce(D,O.properties),!z)return!1;G+=z.length}}let ie=!1;if(q!=null)if(K(q))ie=!0,G+=n.byteLength(q)+2;else return D.destroy(new Error("Invalid username")),!1;if(oe!=null){if(!ie)return D.destroy(new Error("Username is required to use password")),!1;if(K(oe))G+=ee(oe)+2;else return D.destroy(new Error("Invalid password")),!1}D.write(r.CONNECT_HEADER),N(D,G),Y(D,se),le.bridgeMode&&(M+=128),D.write(M===131?r.VERSION131:M===132?r.VERSION132:M===4?r.VERSION4:M===5?r.VERSION5:r.VERSION3);let he=0;return he|=q!=null?r.USERNAME_MASK:0,he|=oe!=null?r.PASSWORD_MASK:0,he|=O&&O.retain?r.WILL_RETAIN_MASK:0,he|=O&&O.qos?O.qos<0&&m(D,V),Q==null||Q.write(),l("publish: payload: %o",R),D.write(R)}function x(j,D,X){let le=X?X.protocolVersion:4,se=j||{},M=se.cmd||"puback",O=se.messageId,F=se.dup&&M==="pubrel"?r.DUP_MASK:0,R=0,V=se.reasonCode,q=se.properties,oe=le===5?3:2;if(M==="pubrel"&&(R=1),typeof O!="number")return D.destroy(new Error("Invalid messageId")),!1;let Q=null;if(le===5&&typeof q=="object"){if(Q=$(D,q,X,oe),!Q)return!1;oe+=Q.length}return D.write(r.ACKS[M][R][F][0]),oe===3&&(oe+=V!==0?1:-1),N(D,oe),m(D,O),le===5&&oe!==2&&D.write(n.from([V])),Q!==null?Q.write():oe===4&&D.write(n.from([0])),!0}function A(j,D,X){l("subscribe: packet: ");let le=X?X.protocolVersion:4,se=j||{},M=se.dup?r.DUP_MASK:0,O=se.messageId,F=se.subscriptions,R=se.properties,V=0;if(typeof O!="number")return D.destroy(new Error("Invalid messageId")),!1;V+=2;let q=null;if(le===5){if(q=ce(D,R),!q)return!1;V+=q.length}if(typeof F=="object"&&F.length)for(let Q=0;Q2)return D.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}V+=n.byteLength(G)+2+1}else return D.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",r.SUBSCRIBE_HEADER),D.write(r.SUBSCRIBE_HEADER[1][M?1:0][0]),N(D,V),m(D,O),q!==null&&q.write();let oe=!0;for(let Q of F){let G=Q.topic,re=Q.qos,z=+Q.nl,ie=+Q.rap,he=Q.rh,be;J(D,G),be=r.SUBSCRIBE_OPTIONS_QOS[re],le===5&&(be|=z?r.SUBSCRIBE_OPTIONS_NL:0,be|=ie?r.SUBSCRIBE_OPTIONS_RAP:0,be|=he?r.SUBSCRIBE_OPTIONS_RH[he]:0),oe=D.write(n.from([be]))}return oe}function P(j,D,X){let le=X?X.protocolVersion:4,se=j||{},M=se.messageId,O=se.granted,F=se.properties,R=0;if(typeof M!="number")return D.destroy(new Error("Invalid messageId")),!1;if(R+=2,typeof O=="object"&&O.length)for(let q=0;qr.VARBYTEINT_MAX)return j.destroy(new Error(`Invalid variable byte integer: ${D}`)),!1;let X=I[D];return X||(X=d(D),D<16384&&(I[D]=X)),l("writeVarByteInt: writing to stream: %o",X),j.write(X)}function J(j,D){let X=n.byteLength(D);return m(j,X),l("writeString: %s",D),j.write(D,"utf8")}function ne(j,D,X){J(j,D),J(j,X)}function te(j,D){return l("writeNumberCached: number: %d",D),l("writeNumberCached: %o",u[D]),j.write(u[D])}function B(j,D){let X=c(D);return l("writeNumberGenerated: %o",X),j.write(X)}function ae(j,D){let X=p(D);return l("write4ByteNumber: %o",X),j.write(X)}function Y(j,D){typeof D=="string"?J(j,D):D?(m(j,D.length),j.write(D)):m(j,0)}function ce(j,D){if(typeof D!="object"||D.length!=null)return{length:1,write(){me(j,{},0)}};let X=0;function le(se,M){let O=r.propertiesTypes[se],F=0;switch(O){case"byte":{if(typeof M!="boolean")return j.destroy(new Error(`Invalid ${se}: ${M}`)),!1;F+=2;break}case"int8":{if(typeof M!="number"||M<0||M>255)return j.destroy(new Error(`Invalid ${se}: ${M}`)),!1;F+=2;break}case"binary":{if(M&&M===null)return j.destroy(new Error(`Invalid ${se}: ${M}`)),!1;F+=1+n.byteLength(M)+2;break}case"int16":{if(typeof M!="number"||M<0||M>65535)return j.destroy(new Error(`Invalid ${se}: ${M}`)),!1;F+=3;break}case"int32":{if(typeof M!="number"||M<0||M>4294967295)return j.destroy(new Error(`Invalid ${se}: ${M}`)),!1;F+=5;break}case"var":{if(typeof M!="number"||M<0||M>268435455)return j.destroy(new Error(`Invalid ${se}: ${M}`)),!1;F+=1+n.byteLength(d(M));break}case"string":{if(typeof M!="string")return j.destroy(new Error(`Invalid ${se}: ${M}`)),!1;F+=3+n.byteLength(M.toString());break}case"pair":{if(typeof M!="object")return j.destroy(new Error(`Invalid ${se}: ${M}`)),!1;F+=Object.getOwnPropertyNames(M).reduce((R,V)=>{let q=M[V];return Array.isArray(q)?R+=q.reduce((oe,Q)=>(oe+=3+n.byteLength(V.toString())+2+n.byteLength(Q.toString()),oe),0):R+=3+n.byteLength(V.toString())+2+n.byteLength(M[V].toString()),R},0);break}default:return j.destroy(new Error(`Invalid property ${se}: ${M}`)),!1}return F}if(D)for(let se in D){let M=0,O=0,F=D[se];if(Array.isArray(F))for(let R=0;RM;){let F=se.shift();if(F&&D[F])delete D[F],O=ce(j,D);else return!1}return O}function ue(j,D,X){switch(r.propertiesTypes[D]){case"byte":{j.write(n.from([r.properties[D]])),j.write(n.from([+X]));break}case"int8":{j.write(n.from([r.properties[D]])),j.write(n.from([X]));break}case"binary":{j.write(n.from([r.properties[D]])),Y(j,X);break}case"int16":{j.write(n.from([r.properties[D]])),m(j,X);break}case"int32":{j.write(n.from([r.properties[D]])),ae(j,X);break}case"var":{j.write(n.from([r.properties[D]])),N(j,X);break}case"string":{j.write(n.from([r.properties[D]])),J(j,X);break}case"pair":{Object.getOwnPropertyNames(X).forEach(le=>{let se=X[le];Array.isArray(se)?se.forEach(M=>{j.write(n.from([r.properties[D]])),ne(j,le.toString(),M.toString())}):(j.write(n.from([r.properties[D]])),ne(j,le.toString(),se.toString()))});break}default:return j.destroy(new Error(`Invalid property ${D} value: ${X}`)),!1}}function me(j,D,X){N(j,X);for(let le in D)if(Object.prototype.hasOwnProperty.call(D,le)&&D[le]!==null){let se=D[le];if(Array.isArray(se))for(let M=0;M{we(),ve(),_e();var r=T_(),{EventEmitter:n}=(Os(),Ke(Ni)),{Buffer:s}=(vt(),Ke(_t));function i(o,l){let u=new a;return r(o,u,l),u.concat()}var a=class extends n{constructor(){super(),this._array=new Array(20),this._i=0}write(o){return this._array[this._i++]=o,!0}concat(){let o=0,l=new Array(this._array.length),u=this._array,c=0,f;for(f=0;f{we(),ve(),_e(),t.parser=cP().parser,t.generate=hP(),t.writeToStream=T_()}),x_=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let r=this.nextId++;return this.nextId===65536&&(this.nextId=1),r}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(r){return!0}deallocate(r){}clear(){}};t.default=e}),gP=Te((t,e)=>{we(),ve(),_e(),e.exports=n;function r(i){return i instanceof Il?Il.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function n(i){if(i=i||{},i.circles)return s(i);return i.proto?l:o;function a(u,c){for(var f=Object.keys(u),d=new Array(f.length),p=0;p{we(),ve(),_e(),e.exports=gP()()}),bP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0}),t.validateTopics=t.validateTopic=void 0;function e(n){let s=n.split("/");for(let i=0;i{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=Di(),r={objectMode:!0},n={clean:!0},s=class{constructor(i){this.options=i||{},this.options=Object.assign(Object.assign({},n),i),this._inflights=new Map}put(i,a){return this._inflights.set(i.messageId,i),a&&a(),this}createStream(){let i=new e.Readable(r),a=[],o=!1,l=0;return this._inflights.forEach((u,c)=>{a.push(u)}),i._read=()=>{!o&&l{if(!o)return o=!0,setTimeout(()=>{i.emit("close")},0),i},i}del(i,a){let o=this._inflights.get(i.messageId);return o?(this._inflights.delete(i.messageId),a(null,o)):a&&a(new Error("missing packet")),this}get(i,a){let o=this._inflights.get(i.messageId);return o?a(null,o):a&&a(new Error("missing packet")),this}close(i){this.options.clean&&(this._inflights=null),i&&i()}};t.default=s}),yP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=[0,16,128,131,135,144,145,151,153],r=(n,s,i)=>{n.log("handlePublish: packet %o",s),i=typeof i<"u"?i:n.noop;let a=s.topic.toString(),o=s.payload,{qos:l}=s,{messageId:u}=s,{options:c}=n;if(n.options.protocolVersion===5){let f;if(s.properties&&(f=s.properties.topicAlias),typeof f<"u")if(a.length===0)if(f>0&&f<=65535){let d=n.topicAliasRecv.getTopicByAlias(f);if(d)a=d,n.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,f);else{n.log("handlePublish :: unregistered topic alias. alias: %d",f),n.emit("error",new Error("Received unregistered Topic Alias"));return}}else{n.log("handlePublish :: topic alias out of range. alias: %d",f),n.emit("error",new Error("Received Topic Alias is out of range"));return}else if(n.topicAliasRecv.put(a,f))n.log("handlePublish :: registered topic: %s - alias: %d",a,f);else{n.log("handlePublish :: topic alias out of range. alias: %d",f),n.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(n.log("handlePublish: qos %d",l),l){case 2:{c.customHandleAcks(a,o,s,(f,d)=>{if(typeof f=="number"&&(d=f,f=null),f)return n.emit("error",f);if(e.indexOf(d)===-1)return n.emit("error",new Error("Wrong reason code for pubrec"));d?n._sendPacket({cmd:"pubrec",messageId:u,reasonCode:d},i):n.incomingStore.put(s,()=>{n._sendPacket({cmd:"pubrec",messageId:u},i)})});break}case 1:{c.customHandleAcks(a,o,s,(f,d)=>{if(typeof f=="number"&&(d=f,f=null),f)return n.emit("error",f);if(e.indexOf(d)===-1)return n.emit("error",new Error("Wrong reason code for puback"));d||n.emit("message",a,o,s),n.handleMessage(s,p=>{if(p)return i&&i(p);n._sendPacket({cmd:"puback",messageId:u,reasonCode:d},i)})});break}case 0:n.emit("message",a,o,s),n.handleMessage(s,i);break;default:n.log("handlePublish: unknown QoS. Doing nothing.");break}};t.default=r}),wP=Te((t,e)=>{e.exports={version:"5.10.3"}}),Ps=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0}),t.MQTTJS_VERSION=t.nextTick=t.applyMixin=t.ErrorWithReasonCode=void 0;var e=class C_ extends Error{constructor(s,i){super(s),this.code=i,Object.setPrototypeOf(this,C_.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};t.ErrorWithReasonCode=e;function r(n,s,i=!1){var a;let o=[s];for(;;){let l=o[0],u=Object.getPrototypeOf(l);if(u!=null&&u.prototype)o.unshift(u);else break}for(let l of o)for(let u of Object.getOwnPropertyNames(l.prototype))(i||u!=="constructor")&&Object.defineProperty(n.prototype,u,(a=Object.getOwnPropertyDescriptor(l.prototype,u))!==null&&a!==void 0?a:Object.create(null))}t.applyMixin=r,t.nextTick=typeof(ze==null?void 0:ze.nextTick)=="function"?ze.nextTick:n=>{setTimeout(n,0)},t.MQTTJS_VERSION=wP().version}),au=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=void 0;var e=Ps();t.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var r=(n,s)=>{let{messageId:i}=s,a=s.cmd,o=null,l=n.outgoing[i]?n.outgoing[i].cb:null,u=null;if(!l){n.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(n.log("_handleAck :: packet type",a),a){case"pubcomp":case"puback":{let c=s.reasonCode;c&&c>0&&c!==16?(u=new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[c]}`,c),n._removeOutgoingAndStoreMessage(i,()=>{l(u,s)})):n._removeOutgoingAndStoreMessage(i,l);break}case"pubrec":{o={cmd:"pubrel",qos:2,messageId:i};let c=s.reasonCode;c&&c>0&&c!==16?(u=new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[c]}`,c),n._removeOutgoingAndStoreMessage(i,()=>{l(u,s)})):n._sendPacket(o);break}case"suback":{delete n.outgoing[i],n.messageIdProvider.deallocate(i);let c=s.granted;for(let f=0;f{delete n._resubscribeTopics[m]})}}delete n.messageIdToTopic[i],n._invokeStoreProcessingQueue(),l(u,s);break}case"unsuback":{delete n.outgoing[i],n.messageIdProvider.deallocate(i),n._invokeStoreProcessingQueue(),l(null,s);break}default:n.emit("error",new Error("unrecognized packet type"))}n.disconnecting&&Object.keys(n.outgoing).length===0&&n.emit("outgoingEmpty")};t.default=r}),_P=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=Ps(),r=au(),n=(s,i)=>{let{options:a}=s,o=a.protocolVersion,l=o===5?i.reasonCode:i.returnCode;if(o!==5){let u=new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${o}`,l);s.emit("error",u);return}s.handleAuth(i,(u,c)=>{if(u){s.emit("error",u);return}if(l===24)s.reconnecting=!1,s._sendPacket(c);else{let f=new e.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[l]}`,l);s.emit("error",f)}})};t.default=n}),vP=Te(t=>{var p,m,b,v,_,E,y,T,x,A,P,L,W,U,H,C,I,N,J,ne,te,B,ae,Y,ce,$,Kd,me,ee,K,j,I_,X,le,se,Tn,xn,Xd,Ka,Xa,Ze,Qd,fo,G;we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,n=typeof ze=="object"&&ze?ze:{},s=(re,z,ie,he)=>{typeof n.emitWarning=="function"?n.emitWarning(re,z,ie,he):console.error(`[${ie}] ${z}: ${re}`)},i=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof i>"u"){a=class{constructor(){nt(this,"onabort");nt(this,"_onabort",[]);nt(this,"reason");nt(this,"aborted",!1)}addEventListener(ie,he){this._onabort.push(he)}},i=class{constructor(){nt(this,"signal",new a);z()}abort(ie){var he,be;if(!this.signal.aborted){this.signal.reason=ie,this.signal.aborted=!0;for(let S of this.signal._onabort)S(ie);(be=(he=this.signal).onabort)==null||be.call(he,ie)}}};let re=((p=n.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",z=()=>{re&&(re=!1,s("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",z))}}var o=re=>!r.has(re),l=re=>re&&re===Math.floor(re)&&re>0&&isFinite(re),u=re=>l(re)?re<=Math.pow(2,8)?Uint8Array:re<=Math.pow(2,16)?Uint16Array:re<=Math.pow(2,32)?Uint32Array:re<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(re){super(re),this.fill(0)}},f=(m=class{constructor(z,ie){nt(this,"heap");nt(this,"length");if(!ge(m,b))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new ie(z),this.length=0}static create(z){let ie=u(z);if(!ie)return[];Ne(m,b,!0);let he=new m(z,ie);return Ne(m,b,!1),he}push(z){this.heap[this.length++]=z}pop(){return this.heap[--this.length]}},b=new WeakMap,Ue(m,b,!1),m),d=(G=class{constructor(z){Ue(this,$);Ue(this,v);Ue(this,_);Ue(this,E);Ue(this,y);Ue(this,T);nt(this,"ttl");nt(this,"ttlResolution");nt(this,"ttlAutopurge");nt(this,"updateAgeOnGet");nt(this,"updateAgeOnHas");nt(this,"allowStale");nt(this,"noDisposeOnSet");nt(this,"noUpdateTTL");nt(this,"maxEntrySize");nt(this,"sizeCalculation");nt(this,"noDeleteOnFetchRejection");nt(this,"noDeleteOnStaleGet");nt(this,"allowStaleOnFetchAbort");nt(this,"allowStaleOnFetchRejection");nt(this,"ignoreFetchAbort");Ue(this,x);Ue(this,A);Ue(this,P);Ue(this,L);Ue(this,W);Ue(this,U);Ue(this,H);Ue(this,C);Ue(this,I);Ue(this,N);Ue(this,J);Ue(this,ne);Ue(this,te);Ue(this,B);Ue(this,ae);Ue(this,Y);Ue(this,ce);Ue(this,me,()=>{});Ue(this,ee,()=>{});Ue(this,K,()=>{});Ue(this,j,()=>!1);Ue(this,X,z=>{});Ue(this,le,(z,ie,he)=>{});Ue(this,se,(z,ie,he,be)=>{if(he||be)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:ie=0,ttl:he,ttlResolution:be=1,ttlAutopurge:S,updateAgeOnGet:g,updateAgeOnHas:h,allowStale:w,dispose:k,disposeAfter:Z,noDisposeOnSet:de,noUpdateTTL:ye,maxSize:Ae=0,maxEntrySize:Me=0,sizeCalculation:xe,fetchMethod:Pe,noDeleteOnFetchRejection:Oe,noDeleteOnStaleGet:Ve,allowStaleOnFetchRejection:ut,allowStaleOnFetchAbort:Je,ignoreFetchAbort:at}=z;if(ie!==0&&!l(ie))throw new TypeError("max option must be a nonnegative integer");let mt=ie?u(ie):Array;if(!mt)throw new Error("invalid max value: "+ie);if(Ne(this,v,ie),Ne(this,_,Ae),this.maxEntrySize=Me||ge(this,_),this.sizeCalculation=xe,this.sizeCalculation){if(!ge(this,_)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Pe!==void 0&&typeof Pe!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ne(this,T,Pe),Ne(this,Y,!!Pe),Ne(this,P,new Map),Ne(this,L,new Array(ie).fill(void 0)),Ne(this,W,new Array(ie).fill(void 0)),Ne(this,U,new mt(ie)),Ne(this,H,new mt(ie)),Ne(this,C,0),Ne(this,I,0),Ne(this,N,f.create(ie)),Ne(this,x,0),Ne(this,A,0),typeof k=="function"&&Ne(this,E,k),typeof Z=="function"?(Ne(this,y,Z),Ne(this,J,[])):(Ne(this,y,void 0),Ne(this,J,void 0)),Ne(this,ae,!!ge(this,E)),Ne(this,ce,!!ge(this,y)),this.noDisposeOnSet=!!de,this.noUpdateTTL=!!ye,this.noDeleteOnFetchRejection=!!Oe,this.allowStaleOnFetchRejection=!!ut,this.allowStaleOnFetchAbort=!!Je,this.ignoreFetchAbort=!!at,this.maxEntrySize!==0){if(ge(this,_)!==0&&!l(ge(this,_)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Re(this,$,I_).call(this)}if(this.allowStale=!!w,this.noDeleteOnStaleGet=!!Ve,this.updateAgeOnGet=!!g,this.updateAgeOnHas=!!h,this.ttlResolution=l(be)||be===0?be:1,this.ttlAutopurge=!!S,this.ttl=he||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Re(this,$,Kd).call(this)}if(ge(this,v)===0&&this.ttl===0&&ge(this,_)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!ge(this,v)&&!ge(this,_)){let ct="LRU_CACHE_UNBOUNDED";o(ct)&&(r.add(ct),s("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ct,G))}}static unsafeExposeInternals(z){return{starts:ge(z,te),ttls:ge(z,B),sizes:ge(z,ne),keyMap:ge(z,P),keyList:ge(z,L),valList:ge(z,W),next:ge(z,U),prev:ge(z,H),get head(){return ge(z,C)},get tail(){return ge(z,I)},free:ge(z,N),isBackgroundFetch:ie=>{var he;return Re(he=z,$,Ze).call(he,ie)},backgroundFetch:(ie,he,be,S)=>{var g;return Re(g=z,$,Xa).call(g,ie,he,be,S)},moveToTail:ie=>{var he;return Re(he=z,$,fo).call(he,ie)},indexes:ie=>{var he;return Re(he=z,$,Tn).call(he,ie)},rindexes:ie=>{var he;return Re(he=z,$,xn).call(he,ie)},isStale:ie=>{var he;return ge(he=z,j).call(he,ie)}}}get max(){return ge(this,v)}get maxSize(){return ge(this,_)}get calculatedSize(){return ge(this,A)}get size(){return ge(this,x)}get fetchMethod(){return ge(this,T)}get dispose(){return ge(this,E)}get disposeAfter(){return ge(this,y)}getRemainingTTL(z){return ge(this,P).has(z)?1/0:0}*entries(){for(let z of Re(this,$,Tn).call(this))ge(this,W)[z]!==void 0&&ge(this,L)[z]!==void 0&&!Re(this,$,Ze).call(this,ge(this,W)[z])&&(yield[ge(this,L)[z],ge(this,W)[z]])}*rentries(){for(let z of Re(this,$,xn).call(this))ge(this,W)[z]!==void 0&&ge(this,L)[z]!==void 0&&!Re(this,$,Ze).call(this,ge(this,W)[z])&&(yield[ge(this,L)[z],ge(this,W)[z]])}*keys(){for(let z of Re(this,$,Tn).call(this)){let ie=ge(this,L)[z];ie!==void 0&&!Re(this,$,Ze).call(this,ge(this,W)[z])&&(yield ie)}}*rkeys(){for(let z of Re(this,$,xn).call(this)){let ie=ge(this,L)[z];ie!==void 0&&!Re(this,$,Ze).call(this,ge(this,W)[z])&&(yield ie)}}*values(){for(let z of Re(this,$,Tn).call(this))ge(this,W)[z]!==void 0&&!Re(this,$,Ze).call(this,ge(this,W)[z])&&(yield ge(this,W)[z])}*rvalues(){for(let z of Re(this,$,xn).call(this))ge(this,W)[z]!==void 0&&!Re(this,$,Ze).call(this,ge(this,W)[z])&&(yield ge(this,W)[z])}[Symbol.iterator](){return this.entries()}find(z,ie={}){for(let he of Re(this,$,Tn).call(this)){let be=ge(this,W)[he],S=Re(this,$,Ze).call(this,be)?be.__staleWhileFetching:be;if(S!==void 0&&z(S,ge(this,L)[he],this))return this.get(ge(this,L)[he],ie)}}forEach(z,ie=this){for(let he of Re(this,$,Tn).call(this)){let be=ge(this,W)[he],S=Re(this,$,Ze).call(this,be)?be.__staleWhileFetching:be;S!==void 0&&z.call(ie,S,ge(this,L)[he],this)}}rforEach(z,ie=this){for(let he of Re(this,$,xn).call(this)){let be=ge(this,W)[he],S=Re(this,$,Ze).call(this,be)?be.__staleWhileFetching:be;S!==void 0&&z.call(ie,S,ge(this,L)[he],this)}}purgeStale(){let z=!1;for(let ie of Re(this,$,xn).call(this,{allowStale:!0}))ge(this,j).call(this,ie)&&(this.delete(ge(this,L)[ie]),z=!0);return z}dump(){let z=[];for(let ie of Re(this,$,Tn).call(this,{allowStale:!0})){let he=ge(this,L)[ie],be=ge(this,W)[ie],S=Re(this,$,Ze).call(this,be)?be.__staleWhileFetching:be;if(S===void 0||he===void 0)continue;let g={value:S};if(ge(this,B)&&ge(this,te)){g.ttl=ge(this,B)[ie];let h=e.now()-ge(this,te)[ie];g.start=Math.floor(Date.now()-h)}ge(this,ne)&&(g.size=ge(this,ne)[ie]),z.unshift([he,g])}return z}load(z){this.clear();for(let[ie,he]of z){if(he.start){let be=Date.now()-he.start;he.start=e.now()-be}this.set(ie,he.value,he)}}set(z,ie,he={}){var ye,Ae,Me,xe,Pe;if(ie===void 0)return this.delete(z),this;let{ttl:be=this.ttl,start:S,noDisposeOnSet:g=this.noDisposeOnSet,sizeCalculation:h=this.sizeCalculation,status:w}=he,{noUpdateTTL:k=this.noUpdateTTL}=he,Z=ge(this,se).call(this,z,ie,he.size||0,h);if(this.maxEntrySize&&Z>this.maxEntrySize)return w&&(w.set="miss",w.maxEntrySizeExceeded=!0),this.delete(z),this;let de=ge(this,x)===0?void 0:ge(this,P).get(z);if(de===void 0)de=ge(this,x)===0?ge(this,I):ge(this,N).length!==0?ge(this,N).pop():ge(this,x)===ge(this,v)?Re(this,$,Ka).call(this,!1):ge(this,x),ge(this,L)[de]=z,ge(this,W)[de]=ie,ge(this,P).set(z,de),ge(this,U)[ge(this,I)]=de,ge(this,H)[de]=ge(this,I),Ne(this,I,de),ea(this,x)._++,ge(this,le).call(this,de,Z,w),w&&(w.set="add"),k=!1;else{Re(this,$,fo).call(this,de);let Oe=ge(this,W)[de];if(ie!==Oe){if(ge(this,Y)&&Re(this,$,Ze).call(this,Oe)){Oe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ve}=Oe;Ve!==void 0&&!g&&(ge(this,ae)&&((ye=ge(this,E))==null||ye.call(this,Ve,z,"set")),ge(this,ce)&&((Ae=ge(this,J))==null||Ae.push([Ve,z,"set"])))}else g||(ge(this,ae)&&((Me=ge(this,E))==null||Me.call(this,Oe,z,"set")),ge(this,ce)&&((xe=ge(this,J))==null||xe.push([Oe,z,"set"])));if(ge(this,X).call(this,de),ge(this,le).call(this,de,Z,w),ge(this,W)[de]=ie,w){w.set="replace";let Ve=Oe&&Re(this,$,Ze).call(this,Oe)?Oe.__staleWhileFetching:Oe;Ve!==void 0&&(w.oldValue=Ve)}}else w&&(w.set="update")}if(be!==0&&!ge(this,B)&&Re(this,$,Kd).call(this),ge(this,B)&&(k||ge(this,K).call(this,de,be,S),w&&ge(this,ee).call(this,w,de)),!g&&ge(this,ce)&&ge(this,J)){let Oe=ge(this,J),Ve;for(;Ve=Oe==null?void 0:Oe.shift();)(Pe=ge(this,y))==null||Pe.call(this,...Ve)}return this}pop(){var z;try{for(;ge(this,x);){let ie=ge(this,W)[ge(this,C)];if(Re(this,$,Ka).call(this,!0),Re(this,$,Ze).call(this,ie)){if(ie.__staleWhileFetching)return ie.__staleWhileFetching}else if(ie!==void 0)return ie}}finally{if(ge(this,ce)&&ge(this,J)){let ie=ge(this,J),he;for(;he=ie==null?void 0:ie.shift();)(z=ge(this,y))==null||z.call(this,...he)}}}has(z,ie={}){let{updateAgeOnHas:he=this.updateAgeOnHas,status:be}=ie,S=ge(this,P).get(z);if(S!==void 0){let g=ge(this,W)[S];if(Re(this,$,Ze).call(this,g)&&g.__staleWhileFetching===void 0)return!1;if(ge(this,j).call(this,S))be&&(be.has="stale",ge(this,ee).call(this,be,S));else return he&&ge(this,me).call(this,S),be&&(be.has="hit",ge(this,ee).call(this,be,S)),!0}else be&&(be.has="miss");return!1}peek(z,ie={}){let{allowStale:he=this.allowStale}=ie,be=ge(this,P).get(z);if(be!==void 0&&(he||!ge(this,j).call(this,be))){let S=ge(this,W)[be];return Re(this,$,Ze).call(this,S)?S.__staleWhileFetching:S}}async fetch(z,ie={}){let{allowStale:he=this.allowStale,updateAgeOnGet:be=this.updateAgeOnGet,noDeleteOnStaleGet:S=this.noDeleteOnStaleGet,ttl:g=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:w=0,sizeCalculation:k=this.sizeCalculation,noUpdateTTL:Z=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:ye=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ae=this.ignoreFetchAbort,allowStaleOnFetchAbort:Me=this.allowStaleOnFetchAbort,context:xe,forceRefresh:Pe=!1,status:Oe,signal:Ve}=ie;if(!ge(this,Y))return Oe&&(Oe.fetch="get"),this.get(z,{allowStale:he,updateAgeOnGet:be,noDeleteOnStaleGet:S,status:Oe});let ut={allowStale:he,updateAgeOnGet:be,noDeleteOnStaleGet:S,ttl:g,noDisposeOnSet:h,size:w,sizeCalculation:k,noUpdateTTL:Z,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:ye,allowStaleOnFetchAbort:Me,ignoreFetchAbort:Ae,status:Oe,signal:Ve},Je=ge(this,P).get(z);if(Je===void 0){Oe&&(Oe.fetch="miss");let at=Re(this,$,Xa).call(this,z,Je,ut,xe);return at.__returned=at}else{let at=ge(this,W)[Je];if(Re(this,$,Ze).call(this,at)){let Fs=he&&at.__staleWhileFetching!==void 0;return Oe&&(Oe.fetch="inflight",Fs&&(Oe.returnedStale=!0)),Fs?at.__staleWhileFetching:at.__returned=at}let mt=ge(this,j).call(this,Je);if(!Pe&&!mt)return Oe&&(Oe.fetch="hit"),Re(this,$,fo).call(this,Je),be&&ge(this,me).call(this,Je),Oe&&ge(this,ee).call(this,Oe,Je),at;let ct=Re(this,$,Xa).call(this,z,Je,ut,xe),Wi=ct.__staleWhileFetching!==void 0&&he;return Oe&&(Oe.fetch=mt?"stale":"refresh",Wi&&mt&&(Oe.returnedStale=!0)),Wi?ct.__staleWhileFetching:ct.__returned=ct}}get(z,ie={}){let{allowStale:he=this.allowStale,updateAgeOnGet:be=this.updateAgeOnGet,noDeleteOnStaleGet:S=this.noDeleteOnStaleGet,status:g}=ie,h=ge(this,P).get(z);if(h!==void 0){let w=ge(this,W)[h],k=Re(this,$,Ze).call(this,w);return g&&ge(this,ee).call(this,g,h),ge(this,j).call(this,h)?(g&&(g.get="stale"),k?(g&&he&&w.__staleWhileFetching!==void 0&&(g.returnedStale=!0),he?w.__staleWhileFetching:void 0):(S||this.delete(z),g&&he&&(g.returnedStale=!0),he?w:void 0)):(g&&(g.get="hit"),k?w.__staleWhileFetching:(Re(this,$,fo).call(this,h),be&&ge(this,me).call(this,h),w))}else g&&(g.get="miss")}delete(z){var he,be,S,g;let ie=!1;if(ge(this,x)!==0){let h=ge(this,P).get(z);if(h!==void 0)if(ie=!0,ge(this,x)===1)this.clear();else{ge(this,X).call(this,h);let w=ge(this,W)[h];Re(this,$,Ze).call(this,w)?w.__abortController.abort(new Error("deleted")):(ge(this,ae)||ge(this,ce))&&(ge(this,ae)&&((he=ge(this,E))==null||he.call(this,w,z,"delete")),ge(this,ce)&&((be=ge(this,J))==null||be.push([w,z,"delete"]))),ge(this,P).delete(z),ge(this,L)[h]=void 0,ge(this,W)[h]=void 0,h===ge(this,I)?Ne(this,I,ge(this,H)[h]):h===ge(this,C)?Ne(this,C,ge(this,U)[h]):(ge(this,U)[ge(this,H)[h]]=ge(this,U)[h],ge(this,H)[ge(this,U)[h]]=ge(this,H)[h]),ea(this,x)._--,ge(this,N).push(h)}}if(ge(this,ce)&&((S=ge(this,J))!=null&&S.length)){let h=ge(this,J),w;for(;w=h==null?void 0:h.shift();)(g=ge(this,y))==null||g.call(this,...w)}return ie}clear(){var z,ie,he;for(let be of Re(this,$,xn).call(this,{allowStale:!0})){let S=ge(this,W)[be];if(Re(this,$,Ze).call(this,S))S.__abortController.abort(new Error("deleted"));else{let g=ge(this,L)[be];ge(this,ae)&&((z=ge(this,E))==null||z.call(this,S,g,"delete")),ge(this,ce)&&((ie=ge(this,J))==null||ie.push([S,g,"delete"]))}}if(ge(this,P).clear(),ge(this,W).fill(void 0),ge(this,L).fill(void 0),ge(this,B)&&ge(this,te)&&(ge(this,B).fill(0),ge(this,te).fill(0)),ge(this,ne)&&ge(this,ne).fill(0),Ne(this,C,0),Ne(this,I,0),ge(this,N).length=0,Ne(this,A,0),Ne(this,x,0),ge(this,ce)&&ge(this,J)){let be=ge(this,J),S;for(;S=be==null?void 0:be.shift();)(he=ge(this,y))==null||he.call(this,...S)}}},v=new WeakMap,_=new WeakMap,E=new WeakMap,y=new WeakMap,T=new WeakMap,x=new WeakMap,A=new WeakMap,P=new WeakMap,L=new WeakMap,W=new WeakMap,U=new WeakMap,H=new WeakMap,C=new WeakMap,I=new WeakMap,N=new WeakMap,J=new WeakMap,ne=new WeakMap,te=new WeakMap,B=new WeakMap,ae=new WeakMap,Y=new WeakMap,ce=new WeakMap,$=new WeakSet,Kd=function(){let z=new c(ge(this,v)),ie=new c(ge(this,v));Ne(this,B,z),Ne(this,te,ie),Ne(this,K,(S,g,h=e.now())=>{if(ie[S]=g!==0?h:0,z[S]=g,g!==0&&this.ttlAutopurge){let w=setTimeout(()=>{ge(this,j).call(this,S)&&this.delete(ge(this,L)[S])},g+1);w.unref&&w.unref()}}),Ne(this,me,S=>{ie[S]=z[S]!==0?e.now():0}),Ne(this,ee,(S,g)=>{if(z[g]){let h=z[g],w=ie[g];S.ttl=h,S.start=w,S.now=he||be();let k=S.now-w;S.remainingTTL=h-k}});let he=0,be=()=>{let S=e.now();if(this.ttlResolution>0){he=S;let g=setTimeout(()=>he=0,this.ttlResolution);g.unref&&g.unref()}return S};this.getRemainingTTL=S=>{let g=ge(this,P).get(S);if(g===void 0)return 0;let h=z[g],w=ie[g];if(h===0||w===0)return 1/0;let k=(he||be())-w;return h-k},Ne(this,j,S=>z[S]!==0&&ie[S]!==0&&(he||be())-ie[S]>z[S])},me=new WeakMap,ee=new WeakMap,K=new WeakMap,j=new WeakMap,I_=function(){let z=new c(ge(this,v));Ne(this,A,0),Ne(this,ne,z),Ne(this,X,ie=>{Ne(this,A,ge(this,A)-z[ie]),z[ie]=0}),Ne(this,se,(ie,he,be,S)=>{if(Re(this,$,Ze).call(this,he))return 0;if(!l(be))if(S){if(typeof S!="function")throw new TypeError("sizeCalculation must be a function");if(be=S(he,ie),!l(be))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return be}),Ne(this,le,(ie,he,be)=>{if(z[ie]=he,ge(this,_)){let S=ge(this,_)-z[ie];for(;ge(this,A)>S;)Re(this,$,Ka).call(this,!0)}Ne(this,A,ge(this,A)+z[ie]),be&&(be.entrySize=he,be.totalCalculatedSize=ge(this,A))})},X=new WeakMap,le=new WeakMap,se=new WeakMap,Tn=function*({allowStale:z=this.allowStale}={}){if(ge(this,x))for(let ie=ge(this,I);!(!Re(this,$,Xd).call(this,ie)||((z||!ge(this,j).call(this,ie))&&(yield ie),ie===ge(this,C)));)ie=ge(this,H)[ie]},xn=function*({allowStale:z=this.allowStale}={}){if(ge(this,x))for(let ie=ge(this,C);!(!Re(this,$,Xd).call(this,ie)||((z||!ge(this,j).call(this,ie))&&(yield ie),ie===ge(this,I)));)ie=ge(this,U)[ie]},Xd=function(z){return z!==void 0&&ge(this,P).get(ge(this,L)[z])===z},Ka=function(z){var S,g;let ie=ge(this,C),he=ge(this,L)[ie],be=ge(this,W)[ie];return ge(this,Y)&&Re(this,$,Ze).call(this,be)?be.__abortController.abort(new Error("evicted")):(ge(this,ae)||ge(this,ce))&&(ge(this,ae)&&((S=ge(this,E))==null||S.call(this,be,he,"evict")),ge(this,ce)&&((g=ge(this,J))==null||g.push([be,he,"evict"]))),ge(this,X).call(this,ie),z&&(ge(this,L)[ie]=void 0,ge(this,W)[ie]=void 0,ge(this,N).push(ie)),ge(this,x)===1?(Ne(this,C,Ne(this,I,0)),ge(this,N).length=0):Ne(this,C,ge(this,U)[ie]),ge(this,P).delete(he),ea(this,x)._--,ie},Xa=function(z,ie,he,be){let S=ie===void 0?void 0:ge(this,W)[ie];if(Re(this,$,Ze).call(this,S))return S;let g=new i,{signal:h}=he;h==null||h.addEventListener("abort",()=>g.abort(h.reason),{signal:g.signal});let w={signal:g.signal,options:he,context:be},k=(xe,Pe=!1)=>{let{aborted:Oe}=g.signal,Ve=he.ignoreFetchAbort&&xe!==void 0;if(he.status&&(Oe&&!Pe?(he.status.fetchAborted=!0,he.status.fetchError=g.signal.reason,Ve&&(he.status.fetchAbortIgnored=!0)):he.status.fetchResolved=!0),Oe&&!Ve&&!Pe)return de(g.signal.reason);let ut=Ae;return ge(this,W)[ie]===Ae&&(xe===void 0?ut.__staleWhileFetching?ge(this,W)[ie]=ut.__staleWhileFetching:this.delete(z):(he.status&&(he.status.fetchUpdated=!0),this.set(z,xe,w.options))),xe},Z=xe=>(he.status&&(he.status.fetchRejected=!0,he.status.fetchError=xe),de(xe)),de=xe=>{let{aborted:Pe}=g.signal,Oe=Pe&&he.allowStaleOnFetchAbort,Ve=Oe||he.allowStaleOnFetchRejection,ut=Ve||he.noDeleteOnFetchRejection,Je=Ae;if(ge(this,W)[ie]===Ae&&(!ut||Je.__staleWhileFetching===void 0?this.delete(z):Oe||(ge(this,W)[ie]=Je.__staleWhileFetching)),Ve)return he.status&&Je.__staleWhileFetching!==void 0&&(he.status.returnedStale=!0),Je.__staleWhileFetching;if(Je.__returned===Je)throw xe},ye=(xe,Pe)=>{var Ve;let Oe=(Ve=ge(this,T))==null?void 0:Ve.call(this,z,S,w);Oe&&Oe instanceof Promise&&Oe.then(ut=>xe(ut===void 0?void 0:ut),Pe),g.signal.addEventListener("abort",()=>{(!he.ignoreFetchAbort||he.allowStaleOnFetchAbort)&&(xe(void 0),he.allowStaleOnFetchAbort&&(xe=ut=>k(ut,!0)))})};he.status&&(he.status.fetchDispatched=!0);let Ae=new Promise(ye).then(k,Z),Me=Object.assign(Ae,{__abortController:g,__staleWhileFetching:S,__returned:void 0});return ie===void 0?(this.set(z,Me,{...w.options,status:void 0}),ie=ge(this,P).get(z)):ge(this,W)[ie]=Me,Me},Ze=function(z){if(!ge(this,Y))return!1;let ie=z;return!!ie&&ie instanceof Promise&&ie.hasOwnProperty("__staleWhileFetching")&&ie.__abortController instanceof i},Qd=function(z,ie){ge(this,H)[ie]=z,ge(this,U)[z]=ie},fo=function(z){z!==ge(this,I)&&(z===ge(this,C)?Ne(this,C,ge(this,U)[z]):Re(this,$,Qd).call(this,ge(this,H)[z],ge(this,U)[z]),Re(this,$,Qd).call(this,ge(this,I),z),Ne(this,I,z))},G);t.LRUCache=d}),yn=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.ContainerIterator=t.Container=t.Base=void 0;var e=class{constructor(s=0){this.iteratorType=s}equals(s){return this.o===s.o}};t.ContainerIterator=e;var r=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};t.Base=r;var n=class extends r{};t.Container=n}),EP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=yn(),r=class extends e.Base{constructor(s=[]){super(),this.S=[];let i=this;s.forEach(function(a){i.push(a)})}clear(){this.i=0,this.S=[]}push(s){return this.S.push(s),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},n=r;t.default=n}),SP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=yn(),r=class extends e.Base{constructor(s=[]){super(),this.j=0,this.q=[];let i=this;s.forEach(function(a){i.push(a)})}clear(){this.q=[],this.i=this.j=0}push(s){let i=this.q.length;if(this.j/i>.5&&this.j+this.i>=i&&i>4096){let a=this.i;for(let o=0;o{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=yn(),r=class extends e.Base{constructor(s=[],i=function(o,l){return o>l?-1:o>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,o)}m(s){let i=this.C[s];for(;s>0;){let a=s-1>>1,o=this.C[a];if(this.v(o,i)<=0)break;this.C[s]=o,s=a}this.C[s]=i}k(s,i){let a=this.C[s];for(;s0&&(o=l,u=this.C[l]),this.v(u,a)>=0)break;this.C[s]=u,s=o}this.C[s]=a}clear(){this.i=0,this.C.length=0}push(s){this.C.push(s),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let s=this.C[0],i=this.C.pop();return this.i-=1,this.i&&(this.C[0]=i,this.k(0,this.i>>1)),s}top(){return this.C[0]}find(s){return this.C.indexOf(s)>=0}remove(s){let i=this.C.indexOf(s);return i<0?!1:(i===0?this.pop():i===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(i,1,this.C.pop()),this.i-=1,this.m(i),this.k(i,this.i>>1)),!0)}updateItem(s){let i=this.C.indexOf(s);return i<0?!1:(this.m(i),this.k(i,this.i>>1),!0)}toArray(){return[...this.C]}},n=r;t.default=n}),mp=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=yn(),r=class extends e.Container{},n=r;t.default=n}),wn=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.throwIteratorAccessError=e;function e(){throw new RangeError("Iterator access denied!")}}),M_=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.RandomIterator=void 0;var e=yn(),r=wn(),n=class extends e.ContainerIterator{constructor(s,i){super(i),this.o=s,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,r.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,r.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,r.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,r.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(s){this.container.setElementByPos(this.o,s)}};t.RandomIterator=n}),xP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=n(mp()),r=M_();function n(o){return o&&o.t?o:{default:o}}var s=class O_ extends r.RandomIterator{constructor(l,u,c){super(l,c),this.container=u}copy(){return new O_(this.o,this.container,this.iteratorType)}},i=class extends e.default{constructor(o=[],l=!0){if(super(),Array.isArray(o))this.J=l?[...o]:o,this.i=o.length;else{this.J=[];let u=this;o.forEach(function(c){u.pushBack(c)})}}clear(){this.i=0,this.J.length=0}begin(){return new s(0,this)}end(){return new s(this.i,this)}rBegin(){return new s(this.i-1,this,1)}rEnd(){return new s(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;return this.J[o]}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;return this.J.splice(o,1),this.i-=1,this.i}eraseElementByValue(o){let l=0;for(let u=0;uthis.i-1)throw new RangeError;this.J[o]=l}insert(o,l,u=1){if(o<0||o>this.i)throw new RangeError;return this.J.splice(o,0,...new Array(u).fill(l)),this.i+=u,this.i}find(o){for(let l=0;l{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=s(mp()),r=yn(),n=wn();function s(l){return l&&l.t?l:{default:l}}var i=class P_ extends r.ContainerIterator{constructor(u,c,f,d){super(d),this.o=u,this.h=c,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.l}set pointer(u){this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.l=u}copy(){return new P_(this.o,this.h,this.container,this.iteratorType)}},a=class extends e.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let u=this;l.forEach(function(c){u.pushBack(c)})}V(l){let{L:u,B:c}=l;u.B=c,c.L=u,l===this.p&&(this.p=c),l===this._&&(this._=u),this.i-=1}G(l,u){let c=u.B,f={l,L:u,B:c};u.B=f,c.L=f,u===this.h&&(this.p=f),c===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;return u.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;return this.V(u),this.i}eraseElementByValue(l){let u=this.p;for(;u!==this.h;)u.l===l&&this.V(u),u=u.B;return this.i}eraseElementByIterator(l){let u=l.o;return u===this.h&&(0,n.throwIteratorAccessError)(),l=l.next(),this.V(u),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,u){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;c.l=u}insert(l,u,c=1){if(l<0||l>this.i)throw new RangeError;if(c<=0)return this.i;if(l===0)for(;c--;)this.pushFront(u);else if(l===this.i)for(;c--;)this.pushBack(u);else{let f=this.p;for(let p=1;p{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=n(mp()),r=M_();function n(o){return o&&o.t?o:{default:o}}var s=class k_ extends r.RandomIterator{constructor(l,u,c){super(l,c),this.container=u}copy(){return new k_(this.o,this.container,this.iteratorType)}},i=class extends e.default{constructor(o=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let u=(()=>{if(typeof o.length=="number")return o.length;if(typeof o.size=="number")return o.size;if(typeof o.size=="function")return o.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(u/this.F),1);for(let d=0;d>1)-(c>>1),this.D=this.N=this.F-u%this.F>>1;let f=this;o.forEach(function(d){f.pushBack(d)})}T(){let o=[],l=Math.max(this.P>>1,1);for(let u=0;u>1}begin(){return new s(0,this)}end(){return new s(this.i,this)}rBegin(){return new s(this.i-1,this,1)}rEnd(){return new s(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(o){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,o}pushFront(o){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=o,this.i}popFront(){if(this.i===0)return;let o=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:u}=this.O(o);return this.A[l][u]}setElementByPos(o,l){if(o<0||o>this.i-1)throw new RangeError;let{curNodeBucketIndex:u,curNodePointerIndex:c}=this.O(o);this.A[u][c]=l}insert(o,l,u=1){if(o<0||o>this.i)throw new RangeError;if(o===0)for(;u--;)this.pushFront(l);else if(o===this.i)for(;u--;)this.pushBack(l);else{let c=[];for(let f=o;fthis.i-1)throw new RangeError;if(o===0)this.popFront();else if(o===this.i-1)this.popBack();else{let l=[];for(let c=o+1;co;)this.popBack();return this.i}sort(o){let l=[];for(let u=0;u{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.TreeNodeEnableIndex=t.TreeNode=void 0;var e=class{constructor(n,s){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=n,this.l=s}L(){let n=this;if(n.ee===1&&n.tt.tt===n)n=n.W;else if(n.U)for(n=n.U;n.W;)n=n.W;else{let s=n.tt;for(;s.U===n;)n=s,s=n.tt;n=s}return n}B(){let n=this;if(n.W){for(n=n.W;n.U;)n=n.U;return n}else{let s=n.tt;for(;s.W===n;)n=s,s=n.tt;return n.W!==s?s:n}}te(){let n=this.tt,s=this.W,i=s.U;return n.tt===this?n.tt=s:n.U===this?n.U=s:n.W=s,s.tt=n,s.U=this,this.tt=s,this.W=i,i&&(i.tt=this),s}se(){let n=this.tt,s=this.U,i=s.W;return n.tt===this?n.tt=s:n.U===this?n.U=s:n.W=s,s.tt=n,s.W=this,this.tt=s,this.U=i,i&&(i.tt=this),s}};t.TreeNode=e;var r=class extends e{constructor(){super(...arguments),this.rt=1}te(){let n=super.te();return this.ie(),n.ie(),n}se(){let n=super.se();return this.ie(),n.ie(),n}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};t.TreeNodeEnableIndex=r}),R_=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=IP(),r=yn(),n=wn(),s=class extends r.Container{constructor(a=function(l,u){return lu?1:0},o=!1){super(),this.Y=void 0,this.v=a,o?(this.re=e.TreeNodeEnableIndex,this.M=function(l,u,c){let f=this.ne(l,u,c);if(f){let d=f.tt;for(;d!==this.h;)d.rt+=1,d=d.tt;let p=this.he(f);if(p){let{parentNode:m,grandParent:b,curNode:v}=p;m.ie(),b.ie(),v.ie()}}return this.i},this.V=function(l){let u=this.fe(l);for(;u!==this.h;)u.rt-=1,u=u.tt}):(this.re=e.TreeNode,this.M=function(l,u,c){let f=this.ne(l,u,c);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(a,o){let l=this.h;for(;a;){let u=this.v(a.u,o);if(u<0)a=a.W;else if(u>0)l=a,a=a.U;else return a}return l}Z(a,o){let l=this.h;for(;a;)this.v(a.u,o)<=0?a=a.W:(l=a,a=a.U);return l}$(a,o){let l=this.h;for(;a;){let u=this.v(a.u,o);if(u<0)l=a,a=a.W;else if(u>0)a=a.U;else return a}return l}rr(a,o){let l=this.h;for(;a;)this.v(a.u,o)<0?(l=a,a=a.W):a=a.U;return l}ue(a){for(;;){let o=a.tt;if(o===this.h)return;if(a.ee===1){a.ee=0;return}if(a===o.U){let l=o.W;if(l.ee===1)l.ee=0,o.ee=1,o===this.Y?this.Y=o.te():o.te();else if(l.W&&l.W.ee===1){l.ee=o.ee,o.ee=0,l.W.ee=0,o===this.Y?this.Y=o.te():o.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,a=o)}else{let l=o.U;if(l.ee===1)l.ee=0,o.ee=1,o===this.Y?this.Y=o.se():o.se();else if(l.U&&l.U.ee===1){l.ee=o.ee,o.ee=0,l.U.ee=0,o===this.Y?this.Y=o.se():o.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,a=o)}}}fe(a){if(this.i===1)return this.clear(),this.h;let o=a;for(;o.U||o.W;){if(o.W)for(o=o.W;o.U;)o=o.U;else o=o.U;[a.u,o.u]=[o.u,a.u],[a.l,o.l]=[o.l,a.l],a=o}this.h.U===o?this.h.U=o.tt:this.h.W===o&&(this.h.W=o.tt),this.ue(o);let l=o.tt;return o===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(a,o){return a===void 0?!1:this.oe(a.U,o)||o(a)?!0:this.oe(a.W,o)}he(a){for(;;){let o=a.tt;if(o.ee===0)return;let l=o.tt;if(o===l.U){let u=l.W;if(u&&u.ee===1){if(u.ee=o.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===o.W){if(a.ee=0,a.U&&(a.U.tt=o),a.W&&(a.W.tt=l),o.W=a.U,l.U=a.W,a.U=o,a.W=l,l===this.Y)this.Y=a,this.h.tt=a;else{let c=l.tt;c.U===l?c.U=a:c.W=a}return a.tt=l.tt,o.tt=a,l.tt=a,l.ee=1,{parentNode:o,grandParent:l,curNode:a}}else o.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let u=l.U;if(u&&u.ee===1){if(u.ee=o.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===o.U){if(a.ee=0,a.U&&(a.U.tt=l),a.W&&(a.W.tt=o),l.W=a.U,o.U=a.W,a.U=l,a.W=o,l===this.Y)this.Y=a,this.h.tt=a;else{let c=l.tt;c.U===l?c.U=a:c.W=a}return a.tt=l.tt,o.tt=a,l.tt=a,l.ee=1,{parentNode:o,grandParent:l,curNode:a}}else o.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(a,o,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(a,o),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let u,c=this.h.U,f=this.v(c.u,a);if(f===0){c.l=o;return}else if(f>0)c.U=new this.re(a,o),c.U.tt=c,u=c.U,this.h.U=u;else{let d=this.h.W,p=this.v(d.u,a);if(p===0){d.l=o;return}else if(p<0)d.W=new this.re(a,o),d.W.tt=d,u=d.W,this.h.W=u;else{if(l!==void 0){let m=l.o;if(m!==this.h){let b=this.v(m.u,a);if(b===0){m.l=o;return}else if(b>0){let v=m.L(),_=this.v(v.u,a);if(_===0){v.l=o;return}else _<0&&(u=new this.re(a,o),v.W===void 0?(v.W=u,u.tt=v):(m.U=u,u.tt=m))}}}if(u===void 0)for(u=this.Y;;){let m=this.v(u.u,a);if(m>0){if(u.U===void 0){u.U=new this.re(a,o),u.U.tt=u,u=u.U;break}u=u.U}else if(m<0){if(u.W===void 0){u.W=new this.re(a,o),u.W.tt=u,u=u.W;break}u=u.W}else{u.l=o;return}}}}return this.i+=1,u}I(a,o){for(;a;){let l=this.v(a.u,o);if(l<0)a=a.W;else if(l>0)a=a.U;else return a}return a||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(a,o){let l=a.o;if(l===this.h&&(0,n.throwIteratorAccessError)(),this.i===1)return l.u=o,!0;if(l===this.h.U)return this.v(l.B().u,o)>0?(l.u=o,!0):!1;if(l===this.h.W)return this.v(l.L().u,o)<0?(l.u=o,!0):!1;let u=l.L().u;if(this.v(u,o)>=0)return!1;let c=l.B().u;return this.v(c,o)<=0?!1:(l.u=o,!0)}eraseElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let o=0,l=this;return this.oe(this.Y,function(u){return a===o?(l.V(u),!0):(o+=1,!1)}),this.i}eraseElementByKey(a){if(this.i===0)return!1;let o=this.I(this.Y,a);return o===this.h?!1:(this.V(o),!0)}eraseElementByIterator(a){let o=a.o;o===this.h&&(0,n.throwIteratorAccessError)();let l=o.W===void 0;return a.iteratorType===0?l&&a.next():(!l||o.U===void 0)&&a.next(),this.V(o),a}forEach(a){let o=0;for(let l of this)a(l,o++,this)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let o,l=0;for(let u of this){if(l===a){o=u;break}l+=1}return o}getHeight(){if(this.i===0)return 0;let a=function(o){return o?Math.max(a(o.U),a(o.W))+1:0};return a(this.Y)}},i=s;t.default=i}),L_=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=yn(),r=wn(),n=class extends e.ContainerIterator{constructor(i,a,o){super(o),this.o=i,this.h=a,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let i=this.o,a=this.h.tt;if(i===this.h)return a?a.rt-1:0;let o=0;for(i.U&&(o+=i.U.rt);i!==a;){let l=i.tt;i===l.W&&(o+=1,l.U&&(o+=l.U.rt)),i=l}return o}},s=n;t.default=s}),MP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=s(R_()),r=s(L_()),n=wn();function s(l){return l&&l.t?l:{default:l}}var i=class N_ extends r.default{constructor(u,c,f,d){super(u,c,d),this.container=f}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new N_(this.o,this.h,this.container,this.iteratorType)}},a=class extends e.default{constructor(l=[],u,c){super(u,c);let f=this;l.forEach(function(d){f.insert(d)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,u){return this.M(l,void 0,u)}find(l){let u=this.I(this.Y,l);return new i(u,this.h,this)}lowerBound(l){let u=this.X(this.Y,l);return new i(u,this.h,this)}upperBound(l){let u=this.Z(this.Y,l);return new i(u,this.h,this)}reverseLowerBound(l){let u=this.$(this.Y,l);return new i(u,this.h,this)}reverseUpperBound(l){let u=this.rr(this.Y,l);return new i(u,this.h,this)}union(l){let u=this;return l.forEach(function(c){u.insert(c)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},o=a;t.default=o}),OP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=s(R_()),r=s(L_()),n=wn();function s(l){return l&&l.t?l:{default:l}}var i=class D_ extends r.default{constructor(u,c,f,d){super(u,c,d),this.container=f}get pointer(){this.o===this.h&&(0,n.throwIteratorAccessError)();let u=this;return new Proxy([],{get(c,f){if(f==="0")return u.o.u;if(f==="1")return u.o.l},set(c,f,d){if(f!=="1")throw new TypeError("props must be 1");return u.o.l=d,!0}})}copy(){return new D_(this.o,this.h,this.container,this.iteratorType)}},a=class extends e.default{constructor(l=[],u,c){super(u,c);let f=this;l.forEach(function(d){f.setElement(d[0],d[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let u=this.X(this.Y,l);return new i(u,this.h,this)}upperBound(l){let u=this.Z(this.Y,l);return new i(u,this.h,this)}reverseLowerBound(l){let u=this.$(this.Y,l);return new i(u,this.h,this)}reverseUpperBound(l){let u=this.rr(this.Y,l);return new i(u,this.h,this)}setElement(l,u,c){return this.M(l,u,c)}find(l){let u=this.I(this.Y,l);return new i(u,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let u=this;return l.forEach(function(c){u.setElement(c[0],c[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},o=a;t.default=o}),B_=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=e;function e(r){let n=typeof r;return n==="object"&&r!==null||n==="function"}}),$_=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.HashContainerIterator=t.HashContainer=void 0;var e=yn(),r=s(B_()),n=wn();function s(o){return o&&o.t?o:{default:o}}var i=class extends e.ContainerIterator{constructor(o,l,u){super(u),this.o=o,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this})}};t.HashContainerIterator=i;var a=class extends e.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(o){let{L:l,B:u}=o;l.B=u,u.L=l,o===this.p&&(this.p=u),o===this._&&(this._=l),this.i-=1}M(o,l,u){u===void 0&&(u=(0,r.default)(o));let c;if(u){let f=o[this.HASH_TAG];if(f!==void 0)return this.H[f].l=l,this.i;Object.defineProperty(o,this.HASH_TAG,{value:this.H.length,configurable:!0}),c={u:o,l,L:this._,B:this.h},this.H.push(c)}else{let f=this.g[o];if(f)return f.l=l,this.i;c={u:o,l,L:this._,B:this.h},this.g[o]=c}return this.i===0?(this.p=c,this.h.B=c):this._.B=c,this._=c,this.h.L=c,++this.i}I(o,l){if(l===void 0&&(l=(0,r.default)(o)),l){let u=o[this.HASH_TAG];return u===void 0?this.h:this.H[u]}else return this.g[o]||this.h}clear(){let o=this.HASH_TAG;this.H.forEach(function(l){delete l.u[o]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(o,l){let u;if(l===void 0&&(l=(0,r.default)(o)),l){let c=o[this.HASH_TAG];if(c===void 0)return!1;delete o[this.HASH_TAG],u=this.H[c],delete this.H[c]}else{if(u=this.g[o],u===void 0)return!1;delete this.g[o]}return this.V(u),!0}eraseElementByIterator(o){let l=o.o;return l===this.h&&(0,n.throwIteratorAccessError)(),this.V(l),o.next()}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let l=this.p;for(;o--;)l=l.B;return this.V(l),this.i}};t.HashContainer=a}),PP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=$_(),r=wn(),n=class F_ extends e.HashContainerIterator{constructor(o,l,u,c){super(o,l,c),this.container=u}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new F_(this.o,this.h,this.container,this.iteratorType)}},s=class extends e.HashContainer{constructor(a=[]){super();let o=this;a.forEach(function(l){o.insert(l)})}begin(){return new n(this.p,this.h,this)}end(){return new n(this.h,this.h,this)}rBegin(){return new n(this._,this.h,this,1)}rEnd(){return new n(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(a,o){return this.M(a,void 0,o)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let o=this.p;for(;a--;)o=o.B;return o.u}find(a,o){let l=this.I(a,o);return new n(l,this.h,this)}forEach(a){let o=0,l=this.p;for(;l!==this.h;)a(l.u,o++,this),l=l.B}[Symbol.iterator](){return(function*(){let a=this.p;for(;a!==this.h;)yield a.u,a=a.B}).bind(this)()}},i=s;t.default=i}),kP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=$_(),r=s(B_()),n=wn();function s(l){return l&&l.t?l:{default:l}}var i=class U_ extends e.HashContainerIterator{constructor(u,c,f,d){super(u,c,d),this.container=f}get pointer(){this.o===this.h&&(0,n.throwIteratorAccessError)();let u=this;return new Proxy([],{get(c,f){if(f==="0")return u.o.u;if(f==="1")return u.o.l},set(c,f,d){if(f!=="1")throw new TypeError("props must be 1");return u.o.l=d,!0}})}copy(){return new U_(this.o,this.h,this.container,this.iteratorType)}},a=class extends e.HashContainer{constructor(l=[]){super();let u=this;l.forEach(function(c){u.setElement(c[0],c[1])})}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,u,c){return this.M(l,u,c)}getElementByKey(l,u){if(u===void 0&&(u=(0,r.default)(l)),u){let f=l[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let c=this.g[l];return c?c.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;return[u.u,u.l]}find(l,u){let c=this.I(l,u);return new i(c,this.h,this)}forEach(l){let u=0,c=this.p;for(;c!==this.h;)l([c.u,c.l],u++,this),c=c.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},o=a;t.default=o}),RP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"t",{value:!0}),Object.defineProperty(t,"Deque",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"HashMap",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"HashSet",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"LinkList",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"OrderedSet",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PriorityQueue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Queue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Stack",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Vector",{enumerable:!0,get:function(){return s.default}});var e=f(EP()),r=f(SP()),n=f(TP()),s=f(xP()),i=f(AP()),a=f(CP()),o=f(MP()),l=f(OP()),u=f(PP()),c=f(kP());function f(d){return d&&d.t?d:{default:d}}}),LP=Te((t,e)=>{we(),ve(),_e();var r=RP().OrderedSet,n=hn()("number-allocator:trace"),s=hn()("number-allocator:error");function i(o,l){this.low=o,this.high=l}i.prototype.equals=function(o){return this.low===o.low&&this.high===o.high},i.prototype.compare=function(o){return this.lowu.compare(c)),n("Create"),this.clear()}a.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},a.prototype.alloc=function(){if(this.ss.size()===0)return n("alloc():empty"),null;let o=this.ss.begin(),l=o.pointer.low,u=o.pointer.high,c=l;return c+1<=u?this.ss.updateKeyByIterator(o,new i(l+1,u)):this.ss.eraseElementByPos(0),n("alloc():"+c),c},a.prototype.use=function(o){let l=new i(o,o),u=this.ss.lowerBound(l);if(!u.equals(this.ss.end())){let c=u.pointer.low,f=u.pointer.high;return u.pointer.equals(l)?(this.ss.eraseElementByIterator(u),n("use():"+o),!0):c>o?!1:c===o?(this.ss.updateKeyByIterator(u,new i(c+1,f)),n("use():"+o),!0):f===o?(this.ss.updateKeyByIterator(u,new i(c,f-1)),n("use():"+o),!0):(this.ss.updateKeyByIterator(u,new i(o+1,f)),this.ss.insert(new i(c,o-1)),n("use():"+o),!0)}return n("use():failed"),!1},a.prototype.free=function(o){if(othis.max){s("free():"+o+" is out of range");return}let l=new i(o,o),u=this.ss.upperBound(l);if(u.equals(this.ss.end())){if(u.equals(this.ss.begin())){this.ss.insert(l);return}u.pre();let c=u.pointer.high;u.pointer.high+1===o?this.ss.updateKeyByIterator(u,new i(c,o)):this.ss.insert(l)}else if(u.equals(this.ss.begin()))if(o+1===u.pointer.low){let c=u.pointer.high;this.ss.updateKeyByIterator(u,new i(o,c))}else this.ss.insert(l);else{let c=u.pointer.low,f=u.pointer.high;u.pre();let d=u.pointer.low;u.pointer.high+1===o?o+1===c?(this.ss.eraseElementByIterator(u),this.ss.updateKeyByIterator(u,new i(d,f))):this.ss.updateKeyByIterator(u,new i(d,o)):o+1===c?(this.ss.eraseElementByIterator(u.next()),this.ss.insert(new i(o,f))):this.ss.insert(l)}n("free():"+o)},a.prototype.clear=function(){n("clear()"),this.ss.clear(),this.ss.insert(new i(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(let o of this.ss)console.log(o)},e.exports=a}),j_=Te((t,e)=>{we(),ve(),_e();var r=LP();e.exports.NumberAllocator=r}),NP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=vP(),r=j_(),n=class{constructor(s){s>0&&(this.aliasToTopic=new e.LRUCache({max:s}),this.topicToAlias={},this.numberAllocator=new r.NumberAllocator(1,s),this.max=s,this.length=0)}put(s,i){if(i===0||i>this.max)return!1;let a=this.aliasToTopic.get(i);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(i,s),this.topicToAlias[s]=i,this.numberAllocator.use(i),this.length=this.aliasToTopic.size,!0}getTopicByAlias(s){return this.aliasToTopic.get(s)}getAliasByTopic(s){let i=this.topicToAlias[s];return typeof i<"u"&&this.aliasToTopic.get(i),i}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};t.default=n}),DP=Te(t=>{we(),ve(),_e();var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var r=au(),n=e(NP()),s=Ps(),i=(a,o)=>{a.log("_handleConnack");let{options:l}=a,u=l.protocolVersion===5?o.reasonCode:o.returnCode;if(clearTimeout(a.connackTimer),delete a.topicAliasSend,o.properties){if(o.properties.topicAliasMaximum){if(o.properties.topicAliasMaximum>65535){a.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}o.properties.topicAliasMaximum>0&&(a.topicAliasSend=new n.default(o.properties.topicAliasMaximum))}o.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=o.properties.serverKeepAlive),o.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=o.properties.maximumPacketSize)}if(u===0)a.reconnecting=!1,a._onConnect(o);else if(u>0){let c=new s.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[u]}`,u);a.emit("error",c),a.options.reconnectOnConnackError&&a._cleanUp(!0)}};t.default=i}),BP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=(r,n,s)=>{r.log("handling pubrel packet");let i=typeof s<"u"?s:r.noop,{messageId:a}=n,o={cmd:"pubcomp",messageId:a};r.incomingStore.get(n,(l,u)=>{l?r._sendPacket(o,i):(r.emit("message",u.topic,u.payload,u),r.handleMessage(u,c=>{if(c)return i(c);r.incomingStore.del(u,r.noop),r._sendPacket(o,i)}))})};t.default=e}),$P=Te(t=>{we(),ve(),_e();var e=t&&t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(yP()),n=e(_P()),s=e(DP()),i=e(au()),a=e(BP()),o=(l,u,c)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{we(),ve(),_e();var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var r=e((Os(),Ke(Ni))),n=Ps(),s=class{};t.TypedEventEmitter=s,(0,n.applyMixin)(s,r.default)}),lu=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0}),t.isReactNativeBrowser=t.isWebWorker=void 0;var e=()=>{var i;return typeof window<"u"?typeof navigator<"u"&&((i=navigator.userAgent)===null||i===void 0?void 0:i.toLowerCase().indexOf(" electron/"))>-1&&ze!=null&&ze.versions?!Object.prototype.hasOwnProperty.call(ze.versions,"electron"):typeof window.document<"u":!1},r=()=>{var i,a;return!!(typeof self=="object"&&!((a=(i=self==null?void 0:self.constructor)===null||i===void 0?void 0:i.name)===null||a===void 0)&&a.includes("WorkerGlobalScope"))},n=()=>typeof navigator<"u"&&navigator.product==="ReactNative",s=e()||r()||n();t.isWebWorker=r(),t.isReactNativeBrowser=n(),t.default=s}),UP=Te((t,e)=>{we(),ve(),_e(),function(r,n){typeof t=="object"&&typeof e<"u"?n(t):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.fastUniqueNumbers={}))}(t,function(r){var n=function(p){return function(m){var b=p(m);return m.add(b),b}},s=function(p){return function(m,b){return p.set(m,b),b}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,o=a*2,l=function(p,m){return function(b){var v=m.get(b),_=v===void 0?b.size:vi)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;b.has(_);)_=Math.floor(Math.random()*i);return p(b,_)}},u=new WeakMap,c=s(u),f=l(c,u),d=n(f);r.addUniqueNumber=d,r.generateUniqueNumber=f})}),jP=Te((t,e)=>{we(),ve(),_e(),function(r,n){typeof t=="object"&&typeof e<"u"?n(t,UP()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.workerTimersBroker={},r.fastUniqueNumbers))}(t,function(r,n){var s=function(o){return o.method!==void 0&&o.method==="call"},i=function(o){return o.error===null&&typeof o.id=="number"},a=function(o){var l=new Map([[0,function(){}]]),u=new Map([[0,function(){}]]),c=new Map,f=new Worker(o);f.addEventListener("message",function(v){var _=v.data;if(s(_)){var E=_.params,y=E.timerId,T=E.timerType;if(T==="interval"){var x=l.get(y);if(typeof x=="number"){var A=c.get(x);if(A===void 0||A.timerId!==y||A.timerType!==T)throw new Error("The timer is in an undefined state.")}else if(typeof x<"u")x();else throw new Error("The timer is in an undefined state.")}else if(T==="timeout"){var P=u.get(y);if(typeof P=="number"){var L=c.get(P);if(L===void 0||L.timerId!==y||L.timerType!==T)throw new Error("The timer is in an undefined state.")}else if(typeof P<"u")P(),u.delete(y);else throw new Error("The timer is in an undefined state.")}}else if(i(_)){var W=_.id,U=c.get(W);if(U===void 0)throw new Error("The timer is in an undefined state.");var H=U.timerId,C=U.timerType;c.delete(W),C==="interval"?l.delete(H):u.delete(H)}else{var I=_.error.message;throw new Error(I)}});var d=function(v){var _=n.generateUniqueNumber(c);c.set(_,{timerId:v,timerType:"interval"}),l.set(v,_),f.postMessage({id:_,method:"clear",params:{timerId:v,timerType:"interval"}})},p=function(v){var _=n.generateUniqueNumber(c);c.set(_,{timerId:v,timerType:"timeout"}),u.set(v,_),f.postMessage({id:_,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,E=n.generateUniqueNumber(l);return l.set(E,function(){v(),typeof l.get(E)=="function"&&f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:E,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:E,timerType:"interval"}}),E},b=function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,E=n.generateUniqueNumber(u);return u.set(E,v),f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:E,timerType:"timeout"}}),E};return{clearInterval:d,clearTimeout:p,setInterval:m,setTimeout:b}};r.load=a})}),WP=Te((t,e)=>{we(),ve(),_e(),function(r,n){typeof t=="object"&&typeof e<"u"?n(t,jP()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.workerTimers={},r.workerTimersBroker))}(t,function(r,n){var s=function(f,d){var p=null;return function(){if(p!==null)return p;var m=new Blob([d],{type:"application/javascript; charset=utf-8"}),b=URL.createObjectURL(m);return p=f(b),setTimeout(function(){return URL.revokeObjectURL(b)}),p}},i=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,a=s(n.load,i),o=function(f){return a().clearInterval(f)},l=function(f){return a().clearTimeout(f)},u=function(){var f;return(f=a()).setInterval.apply(f,arguments)},c=function(){var f;return(f=a()).setTimeout.apply(f,arguments)};r.clearInterval=o,r.clearTimeout=l,r.setInterval=u,r.setTimeout=c})}),HP=Te(t=>{we(),ve(),_e();var e=t&&t.__createBinding||(Object.create?function(u,c,f,d){d===void 0&&(d=f);var p=Object.getOwnPropertyDescriptor(c,f);(!p||("get"in p?!c.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,d,p)}:function(u,c,f,d){d===void 0&&(d=f),u[d]=c[f]}),r=t&&t.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),n=t&&t.__importStar||function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&e(c,u,f);return r(c,u),c};Object.defineProperty(t,"__esModule",{value:!0});var s=n(lu()),i=WP(),a={set:i.setInterval,clear:i.clearInterval},o={set:(u,c)=>setInterval(u,c),clear:u=>clearInterval(u)},l=u=>{switch(u){case"native":return o;case"worker":return a;case"auto":default:return s.default&&!s.isWebWorker&&!s.isReactNativeBrowser?a:o}};t.default=l}),W_=Te(t=>{we(),ve(),_e();var e=t&&t.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(HP()),n=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(s,i){this.destroyed=!1,this.client=s,this.timer=typeof i=="object"&&"set"in i&&"clear"in i?i:(0,r.default)(i),this.setKeepalive(s.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(s){if(s*=1e3,isNaN(s)||s<=0||s>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${s}`);this._keepalive=s,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${s}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let s=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+s,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};t.default=n}),Jd=Te(t=>{we(),ve(),_e();var e=t&&t.__createBinding||(Object.create?function(x,A,P,L){L===void 0&&(L=P);var W=Object.getOwnPropertyDescriptor(A,P);(!W||("get"in W?!A.__esModule:W.writable||W.configurable))&&(W={enumerable:!0,get:function(){return A[P]}}),Object.defineProperty(x,L,W)}:function(x,A,P,L){L===void 0&&(L=P),x[L]=A[P]}),r=t&&t.__setModuleDefault||(Object.create?function(x,A){Object.defineProperty(x,"default",{enumerable:!0,value:A})}:function(x,A){x.default=A}),n=t&&t.__importStar||function(x){if(x&&x.__esModule)return x;var A={};if(x!=null)for(var P in x)P!=="default"&&Object.prototype.hasOwnProperty.call(x,P)&&e(A,x,P);return r(A,x),A},s=t&&t.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var i=s(kO()),a=s(pP()),o=s(x_()),l=Di(),u=s(mP()),c=n(bP()),f=s(hn()),d=s(A_()),p=s($P()),m=Ps(),b=FP(),v=s(W_()),_=n(lu()),E=globalThis.setImmediate||((...x)=>{let A=x.shift();(0,m.nextTick)(()=>{A(...x)})}),y={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},T=class Zd extends b.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(A,P){super(),this.options=P||{};for(let L in y)typeof this.options[L]>"u"?this.options[L]=y[L]:this.options[L]=P[L];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",Zd.VERSION),_.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",_.default?"browser":"node"),this.log("MqttClient :: options.protocol",P.protocol),this.log("MqttClient :: options.protocolVersion",P.protocolVersion),this.log("MqttClient :: options.username",P.username),this.log("MqttClient :: options.keepalive",P.keepalive),this.log("MqttClient :: options.reconnectPeriod",P.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",P.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",P.properties?P.properties.topicAliasMaximum:void 0),this.options.clientId=typeof P.clientId=="string"?P.clientId:Zd.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=P.protocolVersion===5&&P.customHandleAcks?P.customHandleAcks:(...L)=>{L[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=A,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new o.default:this.options.messageIdProvider,this.outgoingStore=P.outgoingStore||new d.default,this.incomingStore=P.incomingStore||new d.default,this.queueQoSZero=P.queueQoSZero===void 0?!0:P.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,P.properties&&P.properties.topicAliasMaximum>0&&(P.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new i.default(P.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:L}=this,W=()=>{let U=L.shift();this.log("deliver :: entry %o",U);let H=null;if(!U){this._resubscribe();return}H=U.packet,this.log("deliver :: call _sendPacket for %o",H);let C=!0;H.messageId&&H.messageId!==0&&(this.messageIdProvider.register(H.messageId)||(C=!1)),C?this._sendPacket(H,I=>{U.cb&&U.cb(I),W()}):(this.log("messageId: %d has already used. The message is skipped and removed.",H.messageId),W())};this.log("connect :: sending queued packets"),W()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(A,P){P()}handleMessage(A,P){P()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var A;let P=new l.Writable,L=a.default.parser(this.options),W=null,U=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),L.on("packet",J=>{this.log("parser :: on packet push to packets array."),U.push(J)});let H=()=>{this.log("work :: getting next packet in queue");let J=U.shift();if(J)this.log("work :: packet pulled from queue"),(0,p.default)(this,J,C);else{this.log("work :: no packets in queue");let ne=W;W=null,this.log("work :: done flag is %s",!!ne),ne&&ne()}},C=()=>{if(U.length)(0,m.nextTick)(H);else{let J=W;W=null,J()}};P._write=(J,ne,te)=>{W=te,this.log("writable stream :: parsing buffer"),L.parse(J),H()};let I=J=>{this.log("streamErrorHandler :: error",J.message),J.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",J)):this.noop(J)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(P),this.stream.on("error",I),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let N={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(N.will=Object.assign(Object.assign({},this.options.will),{payload:(A=this.options.will)===null||A===void 0?void 0:A.payload})),this.topicAliasRecv&&(N.properties||(N.properties={}),this.topicAliasRecv&&(N.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(N),L.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let J=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(J)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(A,P,L,W){this.log("publish :: message `%s` to topic `%s`",P,A);let{options:U}=this;typeof L=="function"&&(W=L,L=null),L=L||{},L=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),L);let{qos:H,retain:C,dup:I,properties:N,cbStorePut:J}=L;if(this._checkDisconnecting(W))return this;let ne=()=>{let te=0;if((H===1||H===2)&&(te=this._nextId(),te===null))return this.log("No messageId left"),!1;let B={cmd:"publish",topic:A,payload:P,qos:H,retain:C,messageId:te,dup:I};switch(U.protocolVersion===5&&(B.properties=N),this.log("publish :: qos",H),H){case 1:case 2:this.outgoing[B.messageId]={volatile:!1,cb:W||this.noop},this.log("MqttClient:publish: packet cmd: %s",B.cmd),this._sendPacket(B,void 0,J);break;default:this.log("MqttClient:publish: packet cmd: %s",B.cmd),this._sendPacket(B,W,J);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!ne())&&this._storeProcessingQueue.push({invoke:ne,cbStorePut:L.cbStorePut,callback:W}),this}publishAsync(A,P,L){return new Promise((W,U)=>{this.publish(A,P,L,(H,C)=>{H?U(H):W(C)})})}subscribe(A,P,L){let W=this.options.protocolVersion;typeof P=="function"&&(L=P),L=L||this.noop;let U=!1,H=[];typeof A=="string"?(A=[A],H=A):Array.isArray(A)?H=A:typeof A=="object"&&(U=A.resubscribe,delete A.resubscribe,H=Object.keys(A));let C=c.validateTopics(H);if(C!==null)return E(L,new Error(`Invalid topic ${C}`)),this;if(this._checkDisconnecting(L))return this.log("subscribe: discconecting true"),this;let I={qos:0};W===5&&(I.nl=!1,I.rap=!1,I.rh=0),P=Object.assign(Object.assign({},I),P);let N=P.properties,J=[],ne=(B,ae)=>{if(ae=ae||P,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,B)||this._resubscribeTopics[B].qos{this.log("subscribe: array topic %s",B),ne(B)}):Object.keys(A).forEach(B=>{this.log("subscribe: object topic %s, %o",B,A[B]),ne(B,A[B])}),!J.length)return L(null,[]),this;let te=()=>{let B=this._nextId();if(B===null)return this.log("No messageId left"),!1;let ae={cmd:"subscribe",subscriptions:J,messageId:B};if(N&&(ae.properties=N),this.options.resubscribe){this.log("subscribe :: resubscribe true");let Y=[];J.forEach(ce=>{if(this.options.reconnectPeriod>0){let $={qos:ce.qos};W===5&&($.nl=ce.nl||!1,$.rap=ce.rap||!1,$.rh=ce.rh||0,$.properties=ce.properties),this._resubscribeTopics[ce.topic]=$,Y.push(ce.topic)}}),this.messageIdToTopic[ae.messageId]=Y}return this.outgoing[ae.messageId]={volatile:!0,cb(Y,ce){if(!Y){let{granted:$}=ce;for(let ue=0;ue<$.length;ue+=1)J[ue].qos=$[ue]}L(Y,J,ce)}},this.log("subscribe :: call _sendPacket"),this._sendPacket(ae),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!te())&&this._storeProcessingQueue.push({invoke:te,callback:L}),this}subscribeAsync(A,P){return new Promise((L,W)=>{this.subscribe(A,P,(U,H)=>{U?W(U):L(H)})})}unsubscribe(A,P,L){typeof A=="string"&&(A=[A]),typeof P=="function"&&(L=P),L=L||this.noop;let W=c.validateTopics(A);if(W!==null)return E(L,new Error(`Invalid topic ${W}`)),this;if(this._checkDisconnecting(L))return this;let U=()=>{let H=this._nextId();if(H===null)return this.log("No messageId left"),!1;let C={cmd:"unsubscribe",messageId:H,unsubscriptions:[]};return typeof A=="string"?C.unsubscriptions=[A]:Array.isArray(A)&&(C.unsubscriptions=A),this.options.resubscribe&&C.unsubscriptions.forEach(I=>{delete this._resubscribeTopics[I]}),typeof P=="object"&&P.properties&&(C.properties=P.properties),this.outgoing[C.messageId]={volatile:!0,cb:L},this.log("unsubscribe: call _sendPacket"),this._sendPacket(C),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!U())&&this._storeProcessingQueue.push({invoke:U,callback:L}),this}unsubscribeAsync(A,P){return new Promise((L,W)=>{this.unsubscribe(A,P,(U,H)=>{U?W(U):L(H)})})}end(A,P,L){this.log("end :: (%s)",this.options.clientId),(A==null||typeof A!="boolean")&&(L=L||P,P=A,A=!1),typeof P!="object"&&(L=L||P,P=null),this.log("end :: cb? %s",!!L),(!L||typeof L!="function")&&(L=this.noop);let W=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(H=>{this.outgoingStore.close(C=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),L){let I=H||C;this.log("end :: closeStores: invoking callback with args"),L(I)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},U=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,A),this._cleanUp(A,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(W)},P)};return this.disconnecting?(L(),this):(this._clearReconnect(),this.disconnecting=!0,!A&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,U,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),U()),this)}endAsync(A,P){return new Promise((L,W)=>{this.end(A,P,U=>{U?W(U):L()})})}removeOutgoingMessage(A){if(this.outgoing[A]){let{cb:P}=this.outgoing[A];this._removeOutgoingAndStoreMessage(A,()=>{P(new Error("Message removed"))})}return this}reconnect(A){this.log("client reconnect");let P=()=>{A?(this.options.incomingStore=A.incomingStore,this.options.outgoingStore=A.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=P:P(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(A=>{this.outgoing[A].volatile&&typeof this.outgoing[A].cb=="function"&&(this.outgoing[A].cb(new Error("Connection closed")),delete this.outgoing[A])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(A=>{typeof this.outgoing[A].cb=="function"&&(this.outgoing[A].cb(new Error("Connection closed")),delete this.outgoing[A])}))}_removeTopicAliasAndRecoverTopicName(A){let P;A.properties&&(P=A.properties.topicAlias);let L=A.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",P,L),L.length===0){if(typeof P>"u")return new Error("Unregistered Topic Alias");if(L=this.topicAliasSend.getTopicByAlias(P),typeof L>"u")return new Error("Unregistered Topic Alias");A.topic=L}P&&delete A.properties.topicAlias}_checkDisconnecting(A){return this.disconnecting&&(A&&A!==this.noop?A(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(A,P,L={}){if(P&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",P)),this.log("_cleanUp :: forced? %s",A),A)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let W=Object.assign({cmd:"disconnect"},L);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(W,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),E(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),P&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",P),P())}_storeAndSend(A,P,L){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",A.cmd);let W=A,U;if(W.cmd==="publish"&&(W=(0,u.default)(A),U=this._removeTopicAliasAndRecoverTopicName(W),U))return P&&P(U);this.outgoingStore.put(W,H=>{if(H)return P&&P(H);L(),this._writePacket(A,P)})}_applyTopicAlias(A){if(this.options.protocolVersion===5&&A.cmd==="publish"){let P;A.properties&&(P=A.properties.topicAlias);let L=A.topic.toString();if(this.topicAliasSend)if(P){if(L.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",L,P),!this.topicAliasSend.put(L,P)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",L,P),new Error("Sending Topic Alias out of range")}else L.length!==0&&(this.options.autoAssignTopicAlias?(P=this.topicAliasSend.getAliasByTopic(L),P?(A.topic="",A.properties=Object.assign(Object.assign({},A.properties),{topicAlias:P}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",L,P)):(P=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(L,P),A.properties=Object.assign(Object.assign({},A.properties),{topicAlias:P}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",L,P))):this.options.autoUseTopicAlias&&(P=this.topicAliasSend.getAliasByTopic(L),P&&(A.topic="",A.properties=Object.assign(Object.assign({},A.properties),{topicAlias:P}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",L,P))));else if(P)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",L,P),new Error("Sending Topic Alias out of range")}}_noop(A){this.log("noop ::",A)}_writePacket(A,P){this.log("_writePacket :: packet: %O",A),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",A),this.log("_writePacket :: writing to stream");let L=a.default.writeToStream(A,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",L),!L&&P&&P!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",P)):P&&(this.log("_writePacket :: invoking cb"),P())}_sendPacket(A,P,L,W){this.log("_sendPacket :: (%s) :: start",this.options.clientId),L=L||this.noop,P=P||this.noop;let U=this._applyTopicAlias(A);if(U){P(U);return}if(!this.connected){if(A.cmd==="auth"){this._writePacket(A,P);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(A,P,L);return}if(W){this._writePacket(A,P);return}switch(A.cmd){case"publish":break;case"pubrel":this._storeAndSend(A,P,L);return;default:this._writePacket(A,P);return}switch(A.qos){case 2:case 1:this._storeAndSend(A,P,L);break;case 0:default:this._writePacket(A,P);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(A,P,L){this.log("_storePacket :: packet: %o",A),this.log("_storePacket :: cb? %s",!!P),L=L||this.noop;let W=A;if(W.cmd==="publish"){W=(0,u.default)(A);let H=this._removeTopicAliasAndRecoverTopicName(W);if(H)return P&&P(H)}let U=W.qos||0;U===0&&this.queueQoSZero||W.cmd!=="publish"?this.queue.push({packet:W,cb:P}):U>0?(P=this.outgoing[W.messageId]?this.outgoing[W.messageId].cb:null,this.outgoingStore.put(W,H=>{if(H)return P&&P(H);L()})):P&&P(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(A=!1){this.keepaliveManager&&this.options.keepalive&&(A||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let A=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&A.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let P=0;P{let L=this.outgoingStore.createStream(),W=()=>{L.destroy(),L=null,this._flushStoreProcessingQueue(),U()},U=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",W),L.on("error",C=>{U(),this._flushStoreProcessingQueue(),this.removeListener("close",W),this.emit("error",C)});let H=()=>{if(!L)return;let C=L.read(1),I;if(!C){L.once("readable",H);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[C.messageId]){H();return}!this.disconnecting&&!this.reconnectTimer?(I=this.outgoing[C.messageId]?this.outgoing[C.messageId].cb:null,this.outgoing[C.messageId]={volatile:!1,cb(N,J){I&&I(N,J),H()}},this._packetIdsDuringStoreProcessing[C.messageId]=!0,this.messageIdProvider.register(C.messageId)?this._sendPacket(C,void 0,void 0,!0):this.log("messageId: %d has already used.",C.messageId)):L.destroy&&L.destroy()};L.on("end",()=>{let C=!0;for(let I in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[I]){C=!1;break}this.removeListener("close",W),C?(U(),this._invokeAllStoreProcessingQueue(),this.emit("connect",A)):P()}),H()};P()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let A=this._storeProcessingQueue[0];if(A&&A.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let A of this._storeProcessingQueue)A.cbStorePut&&A.cbStorePut(new Error("Connection closed")),A.callback&&A.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(A,P){delete this.outgoing[A],this.outgoingStore.del({messageId:A},(L,W)=>{P(L,W),this.messageIdProvider.deallocate(A),this._invokeStoreProcessingQueue()})}};T.VERSION=m.MQTTJS_VERSION,t.default=T}),zP=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=j_(),r=class{constructor(){this.numberAllocator=new e.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(n){return this.numberAllocator.use(n)}deallocate(n){this.numberAllocator.free(n)}clear(){this.numberAllocator.clear()}};t.default=r});function ri(t){throw new RangeError(z_[t])}function Lm(t,e){let r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]);let s=function(i,a){let o=[],l=i.length;for(;l--;)o[l]=a(i[l]);return o}((t=t.replace(H_,".")).split("."),e).join(".");return n+s}function Nm(t){let e=[],r=0,n=t.length;for(;r=55296&&s<=56319&&r{we(),ve(),_e(),Dm=/^xn--/,Bm=/[^\0-\x7E]/,H_=/[\x2E\u3002\uFF0E\uFF61]/g,z_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},dr=Math.floor,da=String.fromCharCode,Zu=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},ec=function(t,e,r){let n=0;for(t=r?dr(t/700):t>>1,t+=dr(t/e);t>455;n+=36)t=dr(t/35);return dr(n+36*t/(t+38))},tc=function(t){let e=[],r=t.length,n=0,s=128,i=72,a=t.lastIndexOf("-");a<0&&(a=0);for(let l=0;l=128&&ri("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l=r&&ri("invalid-input");let p=(o=t.charCodeAt(l++))-48<10?o-22:o-65<26?o-65:o-97<26?o-97:36;(p>=36||p>dr((2147483647-n)/f))&&ri("overflow"),n+=p*f;let m=d<=i?1:d>=i+26?26:d-i;if(pdr(2147483647/b)&&ri("overflow"),f*=b}let c=e.length+1;i=ec(n-u,c,u==0),dr(n/c)>2147483647-s&&ri("overflow"),s+=dr(n/c),n%=c,e.splice(n++,0,s)}var o;return String.fromCodePoint(...e)},rc=function(t){let e=[],r=(t=Nm(t)).length,n=128,s=0,i=72;for(let l of t)l<128&&e.push(da(l));let a=e.length,o=a;for(a&&e.push("-");o=n&&cdr((2147483647-s)/u)&&ri("overflow"),s+=(l-n)*u,n=l;for(let c of t)if(c2147483647&&ri("overflow"),c==n){let f=s;for(let d=36;;d+=36){let p=d<=i?1:d>=i+26?26:d-i;if(fString.fromCodePoint(...t)},decode:tc,encode:rc,toASCII:function(t){return Lm(t,function(e){return Bm.test(e)?"xn--"+rc(e):e})},toUnicode:function(t){return Lm(t,function(e){return Dm.test(e)?tc(e.slice(4).toLowerCase()):e})}},An.decode,An.encode,An.toASCII,An.toUnicode,An.ucs2,An.version});function qP(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var $m,Vi,Fm,Ar,YP=wt(()=>{we(),ve(),_e(),$m=function(t,e,r,n){e=e||"&",r=r||"=";var s={};if(typeof t!="string"||t.length===0)return s;var i=/\+/g;t=t.split(e);var a=1e3;n&&typeof n.maxKeys=="number"&&(a=n.maxKeys);var o=t.length;a>0&&o>a&&(o=a);for(var l=0;l=0?(u=p.substr(0,m),c=p.substr(m+1)):(u=p,c=""),f=decodeURIComponent(u),d=decodeURIComponent(c),qP(s,f)?Array.isArray(s[f])?s[f].push(d):s[f]=[s[f],d]:s[f]=d}return s},Vi=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}},Fm=function(t,e,r,n){return e=e||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(s){var i=encodeURIComponent(Vi(s))+r;return Array.isArray(t[s])?t[s].map(function(a){return i+encodeURIComponent(Vi(a))}).join(e):i+encodeURIComponent(Vi(t[s]))}).join(e):n?encodeURIComponent(Vi(n))+r+encodeURIComponent(Vi(t)):""},Ar={},Ar.decode=Ar.parse=$m,Ar.encode=Ar.stringify=Fm,Ar.decode,Ar.encode,Ar.parse,Ar.stringify});function eh(){throw new Error("setTimeout has not been defined")}function th(){throw new Error("clearTimeout has not been defined")}function V_(t){if(Vr===setTimeout)return setTimeout(t,0);if((Vr===eh||!Vr)&&setTimeout)return Vr=setTimeout,setTimeout(t,0);try{return Vr(t,0)}catch{try{return Vr.call(null,t,0)}catch{return Vr.call(this||wi,t,0)}}}function GP(){_i&&di&&(_i=!1,di.length?Or=di.concat(Or):Eo=-1,Or.length&&q_())}function q_(){if(!_i){var t=V_(GP);_i=!0;for(var e=Or.length;e;){for(di=Or,Or=[];++Eo{we(),ve(),_e(),wi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:Si,ot=jm={},function(){try{Vr=typeof setTimeout=="function"?setTimeout:eh}catch{Vr=eh}try{qr=typeof clearTimeout=="function"?clearTimeout:th}catch{qr=th}}(),Or=[],_i=!1,Eo=-1,ot.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r1)for(var _=1;_{we(),ve(),_e(),Qa={},rh=!1,oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:Si,et=XP(),et.platform="browser",et.addListener,et.argv,et.binding,et.browser,et.chdir,et.cwd,et.emit,et.env,et.listeners,et.nextTick,et.off,et.on,et.once,et.prependListener,et.prependOnceListener,et.removeAllListeners,et.removeListener,et.title,et.umask,et.version,et.versions});function QP(){if(nh)return Ja;nh=!0;var t=et;function e(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function r(i,a){for(var o="",l=0,u=-1,c=0,f,d=0;d<=i.length;++d){if(d2){var p=o.lastIndexOf("/");if(p!==o.length-1){p===-1?(o="",l=0):(o=o.slice(0,p),l=o.length-1-o.lastIndexOf("/")),u=d,c=0;continue}}else if(o.length===2||o.length===1){o="",l=0,u=d,c=0;continue}}a&&(o.length>0?o+="/..":o="..",l=2)}else o.length>0?o+="/"+i.slice(u+1,d):o=i.slice(u+1,d),l=d-u-1;u=d,c=0}else f===46&&c!==-1?++c:c=-1}return o}function n(i,a){var o=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return o?o===a.root?o+l:o+i+l:l}var s={resolve:function(){for(var i="",a=!1,o,l=arguments.length-1;l>=-1&&!a;l--){var u;l>=0?u=arguments[l]:(o===void 0&&(o=t.cwd()),u=o),e(u),u.length!==0&&(i=u+"/"+i,a=u.charCodeAt(0)===47)}return i=r(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,o=i.charCodeAt(i.length-1)===47;return i=r(i,!a),i.length===0&&!a&&(i="."),i.length>0&&o&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=o:i+="/"+o)}return i===void 0?".":s.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=s.resolve(i),a=s.resolve(a),i===a))return"";for(var o=1;op){if(a.charCodeAt(c+b)===47)return a.slice(c+b+1);if(b===0)return a.slice(c+b)}else u>p&&(i.charCodeAt(o+b)===47?m=b:b===0&&(m=0));break}var v=i.charCodeAt(o+b),_=a.charCodeAt(c+b);if(v!==_)break;v===47&&(m=b)}var E="";for(b=o+m+1;b<=l;++b)(b===l||i.charCodeAt(b)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+a.slice(c+m):(c+=m,a.charCodeAt(c)===47&&++c,a.slice(c))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),o=a===47,l=-1,u=!0,c=i.length-1;c>=1;--c)if(a=i.charCodeAt(c),a===47){if(!u){l=c;break}}else u=!1;return l===-1?o?"/":".":o&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var o=0,l=-1,u=!0,c;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,d=-1;for(c=i.length-1;c>=0;--c){var p=i.charCodeAt(c);if(p===47){if(!u){o=c+1;break}}else d===-1&&(u=!1,d=c+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=c):(f=-1,l=d))}return o===l?l=d:l===-1&&(l=i.length),i.slice(o,l)}else{for(c=i.length-1;c>=0;--c)if(i.charCodeAt(c)===47){if(!u){o=c+1;break}}else l===-1&&(u=!1,l=c+1);return l===-1?"":i.slice(o,l)}},extname:function(i){e(i);for(var a=-1,o=0,l=-1,u=!0,c=0,f=i.length-1;f>=0;--f){var d=i.charCodeAt(f);if(d===47){if(!u){o=f+1;break}continue}l===-1&&(u=!1,l=f+1),d===46?a===-1?a=f:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||l===-1||c===0||c===1&&a===l-1&&a===o+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var o=i.charCodeAt(0),l=o===47,u;l?(a.root="/",u=1):u=0;for(var c=-1,f=0,d=-1,p=!0,m=i.length-1,b=0;m>=u;--m){if(o=i.charCodeAt(m),o===47){if(!p){f=m+1;break}continue}d===-1&&(p=!1,d=m+1),o===46?c===-1?c=m:b!==1&&(b=1):c!==-1&&(b=-1)}return c===-1||d===-1||b===0||b===1&&c===d-1&&c===f+1?d!==-1&&(f===0&&l?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(f,d)):(f===0&&l?(a.name=i.slice(1,c),a.base=i.slice(1,d)):(a.name=i.slice(f,c),a.base=i.slice(f,d)),a.ext=i.slice(c,d)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return s.posix=s,Ja=s,Ja}var Ja,nh,ih,JP=wt(()=>{we(),ve(),_e(),Y_(),Ja={},nh=!1,ih=QP()}),G_={};Ri(G_,{URL:()=>dv,Url:()=>av,default:()=>qe,fileURLToPath:()=>K_,format:()=>lv,parse:()=>fv,pathToFileURL:()=>X_,resolve:()=>uv,resolveObject:()=>cv});function rr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Js(t,e,r){if(t&&pr.isObject(t)&&t instanceof rr)return t;var n=new rr;return n.parse(t,e,r),n}function ZP(){if(sh)return Za;sh=!0;var t=it;function e(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function r(i,a){for(var o="",l=0,u=-1,c=0,f,d=0;d<=i.length;++d){if(d2){var p=o.lastIndexOf("/");if(p!==o.length-1){p===-1?(o="",l=0):(o=o.slice(0,p),l=o.length-1-o.lastIndexOf("/")),u=d,c=0;continue}}else if(o.length===2||o.length===1){o="",l=0,u=d,c=0;continue}}a&&(o.length>0?o+="/..":o="..",l=2)}else o.length>0?o+="/"+i.slice(u+1,d):o=i.slice(u+1,d),l=d-u-1;u=d,c=0}else f===46&&c!==-1?++c:c=-1}return o}function n(i,a){var o=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return o?o===a.root?o+l:o+i+l:l}var s={resolve:function(){for(var i="",a=!1,o,l=arguments.length-1;l>=-1&&!a;l--){var u;l>=0?u=arguments[l]:(o===void 0&&(o=t.cwd()),u=o),e(u),u.length!==0&&(i=u+"/"+i,a=u.charCodeAt(0)===47)}return i=r(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,o=i.charCodeAt(i.length-1)===47;return i=r(i,!a),i.length===0&&!a&&(i="."),i.length>0&&o&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=o:i+="/"+o)}return i===void 0?".":s.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=s.resolve(i),a=s.resolve(a),i===a))return"";for(var o=1;op){if(a.charCodeAt(c+b)===47)return a.slice(c+b+1);if(b===0)return a.slice(c+b)}else u>p&&(i.charCodeAt(o+b)===47?m=b:b===0&&(m=0));break}var v=i.charCodeAt(o+b),_=a.charCodeAt(c+b);if(v!==_)break;v===47&&(m=b)}var E="";for(b=o+m+1;b<=l;++b)(b===l||i.charCodeAt(b)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+a.slice(c+m):(c+=m,a.charCodeAt(c)===47&&++c,a.slice(c))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),o=a===47,l=-1,u=!0,c=i.length-1;c>=1;--c)if(a=i.charCodeAt(c),a===47){if(!u){l=c;break}}else u=!1;return l===-1?o?"/":".":o&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var o=0,l=-1,u=!0,c;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,d=-1;for(c=i.length-1;c>=0;--c){var p=i.charCodeAt(c);if(p===47){if(!u){o=c+1;break}}else d===-1&&(u=!1,d=c+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=c):(f=-1,l=d))}return o===l?l=d:l===-1&&(l=i.length),i.slice(o,l)}else{for(c=i.length-1;c>=0;--c)if(i.charCodeAt(c)===47){if(!u){o=c+1;break}}else l===-1&&(u=!1,l=c+1);return l===-1?"":i.slice(o,l)}},extname:function(i){e(i);for(var a=-1,o=0,l=-1,u=!0,c=0,f=i.length-1;f>=0;--f){var d=i.charCodeAt(f);if(d===47){if(!u){o=f+1;break}continue}l===-1&&(u=!1,l=f+1),d===46?a===-1?a=f:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||l===-1||c===0||c===1&&a===l-1&&a===o+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var o=i.charCodeAt(0),l=o===47,u;l?(a.root="/",u=1):u=0;for(var c=-1,f=0,d=-1,p=!0,m=i.length-1,b=0;m>=u;--m){if(o=i.charCodeAt(m),o===47){if(!p){f=m+1;break}continue}d===-1&&(p=!1,d=m+1),o===46?c===-1?c=m:b!==1&&(b=1):c!==-1&&(b=-1)}return c===-1||d===-1||b===0||b===1&&c===d-1&&c===f+1?d!==-1&&(f===0&&l?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(f,d)):(f===0&&l?(a.name=i.slice(1,c),a.base=i.slice(1,d)):(a.name=i.slice(f,c),a.base=i.slice(f,d)),a.ext=i.slice(c,d)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return s.posix=s,Za=s,Za}function ek(t){if(typeof t=="string")t=new URL(t);else if(!(t instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(t.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return Pl?tk(t):rk(t)}function tk(t){let e=t.hostname,r=t.pathname;for(let n=0;nev||s!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function rk(t){if(t.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let e=t.pathname;for(let r=0;rmv||s!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function sk(t){if(t.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let e=t.pathname;for(let r=0;r{we(),ve(),_e(),VP(),YP(),KP(),JP(),Y_(),qe={},Wm=An,pr={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}},qe.parse=Js,qe.resolve=function(t,e){return Js(t,!1,!0).resolve(e)},qe.resolveObject=function(t,e){return t?Js(t,!1,!0).resolveObject(e):e},qe.format=function(t){return pr.isString(t)&&(t=Js(t)),t instanceof rr?t.format():rr.prototype.format.call(t)},qe.Url=rr,Hm=/^([a-z0-9.+-]+:)/i,zm=/:[0-9]*$/,Vm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,qm=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),ha=["'"].concat(qm),nc=["%","/","?",";","#"].concat(ha),ic=["/","?","#"],sc=/^[+a-z0-9A-Z_-]{0,63}$/,Ym=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Gm={javascript:!0,"javascript:":!0},pa={javascript:!0,"javascript:":!0},ni={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ga=Ar,rr.prototype.parse=function(t,e,r){if(!pr.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),s=n!==-1&&n127?T+="x":T+=y[x];if(!T.match(sc)){var P=_.slice(0,m),L=_.slice(m+1),W=y.match(Ym);W&&(P.push(W[1]),L.unshift(W[2])),L.length&&(a="/"+L.join(".")+a),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=Wm.toASCII(this.hostname));var U=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+U,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!Gm[u])for(m=0,E=ha.length;m0)&&r.host.split("@"))&&(r.auth=W.shift(),r.host=r.hostname=W.shift())),r.search=t.search,r.query=t.query,pr.isNull(r.pathname)&&pr.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=y.slice(-1)[0],A=(r.host||t.host||y.length>1)&&(x==="."||x==="..")||x==="",P=0,L=y.length;L>=0;L--)(x=y[L])==="."?y.splice(L,1):x===".."?(y.splice(L,1),P++):P&&(y.splice(L,1),P--);if(!_&&!E)for(;P--;P)y.unshift("..");!_||y[0]===""||y[0]&&y[0].charAt(0)==="/"||y.unshift(""),A&&y.join("/").substr(-1)!=="/"&&y.push("");var W,U=y[0]===""||y[0]&&y[0].charAt(0)==="/";return T&&(r.hostname=r.host=U?"":y.length?y.shift():"",(W=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=W.shift(),r.host=r.hostname=W.shift())),(_=_||r.host&&y.length)&&!U&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),pr.isNull(r.pathname)&&pr.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},rr.prototype.parseHost=function(){var t=this.host,e=zm.exec(t);e&&((e=e[0])!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},qe.Url,qe.format,qe.resolve,qe.resolveObject,Za={},sh=!1,oh=ZP(),Km=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,qe.URL=typeof URL<"u"?URL:null,qe.pathToFileURL=nk,qe.fileURLToPath=ek,qe.Url,qe.format,qe.resolve,qe.resolveObject,qe.URL,Q_=92,J_=47,Z_=97,ev=122,Pl=Km==="win32",tv=/\//g,rv=/%/g,nv=/\\/g,iv=/\n/g,sv=/\r/g,ov=/\t/g,Xm=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,qe.URL=typeof URL<"u"?URL:null,qe.pathToFileURL=X_,qe.fileURLToPath=K_,av=qe.Url,lv=qe.format,uv=qe.resolve,cv=qe.resolveObject,fv=qe.parse,dv=qe.URL,hv=92,pv=47,gv=97,mv=122,kl=Xm==="win32",bv=/\//g,yv=/%/g,wv=/\\/g,_v=/\n/g,vv=/\r/g,Ev=/\t/g}),ak=Te((t,e)=>{we(),ve(),_e(),e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),bp=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0}),t.BufferedDuplex=t.writev=void 0;var e=Di(),r=(vt(),Ke(_t));function n(i,a){let o=new Array(i.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(i){this.proxy.read(i)}_write(i,a,o){this.isSocketOpen?this.writeToProxy(i,a,o):this.writeQueue.push({chunk:i,encoding:a,cb:o})}_final(i){this.writeQueue=[],this.proxy.end(i)}_destroy(i,a){this.writeQueue=[],this.proxy.destroy(),a(i)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(i,a,o){this.proxy.write(i,a)===!1?this.proxy.once("drain",o):o()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:i,encoding:a,cb:o}=this.writeQueue.shift();this.writeToProxy(i,a,o)}}};t.BufferedDuplex=s}),ma=Te(t=>{we(),ve(),_e();var e=t&&t.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0}),t.streamBuilder=t.browserStreamBuilder=void 0;var r=(vt(),Ke(_t)),n=e(ak()),s=e(hn()),i=Di(),a=e(lu()),o=bp(),l=(0,s.default)("mqttjs:ws"),u=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function c(_,E){let y=`${_.protocol}://${_.hostname}:${_.port}${_.path}`;return typeof _.transformWsUrl=="function"&&(y=_.transformWsUrl(y,_,E)),y}function f(_){let E=_;return _.port||(_.protocol==="wss"?E.port=443:E.port=80),_.path||(E.path="/"),_.wsOptions||(E.wsOptions={}),!a.default&&!_.forceNativeWebSocket&&_.protocol==="wss"&&u.forEach(y=>{Object.prototype.hasOwnProperty.call(_,y)&&!Object.prototype.hasOwnProperty.call(_.wsOptions,y)&&(E.wsOptions[y]=_[y])}),E}function d(_){let E=f(_);if(E.hostname||(E.hostname=E.host),!E.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let y=new URL(document.URL);E.hostname=y.hostname,E.port||(E.port=Number(y.port))}return E.objectMode===void 0&&(E.objectMode=!(E.binary===!0||E.binary===void 0)),E}function p(_,E,y){l("createWebSocket"),l(`protocol: ${y.protocolId} ${y.protocolVersion}`);let T=y.protocolId==="MQIsdp"&&y.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${E} and protocol: ${T}`);let x;return y.createWebsocket?x=y.createWebsocket(E,[T],y):x=new n.default(E,[T],y.wsOptions),x}function m(_,E){let y=E.protocolId==="MQIsdp"&&E.protocolVersion===3?"mqttv3.1":"mqtt",T=c(E,_),x;return E.createWebsocket?x=E.createWebsocket(T,[y],E):x=new WebSocket(T,[y]),x.binaryType="arraybuffer",x}var b=(_,E)=>{l("streamBuilder");let y=f(E);y.hostname=y.hostname||y.host||"localhost";let T=c(y,_),x=p(_,T,y),A=n.default.createWebSocketStream(x,y.wsOptions);return A.url=T,x.on("close",()=>{A.destroy()}),A};t.streamBuilder=b;var v=(_,E)=>{l("browserStreamBuilder");let y,T=d(E).browserBufferSize||1024*512,x=E.browserBufferTimeout||1e3,A=!E.objectMode,P=m(_,E),L=U(E,J,ne);E.objectMode||(L._writev=o.writev.bind(L)),L.on("close",()=>{P.close()});let W=typeof P.addEventListener<"u";P.readyState===P.OPEN?(y=L,y.socket=P):(y=new o.BufferedDuplex(E,L,P),W?P.addEventListener("open",H):P.onopen=H),W?(P.addEventListener("close",C),P.addEventListener("error",I),P.addEventListener("message",N)):(P.onclose=C,P.onerror=I,P.onmessage=N);function U(te,B,ae){let Y=new i.Transform({objectMode:te.objectMode});return Y._write=B,Y._flush=ae,Y}function H(){l("WebSocket onOpen"),y instanceof o.BufferedDuplex&&y.socketReady()}function C(te){l("WebSocket onClose",te),y.end(),y.destroy()}function I(te){l("WebSocket onError",te);let B=new Error("WebSocket error");B.event=te,y.destroy(B)}async function N(te){let{data:B}=te;B instanceof ArrayBuffer?B=r.Buffer.from(B):B instanceof Blob?B=r.Buffer.from(await new Response(B).arrayBuffer()):B=r.Buffer.from(B,"utf8"),L&&!L.destroyed&&L.push(B)}function J(te,B,ae){if(P.bufferedAmount>T){setTimeout(J,x,te,B,ae);return}A&&typeof te=="string"&&(te=r.Buffer.from(te,"utf8"));try{P.send(te)}catch(Y){return ae(Y)}ae()}function ne(te){P.close(),te()}return y};t.browserStreamBuilder=v}),yp={};Ri(yp,{Server:()=>tt,Socket:()=>tt,Stream:()=>tt,_createServerHandle:()=>tt,_normalizeArgs:()=>tt,_setSimultaneousAccepts:()=>tt,connect:()=>tt,createConnection:()=>tt,createServer:()=>tt,default:()=>Sv,isIP:()=>tt,isIPv4:()=>tt,isIPv6:()=>tt});function tt(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var Sv,Tv=wt(()=>{we(),ve(),_e(),Sv={_createServerHandle:tt,_normalizeArgs:tt,_setSimultaneousAccepts:tt,connect:tt,createConnection:tt,createServer:tt,isIP:tt,isIPv4:tt,isIPv6:tt,Server:tt,Socket:tt,Stream:tt}}),Qm=Te(t=>{we(),ve(),_e();var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var r=e((Tv(),Ke(yp))),n=e(hn()),s=(0,n.default)("mqttjs:tcp"),i=(a,o)=>{o.port=o.port||1883,o.hostname=o.hostname||o.host||"localhost";let{port:l,path:u}=o,c=o.hostname;return s("port %d and host %s",l,c),r.default.createConnection({port:l,host:c,path:u})};t.default=i}),xv={};Ri(xv,{default:()=>Av});var Av,lk=wt(()=>{we(),ve(),_e(),Av={}}),Jm=Te(t=>{we(),ve(),_e();var e=t&&t.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var r=e((lk(),Ke(xv))),n=e((Tv(),Ke(yp))),s=e(hn()),i=(0,s.default)("mqttjs:tls"),a=(o,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",n.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,i("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let u=r.default.connect(l);u.on("secureConnect",()=>{l.rejectUnauthorized&&!u.authorized?u.emit("error",new Error("TLS not authorized")):u.removeListener("error",c)});function c(f){l.rejectUnauthorized&&o.emit("error",f),u.end()}return u.on("error",c),u};t.default=a}),Zm=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=(vt(),Ke(_t)),r=Di(),n=bp(),s,i,a;function o(){let d=new r.Transform;return d._write=(p,m,b)=>{s.send({data:p.buffer,success(){b()},fail(v){b(new Error(v))}})},d._flush=p=>{s.close({success(){p()}})},d}function l(d){d.hostname||(d.hostname="localhost"),d.path||(d.path="/"),d.wsOptions||(d.wsOptions={})}function u(d,p){let m=d.protocol==="wxs"?"wss":"ws",b=`${m}://${d.hostname}${d.path}`;return d.port&&d.port!==80&&d.port!==443&&(b=`${m}://${d.hostname}:${d.port}${d.path}`),typeof d.transformWsUrl=="function"&&(b=d.transformWsUrl(b,d,p)),b}function c(){s.onOpen(()=>{a.socketReady()}),s.onMessage(d=>{let{data:p}=d;p instanceof ArrayBuffer?p=e.Buffer.from(p):p=e.Buffer.from(p,"utf8"),i.push(p)}),s.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),s.onError(d=>{let p=new Error(d.errMsg);a.destroy(p)})}var f=(d,p)=>{if(p.hostname=p.hostname||p.host,!p.hostname)throw new Error("Could not determine host. Specify host manually.");let m=p.protocolId==="MQIsdp"&&p.protocolVersion===3?"mqttv3.1":"mqtt";l(p);let b=u(p,d);s=wx.connectSocket({url:b,protocols:[m]}),i=o(),a=new n.BufferedDuplex(p,i,s),a._destroy=(_,E)=>{s.close({success(){E&&E(_)}})};let v=a.destroy;return a.destroy=(_,E)=>(a.destroy=v,setTimeout(()=>{s.close({fail(){a._destroy(_,E)}})},0),a),c(),a};t.default=f}),eb=Te(t=>{we(),ve(),_e(),Object.defineProperty(t,"__esModule",{value:!0});var e=(vt(),Ke(_t)),r=Di(),n=bp(),s,i,a,o=!1;function l(){let p=new r.Transform;return p._write=(m,b,v)=>{s.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},p._flush=m=>{s.closeSocket({success(){m()}})},p}function u(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function c(p,m){let b=p.protocol==="alis"?"wss":"ws",v=`${b}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(v=`${b}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(v=p.transformWsUrl(v,p,m)),v}function f(){o||(o=!0,s.onSocketOpen(()=>{a.socketReady()}),s.onSocketMessage(p=>{if(typeof p.data=="string"){let m=e.Buffer.from(p.data,"base64");i.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let b=m.result;b instanceof ArrayBuffer?b=e.Buffer.from(b):b=e.Buffer.from(b,"utf8"),i.push(b)}),m.readAsArrayBuffer(p.data)}}),s.onSocketClose(()=>{a.end(),a.destroy()}),s.onSocketError(p=>{a.destroy(p)}))}var d=(p,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let b=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";u(m);let v=c(m,p);return s=m.my,s.connectSocket({url:v,protocols:b}),i=l(),a=new n.BufferedDuplex(m,i,s),f(),a};t.default=d}),uk=Te(t=>{we(),ve(),_e();var e=t&&t.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.connectAsync=void 0;var r=e(hn()),n=e((ok(),Ke(G_))),s=e(Jd()),i=e(lu());typeof(ze==null?void 0:ze.nextTick)!="function"&&(ze.nextTick=setImmediate);var a=(0,r.default)("mqttjs"),o=null;function l(f){let d;f.auth&&(d=f.auth.match(/^(.+):(.+)$/),d?(f.username=d[1],f.password=d[2]):f.username=f.auth)}function u(f,d){var p,m,b,v;if(a("connecting to an MQTT broker..."),typeof f=="object"&&!d&&(d=f,f=""),d=d||{},f&&typeof f=="string"){let y=n.default.parse(f,!0),T={};if(y.port!=null&&(T.port=Number(y.port)),T.host=y.hostname,T.query=y.query,T.auth=y.auth,T.protocol=y.protocol,T.path=y.path,T.protocol=(p=T.protocol)===null||p===void 0?void 0:p.replace(/:$/,""),d=Object.assign(Object.assign({},T),d),!d.protocol)throw new Error("Missing protocol")}if(d.unixSocket=d.unixSocket||((m=d.protocol)===null||m===void 0?void 0:m.includes("+unix")),d.unixSocket?d.protocol=d.protocol.replace("+unix",""):!(!((b=d.protocol)===null||b===void 0)&&b.startsWith("ws"))&&!(!((v=d.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete d.path,l(d),d.query&&typeof d.query.clientId=="string"&&(d.clientId=d.query.clientId),d.cert&&d.key)if(d.protocol){if(["mqtts","wss","wxs","alis"].indexOf(d.protocol)===-1)switch(d.protocol){case"mqtt":d.protocol="mqtts";break;case"ws":d.protocol="wss";break;case"wx":d.protocol="wxs";break;case"ali":d.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${d.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(o||(o={},!i.default&&!d.forceNativeWebSocket?(o.ws=ma().streamBuilder,o.wss=ma().streamBuilder,o.mqtt=Qm().default,o.tcp=Qm().default,o.ssl=Jm().default,o.tls=o.ssl,o.mqtts=Jm().default):(o.ws=ma().browserStreamBuilder,o.wss=ma().browserStreamBuilder,o.wx=Zm().default,o.wxs=Zm().default,o.ali=eb().default,o.alis=eb().default)),!o[d.protocol]){let y=["mqtts","wss"].indexOf(d.protocol)!==-1;d.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((T,x)=>y&&x%2===0?!1:typeof o[T]=="function")[0]}if(d.clean===!1&&!d.clientId)throw new Error("Missing clientId for unclean clients");d.protocol&&(d.defaultProtocol=d.protocol);function _(y){return d.servers&&((!y._reconnectCount||y._reconnectCount===d.servers.length)&&(y._reconnectCount=0),d.host=d.servers[y._reconnectCount].host,d.port=d.servers[y._reconnectCount].port,d.protocol=d.servers[y._reconnectCount].protocol?d.servers[y._reconnectCount].protocol:d.defaultProtocol,d.hostname=d.host,y._reconnectCount++),a("calling streambuilder for",d.protocol),o[d.protocol](y,d)}let E=new s.default(_,d);return E.on("error",()=>{}),E}function c(f,d,p=!0){return new Promise((m,b)=>{let v=u(f,d),_={connect:y=>{E(),m(v)},end:()=>{E(),m(v)},error:y=>{E(),v.end(),b(y)}};p===!1&&(_.close=()=>{_.error(new Error("Couldn't connect to server"))});function E(){Object.keys(_).forEach(y=>{v.off(y,_[y])})}Object.keys(_).forEach(y=>{v.on(y,_[y])})})}t.connectAsync=c,t.default=u}),tb=Te(t=>{we(),ve(),_e();var e=t&&t.__createBinding||(Object.create?function(p,m,b,v){v===void 0&&(v=b);var _=Object.getOwnPropertyDescriptor(m,b);(!_||("get"in _?!m.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return m[b]}}),Object.defineProperty(p,v,_)}:function(p,m,b,v){v===void 0&&(v=b),p[v]=m[b]}),r=t&&t.__setModuleDefault||(Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m}),n=t&&t.__importStar||function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var b in p)b!=="default"&&Object.prototype.hasOwnProperty.call(p,b)&&e(m,p,b);return r(m,p),m},s=t&&t.__exportStar||function(p,m){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(m,b)&&e(m,p,b)},i=t&&t.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=t.KeepaliveManager=t.UniqueMessageIdProvider=t.DefaultMessageIdProvider=t.Store=t.MqttClient=t.connectAsync=t.connect=t.Client=void 0;var a=i(Jd());t.MqttClient=a.default;var o=i(x_());t.DefaultMessageIdProvider=o.default;var l=i(zP());t.UniqueMessageIdProvider=l.default;var u=i(A_());t.Store=u.default;var c=n(uk());t.connect=c.default,Object.defineProperty(t,"connectAsync",{enumerable:!0,get:function(){return c.connectAsync}});var f=i(W_());t.KeepaliveManager=f.default,t.Client=a.default,s(Jd(),t),s(Ps(),t);var d=au();Object.defineProperty(t,"ReasonCodes",{enumerable:!0,get:function(){return d.ReasonCodes}})}),ck=Te(t=>{we(),ve(),_e();var e=t&&t.__createBinding||(Object.create?function(a,o,l,u){u===void 0&&(u=l);var c=Object.getOwnPropertyDescriptor(o,l);(!c||("get"in c?!o.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return o[l]}}),Object.defineProperty(a,u,c)}:function(a,o,l,u){u===void 0&&(u=l),a[u]=o[l]}),r=t&&t.__setModuleDefault||(Object.create?function(a,o){Object.defineProperty(a,"default",{enumerable:!0,value:o})}:function(a,o){a.default=o}),n=t&&t.__importStar||function(a){if(a&&a.__esModule)return a;var o={};if(a!=null)for(var l in a)l!=="default"&&Object.prototype.hasOwnProperty.call(a,l)&&e(o,a,l);return r(o,a),o},s=t&&t.__exportStar||function(a,o){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&e(o,a,l)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(tb());t.default=i,s(tb(),t)});const BF=ck();/*! Bundled license information: - -@jspm/core/nodelibs/browser/buffer.js: - (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) -*/var Zs={},eo={exports:{}},oc={exports:{}},ac={exports:{}},lc={},to={},rb;function fk(){if(rb)return to;rb=1,to.byteLength=o,to.toByteArray=u,to.fromByteArray=d;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,i=n.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var b=p.indexOf("=");b===-1&&(b=m);var v=b===m?0:4-b%4;return[b,v]}function o(p){var m=a(p),b=m[0],v=m[1];return(b+v)*3/4-v}function l(p,m,b){return(m+b)*3/4-b}function u(p){var m,b=a(p),v=b[0],_=b[1],E=new r(l(p,v,_)),y=0,T=_>0?v-4:v,x;for(x=0;x>16&255,E[y++]=m>>8&255,E[y++]=m&255;return _===2&&(m=e[p.charCodeAt(x)]<<2|e[p.charCodeAt(x+1)]>>4,E[y++]=m&255),_===1&&(m=e[p.charCodeAt(x)]<<10|e[p.charCodeAt(x+1)]<<4|e[p.charCodeAt(x+2)]>>2,E[y++]=m>>8&255,E[y++]=m&255),E}function c(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function f(p,m,b){for(var v,_=[],E=m;ET?T:y+E));return v===1?(m=p[b-1],_.push(t[m>>2]+t[m<<4&63]+"==")):v===2&&(m=(p[b-2]<<8)+p[b-1],_.push(t[m>>10]+t[m>>4&63]+t[m<<2&63]+"=")),_.join("")}return to}var ba={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var nb;function dk(){return nb||(nb=1,ba.read=function(t,e,r,n,s){var i,a,o=s*8-n-1,l=(1<>1,c=-7,f=r?s-1:0,d=r?-1:1,p=t[e+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=o;c>0;i=i*256+t[e+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=a*256+t[e+f],f+=d,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-u}return(p?-1:1)*a*Math.pow(2,i-n)},ba.write=function(t,e,r,n,s,i){var a,o,l,u=i*8-s-1,c=(1<>1,d=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,m=n?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?e+=d/l:e+=d*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=c?(o=0,a=c):a+f>=1?(o=(e*l-1)*Math.pow(2,s),a=a+f):(o=e*Math.pow(2,f-1)*Math.pow(2,s),a=0));s>=8;t[r+p]=o&255,p+=m,o/=256,s-=8);for(a=a<0;t[r+p]=a&255,p+=m,a/=256,u-=8);t[r+p-m]|=b*128}),ba}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var ib;function er(){return ib||(ib=1,function(t){const e=fk(),r=dk(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=E,t.INSPECT_MAX_BYTES=50;const s=2147483647;t.kMaxLength=s,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const g=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(g,h),g.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(g){if(g>s)throw new RangeError('The value "'+g+'" is invalid for option "size"');const h=new Uint8Array(g);return Object.setPrototypeOf(h,o.prototype),h}function o(g,h,w){if(typeof g=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(g)}return l(g,h,w)}o.poolSize=8192;function l(g,h,w){if(typeof g=="string")return d(g,h);if(ArrayBuffer.isView(g))return m(g);if(g==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g);if(z(g,ArrayBuffer)||g&&z(g.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(z(g,SharedArrayBuffer)||g&&z(g.buffer,SharedArrayBuffer)))return b(g,h,w);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const k=g.valueOf&&g.valueOf();if(k!=null&&k!==g)return o.from(k,h,w);const Z=v(g);if(Z)return Z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return o.from(g[Symbol.toPrimitive]("string"),h,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g)}o.from=function(g,h,w){return l(g,h,w)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function u(g){if(typeof g!="number")throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function c(g,h,w){return u(g),g<=0?a(g):h!==void 0?typeof w=="string"?a(g).fill(h,w):a(g).fill(h):a(g)}o.alloc=function(g,h,w){return c(g,h,w)};function f(g){return u(g),a(g<0?0:_(g)|0)}o.allocUnsafe=function(g){return f(g)},o.allocUnsafeSlow=function(g){return f(g)};function d(g,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);const w=y(g,h)|0;let k=a(w);const Z=k.write(g,h);return Z!==w&&(k=k.slice(0,Z)),k}function p(g){const h=g.length<0?0:_(g.length)|0,w=a(h);for(let k=0;k=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return g|0}function E(g){return+g!=g&&(g=0),o.alloc(+g)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,w){if(z(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),z(w,Uint8Array)&&(w=o.from(w,w.offset,w.byteLength)),!o.isBuffer(h)||!o.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===w)return 0;let k=h.length,Z=w.length;for(let de=0,ye=Math.min(k,Z);deZ.length?(o.isBuffer(ye)||(ye=o.from(ye)),ye.copy(Z,de)):Uint8Array.prototype.set.call(Z,ye,de);else if(o.isBuffer(ye))ye.copy(Z,de);else throw new TypeError('"list" argument must be an Array of Buffers');de+=ye.length}return Z};function y(g,h){if(o.isBuffer(g))return g.length;if(ArrayBuffer.isView(g)||z(g,ArrayBuffer))return g.byteLength;if(typeof g!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof g);const w=g.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&w===0)return 0;let Z=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return q(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return G(g).length;default:if(Z)return k?-1:q(g).length;h=(""+h).toLowerCase(),Z=!0}}o.byteLength=y;function T(g,h,w){let k=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,h>>>=0,w<=h))return"";for(g||(g="utf8");;)switch(g){case"hex":return ae(this,h,w);case"utf8":case"utf-8":return N(this,h,w);case"ascii":return te(this,h,w);case"latin1":case"binary":return B(this,h,w);case"base64":return I(this,h,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,h,w);default:if(k)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),k=!0}}o.prototype._isBuffer=!0;function x(g,h,w){const k=g[h];g[h]=g[w],g[w]=k}o.prototype.swap16=function(){const h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;ww&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,w,k,Z,de){if(z(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(w===void 0&&(w=0),k===void 0&&(k=h?h.length:0),Z===void 0&&(Z=0),de===void 0&&(de=this.length),w<0||k>h.length||Z<0||de>this.length)throw new RangeError("out of range index");if(Z>=de&&w>=k)return 0;if(Z>=de)return-1;if(w>=k)return 1;if(w>>>=0,k>>>=0,Z>>>=0,de>>>=0,this===h)return 0;let ye=de-Z,Ae=k-w;const Me=Math.min(ye,Ae),xe=this.slice(Z,de),Pe=h.slice(w,k);for(let Oe=0;Oe2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,ie(w)&&(w=Z?0:g.length-1),w<0&&(w=g.length+w),w>=g.length){if(Z)return-1;w=g.length-1}else if(w<0)if(Z)w=0;else return-1;if(typeof h=="string"&&(h=o.from(h,k)),o.isBuffer(h))return h.length===0?-1:P(g,h,w,k,Z);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?Z?Uint8Array.prototype.indexOf.call(g,h,w):Uint8Array.prototype.lastIndexOf.call(g,h,w):P(g,[h],w,k,Z);throw new TypeError("val must be string, number or Buffer")}function P(g,h,w,k,Z){let de=1,ye=g.length,Ae=h.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(g.length<2||h.length<2)return-1;de=2,ye/=2,Ae/=2,w/=2}function Me(Pe,Oe){return de===1?Pe[Oe]:Pe.readUInt16BE(Oe*de)}let xe;if(Z){let Pe=-1;for(xe=w;xeye&&(w=ye-Ae),xe=w;xe>=0;xe--){let Pe=!0;for(let Oe=0;OeZ&&(k=Z)):k=Z;const de=h.length;k>de/2&&(k=de/2);let ye;for(ye=0;ye>>0,isFinite(k)?(k=k>>>0,Z===void 0&&(Z="utf8")):(Z=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const de=this.length-w;if((k===void 0||k>de)&&(k=de),h.length>0&&(k<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");Z||(Z="utf8");let ye=!1;for(;;)switch(Z){case"hex":return L(this,h,w,k);case"utf8":case"utf-8":return W(this,h,w,k);case"ascii":case"latin1":case"binary":return U(this,h,w,k);case"base64":return H(this,h,w,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,h,w,k);default:if(ye)throw new TypeError("Unknown encoding: "+Z);Z=(""+Z).toLowerCase(),ye=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(g,h,w){return h===0&&w===g.length?e.fromByteArray(g):e.fromByteArray(g.slice(h,w))}function N(g,h,w){w=Math.min(g.length,w);const k=[];let Z=h;for(;Z239?4:de>223?3:de>191?2:1;if(Z+Ae<=w){let Me,xe,Pe,Oe;switch(Ae){case 1:de<128&&(ye=de);break;case 2:Me=g[Z+1],(Me&192)===128&&(Oe=(de&31)<<6|Me&63,Oe>127&&(ye=Oe));break;case 3:Me=g[Z+1],xe=g[Z+2],(Me&192)===128&&(xe&192)===128&&(Oe=(de&15)<<12|(Me&63)<<6|xe&63,Oe>2047&&(Oe<55296||Oe>57343)&&(ye=Oe));break;case 4:Me=g[Z+1],xe=g[Z+2],Pe=g[Z+3],(Me&192)===128&&(xe&192)===128&&(Pe&192)===128&&(Oe=(de&15)<<18|(Me&63)<<12|(xe&63)<<6|Pe&63,Oe>65535&&Oe<1114112&&(ye=Oe))}}ye===null?(ye=65533,Ae=1):ye>65535&&(ye-=65536,k.push(ye>>>10&1023|55296),ye=56320|ye&1023),k.push(ye),Z+=Ae}return ne(k)}const J=4096;function ne(g){const h=g.length;if(h<=J)return String.fromCharCode.apply(String,g);let w="",k=0;for(;kk)&&(w=k);let Z="";for(let de=h;dek&&(h=k),w<0?(w+=k,w<0&&(w=0)):w>k&&(w=k),ww)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,w,k){h=h>>>0,w=w>>>0,k||ce(h,w,this.length);let Z=this[h],de=1,ye=0;for(;++ye>>0,w=w>>>0,k||ce(h,w,this.length);let Z=this[h+--w],de=1;for(;w>0&&(de*=256);)Z+=this[h+--w]*de;return Z},o.prototype.readUint8=o.prototype.readUInt8=function(h,w){return h=h>>>0,w||ce(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,w){return h=h>>>0,w||ce(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,w){return h=h>>>0,w||ce(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,w){return h=h>>>0,w||ce(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(h,w){return h=h>>>0,w||ce(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=be(function(h){h=h>>>0,O(h,"offset");const w=this[h],k=this[h+7];(w===void 0||k===void 0)&&F(h,this.length-8);const Z=w+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24,de=this[++h]+this[++h]*2**8+this[++h]*2**16+k*2**24;return BigInt(Z)+(BigInt(de)<>>0,O(h,"offset");const w=this[h],k=this[h+7];(w===void 0||k===void 0)&&F(h,this.length-8);const Z=w*2**24+this[++h]*2**16+this[++h]*2**8+this[++h],de=this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+k;return(BigInt(Z)<>>0,w=w>>>0,k||ce(h,w,this.length);let Z=this[h],de=1,ye=0;for(;++ye=de&&(Z-=Math.pow(2,8*w)),Z},o.prototype.readIntBE=function(h,w,k){h=h>>>0,w=w>>>0,k||ce(h,w,this.length);let Z=w,de=1,ye=this[h+--Z];for(;Z>0&&(de*=256);)ye+=this[h+--Z]*de;return de*=128,ye>=de&&(ye-=Math.pow(2,8*w)),ye},o.prototype.readInt8=function(h,w){return h=h>>>0,w||ce(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,w){h=h>>>0,w||ce(h,2,this.length);const k=this[h]|this[h+1]<<8;return k&32768?k|4294901760:k},o.prototype.readInt16BE=function(h,w){h=h>>>0,w||ce(h,2,this.length);const k=this[h+1]|this[h]<<8;return k&32768?k|4294901760:k},o.prototype.readInt32LE=function(h,w){return h=h>>>0,w||ce(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,w){return h=h>>>0,w||ce(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=be(function(h){h=h>>>0,O(h,"offset");const w=this[h],k=this[h+7];(w===void 0||k===void 0)&&F(h,this.length-8);const Z=this[h+4]+this[h+5]*2**8+this[h+6]*2**16+(k<<24);return(BigInt(Z)<>>0,O(h,"offset");const w=this[h],k=this[h+7];(w===void 0||k===void 0)&&F(h,this.length-8);const Z=(w<<24)+this[++h]*2**16+this[++h]*2**8+this[++h];return(BigInt(Z)<>>0,w||ce(h,4,this.length),r.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,w){return h=h>>>0,w||ce(h,4,this.length),r.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,w){return h=h>>>0,w||ce(h,8,this.length),r.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,w){return h=h>>>0,w||ce(h,8,this.length),r.read(this,h,!1,52,8)};function $(g,h,w,k,Z,de){if(!o.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>Z||hg.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,w,k,Z){if(h=+h,w=w>>>0,k=k>>>0,!Z){const Ae=Math.pow(2,8*k)-1;$(this,h,w,k,Ae,0)}let de=1,ye=0;for(this[w]=h&255;++ye>>0,k=k>>>0,!Z){const Ae=Math.pow(2,8*k)-1;$(this,h,w,k,Ae,0)}let de=k-1,ye=1;for(this[w+de]=h&255;--de>=0&&(ye*=256);)this[w+de]=h/ye&255;return w+k},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,1,255,0),this[w]=h&255,w+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,2,65535,0),this[w]=h&255,this[w+1]=h>>>8,w+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,2,65535,0),this[w]=h>>>8,this[w+1]=h&255,w+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,4,4294967295,0),this[w+3]=h>>>24,this[w+2]=h>>>16,this[w+1]=h>>>8,this[w]=h&255,w+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,4,4294967295,0),this[w]=h>>>24,this[w+1]=h>>>16,this[w+2]=h>>>8,this[w+3]=h&255,w+4};function ue(g,h,w,k,Z){M(h,k,Z,g,w,7);let de=Number(h&BigInt(4294967295));g[w++]=de,de=de>>8,g[w++]=de,de=de>>8,g[w++]=de,de=de>>8,g[w++]=de;let ye=Number(h>>BigInt(32)&BigInt(4294967295));return g[w++]=ye,ye=ye>>8,g[w++]=ye,ye=ye>>8,g[w++]=ye,ye=ye>>8,g[w++]=ye,w}function me(g,h,w,k,Z){M(h,k,Z,g,w,7);let de=Number(h&BigInt(4294967295));g[w+7]=de,de=de>>8,g[w+6]=de,de=de>>8,g[w+5]=de,de=de>>8,g[w+4]=de;let ye=Number(h>>BigInt(32)&BigInt(4294967295));return g[w+3]=ye,ye=ye>>8,g[w+2]=ye,ye=ye>>8,g[w+1]=ye,ye=ye>>8,g[w]=ye,w+8}o.prototype.writeBigUInt64LE=be(function(h,w=0){return ue(this,h,w,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=be(function(h,w=0){return me(this,h,w,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,w,k,Z){if(h=+h,w=w>>>0,!Z){const Me=Math.pow(2,8*k-1);$(this,h,w,k,Me-1,-Me)}let de=0,ye=1,Ae=0;for(this[w]=h&255;++de>0)-Ae&255;return w+k},o.prototype.writeIntBE=function(h,w,k,Z){if(h=+h,w=w>>>0,!Z){const Me=Math.pow(2,8*k-1);$(this,h,w,k,Me-1,-Me)}let de=k-1,ye=1,Ae=0;for(this[w+de]=h&255;--de>=0&&(ye*=256);)h<0&&Ae===0&&this[w+de+1]!==0&&(Ae=1),this[w+de]=(h/ye>>0)-Ae&255;return w+k},o.prototype.writeInt8=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,1,127,-128),h<0&&(h=255+h+1),this[w]=h&255,w+1},o.prototype.writeInt16LE=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,2,32767,-32768),this[w]=h&255,this[w+1]=h>>>8,w+2},o.prototype.writeInt16BE=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,2,32767,-32768),this[w]=h>>>8,this[w+1]=h&255,w+2},o.prototype.writeInt32LE=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,4,2147483647,-2147483648),this[w]=h&255,this[w+1]=h>>>8,this[w+2]=h>>>16,this[w+3]=h>>>24,w+4},o.prototype.writeInt32BE=function(h,w,k){return h=+h,w=w>>>0,k||$(this,h,w,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[w]=h>>>24,this[w+1]=h>>>16,this[w+2]=h>>>8,this[w+3]=h&255,w+4},o.prototype.writeBigInt64LE=be(function(h,w=0){return ue(this,h,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=be(function(h,w=0){return me(this,h,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ee(g,h,w,k,Z,de){if(w+k>g.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function K(g,h,w,k,Z){return h=+h,w=w>>>0,Z||ee(g,h,w,4),r.write(g,h,w,k,23,4),w+4}o.prototype.writeFloatLE=function(h,w,k){return K(this,h,w,!0,k)},o.prototype.writeFloatBE=function(h,w,k){return K(this,h,w,!1,k)};function j(g,h,w,k,Z){return h=+h,w=w>>>0,Z||ee(g,h,w,8),r.write(g,h,w,k,52,8),w+8}o.prototype.writeDoubleLE=function(h,w,k){return j(this,h,w,!0,k)},o.prototype.writeDoubleBE=function(h,w,k){return j(this,h,w,!1,k)},o.prototype.copy=function(h,w,k,Z){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(k||(k=0),!Z&&Z!==0&&(Z=this.length),w>=h.length&&(w=h.length),w||(w=0),Z>0&&Z=this.length)throw new RangeError("Index out of range");if(Z<0)throw new RangeError("sourceEnd out of bounds");Z>this.length&&(Z=this.length),h.length-w>>0,k=k===void 0?this.length:k>>>0,h||(h=0);let de;if(typeof h=="number")for(de=w;de2**32?Z=le(String(w)):typeof w=="bigint"&&(Z=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(Z=le(Z)),Z+="n"),k+=` It must be ${h}. Received ${Z}`,k},RangeError);function le(g){let h="",w=g.length;const k=g[0]==="-"?1:0;for(;w>=k+4;w-=3)h=`_${g.slice(w-3,w)}${h}`;return`${g.slice(0,w)}${h}`}function se(g,h,w){O(h,"offset"),(g[h]===void 0||g[h+w]===void 0)&&F(h,g.length-(w+1))}function M(g,h,w,k,Z,de){if(g>w||g= 0${ye} and < 2${ye} ** ${(de+1)*8}${ye}`:Ae=`>= -(2${ye} ** ${(de+1)*8-1}${ye}) and < 2 ** ${(de+1)*8-1}${ye}`,new D.ERR_OUT_OF_RANGE("value",Ae,g)}se(k,Z,de)}function O(g,h){if(typeof g!="number")throw new D.ERR_INVALID_ARG_TYPE(h,"number",g)}function F(g,h,w){throw Math.floor(g)!==g?(O(g,w),new D.ERR_OUT_OF_RANGE("offset","an integer",g)):h<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${h}`,g)}const R=/[^+/0-9A-Za-z-_]/g;function V(g){if(g=g.split("=")[0],g=g.trim().replace(R,""),g.length<2)return"";for(;g.length%4!==0;)g=g+"=";return g}function q(g,h){h=h||1/0;let w;const k=g.length;let Z=null;const de=[];for(let ye=0;ye55295&&w<57344){if(!Z){if(w>56319){(h-=3)>-1&&de.push(239,191,189);continue}else if(ye+1===k){(h-=3)>-1&&de.push(239,191,189);continue}Z=w;continue}if(w<56320){(h-=3)>-1&&de.push(239,191,189),Z=w;continue}w=(Z-55296<<10|w-56320)+65536}else Z&&(h-=3)>-1&&de.push(239,191,189);if(Z=null,w<128){if((h-=1)<0)break;de.push(w)}else if(w<2048){if((h-=2)<0)break;de.push(w>>6|192,w&63|128)}else if(w<65536){if((h-=3)<0)break;de.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((h-=4)<0)break;de.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return de}function oe(g){const h=[];for(let w=0;w>8,Z=w%256,de.push(Z),de.push(k);return de}function G(g){return e.toByteArray(V(g))}function re(g,h,w,k){let Z;for(Z=0;Z=h.length||Z>=g.length);++Z)h[Z+w]=g[Z];return Z}function z(g,h){return g instanceof h||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===h.name}function ie(g){return g!==g}const he=function(){const g="0123456789abcdef",h=new Array(256);for(let w=0;w<16;++w){const k=w*16;for(let Z=0;Z<16;++Z)h[k+Z]=g[w]+g[Z]}return h}();function be(g){return typeof BigInt>"u"?S:g}function S(){throw new Error("BigInt not supported")}}(lc)),lc}var uc,sb;function st(){if(sb)return uc;sb=1;class t extends Error{constructor(r){if(!Array.isArray(r))throw new TypeError(`Expected input to be an Array, got ${typeof r}`);let n="";for(let s=0;s=y+4;E-=3)_=`_${v.slice(E-3,E)}${_}`;return`${v.slice(0,E)}${_}`}function f(v,_,E){if(typeof _=="function")return u(_.length<=E.length,`Code: ${v}; The provided arguments length (${E.length}) does not match the required ones (${_.length}).`),_(...E);const y=(_.match(/%[dfijoOs]/g)||[]).length;return u(y===E.length,`Code: ${v}; The provided arguments length (${E.length}) does not match the required ones (${y}).`),E.length===0?_:t(_,...E)}function d(v,_,E){E||(E=Error);class y extends E{constructor(...x){super(f(v,_,x))}toString(){return`${this.name} [${v}]: ${this.message}`}}Object.defineProperties(y.prototype,{name:{value:E.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${v}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),y.prototype.code=v,y.prototype[s]=!0,l[v]=y}function p(v){const _=o+v.name;return Object.defineProperty(v,"name",{value:_}),v}function m(v,_){if(v&&_&&v!==_){if(Array.isArray(_.errors))return _.errors.push(v),_;const E=new n([_,v],_.message);return E.code=_.code,E}return v||_}class b extends Error{constructor(_="The operation was aborted",E=void 0){if(E!==void 0&&typeof E!="object")throw new l.ERR_INVALID_ARG_TYPE("options","Object",E);super(_,E),this.code="ABORT_ERR",this.name="AbortError"}}return d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",(v,_,E)=>{u(typeof v=="string","'name' must be a string"),Array.isArray(_)||(_=[_]);let y="The ";v.endsWith(" argument")?y+=`${v} `:y+=`"${v}" ${v.includes(".")?"property":"argument"} `,y+="must be ";const T=[],x=[],A=[];for(const L of _)u(typeof L=="string","All expected entries have to be of type string"),i.includes(L)?T.push(L.toLowerCase()):a.test(L)?x.push(L):(u(L!=="object",'The value "object" should be written as "Object"'),A.push(L));if(x.length>0){const L=T.indexOf("object");L!==-1&&(T.splice(T,L,1),x.push("Object"))}if(T.length>0){switch(T.length){case 1:y+=`of type ${T[0]}`;break;case 2:y+=`one of type ${T[0]} or ${T[1]}`;break;default:{const L=T.pop();y+=`one of type ${T.join(", ")}, or ${L}`}}(x.length>0||A.length>0)&&(y+=" or ")}if(x.length>0){switch(x.length){case 1:y+=`an instance of ${x[0]}`;break;case 2:y+=`an instance of ${x[0]} or ${x[1]}`;break;default:{const L=x.pop();y+=`an instance of ${x.join(", ")}, or ${L}`}}A.length>0&&(y+=" or ")}switch(A.length){case 0:break;case 1:A[0].toLowerCase()!==A[0]&&(y+="an "),y+=`${A[0]}`;break;case 2:y+=`one of ${A[0]} or ${A[1]}`;break;default:{const L=A.pop();y+=`one of ${A.join(", ")}, or ${L}`}}if(E==null)y+=`. Received ${E}`;else if(typeof E=="function"&&E.name)y+=`. Received function ${E.name}`;else if(typeof E=="object"){var P;if((P=E.constructor)!==null&&P!==void 0&&P.name)y+=`. Received an instance of ${E.constructor.name}`;else{const L=e(E,{depth:-1});y+=`. Received ${L}`}}else{let L=e(E,{colors:!1});L.length>25&&(L=`${L.slice(0,25)}...`),y+=`. Received type ${typeof E} (${L})`}return y},TypeError),d("ERR_INVALID_ARG_VALUE",(v,_,E="is invalid")=>{let y=e(_);return y.length>128&&(y=y.slice(0,128)+"..."),`The ${v.includes(".")?"property":"argument"} '${v}' ${E}. Received ${y}`},TypeError),d("ERR_INVALID_RETURN_VALUE",(v,_,E)=>{var y;const T=E!=null&&(y=E.constructor)!==null&&y!==void 0&&y.name?`instance of ${E.constructor.name}`:`type ${typeof E}`;return`Expected ${v} to be returned from the "${_}" function but got ${T}.`},TypeError),d("ERR_MISSING_ARGS",(...v)=>{u(v.length>0,"At least one arg needs to be specified");let _;const E=v.length;switch(v=(Array.isArray(v)?v:[v]).map(y=>`"${y}"`).join(" or "),E){case 1:_+=`The ${v[0]} argument`;break;case 2:_+=`The ${v[0]} and ${v[1]} arguments`;break;default:{const y=v.pop();_+=`The ${v.join(", ")}, and ${y} arguments`}break}return`${_} must be specified`},TypeError),d("ERR_OUT_OF_RANGE",(v,_,E)=>{u(_,'Missing "range" argument');let y;if(Number.isInteger(E)&&Math.abs(E)>2**32)y=c(String(E));else if(typeof E=="bigint"){y=String(E);const T=BigInt(2)**BigInt(32);(E>T||E<-T)&&(y=c(y)),y+="n"}else y=e(E);return`The value of "${v}" is out of range. It must be ${_}. Received ${y}`},RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),dc={AbortError:b,aggregateTwoErrors:p(m),hideStackFrames:p,codes:l},dc}var ro={exports:{}},lb;function Do(){if(lb)return ro.exports;lb=1;const{AbortController:t,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return ro.exports=t,ro.exports.AbortSignal=e,ro.exports.default=t,ro.exports}var ya={exports:{}},ub;function ks(){if(ub)return ya.exports;ub=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(x,A,P){return Function.prototype.apply.call(x,A,P)},r;t&&typeof t.ownKeys=="function"?r=t.ownKeys:Object.getOwnPropertySymbols?r=function(x){return Object.getOwnPropertyNames(x).concat(Object.getOwnPropertySymbols(x))}:r=function(x){return Object.getOwnPropertyNames(x)};function n(T){console&&console.warn&&console.warn(T)}var s=Number.isNaN||function(x){return x!==x};function i(){i.init.call(this)}ya.exports=i,ya.exports.once=_,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function o(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(T){if(typeof T!="number"||T<0||s(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");a=T}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(x){if(typeof x!="number"||x<0||s(x))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+x+".");return this._maxListeners=x,this};function l(T){return T._maxListeners===void 0?i.defaultMaxListeners:T._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(x){for(var A=[],P=1;P0&&(U=A[0]),U instanceof Error)throw U;var H=new Error("Unhandled error."+(U?" ("+U.message+")":""));throw H.context=U,H}var C=W[x];if(C===void 0)return!1;if(typeof C=="function")e(C,this,A);else for(var I=C.length,N=m(C,I),P=0;P0&&U.length>L&&!U.warned){U.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+U.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=T,H.type=x,H.count=U.length,n(H)}return T}i.prototype.addListener=function(x,A){return u(this,x,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(x,A){return u(this,x,A,!0)};function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(T,x,A){var P={fired:!1,wrapFn:void 0,target:T,type:x,listener:A},L=c.bind(P);return L.listener=A,P.wrapFn=L,L}i.prototype.once=function(x,A){return o(A),this.on(x,f(this,x,A)),this},i.prototype.prependOnceListener=function(x,A){return o(A),this.prependListener(x,f(this,x,A)),this},i.prototype.removeListener=function(x,A){var P,L,W,U,H;if(o(A),L=this._events,L===void 0)return this;if(P=L[x],P===void 0)return this;if(P===A||P.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete L[x],L.removeListener&&this.emit("removeListener",x,P.listener||A));else if(typeof P!="function"){for(W=-1,U=P.length-1;U>=0;U--)if(P[U]===A||P[U].listener===A){H=P[U].listener,W=U;break}if(W<0)return this;W===0?P.shift():b(P,W),P.length===1&&(L[x]=P[0]),L.removeListener!==void 0&&this.emit("removeListener",x,H||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(x){var A,P,L;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[x]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[x]),this;if(arguments.length===0){var W=Object.keys(P),U;for(L=0;L=0;L--)this.removeListener(x,A[L]);return this};function d(T,x,A){var P=T._events;if(P===void 0)return[];var L=P[x];return L===void 0?[]:typeof L=="function"?A?[L.listener||L]:[L]:A?v(L):m(L,L.length)}i.prototype.listeners=function(x){return d(this,x,!0)},i.prototype.rawListeners=function(x){return d(this,x,!1)},i.listenerCount=function(T,x){return typeof T.listenerCount=="function"?T.listenerCount(x):p.call(T,x)},i.prototype.listenerCount=p;function p(T){var x=this._events;if(x!==void 0){var A=x[T];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(T,x){for(var A=new Array(x),P=0;P{if(b!==void 0&&(b===null||typeof b!="object"||!("aborted"in b)))throw new s(v,"AbortSignal",b)},m=(b,v)=>{if(typeof b!="function")throw new s(v,"Function",b)};t.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(b){let v=!1;return function(..._){v||(v=!0,b.apply(this,_))}},createDeferredPromise:function(){let b,v;return{promise:new Promise((E,y)=>{b=E,v=y}),resolve:b,reject:v}},promisify(b){return new Promise((v,_)=>{b((E,...y)=>E?_(E):v(...y))})},debuglog(){return function(){}},format:r,inspect:n,types:{isAsyncFunction(b){return b instanceof c},isArrayBufferView(b){return ArrayBuffer.isView(b)}},isBlob:d,deprecate(b,v){return b},addAbortListener:ks().addAbortListener||function(v,_){if(v===void 0)throw new s("signal","AbortSignal",v);p(v,"signal"),m(_,"listener");let E;return v.aborted?queueMicrotask(()=>_()):(v.addEventListener("abort",_,{__proto__:null,once:!0,[i]:!0}),E=()=>{v.removeEventListener("abort",_)}),{__proto__:null,[o](){var y;(y=E)===null||y===void 0||y()}}},AbortSignalAny:l.any||function(v){if(v.length===1)return v[0];const _=new u,E=()=>_.abort();return v.forEach(y=>{p(y,"signals"),y.addEventListener("abort",E,{once:!0})}),_.signal.addEventListener("abort",()=>{v.forEach(y=>y.removeEventListener("abort",E))},{once:!0}),_.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}(cc)),cc.exports}var wa={},hc,fb;function Yo(){if(fb)return hc;fb=1;const{ArrayIsArray:t,ArrayPrototypeIncludes:e,ArrayPrototypeJoin:r,ArrayPrototypeMap:n,NumberIsInteger:s,NumberIsNaN:i,NumberMAX_SAFE_INTEGER:a,NumberMIN_SAFE_INTEGER:o,NumberParseInt:l,ObjectPrototypeHasOwnProperty:u,RegExpPrototypeExec:c,String:f,StringPrototypeToUpperCase:d,StringPrototypeTrim:p}=st(),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:E,ERR_UNKNOWN_SIGNAL:y}}=Nt(),{normalizeEncoding:T}=Ut(),{isAsyncFunction:x,isArrayBufferView:A}=Ut().types,P={};function L(Q){return Q===(Q|0)}function W(Q){return Q===Q>>>0}const U=/^[0-7]+$/,H="must be a 32-bit unsigned integer or an octal string";function C(Q,G,re){if(typeof Q>"u"&&(Q=re),typeof Q=="string"){if(c(U,Q)===null)throw new _(G,Q,H);Q=l(Q,8)}return J(Q,G),Q}const I=m((Q,G,re=o,z=a)=>{if(typeof Q!="number")throw new v(G,"number",Q);if(!s(Q))throw new E(G,"an integer",Q);if(Qz)throw new E(G,`>= ${re} && <= ${z}`,Q)}),N=m((Q,G,re=-2147483648,z=2147483647)=>{if(typeof Q!="number")throw new v(G,"number",Q);if(!s(Q))throw new E(G,"an integer",Q);if(Qz)throw new E(G,`>= ${re} && <= ${z}`,Q)}),J=m((Q,G,re=!1)=>{if(typeof Q!="number")throw new v(G,"number",Q);if(!s(Q))throw new E(G,"an integer",Q);const z=re?1:0,ie=4294967295;if(Qie)throw new E(G,`>= ${z} && <= ${ie}`,Q)});function ne(Q,G){if(typeof Q!="string")throw new v(G,"string",Q)}function te(Q,G,re=void 0,z){if(typeof Q!="number")throw new v(G,"number",Q);if(re!=null&&Qz||(re!=null||z!=null)&&i(Q))throw new E(G,`${re!=null?`>= ${re}`:""}${re!=null&&z!=null?" && ":""}${z!=null?`<= ${z}`:""}`,Q)}const B=m((Q,G,re)=>{if(!e(re,Q)){const ie="must be one of: "+r(n(re,he=>typeof he=="string"?`'${he}'`:f(he)),", ");throw new _(G,Q,ie)}});function ae(Q,G){if(typeof Q!="boolean")throw new v(G,"boolean",Q)}function Y(Q,G,re){return Q==null||!u(Q,G)?re:Q[G]}const ce=m((Q,G,re=null)=>{const z=Y(re,"allowArray",!1),ie=Y(re,"allowFunction",!1);if(!Y(re,"nullable",!1)&&Q===null||!z&&t(Q)||typeof Q!="object"&&(!ie||typeof Q!="function"))throw new v(G,"Object",Q)}),$=m((Q,G)=>{if(Q!=null&&typeof Q!="object"&&typeof Q!="function")throw new v(G,"a dictionary",Q)}),ue=m((Q,G,re=0)=>{if(!t(Q))throw new v(G,"Array",Q);if(Q.length{if(!A(Q))throw new v(G,["Buffer","TypedArray","DataView"],Q)});function X(Q,G){const re=T(G),z=Q.length;if(re==="hex"&&z%2!==0)throw new _("encoding",G,`is invalid for data of length ${z}`)}function le(Q,G="Port",re=!0){if(typeof Q!="number"&&typeof Q!="string"||typeof Q=="string"&&p(Q).length===0||+Q!==+Q>>>0||Q>65535||Q===0&&!re)throw new b(G,Q,re);return Q|0}const se=m((Q,G)=>{if(Q!==void 0&&(Q===null||typeof Q!="object"||!("aborted"in Q)))throw new v(G,"AbortSignal",Q)}),M=m((Q,G)=>{if(typeof Q!="function")throw new v(G,"Function",Q)}),O=m((Q,G)=>{if(typeof Q!="function"||x(Q))throw new v(G,"Function",Q)}),F=m((Q,G)=>{if(Q!==void 0)throw new v(G,"undefined",Q)});function R(Q,G,re){if(!e(re,Q))throw new v(G,`('${r(re,"|")}')`,Q)}const V=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function q(Q,G){if(typeof Q>"u"||!c(V,Q))throw new _(G,Q,'must be an array or string of format "; rel=preload; as=style"')}function oe(Q){if(typeof Q=="string")return q(Q,"hints"),Q;if(t(Q)){const G=Q.length;let re="";if(G===0)return re;for(let z=0;z; rel=preload; as=style"')}return hc={isInt32:L,isUint32:W,parseFileMode:C,validateArray:ue,validateStringArray:me,validateBooleanArray:ee,validateAbortSignalArray:K,validateBoolean:ae,validateBuffer:D,validateDictionary:$,validateEncoding:X,validateFunction:M,validateInt32:N,validateInteger:I,validateNumber:te,validateObject:ce,validateOneOf:B,validatePlainFunction:O,validatePort:le,validateSignalName:j,validateString:ne,validateUint32:J,validateUndefined:F,validateUnion:R,validateAbortSignal:se,validateLinkHeaderValue:oe},hc}var _a={exports:{}},pc={exports:{}},db;function Bi(){if(db)return pc.exports;db=1;var t=pc.exports={},e,r;function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=n}catch{e=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=s}catch{r=s}})();function i(b){if(e===setTimeout)return setTimeout(b,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(b,0);try{return e(b,0)}catch{try{return e.call(null,b,0)}catch{return e.call(this,b,0)}}}function a(b){if(r===clearTimeout)return clearTimeout(b);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{return r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}var o=[],l=!1,u,c=-1;function f(){!l||!u||(l=!1,u.length?o=u.concat(o):c=-1,o.length&&d())}function d(){if(!l){var b=i(f);l=!0;for(var v=o.length;v;){for(u=o,o=[];++c1)for(var _=1;_{};function J(B,ae,Y){var ce,$;if(arguments.length===2?(Y=ae,ae=i):ae==null?ae=i:u(ae,"options"),l(Y,"callback"),o(ae.signal,"options.signal"),Y=a(Y),_(B)||A(B))return ne(B,ae,Y);if(!W(B))throw new n("stream",["ReadableStream","WritableStream","Stream"],B);const ue=(ce=ae.readable)!==null&&ce!==void 0?ce:v(B),me=($=ae.writable)!==null&&$!==void 0?$:x(B),ee=B._writableState,K=B._readableState,j=()=>{B.writable||le()};let D=U(B)&&v(B)===ue&&x(B)===me,X=P(B,!1);const le=()=>{X=!0,B.destroyed&&(D=!1),!(D&&(!B.readable||ue))&&(!ue||se)&&Y.call(B)};let se=E(B,!1);const M=()=>{se=!0,B.destroyed&&(D=!1),!(D&&(!B.writable||me))&&(!me||X)&&Y.call(B)},O=Q=>{Y.call(B,Q)};let F=m(B);const R=()=>{F=!0;const Q=L(B)||y(B);if(Q&&typeof Q!="boolean")return Y.call(B,Q);if(ue&&!se&&v(B,!0)&&!E(B,!1))return Y.call(B,new s);if(me&&!X&&!P(B,!1))return Y.call(B,new s);Y.call(B)},V=()=>{F=!0;const Q=L(B)||y(B);if(Q&&typeof Q!="boolean")return Y.call(B,Q);Y.call(B)},q=()=>{B.req.on("finish",le)};I(B)?(B.on("complete",le),D||B.on("abort",R),B.req?q():B.on("request",q)):me&&!ee&&(B.on("end",j),B.on("close",j)),!D&&typeof B.aborted=="boolean"&&B.on("aborted",R),B.on("end",M),B.on("finish",le),ae.error!==!1&&B.on("error",O),B.on("close",R),F?t.nextTick(R):ee!=null&&ee.errorEmitted||K!=null&&K.errorEmitted?D||t.nextTick(V):(!ue&&(!D||b(B))&&(X||T(B)===!1)||!me&&(!D||T(B))&&(se||b(B)===!1)||K&&B.req&&B.aborted)&&t.nextTick(V);const oe=()=>{Y=N,B.removeListener("aborted",R),B.removeListener("complete",le),B.removeListener("abort",R),B.removeListener("request",q),B.req&&B.req.removeListener("finish",le),B.removeListener("end",j),B.removeListener("close",j),B.removeListener("finish",le),B.removeListener("end",M),B.removeListener("error",O),B.removeListener("close",R)};if(ae.signal&&!F){const Q=()=>{const G=Y;oe(),G.call(B,new e(void 0,{cause:ae.signal.reason}))};if(ae.signal.aborted)t.nextTick(Q);else{C=C||Ut().addAbortListener;const G=C(ae.signal,Q),re=Y;Y=a((...z)=>{G[p](),re.apply(B,z)})}}return oe}function ne(B,ae,Y){let ce=!1,$=N;if(ae.signal)if($=()=>{ce=!0,Y.call(B,new e(void 0,{cause:ae.signal.reason}))},ae.signal.aborted)t.nextTick($);else{C=C||Ut().addAbortListener;const me=C(ae.signal,$),ee=Y;Y=a((...K)=>{me[p](),ee.apply(B,K)})}const ue=(...me)=>{ce||t.nextTick(()=>Y.apply(B,me))};return d(B[H].promise,ue,ue),N}function te(B,ae){var Y;let ce=!1;return ae===null&&(ae=i),(Y=ae)!==null&&Y!==void 0&&Y.cleanup&&(c(ae.cleanup,"cleanup"),ce=ae.cleanup),new f(($,ue)=>{const me=J(B,ae,ee=>{ce&&me(),ee?ue(ee):$()})})}return _a.exports=J,_a.exports.finished=te,_a.exports}var mc,gb;function Rs(){if(gb)return mc;gb=1;const t=Bi(),{aggregateTwoErrors:e,codes:{ERR_MULTIPLE_CALLBACK:r},AbortError:n}=Nt(),{Symbol:s}=st(),{kIsDestroyed:i,isDestroyed:a,isFinished:o,isServerRequest:l}=_n(),u=s("kDestroy"),c=s("kConstruct");function f(U,H,C){U&&(U.stack,H&&!H.errored&&(H.errored=U),C&&!C.errored&&(C.errored=U))}function d(U,H){const C=this._readableState,I=this._writableState,N=I||C;return I!=null&&I.destroyed||C!=null&&C.destroyed?(typeof H=="function"&&H(),this):(f(U,I,C),I&&(I.destroyed=!0),C&&(C.destroyed=!0),N.constructed?p(this,U,H):this.once(u,function(J){p(this,e(J,U),H)}),this)}function p(U,H,C){let I=!1;function N(J){if(I)return;I=!0;const ne=U._readableState,te=U._writableState;f(J,te,ne),te&&(te.closed=!0),ne&&(ne.closed=!0),typeof C=="function"&&C(J),J?t.nextTick(m,U,J):t.nextTick(b,U)}try{U._destroy(H||null,N)}catch(J){N(J)}}function m(U,H){v(U,H),b(U)}function b(U){const H=U._readableState,C=U._writableState;C&&(C.closeEmitted=!0),H&&(H.closeEmitted=!0),(C!=null&&C.emitClose||H!=null&&H.emitClose)&&U.emit("close")}function v(U,H){const C=U._readableState,I=U._writableState;I!=null&&I.errorEmitted||C!=null&&C.errorEmitted||(I&&(I.errorEmitted=!0),C&&(C.errorEmitted=!0),U.emit("error",H))}function _(){const U=this._readableState,H=this._writableState;U&&(U.constructed=!0,U.closed=!1,U.closeEmitted=!1,U.destroyed=!1,U.errored=null,U.errorEmitted=!1,U.reading=!1,U.ended=U.readable===!1,U.endEmitted=U.readable===!1),H&&(H.constructed=!0,H.destroyed=!1,H.closed=!1,H.closeEmitted=!1,H.errored=null,H.errorEmitted=!1,H.finalCalled=!1,H.prefinished=!1,H.ended=H.writable===!1,H.ending=H.writable===!1,H.finished=H.writable===!1)}function E(U,H,C){const I=U._readableState,N=U._writableState;if(N!=null&&N.destroyed||I!=null&&I.destroyed)return this;I!=null&&I.autoDestroy||N!=null&&N.autoDestroy?U.destroy(H):H&&(H.stack,N&&!N.errored&&(N.errored=H),I&&!I.errored&&(I.errored=H),C?t.nextTick(v,U,H):v(U,H))}function y(U,H){if(typeof U._construct!="function")return;const C=U._readableState,I=U._writableState;C&&(C.constructed=!1),I&&(I.constructed=!1),U.once(c,H),!(U.listenerCount(c)>1)&&t.nextTick(T,U)}function T(U){let H=!1;function C(I){if(H){E(U,I??new r);return}H=!0;const N=U._readableState,J=U._writableState,ne=J||N;N&&(N.constructed=!0),J&&(J.constructed=!0),ne.destroyed?U.emit(u,I):I?E(U,I,!0):t.nextTick(x,U)}try{U._construct(I=>{t.nextTick(C,I)})}catch(I){t.nextTick(C,I)}}function x(U){U.emit(c)}function A(U){return(U==null?void 0:U.setHeader)&&typeof U.abort=="function"}function P(U){U.emit("close")}function L(U,H){U.emit("error",H),t.nextTick(P,U)}function W(U,H){!U||a(U)||(!H&&!o(U)&&(H=new n),l(U)?(U.socket=null,U.destroy(H)):A(U)?U.abort():A(U.req)?U.req.abort():typeof U.destroy=="function"?U.destroy(H):typeof U.close=="function"?U.close():H?t.nextTick(L,U,H):t.nextTick(P,U),U.destroyed||(U[i]=!0))}return mc={construct:y,destroyer:W,destroy:d,undestroy:_,errorOrDestroy:E},mc}var bc,mb;function wp(){if(mb)return bc;mb=1;const{ArrayIsArray:t,ObjectSetPrototypeOf:e}=st(),{EventEmitter:r}=ks();function n(i){r.call(this,i)}e(n.prototype,r.prototype),e(n,r),n.prototype.pipe=function(i,a){const o=this;function l(b){i.writable&&i.write(b)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}i.on("drain",u),!i._isStdio&&(!a||a.end!==!1)&&(o.on("end",f),o.on("close",d));let c=!1;function f(){c||(c=!0,i.end())}function d(){c||(c=!0,typeof i.destroy=="function"&&i.destroy())}function p(b){m(),r.listenerCount(this,"error")===0&&this.emit("error",b)}s(o,"error",p),s(i,"error",p);function m(){o.removeListener("data",l),i.removeListener("drain",u),o.removeListener("end",f),o.removeListener("close",d),o.removeListener("error",p),i.removeListener("error",p),o.removeListener("end",m),o.removeListener("close",m),i.removeListener("close",m)}return o.on("end",m),o.on("close",m),i.on("close",m),i.emit("pipe",o),i};function s(i,a,o){if(typeof i.prependListener=="function")return i.prependListener(a,o);!i._events||!i._events[a]?i.on(a,o):t(i._events[a])?i._events[a].unshift(o):i._events[a]=[o,i._events[a]]}return bc={Stream:n,prependListener:s},bc}var yc={exports:{}},bb;function uu(){return bb||(bb=1,function(t){const{SymbolDispose:e}=st(),{AbortError:r,codes:n}=Nt(),{isNodeStream:s,isWebStream:i,kControllerErrorFunction:a}=_n(),o=Wn(),{ERR_INVALID_ARG_TYPE:l}=n;let u;const c=(f,d)=>{if(typeof f!="object"||!("aborted"in f))throw new l(d,"AbortSignal",f)};t.exports.addAbortSignal=function(d,p){if(c(d,"signal"),!s(p)&&!i(p))throw new l("stream",["ReadableStream","WritableStream","Stream"],p);return t.exports.addAbortSignalNoValidate(d,p)},t.exports.addAbortSignalNoValidate=function(f,d){if(typeof f!="object"||!("aborted"in f))return d;const p=s(d)?()=>{d.destroy(new r(void 0,{cause:f.reason}))}:()=>{d[a](new r(void 0,{cause:f.reason}))};if(f.aborted)p();else{u=u||Ut().addAbortListener;const m=u(f,p);o(d,m[e])}return d}}(yc)),yc.exports}var wc,yb;function hk(){if(yb)return wc;yb=1;const{StringPrototypeSlice:t,SymbolIterator:e,TypedArrayPrototypeSet:r,Uint8Array:n}=st(),{Buffer:s}=er(),{inspect:i}=Ut();return wc=class{constructor(){this.head=null,this.tail=null,this.length=0}push(o){const l={data:o,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length}unshift(o){const l={data:o,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length}shift(){if(this.length===0)return;const o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}clear(){this.head=this.tail=null,this.length=0}join(o){if(this.length===0)return"";let l=this.head,u=""+l.data;for(;(l=l.next)!==null;)u+=o+l.data;return u}concat(o){if(this.length===0)return s.alloc(0);const l=s.allocUnsafe(o>>>0);let u=this.head,c=0;for(;u;)r(l,u.data,c),c+=u.data.length,u=u.next;return l}consume(o,l){const u=this.head.data;if(of.length)l+=f,o-=f.length;else{o===f.length?(l+=f,++c,u.next?this.head=u.next:this.head=this.tail=null):(l+=t(f,0,o),this.head=u,u.data=t(f,o));break}++c}while((u=u.next)!==null);return this.length-=c,l}_getBuffer(o){const l=s.allocUnsafe(o),u=o;let c=this.head,f=0;do{const d=c.data;if(o>d.length)r(l,d,u-o),o-=d.length;else{o===d.length?(r(l,d,u-o),++f,c.next?this.head=c.next:this.head=this.tail=null):(r(l,new n(d.buffer,d.byteOffset,o),u-o),this.head=c,c.data=d.slice(o));break}++f}while((c=c.next)!==null);return this.length-=f,l}[Symbol.for("nodejs.util.inspect.custom")](o,l){return i(this,{...l,depth:0,customInspect:!1})}},wc}var _c,wb;function cu(){if(wb)return _c;wb=1;const{MathFloor:t,NumberIsInteger:e}=st(),{validateInteger:r}=Yo(),{ERR_INVALID_ARG_VALUE:n}=Nt().codes;let s=16*1024,i=16;function a(c,f,d){return c.highWaterMark!=null?c.highWaterMark:f?c[d]:null}function o(c){return c?i:s}function l(c,f){r(f,"value",0),c?i=f:s=f}function u(c,f,d,p){const m=a(f,p,d);if(m!=null){if(!e(m)||m<0){const b=p?`options.${d}`:"options.highWaterMark";throw new n(b,m)}return t(m)}return o(c.objectMode)}return _c={getHighWaterMark:u,getDefaultHighWaterMark:o,setDefaultHighWaterMark:l},_c}var vc={},va={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */var _b;function pk(){return _b||(_b=1,function(t,e){var r=er(),n=r.Buffer;function s(a,o){for(var l in a)o[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(s(r,e),e.Buffer=i);function i(a,o,l){return n(a,o,l)}i.prototype=Object.create(n.prototype),s(n,i),i.from=function(a,o,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,o,l)},i.alloc=function(a,o,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=n(a);return o!==void 0?typeof l=="string"?u.fill(o,l):u.fill(o):u.fill(0),u},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(va,va.exports)),va.exports}var vb;function gk(){if(vb)return vc;vb=1;var t=pk().Buffer,e=t.isEncoding||function(_){switch(_=""+_,_&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(_){if(!_)return"utf8";for(var E;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(E)return;_=(""+_).toLowerCase(),E=!0}}function n(_){var E=r(_);if(typeof E!="string"&&(t.isEncoding===e||!e(_)))throw new Error("Unknown encoding: "+_);return E||_}vc.StringDecoder=s;function s(_){this.encoding=n(_);var E;switch(this.encoding){case"utf16le":this.text=f,this.end=d,E=4;break;case"utf8":this.fillLast=l,E=4;break;case"base64":this.text=p,this.end=m,E=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(E)}s.prototype.write=function(_){if(_.length===0)return"";var E,y;if(this.lastNeed){if(E=this.fillLast(_),E===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<_.length?E?E+this.text(_,y):this.text(_,y):E||""},s.prototype.end=c,s.prototype.text=u,s.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function i(_){return _<=127?0:_>>5===6?2:_>>4===14?3:_>>3===30?4:_>>6===2?-1:-2}function a(_,E,y){var T=E.length-1;if(T=0?(x>0&&(_.lastNeed=x-1),x):--T=0?(x>0&&(_.lastNeed=x-2),x):--T=0?(x>0&&(x===2?x=0:_.lastNeed=x-3),x):0))}function o(_,E,y){if((E[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return _.lastNeed=2,"�"}}function l(_){var E=this.lastTotal-this.lastNeed,y=o(this,_);if(y!==void 0)return y;if(this.lastNeed<=_.length)return _.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,E,0,_.length),this.lastNeed-=_.length}function u(_,E){var y=a(this,_,E);if(!this.lastNeed)return _.toString("utf8",E);this.lastTotal=y;var T=_.length-(y-this.lastNeed);return _.copy(this.lastChar,0,T),_.toString("utf8",E,T)}function c(_){var E=_&&_.length?this.write(_):"";return this.lastNeed?E+"�":E}function f(_,E){if((_.length-E)%2===0){var y=_.toString("utf16le",E);if(y){var T=y.charCodeAt(y.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",E,_.length-1)}function d(_){var E=_&&_.length?this.write(_):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,y)}return E}function p(_,E){var y=(_.length-E)%3;return y===0?_.toString("base64",E):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",E,_.length-y))}function m(_){var E=_&&_.length?this.write(_):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function b(_){return _.toString(this.encoding)}function v(_){return _&&_.length?this.write(_):""}return vc}var Ec,Eb;function Iv(){if(Eb)return Ec;Eb=1;const t=Bi(),{PromisePrototypeThen:e,SymbolAsyncIterator:r,SymbolIterator:n}=st(),{Buffer:s}=er(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_NULL_VALUES:a}=Nt().codes;function o(l,u,c){let f;if(typeof u=="string"||u instanceof s)return new l({objectMode:!0,...c,read(){this.push(u),this.push(null)}});let d;if(u&&u[r])d=!0,f=u[r]();else if(u&&u[n])d=!1,f=u[n]();else throw new i("iterable",["Iterable"],u);const p=new l({objectMode:!0,highWaterMark:1,...c});let m=!1;p._read=function(){m||(m=!0,v())},p._destroy=function(_,E){e(b(_),()=>t.nextTick(E,_),y=>t.nextTick(E,y||_))};async function b(_){const E=_!=null,y=typeof f.throw=="function";if(E&&y){const{value:T,done:x}=await f.throw(_);if(await T,x)return}if(typeof f.return=="function"){const{value:T}=await f.return();await T}}async function v(){for(;;){try{const{value:_,done:E}=d?await f.next():f.next();if(E)p.push(null);else{const y=_&&typeof _.then=="function"?await _:_;if(y===null)throw m=!1,new a;if(p.push(y))continue;m=!1}}catch(_){p.destroy(_)}break}}return p}return Ec=o,Ec}var Sc,Sb;function fu(){if(Sb)return Sc;Sb=1;const t=Bi(),{ArrayPrototypeIndexOf:e,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:s,ObjectDefineProperties:i,ObjectKeys:a,ObjectSetPrototypeOf:o,Promise:l,SafeSet:u,SymbolAsyncDispose:c,SymbolAsyncIterator:f,Symbol:d}=st();Sc=z,z.ReadableState=re;const{EventEmitter:p}=ks(),{Stream:m,prependListener:b}=wp(),{Buffer:v}=er(),{addAbortSignal:_}=uu(),E=Wn();let y=Ut().debuglog("stream",fe=>{y=fe});const T=hk(),x=Rs(),{getHighWaterMark:A,getDefaultHighWaterMark:P}=cu(),{aggregateTwoErrors:L,codes:{ERR_INVALID_ARG_TYPE:W,ERR_METHOD_NOT_IMPLEMENTED:U,ERR_OUT_OF_RANGE:H,ERR_STREAM_PUSH_AFTER_EOF:C,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:N}=Nt(),{validateObject:J}=Yo(),ne=d("kPaused"),{StringDecoder:te}=gk(),B=Iv();o(z.prototype,m.prototype),o(z,m);const ae=()=>{},{errorOrDestroy:Y}=x,ce=1,$=2,ue=4,me=8,ee=16,K=32,j=64,D=128,X=256,le=512,se=1024,M=2048,O=4096,F=8192,R=16384,V=32768,q=65536,oe=1<<17,Q=1<<18;function G(fe){return{enumerable:!1,get(){return(this.state&fe)!==0},set(pe){pe?this.state|=fe:this.state&=~fe}}}i(re.prototype,{objectMode:G(ce),ended:G($),endEmitted:G(ue),reading:G(me),constructed:G(ee),sync:G(K),needReadable:G(j),emittedReadable:G(D),readableListening:G(X),resumeScheduled:G(le),errorEmitted:G(se),emitClose:G(M),autoDestroy:G(O),destroyed:G(F),closed:G(R),closeEmitted:G(V),multiAwaitDrain:G(q),readingMore:G(oe),dataEmitted:G(Q)});function re(fe,pe,Ce){typeof Ce!="boolean"&&(Ce=pe instanceof pn()),this.state=M|O|ee|K,fe&&fe.objectMode&&(this.state|=ce),Ce&&fe&&fe.readableObjectMode&&(this.state|=ce),this.highWaterMark=fe?A(this,fe,"readableHighWaterMark",Ce):P(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this[ne]=null,fe&&fe.emitClose===!1&&(this.state&=-2049),fe&&fe.autoDestroy===!1&&(this.state&=-4097),this.errored=null,this.defaultEncoding=fe&&fe.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,fe&&fe.encoding&&(this.decoder=new te(fe.encoding),this.encoding=fe.encoding)}function z(fe){if(!(this instanceof z))return new z(fe);const pe=this instanceof pn();this._readableState=new re(fe,this,pe),fe&&(typeof fe.read=="function"&&(this._read=fe.read),typeof fe.destroy=="function"&&(this._destroy=fe.destroy),typeof fe.construct=="function"&&(this._construct=fe.construct),fe.signal&&!pe&&_(fe.signal,this)),m.call(this,fe),x.construct(this,()=>{this._readableState.needReadable&&Z(this,this._readableState)})}z.prototype.destroy=x.destroy,z.prototype._undestroy=x.undestroy,z.prototype._destroy=function(fe,pe){pe(fe)},z.prototype[p.captureRejectionSymbol]=function(fe){this.destroy(fe)},z.prototype[c]=function(){let fe;return this.destroyed||(fe=this.readableEnded?null:new N,this.destroy(fe)),new l((pe,Ce)=>E(this,Ie=>Ie&&Ie!==fe?Ce(Ie):pe(null)))},z.prototype.push=function(fe,pe){return ie(this,fe,pe,!1)},z.prototype.unshift=function(fe,pe){return ie(this,fe,pe,!0)};function ie(fe,pe,Ce,Ie){y("readableAddChunk",pe);const ke=fe._readableState;let Et;if(ke.state&ce||(typeof pe=="string"?(Ce=Ce||ke.defaultEncoding,ke.encoding!==Ce&&(Ie&&ke.encoding?pe=v.from(pe,Ce).toString(ke.encoding):(pe=v.from(pe,Ce),Ce=""))):pe instanceof v?Ce="":m._isUint8Array(pe)?(pe=m._uint8ArrayToBuffer(pe),Ce=""):pe!=null&&(Et=new W("chunk",["string","Buffer","Uint8Array"],pe))),Et)Y(fe,Et);else if(pe===null)ke.state&=-9,h(fe,ke);else if(ke.state&ce||pe&&pe.length>0)if(Ie)if(ke.state&ue)Y(fe,new I);else{if(ke.destroyed||ke.errored)return!1;he(fe,ke,pe,!0)}else if(ke.ended)Y(fe,new C);else{if(ke.destroyed||ke.errored)return!1;ke.state&=-9,ke.decoder&&!Ce?(pe=ke.decoder.write(pe),ke.objectMode||pe.length!==0?he(fe,ke,pe,!1):Z(fe,ke)):he(fe,ke,pe,!1)}else Ie||(ke.state&=-9,Z(fe,ke));return!ke.ended&&(ke.length0?(pe.state&q?pe.awaitDrainWriters.clear():pe.awaitDrainWriters=null,pe.dataEmitted=!0,fe.emit("data",Ce)):(pe.length+=pe.objectMode?1:Ce.length,Ie?pe.buffer.unshift(Ce):pe.buffer.push(Ce),pe.state&j&&w(fe)),Z(fe,pe)}z.prototype.isPaused=function(){const fe=this._readableState;return fe[ne]===!0||fe.flowing===!1},z.prototype.setEncoding=function(fe){const pe=new te(fe);this._readableState.decoder=pe,this._readableState.encoding=this._readableState.decoder.encoding;const Ce=this._readableState.buffer;let Ie="";for(const ke of Ce)Ie+=pe.write(ke);return Ce.clear(),Ie!==""&&Ce.push(Ie),this._readableState.length=Ie.length,this};const be=1073741824;function S(fe){if(fe>be)throw new H("size","<= 1GiB",fe);return fe--,fe|=fe>>>1,fe|=fe>>>2,fe|=fe>>>4,fe|=fe>>>8,fe|=fe>>>16,fe++,fe}function g(fe,pe){return fe<=0||pe.length===0&&pe.ended?0:pe.state&ce?1:n(fe)?pe.flowing&&pe.length?pe.buffer.first().length:pe.length:fe<=pe.length?fe:pe.ended?pe.length:0}z.prototype.read=function(fe){y("read",fe),fe===void 0?fe=NaN:r(fe)||(fe=s(fe,10));const pe=this._readableState,Ce=fe;if(fe>pe.highWaterMark&&(pe.highWaterMark=S(fe)),fe!==0&&(pe.state&=-129),fe===0&&pe.needReadable&&((pe.highWaterMark!==0?pe.length>=pe.highWaterMark:pe.length>0)||pe.ended))return y("read: emitReadable",pe.length,pe.ended),pe.length===0&&pe.ended?at(this):w(this),null;if(fe=g(fe,pe),fe===0&&pe.ended)return pe.length===0&&at(this),null;let Ie=(pe.state&j)!==0;if(y("need readable",Ie),(pe.length===0||pe.length-fe0?ke=Je(fe,pe):ke=null,ke===null?(pe.needReadable=pe.length<=pe.highWaterMark,fe=0):(pe.length-=fe,pe.multiAwaitDrain?pe.awaitDrainWriters.clear():pe.awaitDrainWriters=null),pe.length===0&&(pe.ended||(pe.needReadable=!0),Ce!==fe&&pe.ended&&at(this)),ke!==null&&!pe.errorEmitted&&!pe.closeEmitted&&(pe.dataEmitted=!0,this.emit("data",ke)),ke};function h(fe,pe){if(y("onEofChunk"),!pe.ended){if(pe.decoder){const Ce=pe.decoder.end();Ce&&Ce.length&&(pe.buffer.push(Ce),pe.length+=pe.objectMode?1:Ce.length)}pe.ended=!0,pe.sync?w(fe):(pe.needReadable=!1,pe.emittedReadable=!0,k(fe))}}function w(fe){const pe=fe._readableState;y("emitReadable",pe.needReadable,pe.emittedReadable),pe.needReadable=!1,pe.emittedReadable||(y("emitReadable",pe.flowing),pe.emittedReadable=!0,t.nextTick(k,fe))}function k(fe){const pe=fe._readableState;y("emitReadable_",pe.destroyed,pe.length,pe.ended),!pe.destroyed&&!pe.errored&&(pe.length||pe.ended)&&(fe.emit("readable"),pe.emittedReadable=!1),pe.needReadable=!pe.flowing&&!pe.ended&&pe.length<=pe.highWaterMark,Oe(fe)}function Z(fe,pe){!pe.readingMore&&pe.constructed&&(pe.readingMore=!0,t.nextTick(de,fe,pe))}function de(fe,pe){for(;!pe.reading&&!pe.ended&&(pe.length1&&Ie.pipes.includes(fe)&&(y("false write response, pause",Ie.awaitDrainWriters.size),Ie.awaitDrainWriters.add(fe)),Ce.pause()),qn||(qn=ye(Ce,fe),fe.on("drain",qn))}Ce.on("data",Vp);function Vp(Yn){y("ondata");const $r=fe.write(Yn);y("dest.write",$r),$r===!1&&zp()}function Su(Yn){if(y("onerror",Yn),Us(),fe.removeListener("error",Su),fe.listenerCount("error")===0){const $r=fe._writableState||fe._readableState;$r&&!$r.errorEmitted?Y(fe,Yn):fe.emit("error",Yn)}}b(fe,"error",Su);function Tu(){fe.removeListener("finish",xu),Us()}fe.once("close",Tu);function xu(){y("onfinish"),fe.removeListener("close",Tu),Us()}fe.once("finish",xu);function Us(){y("unpipe"),Ce.unpipe(fe)}return fe.emit("pipe",Ce),fe.writableNeedDrain===!0?zp():Ie.flowing||(y("pipe resume"),Ce.resume()),fe};function ye(fe,pe){return function(){const Ie=fe._readableState;Ie.awaitDrainWriters===pe?(y("pipeOnDrain",1),Ie.awaitDrainWriters=null):Ie.multiAwaitDrain&&(y("pipeOnDrain",Ie.awaitDrainWriters.size),Ie.awaitDrainWriters.delete(pe)),(!Ie.awaitDrainWriters||Ie.awaitDrainWriters.size===0)&&fe.listenerCount("data")&&fe.resume()}}z.prototype.unpipe=function(fe){const pe=this._readableState,Ce={hasUnpiped:!1};if(pe.pipes.length===0)return this;if(!fe){const ke=pe.pipes;pe.pipes=[],this.pause();for(let Et=0;Et0,Ie.flowing!==!1&&this.resume()):fe==="readable"&&!Ie.endEmitted&&!Ie.readableListening&&(Ie.readableListening=Ie.needReadable=!0,Ie.flowing=!1,Ie.emittedReadable=!1,y("on readable",Ie.length,Ie.reading),Ie.length?w(this):Ie.reading||t.nextTick(Me,this)),Ce},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(fe,pe){const Ce=m.prototype.removeListener.call(this,fe,pe);return fe==="readable"&&t.nextTick(Ae,this),Ce},z.prototype.off=z.prototype.removeListener,z.prototype.removeAllListeners=function(fe){const pe=m.prototype.removeAllListeners.apply(this,arguments);return(fe==="readable"||fe===void 0)&&t.nextTick(Ae,this),pe};function Ae(fe){const pe=fe._readableState;pe.readableListening=fe.listenerCount("readable")>0,pe.resumeScheduled&&pe[ne]===!1?pe.flowing=!0:fe.listenerCount("data")>0?fe.resume():pe.readableListening||(pe.flowing=null)}function Me(fe){y("readable nexttick read 0"),fe.read(0)}z.prototype.resume=function(){const fe=this._readableState;return fe.flowing||(y("resume"),fe.flowing=!fe.readableListening,xe(this,fe)),fe[ne]=!1,this};function xe(fe,pe){pe.resumeScheduled||(pe.resumeScheduled=!0,t.nextTick(Pe,fe,pe))}function Pe(fe,pe){y("resume",pe.reading),pe.reading||fe.read(0),pe.resumeScheduled=!1,fe.emit("resume"),Oe(fe),pe.flowing&&!pe.reading&&fe.read(0)}z.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ne]=!0,this};function Oe(fe){const pe=fe._readableState;for(y("flow",pe.flowing);pe.flowing&&fe.read()!==null;);}z.prototype.wrap=function(fe){let pe=!1;fe.on("data",Ie=>{!this.push(Ie)&&fe.pause&&(pe=!0,fe.pause())}),fe.on("end",()=>{this.push(null)}),fe.on("error",Ie=>{Y(this,Ie)}),fe.on("close",()=>{this.destroy()}),fe.on("destroy",()=>{this.destroy()}),this._read=()=>{pe&&fe.resume&&(pe=!1,fe.resume())};const Ce=a(fe);for(let Ie=1;Ie{ke=tr?L(ke,tr):null,Ce(),Ce=ae});try{for(;;){const tr=fe.destroyed?null:fe.read();if(tr!==null)yield tr;else{if(ke)throw ke;if(ke===null)return;await new l(Ie)}}}catch(tr){throw ke=L(ke,tr),ke}finally{(ke||(pe==null?void 0:pe.destroyOnReturn)!==!1)&&(ke===void 0||fe._readableState.autoDestroy)?x.destroyer(fe,null):(fe.off("readable",Ie),Et())}}i(z.prototype,{readable:{__proto__:null,get(){const fe=this._readableState;return!!fe&&fe.readable!==!1&&!fe.destroyed&&!fe.errorEmitted&&!fe.endEmitted},set(fe){this._readableState&&(this._readableState.readable=!!fe)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(fe){this._readableState&&(this._readableState.flowing=fe)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(fe){this._readableState&&(this._readableState.destroyed=fe)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),i(re.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ne]!==!1},set(fe){this[ne]=!!fe}}}),z._fromList=Je;function Je(fe,pe){if(pe.length===0)return null;let Ce;return pe.objectMode?Ce=pe.buffer.shift():!fe||fe>=pe.length?(pe.decoder?Ce=pe.buffer.join(""):pe.buffer.length===1?Ce=pe.buffer.first():Ce=pe.buffer.concat(pe.length),pe.buffer.clear()):Ce=pe.buffer.consume(fe,pe.decoder),Ce}function at(fe){const pe=fe._readableState;y("endReadable",pe.endEmitted),pe.endEmitted||(pe.ended=!0,t.nextTick(mt,pe,fe))}function mt(fe,pe){if(y("endReadableNT",fe.endEmitted,fe.length),!fe.errored&&!fe.closeEmitted&&!fe.endEmitted&&fe.length===0){if(fe.endEmitted=!0,pe.emit("end"),pe.writable&&pe.allowHalfOpen===!1)t.nextTick(ct,pe);else if(fe.autoDestroy){const Ce=pe._writableState;(!Ce||Ce.autoDestroy&&(Ce.finished||Ce.writable===!1))&&pe.destroy()}}}function ct(fe){fe.writable&&!fe.writableEnded&&!fe.destroyed&&fe.end()}z.from=function(fe,pe){return B(z,fe,pe)};let Wi;function Fs(){return Wi===void 0&&(Wi={}),Wi}return z.fromWeb=function(fe,pe){return Fs().newStreamReadableFromReadableStream(fe,pe)},z.toWeb=function(fe,pe){return Fs().newReadableStreamFromStreamReadable(fe,pe)},z.wrap=function(fe,pe){var Ce,Ie;return new z({objectMode:(Ce=(Ie=fe.readableObjectMode)!==null&&Ie!==void 0?Ie:fe.objectMode)!==null&&Ce!==void 0?Ce:!0,...pe,destroy(ke,Et){x.destroyer(fe,ke),Et(ke)}}).wrap(fe)},Sc}var Tc,Tb;function _p(){if(Tb)return Tc;Tb=1;const t=Bi(),{ArrayPrototypeSlice:e,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:s,ObjectDefineProperties:i,ObjectSetPrototypeOf:a,StringPrototypeToLowerCase:o,Symbol:l,SymbolHasInstance:u}=st();Tc=J,J.WritableState=I;const{EventEmitter:c}=ks(),f=wp().Stream,{Buffer:d}=er(),p=Rs(),{addAbortSignal:m}=uu(),{getHighWaterMark:b,getDefaultHighWaterMark:v}=cu(),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:P,ERR_STREAM_WRITE_AFTER_END:L,ERR_UNKNOWN_ENCODING:W}=Nt().codes,{errorOrDestroy:U}=p;a(J.prototype,f.prototype),a(J,f);function H(){}const C=l("kOnFinished");function I(O,F,R){typeof R!="boolean"&&(R=F instanceof pn()),this.objectMode=!!(O&&O.objectMode),R&&(this.objectMode=this.objectMode||!!(O&&O.writableObjectMode)),this.highWaterMark=O?b(this,O,"writableHighWaterMark",R):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const V=!!(O&&O.decodeStrings===!1);this.decodeStrings=!V,this.defaultEncoding=O&&O.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Y.bind(void 0,F),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,N(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!O||O.emitClose!==!1,this.autoDestroy=!O||O.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[C]=[]}function N(O){O.buffered=[],O.bufferedIndex=0,O.allBuffers=!0,O.allNoop=!0}I.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},s(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function J(O){const F=this instanceof pn();if(!F&&!n(J,this))return new J(O);this._writableState=new I(O,this,F),O&&(typeof O.write=="function"&&(this._write=O.write),typeof O.writev=="function"&&(this._writev=O.writev),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.final=="function"&&(this._final=O.final),typeof O.construct=="function"&&(this._construct=O.construct),O.signal&&m(O.signal,this)),f.call(this,O),p.construct(this,()=>{const R=this._writableState;R.writing||me(this,R),D(this,R)})}s(J,u,{__proto__:null,value:function(O){return n(this,O)?!0:this!==J?!1:O&&O._writableState instanceof I}}),J.prototype.pipe=function(){U(this,new T)};function ne(O,F,R,V){const q=O._writableState;if(typeof R=="function")V=R,R=q.defaultEncoding;else{if(!R)R=q.defaultEncoding;else if(R!=="buffer"&&!d.isEncoding(R))throw new W(R);typeof V!="function"&&(V=H)}if(F===null)throw new P;if(!q.objectMode)if(typeof F=="string")q.decodeStrings!==!1&&(F=d.from(F,R),R="buffer");else if(F instanceof d)R="buffer";else if(f._isUint8Array(F))F=f._uint8ArrayToBuffer(F),R="buffer";else throw new _("chunk",["string","Buffer","Uint8Array"],F);let oe;return q.ending?oe=new L:q.destroyed&&(oe=new x("write")),oe?(t.nextTick(V,oe),U(O,oe,!0),oe):(q.pendingcb++,te(O,q,F,R,V))}J.prototype.write=function(O,F,R){return ne(this,O,F,R)===!0},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){const O=this._writableState;O.corked&&(O.corked--,O.writing||me(this,O))},J.prototype.setDefaultEncoding=function(F){if(typeof F=="string"&&(F=o(F)),!d.isEncoding(F))throw new W(F);return this._writableState.defaultEncoding=F,this};function te(O,F,R,V,q){const oe=F.objectMode?1:R.length;F.length+=oe;const Q=F.lengthR.bufferedIndex&&me(O,R),V?R.afterWriteTickInfo!==null&&R.afterWriteTickInfo.cb===q?R.afterWriteTickInfo.count++:(R.afterWriteTickInfo={count:1,cb:q,stream:O,state:R},t.nextTick(ce,R.afterWriteTickInfo)):$(O,R,1,q))}function ce({stream:O,state:F,count:R,cb:V}){return F.afterWriteTickInfo=null,$(O,F,R,V)}function $(O,F,R,V){for(!F.ending&&!O.destroyed&&F.length===0&&F.needDrain&&(F.needDrain=!1,O.emit("drain"));R-- >0;)F.pendingcb--,V();F.destroyed&&ue(F),D(O,F)}function ue(O){if(O.writing)return;for(let q=O.bufferedIndex;q1&&O._writev){F.pendingcb-=oe-1;const G=F.allNoop?H:z=>{for(let ie=Q;ie256?(R.splice(0,Q),F.bufferedIndex=0):F.bufferedIndex=Q}F.bufferProcessing=!1}J.prototype._write=function(O,F,R){if(this._writev)this._writev([{chunk:O,encoding:F}],R);else throw new E("_write()")},J.prototype._writev=null,J.prototype.end=function(O,F,R){const V=this._writableState;typeof O=="function"?(R=O,O=null,F=null):typeof F=="function"&&(R=F,F=null);let q;if(O!=null){const oe=ne(this,O,F);oe instanceof r&&(q=oe)}return V.corked&&(V.corked=1,this.uncork()),q||(!V.errored&&!V.ending?(V.ending=!0,D(this,V,!0),V.ended=!0):V.finished?q=new A("end"):V.destroyed&&(q=new x("end"))),typeof R=="function"&&(q||V.finished?t.nextTick(R,q):V[C].push(R)),this};function ee(O){return O.ending&&!O.destroyed&&O.constructed&&O.length===0&&!O.errored&&O.buffered.length===0&&!O.finished&&!O.writing&&!O.errorEmitted&&!O.closeEmitted}function K(O,F){let R=!1;function V(q){if(R){U(O,q??y());return}if(R=!0,F.pendingcb--,q){const oe=F[C].splice(0);for(let Q=0;Q{ee(q)?X(V,q):q.pendingcb--},O,F)):ee(F)&&(F.pendingcb++,X(O,F))))}function X(O,F){F.pendingcb--,F.finished=!0;const R=F[C].splice(0);for(let V=0;V{if(ue!=null)throw new m("nully","body",ue)},ue=>{b(ce,ue)});return ce=new W({objectMode:!0,readable:!1,write:te,final(ue){B(async()=>{try{await $,t.nextTick(ue,null)}catch(me){t.nextTick(ue,me)}})},destroy:ae})}throw new m("Iterable, AsyncIterable or AsyncFunction",N,ne)}if(A(I))return C(I.arrayBuffer());if(s(I))return T(W,I,{objectMode:!0,writable:!1});if(u(I==null?void 0:I.readable)&&c(I==null?void 0:I.writable))return W.fromWeb(I);if(typeof(I==null?void 0:I.writable)=="object"||typeof(I==null?void 0:I.readable)=="object"){const ne=I!=null&&I.readable?a(I==null?void 0:I.readable)?I==null?void 0:I.readable:C(I.readable):void 0,te=I!=null&&I.writable?o(I==null?void 0:I.writable)?I==null?void 0:I.writable:C(I.writable):void 0;return H({readable:ne,writable:te})}const J=I==null?void 0:I.then;if(typeof J=="function"){let ne;return L(J,I,te=>{te!=null&&ne.push(te),ne.push(null)},te=>{b(ne,te)}),ne=new W({objectMode:!0,writable:!1,read(){}})}throw new p(N,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],I)};function U(C){let{promise:I,resolve:N}=y();const J=new P,ne=J.signal;return{value:C(async function*(){for(;;){const B=I;I=null;const{chunk:ae,done:Y,cb:ce}=await B;if(t.nextTick(ce),Y)return;if(ne.aborted)throw new d(void 0,{cause:ne.reason});({promise:I,resolve:N}=y()),yield ae}}(),{signal:ne}),write(B,ae,Y){const ce=N;N=null,ce({chunk:B,done:!1,cb:Y})},final(B){const ae=N;N=null,ae({done:!0,cb:B})},destroy(B,ae){J.abort(),ae(B)}}}function H(C){const I=C.readable&&typeof C.readable.read!="function"?_.wrap(C.readable):C.readable,N=C.writable;let J=!!r(I),ne=!!n(N),te,B,ae,Y,ce;function $(ue){const me=Y;Y=null,me?me(ue):ue&&ce.destroy(ue)}return ce=new W({readableObjectMode:!!(I!=null&&I.readableObjectMode),writableObjectMode:!!(N!=null&&N.writableObjectMode),readable:J,writable:ne}),ne&&(f(N,ue=>{ne=!1,ue&&b(I,ue),$(ue)}),ce._write=function(ue,me,ee){N.write(ue,me)?ee():te=ee},ce._final=function(ue){N.end(),B=ue},N.on("drain",function(){if(te){const ue=te;te=null,ue()}}),N.on("finish",function(){if(B){const ue=B;B=null,ue()}})),J&&(f(I,ue=>{J=!1,ue&&b(I,ue),$(ue)}),I.on("readable",function(){if(ae){const ue=ae;ae=null,ue()}}),I.on("end",function(){ce.push(null)}),ce._read=function(){for(;;){const ue=I.read();if(ue===null){ae=ce._read;return}if(!ce.push(ue))return}}),ce._destroy=function(ue,me){!ue&&Y!==null&&(ue=new d),ae=null,te=null,B=null,Y===null?me(ue):(Y=me,b(N,ue),b(I,ue))},ce}return xc}var Ac,Ab;function pn(){if(Ab)return Ac;Ab=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:r,ObjectSetPrototypeOf:n}=st();Ac=a;const s=fu(),i=_p();n(a.prototype,s.prototype),n(a,s);{const c=r(i.prototype);for(let f=0;f{if(c){u?u(c):this.destroy(c);return}f!=null&&this.push(f),this.push(null),u&&u()}):(this.push(null),u&&u())}function l(){this._final!==o&&o.call(this)}return a.prototype._final=o,a.prototype._transform=function(u,c,f){throw new r("_transform()")},a.prototype._write=function(u,c,f){const d=this._readableState,p=this._writableState,m=d.length;this._transform(u,c,(b,v)=>{if(b){f(b);return}v!=null&&this.push(v),p.ended||m===d.length||d.length{K=!0});const j=i(ue,{readable:me,writable:ee},D=>{K=!D});return{destroy:D=>{K||(K=!0,o.destroyer(ue,D||new p("pipe")))},cleanup:j}}function J(ue){return v(ue[ue.length-1],"streams[stream.length - 1]"),ue.pop()}function ne(ue){if(E(ue))return ue;if(T(ue))return te(ue);throw new c("val",["Readable","Iterable","AsyncIterable"],ue)}async function*te(ue){C||(C=fu()),yield*C.prototype[n].call(ue)}async function B(ue,me,ee,{end:K}){let j,D=null;const X=M=>{if(M&&(j=M),D){const O=D;D=null,O()}},le=()=>new r((M,O)=>{j?O(j):D=()=>{j?O(j):M()}});me.on("drain",X);const se=i(me,{readable:!1},X);try{me.writableNeedDrain&&await le();for await(const M of ue)me.write(M)||await le();K&&(me.end(),await le()),ee()}catch(M){ee(j!==M?u(j,M):M)}finally{se(),me.off("drain",X)}}async function ae(ue,me,ee,{end:K}){A(me)&&(me=me.writable);const j=me.getWriter();try{for await(const D of ue)await j.ready,j.write(D).catch(()=>{});await j.ready,K&&await j.close(),ee()}catch(D){try{await j.abort(D),ee(D)}catch(X){ee(X)}}}function Y(...ue){return ce(ue,a(J(ue)))}function ce(ue,me,ee){if(ue.length===1&&e(ue[0])&&(ue=ue[0]),ue.length<2)throw new d("streams");const K=new U,j=K.signal,D=ee==null?void 0:ee.signal,X=[];_(D,"options.signal");function le(){q(new b)}I=I||Ut().addAbortListener;let se;D&&(se=I(D,le));let M,O;const F=[];let R=0;function V(re){q(re,--R===0)}function q(re,z){var ie;if(re&&(!M||M.code==="ERR_STREAM_PREMATURE_CLOSE")&&(M=re),!(!M&&!z)){for(;F.length;)F.shift()(M);(ie=se)===null||ie===void 0||ie[s](),K.abort(),z&&(M||X.forEach(he=>he()),t.nextTick(me,M,O))}}let oe;for(let re=0;re0,be=ie||(ee==null?void 0:ee.end)!==!1,S=re===ue.length-1;if(x(z)){let g=function(h){h&&h.name!=="AbortError"&&h.code!=="ERR_STREAM_PREMATURE_CLOSE"&&V(h)};if(be){const{destroy:h,cleanup:w}=N(z,ie,he);F.push(h),y(z)&&S&&X.push(w)}z.on("error",g),y(z)&&S&&X.push(()=>{z.removeListener("error",g)})}if(re===0)if(typeof z=="function"){if(oe=z({signal:j}),!E(oe))throw new f("Iterable, AsyncIterable or Stream","source",oe)}else E(z)||T(z)||A(z)?oe=z:oe=l.from(z);else if(typeof z=="function"){if(A(oe)){var Q;oe=ne((Q=oe)===null||Q===void 0?void 0:Q.readable)}else oe=ne(oe);if(oe=z(oe,{signal:j}),ie){if(!E(oe,!0))throw new f("AsyncIterable",`transform[${re-1}]`,oe)}else{var G;H||(H=Ov());const g=new H({objectMode:!0}),h=(G=oe)===null||G===void 0?void 0:G.then;if(typeof h=="function")R++,h.call(oe,Z=>{O=Z,Z!=null&&g.write(Z),be&&g.end(),t.nextTick(V)},Z=>{g.destroy(Z),t.nextTick(V,Z)});else if(E(oe,!0))R++,B(oe,g,V,{end:be});else if(L(oe)||A(oe)){const Z=oe.readable||oe;R++,B(Z,g,V,{end:be})}else throw new f("AsyncIterable or Promise","destination",oe);oe=g;const{destroy:w,cleanup:k}=N(oe,!1,!0);F.push(w),S&&X.push(k)}}else if(x(z)){if(T(oe)){R+=2;const g=$(oe,z,V,{end:be});y(z)&&S&&X.push(g)}else if(A(oe)||L(oe)){const g=oe.readable||oe;R++,B(g,z,V,{end:be})}else if(E(oe))R++,B(oe,z,V,{end:be});else throw new c("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],oe);oe=z}else if(P(z)){if(T(oe))R++,ae(ne(oe),z,V,{end:be});else if(L(oe)||E(oe))R++,ae(oe,z,V,{end:be});else if(A(oe))R++,ae(oe.readable,z,V,{end:be});else throw new c("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],oe);oe=z}else oe=l.from(z)}return(j!=null&&j.aborted||D!=null&&D.aborted)&&t.nextTick(le),oe}function $(ue,me,ee,{end:K}){let j=!1;if(me.on("close",()=>{j||ee(new m)}),ue.pipe(me,{end:!1}),K){let D=function(){j=!0,me.end()};W(ue)?t.nextTick(D):ue.once("end",D)}else ee();return i(ue,{readable:!0,writable:!1},D=>{const X=ue._readableState;D&&D.code==="ERR_STREAM_PREMATURE_CLOSE"&&X&&X.ended&&!X.errored&&!X.errorEmitted?ue.once("end",ee).once("error",ee):ee(D)}),i(me,{readable:!1,writable:!0},ee)}return Mc={pipelineImpl:ce,pipeline:Y},Mc}var Oc,Ob;function Pv(){if(Ob)return Oc;Ob=1;const{pipeline:t}=vp(),e=pn(),{destroyer:r}=Rs(),{isNodeStream:n,isReadable:s,isWritable:i,isWebStream:a,isTransformStream:o,isWritableStream:l,isReadableStream:u}=_n(),{AbortError:c,codes:{ERR_INVALID_ARG_VALUE:f,ERR_MISSING_ARGS:d}}=Nt(),p=Wn();return Oc=function(...b){if(b.length===0)throw new d("streams");if(b.length===1)return e.from(b[0]);const v=[...b];if(typeof b[0]=="function"&&(b[0]=e.from(b[0])),typeof b[b.length-1]=="function"){const H=b.length-1;b[H]=e.from(b[H])}for(let H=0;H0&&!(i(b[H])||l(b[H])||o(b[H])))throw new f(`streams[${H}]`,v[H],"must be writable")}let _,E,y,T,x;function A(H){const C=T;T=null,C?C(H):H?x.destroy(H):!U&&!W&&x.destroy()}const P=b[0],L=t(b,A),W=!!(i(P)||l(P)||o(P)),U=!!(s(L)||u(L)||o(L));if(x=new e({writableObjectMode:!!(P!=null&&P.writableObjectMode),readableObjectMode:!!(L!=null&&L.readableObjectMode),writable:W,readable:U}),W){if(n(P))x._write=function(C,I,N){P.write(C,I)?N():_=N},x._final=function(C){P.end(),E=C},P.on("drain",function(){if(_){const C=_;_=null,C()}});else if(a(P)){const I=(o(P)?P.writable:P).getWriter();x._write=async function(N,J,ne){try{await I.ready,I.write(N).catch(()=>{}),ne()}catch(te){ne(te)}},x._final=async function(N){try{await I.ready,I.close().catch(()=>{}),E=N}catch(J){N(J)}}}const H=o(L)?L.readable:L;p(H,()=>{if(E){const C=E;E=null,C()}})}if(U){if(n(L))L.on("readable",function(){if(y){const H=y;y=null,H()}}),L.on("end",function(){x.push(null)}),x._read=function(){for(;;){const H=L.read();if(H===null){y=x._read;return}if(!x.push(H))return}};else if(a(L)){const C=(o(L)?L.readable:L).getReader();x._read=async function(){for(;;)try{const{value:I,done:N}=await C.read();if(!x.push(I))return;if(N){x.push(null);return}}catch{return}}}}return x._destroy=function(H,C){!H&&T!==null&&(H=new c),y=null,_=null,E=null,T===null?C(H):(T=C,n(L)&&r(L,H))},x},Oc}var Pb;function bk(){if(Pb)return wa;Pb=1;const t=globalThis.AbortController||Do().AbortController,{codes:{ERR_INVALID_ARG_VALUE:e,ERR_INVALID_ARG_TYPE:r,ERR_MISSING_ARGS:n,ERR_OUT_OF_RANGE:s},AbortError:i}=Nt(),{validateAbortSignal:a,validateInteger:o,validateObject:l}=Yo(),u=st().Symbol("kWeak"),c=st().Symbol("kResistStopPropagation"),{finished:f}=Wn(),d=Pv(),{addAbortSignalNoValidate:p}=uu(),{isWritable:m,isNodeStream:b}=_n(),{deprecate:v}=Ut(),{ArrayPrototypePush:_,Boolean:E,MathFloor:y,Number:T,NumberIsNaN:x,Promise:A,PromiseReject:P,PromiseResolve:L,PromisePrototypeThen:W,Symbol:U}=st(),H=U("kEmpty"),C=U("kEof");function I(D,X){if(X!=null&&l(X,"options"),(X==null?void 0:X.signal)!=null&&a(X.signal,"options.signal"),b(D)&&!m(D))throw new e("stream",D,"must be writable");const le=d(this,D);return X!=null&&X.signal&&p(X.signal,le),le}function N(D,X){if(typeof D!="function")throw new r("fn",["Function","AsyncFunction"],D);X!=null&&l(X,"options"),(X==null?void 0:X.signal)!=null&&a(X.signal,"options.signal");let le=1;(X==null?void 0:X.concurrency)!=null&&(le=y(X.concurrency));let se=le-1;return(X==null?void 0:X.highWaterMark)!=null&&(se=y(X.highWaterMark)),o(le,"options.concurrency",1),o(se,"options.highWaterMark",0),se+=le,(async function*(){const O=Ut().AbortSignalAny([X==null?void 0:X.signal].filter(E)),F=this,R=[],V={signal:O};let q,oe,Q=!1,G=0;function re(){Q=!0,z()}function z(){G-=1,ie()}function ie(){oe&&!Q&&G=se||G>=le)&&await new A(S=>{oe=S})}R.push(C)}catch(be){const S=P(be);W(S,z,re),R.push(S)}finally{Q=!0,q&&(q(),q=null)}}he();try{for(;;){for(;R.length>0;){const be=await R[0];if(be===C)return;if(O.aborted)throw new i;be!==H&&(yield be),R.shift(),ie()}await new A(be=>{q=be})}}finally{Q=!0,oe&&(oe(),oe=null)}}).call(this)}function J(D=void 0){return D!=null&&l(D,"options"),(D==null?void 0:D.signal)!=null&&a(D.signal,"options.signal"),(async function*(){let le=0;for await(const M of this){var se;if(D!=null&&(se=D.signal)!==null&&se!==void 0&&se.aborted)throw new i({cause:D.signal.reason});yield[le++,M]}}).call(this)}async function ne(D,X=void 0){for await(const le of Y.call(this,D,X))return!0;return!1}async function te(D,X=void 0){if(typeof D!="function")throw new r("fn",["Function","AsyncFunction"],D);return!await ne.call(this,async(...le)=>!await D(...le),X)}async function B(D,X){for await(const le of Y.call(this,D,X))return le}async function ae(D,X){if(typeof D!="function")throw new r("fn",["Function","AsyncFunction"],D);async function le(se,M){return await D(se,M),H}for await(const se of N.call(this,le,X));}function Y(D,X){if(typeof D!="function")throw new r("fn",["Function","AsyncFunction"],D);async function le(se,M){return await D(se,M)?se:H}return N.call(this,le,X)}class ce extends n{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function $(D,X,le){var se;if(typeof D!="function")throw new r("reducer",["Function","AsyncFunction"],D);le!=null&&l(le,"options"),(le==null?void 0:le.signal)!=null&&a(le.signal,"options.signal");let M=arguments.length>1;if(le!=null&&(se=le.signal)!==null&&se!==void 0&&se.aborted){const q=new i(void 0,{cause:le.signal.reason});throw this.once("error",()=>{}),await f(this.destroy(q)),q}const O=new t,F=O.signal;if(le!=null&&le.signal){const q={once:!0,[u]:this,[c]:!0};le.signal.addEventListener("abort",()=>O.abort(),q)}let R=!1;try{for await(const q of this){var V;if(R=!0,le!=null&&(V=le.signal)!==null&&V!==void 0&&V.aborted)throw new i;M?X=await D(X,q,{signal:F}):(X=q,M=!0)}if(!R&&!M)throw new ce}finally{O.abort()}return X}async function ue(D){D!=null&&l(D,"options"),(D==null?void 0:D.signal)!=null&&a(D.signal,"options.signal");const X=[];for await(const se of this){var le;if(D!=null&&(le=D.signal)!==null&&le!==void 0&&le.aborted)throw new i(void 0,{cause:D.signal.reason});_(X,se)}return X}function me(D,X){const le=N.call(this,D,X);return(async function*(){for await(const M of le)yield*M}).call(this)}function ee(D){if(D=T(D),x(D))return 0;if(D<0)throw new s("number",">= 0",D);return D}function K(D,X=void 0){return X!=null&&l(X,"options"),(X==null?void 0:X.signal)!=null&&a(X.signal,"options.signal"),D=ee(D),(async function*(){var se;if(X!=null&&(se=X.signal)!==null&&se!==void 0&&se.aborted)throw new i;for await(const O of this){var M;if(X!=null&&(M=X.signal)!==null&&M!==void 0&&M.aborted)throw new i;D--<=0&&(yield O)}}).call(this)}function j(D,X=void 0){return X!=null&&l(X,"options"),(X==null?void 0:X.signal)!=null&&a(X.signal,"options.signal"),D=ee(D),(async function*(){var se;if(X!=null&&(se=X.signal)!==null&&se!==void 0&&se.aborted)throw new i;for await(const O of this){var M;if(X!=null&&(M=X.signal)!==null&&M!==void 0&&M.aborted)throw new i;if(D-- >0&&(yield O),D<=0)return}}).call(this)}return wa.streamReturningOperators={asIndexedPairs:v(J,"readable.asIndexedPairs will be removed in a future version."),drop:K,filter:Y,flatMap:me,map:N,take:j,compose:I},wa.promiseReturningOperators={every:te,forEach:ae,reduce:$,toArray:ue,some:ne,find:B},wa}var Pc,kb;function kv(){if(kb)return Pc;kb=1;const{ArrayPrototypePop:t,Promise:e}=st(),{isIterable:r,isNodeStream:n,isWebStream:s}=_n(),{pipelineImpl:i}=vp(),{finished:a}=Wn();Rv();function o(...l){return new e((u,c)=>{let f,d;const p=l[l.length-1];if(p&&typeof p=="object"&&!n(p)&&!r(p)&&!s(p)){const m=t(l);f=m.signal,d=m.end}i(l,(m,b)=>{m?c(m):u(b)},{signal:f,end:d})})}return Pc={finished:a,pipeline:o},Pc}var Rb;function Rv(){if(Rb)return ac.exports;Rb=1;const{Buffer:t}=er(),{ObjectDefineProperty:e,ObjectKeys:r,ReflectApply:n}=st(),{promisify:{custom:s}}=Ut(),{streamReturningOperators:i,promiseReturningOperators:a}=bk(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:o}}=Nt(),l=Pv(),{setDefaultHighWaterMark:u,getDefaultHighWaterMark:c}=cu(),{pipeline:f}=vp(),{destroyer:d}=Rs(),p=Wn(),m=kv(),b=_n(),v=ac.exports=wp().Stream;v.isDestroyed=b.isDestroyed,v.isDisturbed=b.isDisturbed,v.isErrored=b.isErrored,v.isReadable=b.isReadable,v.isWritable=b.isWritable,v.Readable=fu();for(const E of r(i)){let T=function(...x){if(new.target)throw o();return v.Readable.from(n(y,this,x))};const y=i[E];e(T,"name",{__proto__:null,value:y.name}),e(T,"length",{__proto__:null,value:y.length}),e(v.Readable.prototype,E,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}for(const E of r(a)){let T=function(...x){if(new.target)throw o();return n(y,this,x)};const y=a[E];e(T,"name",{__proto__:null,value:y.name}),e(T,"length",{__proto__:null,value:y.length}),e(v.Readable.prototype,E,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}v.Writable=_p(),v.Duplex=pn(),v.Transform=Mv(),v.PassThrough=Ov(),v.pipeline=f;const{addAbortSignal:_}=uu();return v.addAbortSignal=_,v.finished=p,v.destroy=d,v.compose=l,v.setDefaultHighWaterMark=u,v.getDefaultHighWaterMark=c,e(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),e(f,s,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),e(p,s,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(y){return y instanceof Uint8Array},v._uint8ArrayToBuffer=function(y){return t.from(y.buffer,y.byteOffset,y.byteLength)},ac.exports}var Lb;function yk(){return Lb||(Lb=1,function(t){const e=Rv(),r=kv(),n=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=n,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=e.Stream,t.exports.default=t.exports}(oc)),oc.exports}var Ea={exports:{}},Nb;function wk(){return Nb||(Nb=1,typeof Object.create=="function"?Ea.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ea.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}),Ea.exports}var kc,Db;function _k(){if(Db)return kc;Db=1;const{Buffer:t}=er(),e=Symbol.for("BufferList");function r(n){if(!(this instanceof r))return new r(n);r._init.call(this,n)}return r._init=function(s){Object.defineProperty(this,e,{value:!0}),this._bufs=[],this.length=0,s&&this.append(s)},r.prototype._new=function(s){return new r(s)},r.prototype._offset=function(s){if(s===0)return[0,0];let i=0;for(let a=0;athis.length||s<0)return;const i=this._offset(s);return this._bufs[i[0]][i[1]]},r.prototype.slice=function(s,i){return typeof s=="number"&&s<0&&(s+=this.length),typeof i=="number"&&i<0&&(i+=this.length),this.copy(null,0,s,i)},r.prototype.copy=function(s,i,a,o){if((typeof a!="number"||a<0)&&(a=0),(typeof o!="number"||o>this.length)&&(o=this.length),a>=this.length||o<=0)return s||t.alloc(0);const l=!!s,u=this._offset(a),c=o-a;let f=c,d=l&&i||0,p=u[1];if(a===0&&o===this.length){if(!l)return this._bufs.length===1?this._bufs[0]:t.concat(this._bufs,this.length);for(let m=0;mb)this._bufs[m].copy(s,d,p),d+=b;else{this._bufs[m].copy(s,d,p,p+f),d+=b;break}f-=b,p&&(p=0)}return s.length>d?s.slice(0,d):s},r.prototype.shallowSlice=function(s,i){if(s=s||0,i=typeof i!="number"?this.length:i,s<0&&(s+=this.length),i<0&&(i+=this.length),s===i)return this._new();const a=this._offset(s),o=this._offset(i),l=this._bufs.slice(a[0],o[0]+1);return o[1]===0?l.pop():l[l.length-1]=l[l.length-1].slice(0,o[1]),a[1]!==0&&(l[0]=l[0].slice(a[1])),this._new(l)},r.prototype.toString=function(s,i,a){return this.slice(i,a).toString(s)},r.prototype.consume=function(s){if(s=Math.trunc(s),Number.isNaN(s)||s<=0)return this;for(;this._bufs.length;)if(s>=this._bufs[0].length)s-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(s),this.length-=s;break}return this},r.prototype.duplicate=function(){const s=this._new();for(let i=0;ithis.length?this.length:s;const a=this._offset(s);let o=a[0],l=a[1];for(;o=n.length){const f=u.indexOf(n,l);if(f!==-1)return this._reverseOffset([o,f]);l=u.length-n.length+1}else{const f=this._reverseOffset([o,l]);if(this._match(f,n))return f;l++}l=0}return-1},r.prototype._match=function(n,s){if(this.length-n[0,1].map(a=>[0,1].map(o=>{const l=r.alloc(1);return l.writeUInt8(e.codes[s]<r.from([s])),e.EMPTY={pingreq:r.from([e.codes.pingreq<<4,0]),pingresp:r.from([e.codes.pingresp<<4,0]),disconnect:r.from([e.codes.disconnect<<4,0])},e.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},e.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},e.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},e.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},e.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},e.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}(Lc)),Lc.exports}function Nv(){throw new Error("setTimeout has not been defined")}function Dv(){throw new Error("clearTimeout has not been defined")}var Cn=Nv,In=Dv;typeof Si.setTimeout=="function"&&(Cn=setTimeout);typeof Si.clearTimeout=="function"&&(In=clearTimeout);function Bv(t){if(Cn===setTimeout)return setTimeout(t,0);if((Cn===Nv||!Cn)&&setTimeout)return Cn=setTimeout,setTimeout(t,0);try{return Cn(t,0)}catch{try{return Cn.call(null,t,0)}catch{return Cn.call(this,t,0)}}}function Sk(t){if(In===clearTimeout)return clearTimeout(t);if((In===Dv||!In)&&clearTimeout)return In=clearTimeout,clearTimeout(t);try{return In(t)}catch{try{return In.call(null,t)}catch{return In.call(this,t)}}}var rn=[],fs=!1,hi,el=-1;function Tk(){!fs||!hi||(fs=!1,hi.length?rn=hi.concat(rn):el=-1,rn.length&&$v())}function $v(){if(!fs){var t=Bv(Tk);fs=!0;for(var e=rn.length;e;){for(hi=rn,rn=[];++el1)for(var r=1;r0)return a(c);if(d==="number"&&isFinite(c))return f.long?l(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(f){var d=parseFloat(f[1]),p=(f[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"weeks":case"week":case"w":return d*s;case"days":case"day":case"d":return d*n;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*e;case"seconds":case"second":case"secs":case"sec":case"s":return d*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function o(c){var f=Math.abs(c);return f>=n?Math.round(c/n)+"d":f>=r?Math.round(c/r)+"h":f>=e?Math.round(c/e)+"m":f>=t?Math.round(c/t)+"s":c+"ms"}function l(c){var f=Math.abs(c);return f>=n?u(c,f,n,"day"):f>=r?u(c,f,r,"hour"):f>=e?u(c,f,e,"minute"):f>=t?u(c,f,t,"second"):c+" ms"}function u(c,f,d,p){var m=f>=d*1.5;return Math.round(c/d)+" "+p+(m?"s":"")}return Nc}var Dc,jb;function Qk(){if(jb)return Dc;jb=1;function t(e){n.debug=n,n.default=n,n.coerce=u,n.disable=o,n.enable=i,n.enabled=l,n.humanize=Xk(),n.destroy=c,Object.keys(e).forEach(f=>{n[f]=e[f]}),n.names=[],n.skips=[],n.formatters={};function r(f){let d=0;for(let p=0;p{if(P==="%%")return"%";x++;const W=n.formatters[L];if(typeof W=="function"){const U=_[x];P=W.call(E,U),_.splice(x,1),x--}return P}),n.formatArgs.call(E,_),(E.log||n.log).apply(E,_)}return v.namespace=f,v.useColors=n.useColors(),v.color=n.selectColor(f),v.extend=s,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(m!==n.namespaces&&(m=n.namespaces,b=n.enabled(f)),b),set:_=>{p=_}}),typeof n.init=="function"&&n.init(v),v}function s(f,d){const p=n(this.namespace+(typeof d>"u"?":":d)+f);return p.log=this.log,p}function i(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];const d=(typeof f=="string"?f:"").trim().replace(" ",",").split(",").filter(Boolean);for(const p of d)p[0]==="-"?n.skips.push(p.slice(1)):n.names.push(p)}function a(f,d){let p=0,m=0,b=-1,v=0;for(;p"-"+d)].join(",");return n.enable(""),f}function l(f){for(const d of n.skips)if(a(f,d))return!1;for(const d of n.names)if(a(f,d))return!0;return!1}function u(f){return f instanceof Error?f.stack||f.message:f}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Dc=t,Dc}var Wb;function Uv(){return Wb||(Wb=1,function(t,e){var r={};e.formatArgs=s,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;u.splice(1,0,c,"color: inherit");let f=0,d=0;u[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(f++,p==="%c"&&(d=f))}),u.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function i(u){try{u?e.storage.setItem("debug",u):e.storage.removeItem("debug")}catch{}}function a(){let u;try{u=e.storage.getItem("debug")}catch{}return!u&&typeof Ht<"u"&&"env"in Ht&&(u=r.DEBUG),u}function o(){try{return localStorage}catch{}}t.exports=Qk()(e);const{formatters:l}=t.exports;l.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}(Sa,Sa.exports)),Sa.exports}var Bc,Hb;function Jk(){if(Hb)return Bc;Hb=1;const t=vk(),{EventEmitter:e}=ks(),r=Ek(),n=Lv(),s=Uv()("mqtt-packet:parser");class i extends e{constructor(){super(),this.parser=this.constructor.parser}static parser(o){return this instanceof i?(this.settings=o||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new i().parser(o)}_resetState(){s("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new r,this.error=null,this._list=t(),this._stateCounter=0}parse(o){for(this.error&&this._resetState(),this._list.append(o),s("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,s("parse: state complete. _stateCounter is now: %d",this._stateCounter),s("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return s("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const o=this._list.readUInt8(0),l=o>>n.CMD_SHIFT;this.packet.cmd=n.types[l];const u=o&15,c=n.requiredHeaderFlags[l];return c!=null&&u!==c?this._emitError(new Error(n.requiredHeaderFlagsErrors[l])):(this.packet.retain=(o&n.RETAIN_MASK)!==0,this.packet.qos=o>>n.QOS_SHIFT&n.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(o&n.DUP_MASK)!==0,s("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){const o=this._parseVarByteNum(!0);return o&&(this.packet.length=o.value,this._list.consume(o.bytes)),s("_parseLength %d",o.value),!!o}_parsePayload(){s("_parsePayload: payload %O",this._list);let o=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}o=!0}return s("_parsePayload complete result: %s",o),o}_parseConnect(){s("_parseConnect");let o,l,u,c;const f={},d=this.packet,p=this._parseString();if(p===null)return this._emitError(new Error("Cannot parse protocolId"));if(p!=="MQTT"&&p!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(d.protocolId=p,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(d.protocolVersion=this._list.readUInt8(this._pos),d.protocolVersion>=128&&(d.bridgeMode=!0,d.protocolVersion=d.protocolVersion-128),d.protocolVersion!==3&&d.protocolVersion!==4&&d.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));f.username=this._list.readUInt8(this._pos)&n.USERNAME_MASK,f.password=this._list.readUInt8(this._pos)&n.PASSWORD_MASK,f.will=this._list.readUInt8(this._pos)&n.WILL_FLAG_MASK;const m=!!(this._list.readUInt8(this._pos)&n.WILL_RETAIN_MASK),b=(this._list.readUInt8(this._pos)&n.WILL_QOS_MASK)>>n.WILL_QOS_SHIFT;if(f.will)d.will={},d.will.retain=m,d.will.qos=b;else{if(m)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(b)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(d.clean=(this._list.readUInt8(this._pos)&n.CLEAN_SESSION_MASK)!==0,this._pos++,d.keepalive=this._parseNum(),d.keepalive===-1)return this._emitError(new Error("Packet too short"));if(d.protocolVersion===5){const _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(d.properties=_)}const v=this._parseString();if(v===null)return this._emitError(new Error("Packet too short"));if(d.clientId=v,s("_parseConnect: packet.clientId: %s",d.clientId),f.will){if(d.protocolVersion===5){const _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(d.will.properties=_)}if(o=this._parseString(),o===null)return this._emitError(new Error("Cannot parse will topic"));if(d.will.topic=o,s("_parseConnect: packet.will.topic: %s",d.will.topic),l=this._parseBuffer(),l===null)return this._emitError(new Error("Cannot parse will payload"));d.will.payload=l,s("_parseConnect: packet.will.paylaod: %s",d.will.payload)}if(f.username){if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse username"));d.username=c,s("_parseConnect: packet.username: %s",d.username)}if(f.password){if(u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse password"));d.password=u}return this.settings=d,s("_parseConnect: complete"),d}_parseConnack(){s("_parseConnack");const o=this.packet;if(this._list.length<1)return null;const l=this._list.readUInt8(this._pos++);if(l>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(o.sessionPresent=!!(l&n.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?o.reasonCode=this._list.readUInt8(this._pos++):o.reasonCode=0;else{if(this._list.length<2)return null;o.returnCode=this._list.readUInt8(this._pos++)}if(o.returnCode===-1||o.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(o.properties=u)}s("_parseConnack: complete")}_parsePublish(){s("_parsePublish");const o=this.packet;if(o.topic=this._parseString(),o.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(o.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}o.payload=this._list.slice(this._pos,o.length),s("_parsePublish: payload from buffer list: %o",o.payload)}}_parseSubscribe(){s("_parseSubscribe");const o=this.packet;let l,u,c,f,d,p,m;if(o.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(o.properties=b)}if(o.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=o.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(u=this._parseByte(),this.settings.protocolVersion===5){if(u&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(u&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(c=u&n.SUBSCRIBE_OPTIONS_QOS_MASK,c>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(p=(u>>n.SUBSCRIBE_OPTIONS_NL_SHIFT&n.SUBSCRIBE_OPTIONS_NL_MASK)!==0,d=(u>>n.SUBSCRIBE_OPTIONS_RAP_SHIFT&n.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,f=u>>n.SUBSCRIBE_OPTIONS_RH_SHIFT&n.SUBSCRIBE_OPTIONS_RH_MASK,f>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));m={topic:l,qos:c},this.settings.protocolVersion===5?(m.nl=p,m.rap=d,m.rh=f):this.settings.bridgeMode&&(m.rh=0,m.rap=!0,m.nl=!0),s("_parseSubscribe: push subscription `%s` to subscription",m),o.subscriptions.push(m)}}}_parseSuback(){s("_parseSuback");const o=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}if(o.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&l!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(l)}}}_parseUnsubscribe(){s("_parseUnsubscribe");const o=this.packet;if(o.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}if(o.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(o.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!n.MQTT5_PUBACK_PUBREC_CODES[o.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!n.MQTT5_PUBREL_PUBCOMP_CODES[o.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}s("_parseConfirmation: packet.reasonCode `%d`",o.reasonCode)}else o.reasonCode=0;if(o.length>3){const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}}return!0}_parseDisconnect(){const o=this.packet;if(s("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(o.reasonCode=this._parseByte(),n.MQTT5_DISCONNECT_CODES[o.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):o.reasonCode=0;const l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(o.properties=l)}return s("_parseDisconnect result: true"),!0}_parseAuth(){s("_parseAuth");const o=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(o.reasonCode=this._parseByte(),!n.MQTT5_AUTH_CODES[o.reasonCode])return this._emitError(new Error("Invalid auth reason code"));const l=this._parseProperties();return Object.getOwnPropertyNames(l).length&&(o.properties=l),s("_parseAuth: result: true"),!0}_parseMessageId(){const o=this.packet;return o.messageId=this._parseNum(),o.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(s("_parseMessageId: packet.messageId %d",o.messageId),!0)}_parseString(o){const l=this._parseNum(),u=l+this._pos;if(l===-1||u>this._list.length||u>this.packet.length)return null;const c=this._list.toString("utf8",this._pos,u);return this._pos+=l,s("_parseString: result: %s",c),c}_parseStringPair(){return s("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const o=this._parseNum(),l=o+this._pos;if(o===-1||l>this._list.length||l>this.packet.length)return null;const u=this._list.slice(this._pos,l);return this._pos+=o,s("_parseBuffer: result: %o",u),u}_parseNum(){if(this._list.length-this._pos<2)return-1;const o=this._list.readUInt16BE(this._pos);return this._pos+=2,s("_parseNum: result: %s",o),o}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const o=this._list.readUInt32BE(this._pos);return this._pos+=4,s("_parse4ByteNum: result: %s",o),o}_parseVarByteNum(o){s("_parseVarByteNum");const l=4;let u=0,c=1,f=0,d=!1,p;const m=this._pos?this._pos:0;for(;u=u&&this._emitError(new Error("Invalid variable byte integer")),m&&(this._pos+=u),d?o?d={bytes:u,value:f}:d=f:d=!1,s("_parseVarByteNum: result: %o",d),d}_parseByte(){let o;return this._pos>8,0),u.writeUInt8(l&255,1),u}function i(){for(let l=0;l0&&(c=c|128),d.writeUInt8(c,f++);while(l>0&&f<4);return l>0&&(f=0),n?d.subarray(0,f):d.slice(0,f)}function o(l){const u=t.allocUnsafe(4);return u.writeUInt32BE(l,0),u}return $c={cache:r,generateCache:i,generateNumber:s,genBufVariableByteInt:a,generate4ByteBuffer:o},$c}var Ta={exports:{}},Vb;function eR(){if(Vb)return Ta.exports;Vb=1,typeof Ht>"u"||!Ht.version||Ht.version.indexOf("v0.")===0||Ht.version.indexOf("v1.")===0&&Ht.version.indexOf("v1.8.")!==0?Ta.exports={nextTick:t}:Ta.exports=Ht;function t(e,r,n,s){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,a,o;switch(i){case 0:case 1:return Ht.nextTick(e);case 2:return Ht.nextTick(function(){e.call(null,r)});case 3:return Ht.nextTick(function(){e.call(null,r,n)});case 4:return Ht.nextTick(function(){e.call(null,r,n,s)});default:for(a=new Array(i-1),o=0;o=4)&&(F||M))oe+=e.byteLength(F)+2;else{if(le<4)return K.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(M*1===0)return K.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof O!="number"||O<0||O>65535||O%1!==0)return K.destroy(new Error("Invalid keepalive")),!1;oe+=2,oe+=1;let Q,G;if(le===5){if(Q=ae(K,q),!Q)return!1;oe+=Q.length}if(se){if(typeof se!="object")return K.destroy(new Error("Invalid will")),!1;if(!se.topic||typeof se.topic!="string")return K.destroy(new Error("Invalid will topic")),!1;if(oe+=e.byteLength(se.topic)+2,oe+=2,se.payload)if(se.payload.length>=0)typeof se.payload=="string"?oe+=e.byteLength(se.payload):oe+=se.payload.length;else return K.destroy(new Error("Invalid will payload")),!1;if(G={},le===5){if(G=ae(K,se.properties),!G)return!1;oe+=G.length}}let re=!1;if(R!=null)if(me(R))re=!0,oe+=e.byteLength(R)+2;else return K.destroy(new Error("Invalid username")),!1;if(V!=null){if(!re)return K.destroy(new Error("Username is required to use password")),!1;if(me(V))oe+=ue(V)+2;else return K.destroy(new Error("Invalid password")),!1}K.write(t.CONNECT_HEADER),C(K,oe),B(K,X),D.bridgeMode&&(le+=128),K.write(le===131?t.VERSION131:le===132?t.VERSION132:le===4?t.VERSION4:le===5?t.VERSION5:t.VERSION3);let z=0;return z|=R!=null?t.USERNAME_MASK:0,z|=V!=null?t.PASSWORD_MASK:0,z|=se&&se.retain?t.WILL_RETAIN_MASK:0,z|=se&&se.qos?se.qos<0&&d(K,F),q!=null&&q.write(),a("publish: payload: %o",O),K.write(O)}function y(ee,K,j){const D=j?j.protocolVersion:4,X=ee||{},le=X.cmd||"puback",se=X.messageId,M=X.dup&&le==="pubrel"?t.DUP_MASK:0;let O=0;const F=X.reasonCode,R=X.properties;let V=D===5?3:2;if(le==="pubrel"&&(O=1),typeof se!="number")return K.destroy(new Error("Invalid messageId")),!1;let q=null;if(D===5&&typeof R=="object"){if(q=Y(K,R,j,V),!q)return!1;V+=q.length}return K.write(t.ACKS[le][O][M][0]),V===3&&(V+=F!==0?1:-1),C(K,V),d(K,se),D===5&&V!==2&&K.write(e.from([F])),q!==null?q.write():V===4&&K.write(e.from([0])),!0}function T(ee,K,j){a("subscribe: packet: ");const D=j?j.protocolVersion:4,X=ee||{},le=X.dup?t.DUP_MASK:0,se=X.messageId,M=X.subscriptions,O=X.properties;let F=0;if(typeof se!="number")return K.destroy(new Error("Invalid messageId")),!1;F+=2;let R=null;if(D===5){if(R=ae(K,O),!R)return!1;F+=R.length}if(typeof M=="object"&&M.length)for(let q=0;q2)return K.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}F+=e.byteLength(oe)+2+1}else return K.destroy(new Error("Invalid subscriptions")),!1;a("subscribe: writing to stream: %o",t.SUBSCRIBE_HEADER),K.write(t.SUBSCRIBE_HEADER[1][le?1:0][0]),C(K,F),d(K,se),R!==null&&R.write();let V=!0;for(const q of M){const oe=q.topic,Q=q.qos,G=+q.nl,re=+q.rap,z=q.rh;let ie;I(K,oe),ie=t.SUBSCRIBE_OPTIONS_QOS[Q],D===5&&(ie|=G?t.SUBSCRIBE_OPTIONS_NL:0,ie|=re?t.SUBSCRIBE_OPTIONS_RAP:0,ie|=z?t.SUBSCRIBE_OPTIONS_RH[z]:0),V=K.write(e.from([ie]))}return V}function x(ee,K,j){const D=j?j.protocolVersion:4,X=ee||{},le=X.messageId,se=X.granted,M=X.properties;let O=0;if(typeof le!="number")return K.destroy(new Error("Invalid messageId")),!1;if(O+=2,typeof se=="object"&&se.length)for(let R=0;Rt.VARBYTEINT_MAX)return ee.destroy(new Error(`Invalid variable byte integer: ${K}`)),!1;let j=H[K];return j||(j=c(K),K<16384&&(H[K]=j)),a("writeVarByteInt: writing to stream: %o",j),ee.write(j)}function I(ee,K){const j=e.byteLength(K);return d(ee,j),a("writeString: %s",K),ee.write(K,"utf8")}function N(ee,K,j){I(ee,K),I(ee,j)}function J(ee,K){return a("writeNumberCached: number: %d",K),a("writeNumberCached: %o",o[K]),ee.write(o[K])}function ne(ee,K){const j=l(K);return a("writeNumberGenerated: %o",j),ee.write(j)}function te(ee,K){const j=f(K);return a("write4ByteNumber: %o",j),ee.write(j)}function B(ee,K){typeof K=="string"?I(ee,K):K?(d(ee,K.length),ee.write(K)):d(ee,0)}function ae(ee,K){if(typeof K!="object"||K.length!=null)return{length:1,write(){$(ee,{},0)}};let j=0;function D(le,se){const M=t.propertiesTypes[le];let O=0;switch(M){case"byte":{if(typeof se!="boolean")return ee.destroy(new Error(`Invalid ${le}: ${se}`)),!1;O+=2;break}case"int8":{if(typeof se!="number"||se<0||se>255)return ee.destroy(new Error(`Invalid ${le}: ${se}`)),!1;O+=2;break}case"binary":{if(se&&se===null)return ee.destroy(new Error(`Invalid ${le}: ${se}`)),!1;O+=1+e.byteLength(se)+2;break}case"int16":{if(typeof se!="number"||se<0||se>65535)return ee.destroy(new Error(`Invalid ${le}: ${se}`)),!1;O+=3;break}case"int32":{if(typeof se!="number"||se<0||se>4294967295)return ee.destroy(new Error(`Invalid ${le}: ${se}`)),!1;O+=5;break}case"var":{if(typeof se!="number"||se<0||se>268435455)return ee.destroy(new Error(`Invalid ${le}: ${se}`)),!1;O+=1+e.byteLength(c(se));break}case"string":{if(typeof se!="string")return ee.destroy(new Error(`Invalid ${le}: ${se}`)),!1;O+=3+e.byteLength(se.toString());break}case"pair":{if(typeof se!="object")return ee.destroy(new Error(`Invalid ${le}: ${se}`)),!1;O+=Object.getOwnPropertyNames(se).reduce((F,R)=>{const V=se[R];return Array.isArray(V)?F+=V.reduce((q,oe)=>(q+=3+e.byteLength(R.toString())+2+e.byteLength(oe.toString()),q),0):F+=3+e.byteLength(R.toString())+2+e.byteLength(se[R].toString()),F},0);break}default:return ee.destroy(new Error(`Invalid property ${le}: ${se}`)),!1}return O}if(K)for(const le in K){let se=0,M=0;const O=K[le];if(Array.isArray(O))for(let F=0;Fle;){const M=X.shift();if(M&&K[M])delete K[M],se=ae(ee,K);else return!1}return se}function ce(ee,K,j){switch(t.propertiesTypes[K]){case"byte":{ee.write(e.from([t.properties[K]])),ee.write(e.from([+j]));break}case"int8":{ee.write(e.from([t.properties[K]])),ee.write(e.from([j]));break}case"binary":{ee.write(e.from([t.properties[K]])),B(ee,j);break}case"int16":{ee.write(e.from([t.properties[K]])),d(ee,j);break}case"int32":{ee.write(e.from([t.properties[K]])),te(ee,j);break}case"var":{ee.write(e.from([t.properties[K]])),C(ee,j);break}case"string":{ee.write(e.from([t.properties[K]])),I(ee,j);break}case"pair":{Object.getOwnPropertyNames(j).forEach(X=>{const le=j[X];Array.isArray(le)?le.forEach(se=>{ee.write(e.from([t.properties[K]])),N(ee,X.toString(),se.toString())}):(ee.write(e.from([t.properties[K]])),N(ee,X.toString(),le.toString()))});break}default:return ee.destroy(new Error(`Invalid property ${K} value: ${j}`)),!1}}function $(ee,K,j){C(ee,j);for(const D in K)if(Object.prototype.hasOwnProperty.call(K,D)&&K[D]!==null){const X=K[D];if(Array.isArray(X))for(let le=0;le{typeof t[r]>"u"?t[r]=e[r]:Kb(e[r])&&Kb(t[r])&&Object.keys(e[r]).length>0&&Ep(t[r],e[r])})}const Wv={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function pt(){const t=typeof document<"u"?document:{};return Ep(t,Wv),t}const nR={document:Wv,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function rt(){const t=typeof window<"u"?window:{};return Ep(t,nR),t}function Mn(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function iR(t){const e=t;Object.keys(e).forEach(r=>{try{e[r]=null}catch{}try{delete e[r]}catch{}})}function Ci(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function ir(){return Date.now()}function sR(t){const e=rt();let r;return e.getComputedStyle&&(r=e.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}function ah(t,e){e===void 0&&(e="x");const r=rt();let n,s,i;const a=sR(t);return r.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(o=>o.replace(",",".")).join(", ")),i=new r.WebKitCSSMatrix(s==="none"?"":s)):(i=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),e==="x"&&(r.WebKitCSSMatrix?s=i.m41:n.length===16?s=parseFloat(n[12]):s=parseFloat(n[4])),e==="y"&&(r.WebKitCSSMatrix?s=i.m42:n.length===16?s=parseFloat(n[13]):s=parseFloat(n[5])),s||0}function ho(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function oR(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Yt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let r=1;re.indexOf(i)<0);for(let i=0,a=s.length;ii?"next":"prev",c=(d,p)=>u==="next"&&d>=p||u==="prev"&&d<=p,f=()=>{o=new Date().getTime(),a===null&&(a=o);const d=Math.max(Math.min((o-a)/l,1),0),p=.5-Math.cos(d*Math.PI)/2;let m=i+p*(r-i);if(c(m,r)&&(m=r),e.wrapperEl.scrollTo({[n]:m}),c(m,r)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:m})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(f)};f()}function Fi(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function yt(t,e){e===void 0&&(e="");const r=rt(),n=[...t.children];return r.HTMLSlotElement&&t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(s=>s.matches(e)):n}function aR(t,e){var n,s;const r=[e];for(;r.length>0;){const i=r.shift();if(t===i)return!0;r.push(...i.children,...((n=i.shadowRoot)==null?void 0:n.children)||[],...((s=i.assignedElements)==null?void 0:s.call(i))||[])}}function lR(t,e){const r=rt();let n=e.contains(t);return!n&&r.HTMLSlotElement&&e instanceof HTMLSlotElement&&(n=[...e.assignedElements()].includes(t),n||(n=aR(t,e))),n}function Rl(t){try{console.warn(t);return}catch{}}function Kt(t,e){e===void 0&&(e=[]);const r=document.createElement(t);return r.classList.add(...Array.isArray(e)?e:Mn(e)),r}function Ll(t){const e=rt(),r=pt(),n=t.getBoundingClientRect(),s=r.body,i=t.clientTop||s.clientTop||0,a=t.clientLeft||s.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:n.top+o-i,left:n.left+l-a}}function uR(t,e){const r=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function cR(t,e){const r=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function Rn(t,e){return rt().getComputedStyle(t,null).getPropertyValue(e)}function Bo(t){let e=t,r;if(e){for(r=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(r+=1);return r}}function vi(t,e){const r=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&r.push(n):r.push(n),n=n.parentElement;return r}function So(t,e){function r(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",r))}e&&t.addEventListener("transitionend",r)}function lh(t,e,r){const n=rt();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function $e(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function du(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90===0?e+.001:e}let jc;function fR(){const t=rt(),e=pt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function zv(){return jc||(jc=fR()),jc}let Wc;function dR(t){let{userAgent:e}=t===void 0?{}:t;const r=zv(),n=rt(),s=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,l=n.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const f=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let m=s==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&m&&r.touch&&b.indexOf(`${o}x${l}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),m=!1),u&&!p&&(a.os="android",a.android=!0),(c||d||f)&&(a.os="ios",a.ios=!0),a}function Vv(t){return t===void 0&&(t={}),Wc||(Wc=dR(t)),Wc}let Hc;function hR(){const t=rt(),e=Vv();let r=!1;function n(){const o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(n()){const o=String(t.navigator.userAgent);if(o.includes("Version/")){const[l,u]=o.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));r=l<16||l===16&&u<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),i=n(),a=i||s&&e.ios;return{isSafari:r||i,needPerspectiveFix:r,need3dFix:a,isWebView:s}}function pR(){return Hc||(Hc=hR()),Hc}function gR(t){let{swiper:e,on:r,emit:n}=t;const s=rt();let i=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(f=>{a=s.requestAnimationFrame(()=>{const{width:d,height:p}=e;let m=d,b=p;f.forEach(v=>{let{contentBoxSize:_,contentRect:E,target:y}=v;y&&y!==e.el||(m=E?E.width:(_[0]||_).inlineSize,b=E?E.height:(_[0]||_).blockSize)}),(m!==d||b!==p)&&o()})}),i.observe(e.el))},u=()=>{a&&s.cancelAnimationFrame(a),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};r("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){l();return}s.addEventListener("resize",o),s.addEventListener("orientationchange",c)}),r("destroy",()=>{u(),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",c)})}function mR(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=[],a=rt(),o=function(c,f){f===void 0&&(f={});const d=a.MutationObserver||a.WebkitMutationObserver,p=new d(m=>{if(e.__preventObserver__)return;if(m.length===1){s("observerUpdate",m[0]);return}const b=function(){s("observerUpdate",m[0])};a.requestAnimationFrame?a.requestAnimationFrame(b):a.setTimeout(b,0)});p.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:e.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),i.push(p)},l=()=>{if(e.params.observer){if(e.params.observeParents){const c=vi(e.hostEl);for(let f=0;f{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};r({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",u)}var bR={on(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const s=r?"unshift":"push";return t.split(" ").forEach(i=>{n.eventsListeners[i]||(n.eventsListeners[i]=[]),n.eventsListeners[i][s](e)}),n},once(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function s(){n.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,a=new Array(i),o=0;o=0&&e.eventsAnyListeners.splice(r,1),e},off(t,e){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((s,i)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&r.eventsListeners[n].splice(i,1)})}),r},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,r,n;for(var s=arguments.length,i=new Array(s),a=0;a{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(u=>{u.apply(n,r)})}),t}};function yR(){const t=this;let e,r;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?r=t.params.height:r=n.clientHeight,!(e===0&&t.isHorizontal()||r===0&&t.isVertical())&&(e=e-parseInt(Rn(n,"padding-left")||0,10)-parseInt(Rn(n,"padding-right")||0,10),r=r-parseInt(Rn(n,"padding-top")||0,10)-parseInt(Rn(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(r)&&(r=0),Object.assign(t,{width:e,height:r,size:t.isHorizontal()?e:r}))}function wR(){const t=this;function e(U,H){return parseFloat(U.getPropertyValue(t.getDirectionLabel(H))||0)}const r=t.params,{wrapperEl:n,slidesEl:s,size:i,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&r.virtual.enabled,u=l?t.virtual.slides.length:t.slides.length,c=yt(s,`.${t.params.slideClass}, swiper-slide`),f=l?t.virtual.slides.length:c.length;let d=[];const p=[],m=[];let b=r.slidesOffsetBefore;typeof b=="function"&&(b=r.slidesOffsetBefore.call(t));let v=r.slidesOffsetAfter;typeof v=="function"&&(v=r.slidesOffsetAfter.call(t));const _=t.snapGrid.length,E=t.slidesGrid.length;let y=r.spaceBetween,T=-b,x=0,A=0;if(typeof i>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*i:typeof y=="string"&&(y=parseFloat(y)),t.virtualSize=-y,c.forEach(U=>{a?U.style.marginLeft="":U.style.marginRight="",U.style.marginBottom="",U.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(po(n,"--swiper-centered-offset-before",""),po(n,"--swiper-centered-offset-after",""));const P=r.grid&&r.grid.rows>1&&t.grid;P?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let L;const W=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(U=>typeof r.breakpoints[U].slidesPerView<"u").length>0;for(let U=0;U1&&d.push(t.virtualSize-i)}if(l&&r.loop){const U=m[0]+y;if(r.slidesPerGroup>1){const H=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),C=U*r.slidesPerGroup;for(let I=0;I!r.cssMode||r.loop?!0:C!==c.length-1).forEach(H=>{H.style[U]=`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let U=0;m.forEach(C=>{U+=C+(y||0)}),U-=y;const H=U>i?U-i:0;d=d.map(C=>C<=0?-b:C>H?H+v:C)}if(r.centerInsufficientSlides){let U=0;m.forEach(C=>{U+=C+(y||0)}),U-=y;const H=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(U+H{d[N]=I-C}),p.forEach((I,N)=>{p[N]=I+C})}}if(Object.assign(t,{slides:c,snapGrid:d,slidesGrid:p,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){po(n,"--swiper-centered-offset-before",`${-d[0]}px`),po(n,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const U=-t.snapGrid[0],H=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+U),t.slidesGrid=t.slidesGrid.map(C=>C+H)}if(f!==u&&t.emit("slidesLengthChange"),d.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==E&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const U=`${r.containerModifierClass}backface-hidden`,H=t.el.classList.contains(U);f<=r.maxBackfaceHiddenSlides?H||t.el.classList.add(U):H&&t.el.classList.remove(U)}}function _R(t){const e=this,r=[],n=e.virtual&&e.params.virtual.enabled;let s=0,i;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=o=>n?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{r.push(o)});else for(i=0;ie.slides.length&&!n)break;r.push(a(o))}else r.push(a(e.activeIndex));for(i=0;is?o:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function vR(){const t=this,e=t.slides,r=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n{e&&!t.classList.contains(r)?t.classList.add(r):!e&&t.classList.contains(r)&&t.classList.remove(r)};function ER(t){t===void 0&&(t=this&&this.translate||0);const e=this,r=e.params,{slides:n,rtlTranslate:s,snapGrid:i}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;s&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=r.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l=0&&p<=e.size-e.slidesSizesGrid[l],v=p>=0&&p1&&m<=e.size||p<=0&&m>=e.size;v&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l)),Xb(u,v,r.slideVisibleClass),Xb(u,b,r.slideFullyVisibleClass),u.progress=s?-f:f,u.originalProgress=s?-d:d}}function SR(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const r=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:i,isEnd:a,progressLoop:o}=e;const l=i,u=a;if(n===0)s=0,i=!0,a=!0;else{s=(t-e.minTranslate())/n;const c=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;i=c||s<=0,a=f||s>=1,c&&(s=0),f&&(s=1)}if(r.loop){const c=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),d=e.slidesGrid[c],p=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=d?o=(b-d)/m:o=(b+m-p)/m,o>1&&(o-=1)}Object.assign(e,{progress:s,progressLoop:o,isBeginning:i,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),i&&!l&&e.emit("reachBeginning toEdge"),a&&!u&&e.emit("reachEnd toEdge"),(l&&!i||u&&!a)&&e.emit("fromEdge"),e.emit("progress",s)}const zc=(t,e,r)=>{e&&!t.classList.contains(r)?t.classList.add(r):!e&&t.classList.contains(r)&&t.classList.remove(r)};function TR(){const t=this,{slides:e,params:r,slidesEl:n,activeIndex:s}=t,i=t.virtual&&r.virtual.enabled,a=t.grid&&r.grid&&r.grid.rows>1,o=f=>yt(n,`.${r.slideClass}${f}, swiper-slide${f}`)[0];let l,u,c;if(i)if(r.loop){let f=s-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${f}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else a?(l=e.find(f=>f.column===s),c=e.find(f=>f.column===s+1),u=e.find(f=>f.column===s-1)):l=e[s];l&&(a||(c=cR(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!c&&(c=e[0]),u=uR(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(f=>{zc(f,f===l,r.slideActiveClass),zc(f,f===c,r.slideNextClass),zc(f,f===u,r.slidePrevClass)}),t.emitSlidesClasses()}const tl=(t,e)=>{if(!t||t.destroyed||!t.params)return;const r=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(r());if(n){let s=n.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(n.shadowRoot?s=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(s=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},Vc=(t,e)=>{if(!t.slides[e])return;const r=t.slides[e].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},uh=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const r=t.slides.length;if(!r||!e||e<0)return;e=Math.min(e,r);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=s,o=[a-e];o.push(...Array.from({length:e}).map((l,u)=>a+n+u)),t.slides.forEach((l,u)=>{o.includes(l.column)&&Vc(t,u)});return}const i=s+n-1;if(t.params.rewind||t.params.loop)for(let a=s-e;a<=i+e;a+=1){const o=(a%r+r)%r;(oi)&&Vc(t,o)}else for(let a=Math.max(s-e,0);a<=Math.min(i+e,r-1);a+=1)a!==s&&(a>i||a=e[i]&&n=e[i]&&n=e[i]&&(s=i);return r.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function AR(t){const e=this,r=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:s,activeIndex:i,realIndex:a,snapIndex:o}=e;let l=t,u;const c=p=>{let m=p-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=xR(e)),n.indexOf(r)>=0)u=n.indexOf(r);else{const p=Math.min(s.slidesPerGroupSkip,l);u=p+Math.floor((l-p)/s.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),l===i&&!e.params.loop){u!==o&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(l===i&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(l);return}const f=e.grid&&s.grid&&s.grid.rows>1;let d;if(e.virtual&&s.virtual.enabled&&s.loop)d=c(l);else if(f){const p=e.slides.find(b=>b.column===l);let m=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(p),0)),d=Math.floor(m/s.grid.rows)}else if(e.slides[l]){const p=e.slides[l].getAttribute("data-swiper-slide-index");p?d=parseInt(p,10):d=l}else d=l;Object.assign(e,{previousSnapIndex:o,snapIndex:u,previousRealIndex:a,realIndex:d,previousIndex:i,activeIndex:l}),e.initialized&&uh(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==d&&e.emit("realIndexChange"),e.emit("slideChange"))}function CR(t,e){const r=this,n=r.params;let s=t.closest(`.${n.slideClass}, swiper-slide`);!s&&r.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!s&&o.matches&&o.matches(`.${n.slideClass}, swiper-slide`)&&(s=o)});let i=!1,a;if(s){for(let o=0;ol?c=l:n&&ta?o="next":i"u"&&(e=i.params.speed);const b=Math.min(i.params.slidesPerGroupSkip,a);let v=b+Math.floor((a-b)/i.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const _=-l[v];if(o.normalizeSlideIndex)for(let x=0;x=P&&A=P&&A=P&&(a=x)}if(i.initialized&&a!==f&&(!i.allowSlideNext&&(d?_>i.translate&&_>i.minTranslate():_i.translate&&_>i.maxTranslate()&&(f||0)!==a))return!1;a!==(c||0)&&r&&i.emit("beforeSlideChangeStart"),i.updateProgress(_);let E;a>f?E="next":a0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[x?"scrollLeft":"scrollTop"]=A})):p[x?"scrollLeft":"scrollTop"]=A,y&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1});else{if(!i.support.smoothScroll)return Hv({swiper:i,targetPosition:A,side:x?"left":"top"}),!0;p.scrollTo({[x?"left":"top"]:A,behavior:"smooth"})}return!0}return i.setTransition(e),i.setTranslate(_),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,n),i.transitionStart(r,E),e===0?i.transitionEnd(r,E):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(r,E))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function UR(t,e,r,n){t===void 0&&(t=0),r===void 0&&(r=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const i=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)a=a+s.virtual.slidesBefore;else{let o;if(i){const d=a*s.params.grid.rows;o=s.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===d).column}else o=s.getSlideIndexByData(a);const l=i?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:u}=s.params;let c=s.params.slidesPerView;c==="auto"?c=s.slidesPerViewDynamic():(c=Math.ceil(parseFloat(s.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let f=l-op.getAttribute("data-swiper-slide-index")*1===d).column}else a=s.getSlideIndexByData(a)}return requestAnimationFrame(()=>{s.slideTo(a,e,r,n)}),s}function jR(t,e,r){e===void 0&&(e=!0);const n=this,{enabled:s,params:i,animating:a}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let o=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex{n.slideTo(n.activeIndex+l,t,e,r)}),!0}return i.rewind&&n.isEnd?n.slideTo(0,t,e,r):n.slideTo(n.activeIndex+l,t,e,r)}function WR(t,e,r){e===void 0&&(e=!0);const n=this,{params:s,snapGrid:i,slidesGrid:a,rtlTranslate:o,enabled:l,animating:u}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const c=n.virtual&&s.virtual.enabled;if(s.loop){if(u&&!c&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const f=o?n.translate:-n.translate;function d(_){return _<0?-Math.floor(Math.abs(_)):Math.floor(_)}const p=d(f),m=i.map(_=>d(_));let b=i[m.indexOf(p)-1];if(typeof b>"u"&&s.cssMode){let _;i.forEach((E,y)=>{p>=E&&(_=y)}),typeof _<"u"&&(b=i[_>0?_-1:_])}let v=0;if(typeof b<"u"&&(v=a.indexOf(b),v<0&&(v=n.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(v=v-n.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),s.rewind&&n.isBeginning){const _=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(_,t,e,r)}else if(s.loop&&n.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(v,t,e,r)}),!0;return n.slideTo(v,t,e,r)}function HR(t,e,r){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,r)}function zR(t,e,r,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let i=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,i),o=a+Math.floor((i-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const u=s.snapGrid[o],c=s.snapGrid[o+1];l-u>(c-u)*n&&(i+=s.params.slidesPerGroup)}else{const u=s.snapGrid[o-1],c=s.snapGrid[o];l-u<=(c-u)*n&&(i-=s.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,s.slidesGrid.length-1),s.slideTo(i,t,e,r)}function VR(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:r}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.clickedIndex,i;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;i=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?st.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=t.getSlideIndex(yt(r,`${a}[data-swiper-slide-index="${i}"]`)[0]),Ci(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=t.getSlideIndex(yt(r,`${a}[data-swiper-slide-index="${i}"]`)[0]),Ci(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var qR={slideTo:FR,slideToLoop:UR,slideNext:jR,slidePrev:WR,slideReset:HR,slideToClosest:zR,slideToClickedSlide:VR};function YR(t){const e=this,{params:r,slidesEl:n}=e;if(!r.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{yt(n,`.${r.slideClass}, swiper-slide`).forEach((f,d)=>{f.setAttribute("data-swiper-slide-index",d)})},i=e.grid&&r.grid&&r.grid.rows>1,a=r.slidesPerGroup*(i?r.grid.rows:1),o=e.slides.length%a!==0,l=i&&e.slides.length%r.grid.rows!==0,u=c=>{for(let f=0;f1;u.length"u"?i=l.getSlideIndex(u.find(I=>I.classList.contains(p.slideActiveClass))):x=i;const A=n==="next"||!n,P=n==="prev"||!n;let L=0,W=0;const U=E?Math.ceil(u.length/p.grid.rows):u.length,C=(E?u[i].column:i)+(m&&typeof s>"u"?-b/2+.5:0);if(C<_){L=Math.max(_-C,v);for(let I=0;I<_-C;I+=1){const N=I-Math.floor(I/U)*U;if(E){const J=U-N-1;for(let ne=u.length-1;ne>=0;ne-=1)u[ne].column===J&&y.push(ne)}else y.push(U-N-1)}}else if(C+b>U-_){W=Math.max(C-(U-_*2),v);for(let I=0;I{J.column===N&&T.push(ne)}):T.push(N)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),P&&y.forEach(I=>{u[I].swiperLoopMoveDOM=!0,d.prepend(u[I]),u[I].swiperLoopMoveDOM=!1}),A&&T.forEach(I=>{u[I].swiperLoopMoveDOM=!0,d.append(u[I]),u[I].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():E&&(y.length>0&&P||T.length>0&&A)&&l.slides.forEach((I,N)=>{l.grid.updateSlide(N,I,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),r){if(y.length>0&&P){if(typeof e>"u"){const I=l.slidesGrid[x],J=l.slidesGrid[x+L]-I;o?l.setTranslate(l.translate-J):(l.slideTo(x+Math.ceil(L),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-J,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-J))}else if(s){const I=E?y.length/p.grid.rows:y.length;l.slideTo(l.activeIndex+I,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(T.length>0&&A)if(typeof e>"u"){const I=l.slidesGrid[x],J=l.slidesGrid[x-W]-I;o?l.setTranslate(l.translate-J):(l.slideTo(x-W,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-J,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-J))}else{const I=E?T.length/p.grid.rows:T.length;l.slideTo(l.activeIndex-I,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=f,l.controller&&l.controller.control&&!a){const I={slideRealIndex:e,direction:n,setTranslate:s,activeSlideIndex:i,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(N=>{!N.destroyed&&N.params.loop&&N.loopFix({...I,slideTo:N.params.slidesPerView===p.slidesPerView?r:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...I,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?r:!1})}l.emit("loopFix")}function KR(){const t=this,{params:e,slidesEl:r}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(s=>{const i=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;n[i]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),n.forEach(s=>{r.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var XR={loopCreate:YR,loopFix:GR,loopDestroy:KR};function QR(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const r=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function JR(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var ZR={setGrabCursor:QR,unsetGrabCursor:JR};function eL(t,e){e===void 0&&(e=this);function r(n){if(!n||n===pt()||n===rt())return null;n.assignedSlot&&(n=n.assignedSlot);const s=n.closest(t);return!s&&!n.getRootNode?null:s||r(n.getRootNode().host)}return r(e)}function Qb(t,e,r){const n=rt(),{params:s}=t,i=s.edgeSwipeDetection,a=s.edgeSwipeThreshold;return i&&(r<=a||r>=n.innerWidth-a)?i==="prevent"?(e.preventDefault(),!0):!1:!0}function tL(t){const e=this,r=pt();let n=t;n.originalEvent&&(n=n.originalEvent);const s=e.touchEventsData;if(n.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==n.pointerId)return;s.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(s.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Qb(e,n,n.targetTouches[0].pageX);return}const{params:i,touches:a,enabled:o}=e;if(!o||!i.simulateTouch&&n.pointerType==="mouse"||e.animating&&i.preventInteractionOnTransition)return;!e.animating&&i.cssMode&&i.loop&&e.loopFix();let l=n.target;if(i.touchEventsTarget==="wrapper"&&!lR(l,e.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||s.isTouched&&s.isMoved)return;const u=!!i.noSwipingClass&&i.noSwipingClass!=="",c=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&c&&(l=c[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,d=!!(n.target&&n.target.shadowRoot);if(i.noSwiping&&(d?eL(f,l):l.closest(f))){e.allowClick=!0;return}if(i.swipeHandler&&!l.closest(i.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const p=a.currentX,m=a.currentY;if(!Qb(e,n,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=m,s.touchStartTime=ir(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1);let b=!0;l.matches(s.focusableElements)&&(b=!1,l.nodeName==="SELECT"&&(s.isTouched=!1)),r.activeElement&&r.activeElement.matches(s.focusableElements)&&r.activeElement!==l&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!l.matches(s.focusableElements))&&r.activeElement.blur();const v=b&&e.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||v)&&!l.isContentEditable&&n.preventDefault(),i.freeMode&&i.freeMode.enabled&&e.freeMode&&e.animating&&!i.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function rL(t){const e=pt(),r=this,n=r.touchEventsData,{params:s,touches:i,rtlTranslate:a,enabled:o}=r;if(!o||!s.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].find(x=>x.identifier===n.touchId),!u||u.identifier!==n.touchId)return}else u=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l);return}const c=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){i.startX=c,i.startY=f;return}if(!r.allowTouchMove){l.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f}),n.touchStartTime=ir());return}if(s.touchReleaseOnEdges&&!s.loop){if(r.isVertical()){if(fi.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(ci.startX&&r.translate>=r.minTranslate())return}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}n.allowTouchCallbacks&&r.emit("touchMove",l),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=c,i.currentY=f;const d=i.currentX-i.startX,p=i.currentY-i.startY;if(r.params.threshold&&Math.sqrt(d**2+p**2)"u"){let x;r.isHorizontal()&&i.currentY===i.startY||r.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:d*d+p*p>=25&&(x=Math.atan2(Math.abs(p),Math.abs(d))*180/Math.PI,n.isScrolling=r.isHorizontal()?x>s.touchAngle:90-x>s.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation();let m=r.isHorizontal()?d:p,b=r.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;s.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),b=Math.abs(b)*(a?1:-1)),i.diff=m,m*=s.touchRatio,a&&(m=-m,b=-b);const v=r.touchesDirection;r.swipeDirection=m>0?"prev":"next",r.touchesDirection=b>0?"prev":"next";const _=r.params.loop&&!s.cssMode,E=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if(_&&E&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const x=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(x)}n.allowMomentumBounce=!1,s.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)}if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&v!==r.touchesDirection&&_&&E&&Math.abs(m)>=1){Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}r.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=m+n.startTranslate;let y=!0,T=s.resistanceRatio;if(s.touchReleaseOnEdges&&(T=0),m>0?(_&&E&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(s.slidesPerView!=="auto"&&r.slides.length-s.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(y=!1,s.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+m)**T))):m<0&&(_&&E&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(s.slidesPerView!=="auto"&&r.slides.length-s.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(s.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),s.threshold>0)if(Math.abs(m)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=r.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&r.freeMode||s.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function nL(t){const e=this,r=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let s;if(n.type==="touchend"||n.type==="touchcancel"){if(s=[...n.changedTouches].find(x=>x.identifier===r.touchId),!s||s.identifier!==r.touchId)return}else{if(r.touchId!==null||n.pointerId!==r.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:a,touches:o,rtlTranslate:l,slidesGrid:u,enabled:c}=e;if(!c||!a.simulateTouch&&n.pointerType==="mouse")return;if(r.allowTouchCallbacks&&e.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&a.grabCursor&&e.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}a.grabCursor&&r.isMoved&&r.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=ir(),d=f-r.touchStartTime;if(e.allowClick){const x=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(x&&x[0]||n.target,x),e.emit("tap click",n),d<300&&f-r.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(r.lastClickTime=ir(),Ci(()=>{e.destroyed||(e.allowClick=!0)}),!r.isTouched||!r.isMoved||!e.swipeDirection||o.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let p;if(a.followFinger?p=l?e.translate:-e.translate:p=-r.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const m=p>=-e.maxTranslate()&&!e.params.loop;let b=0,v=e.slidesSizesGrid[0];for(let x=0;x=u[x]&&p=u[x])&&(b=x,v=u[u.length-1]-u[u.length-2])}let _=null,E=null;a.rewind&&(e.isBeginning?E=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(_=0));const y=(p-u[b])/v,T=ba.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(y>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?_:b+T):e.slideTo(b)),e.swipeDirection==="prev"&&(y>1-a.longSwipesRatio?e.slideTo(b+T):E!==null&&y<0&&Math.abs(y)>a.longSwipesRatio?e.slideTo(E):e.slideTo(b))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+T):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(_!==null?_:b+T),e.swipeDirection==="prev"&&e.slideTo(E!==null?E:b))}}function Jb(){const t=this,{params:e,el:r}=t;if(r&&r.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:i}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=n,t.params.watchOverflow&&i!==t.snapGrid&&t.checkOverflow()}function iL(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function sL(){const t=this,{wrapperEl:e,rtlTranslate:r,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let s;const i=t.maxTranslate()-t.minTranslate();i===0?s=0:s=(t.translate-t.minTranslate())/i,s!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function oL(t){const e=this;tl(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function aL(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Yv=(t,e)=>{const r=pt(),{params:n,el:s,wrapperEl:i,device:a}=t,o=!!n.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;!s||typeof s=="string"||(r[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),s[l]("touchstart",t.onTouchStart,{passive:!1}),s[l]("pointerdown",t.onTouchStart,{passive:!1}),r[l]("touchmove",t.onTouchMove,{passive:!1,capture:o}),r[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),r[l]("touchend",t.onTouchEnd,{passive:!0}),r[l]("pointerup",t.onTouchEnd,{passive:!0}),r[l]("pointercancel",t.onTouchEnd,{passive:!0}),r[l]("touchcancel",t.onTouchEnd,{passive:!0}),r[l]("pointerout",t.onTouchEnd,{passive:!0}),r[l]("pointerleave",t.onTouchEnd,{passive:!0}),r[l]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[l]("click",t.onClick,!0),n.cssMode&&i[l]("scroll",t.onScroll),n.updateOnWindowResize?t[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Jb,!0):t[u]("observerUpdate",Jb,!0),s[l]("load",t.onLoad,{capture:!0}))};function lL(){const t=this,{params:e}=t;t.onTouchStart=tL.bind(t),t.onTouchMove=rL.bind(t),t.onTouchEnd=nL.bind(t),t.onDocumentTouchStart=aL.bind(t),e.cssMode&&(t.onScroll=sL.bind(t)),t.onClick=iL.bind(t),t.onLoad=oL.bind(t),Yv(t,"on")}function uL(){Yv(this,"off")}var cL={attachEvents:lL,detachEvents:uL};const Zb=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function fL(){const t=this,{realIndex:e,initialized:r,params:n,el:s}=t,i=n.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const a=pt(),o=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?t.el:a.querySelector(n.breakpointsBase),u=t.getBreakpoint(i,o,l);if(!u||t.currentBreakpoint===u)return;const f=(u in i?i[u]:void 0)||t.originalParams,d=Zb(t,n),p=Zb(t,f),m=t.params.grabCursor,b=f.grabCursor,v=n.enabled;d&&!p?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!d&&p&&(s.classList.add(`${n.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&n.grid.fill==="column")&&s.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),m&&!b?t.unsetGrabCursor():!m&&b&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof f[A]>"u")return;const P=n[A]&&n[A].enabled,L=f[A]&&f[A].enabled;P&&!L&&t[A].disable(),!P&&L&&t[A].enable()});const _=f.direction&&f.direction!==n.direction,E=n.loop&&(f.slidesPerView!==n.slidesPerView||_),y=n.loop;_&&r&&t.changeDirection(),Yt(t.params,f);const T=t.params.enabled,x=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),v&&!T?t.disable():!v&&T&&t.enable(),t.currentBreakpoint=u,t.emit("_beforeBreakpoint",f),r&&(E?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!y&&x?(t.loopCreate(e),t.updateSlides()):y&&!x&&t.loopDestroy()),t.emit("breakpoint",f)}function dL(t,e,r){if(e===void 0&&(e="window"),!t||e==="container"&&!r)return;let n=!1;const s=rt(),i=e==="window"?s.innerHeight:r.clientHeight,a=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:i*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o{typeof n=="object"?Object.keys(n).forEach(s=>{n[s]&&r.push(e+s)}):typeof n=="string"&&r.push(e+n)}),r}function gL(){const t=this,{classNames:e,params:r,rtl:n,el:s,device:i}=t,a=pL(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);e.push(...a),s.classList.add(...e),t.emitContainerClasses()}function mL(){const t=this,{el:e,classNames:r}=t;!e||typeof e=="string"||(e.classList.remove(...r),t.emitContainerClasses())}var bL={addClasses:gL,removeClasses:mL};function yL(){const t=this,{isLocked:e,params:r}=t,{slidesOffsetBefore:n}=r;if(n){const s=t.slides.length-1,i=t.slidesGrid[s]+t.slidesSizesGrid[s]+n*2;t.isLocked=t.size>i}else t.isLocked=t.snapGrid.length===1;r.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),r.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var wL={checkOverflow:yL},ch={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function _L(t,e){return function(n){n===void 0&&(n={});const s=Object.keys(n)[0],i=n[s];if(typeof i!="object"||i===null){Yt(e,n);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in i)){Yt(e,n);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),Yt(e,n)}}const qc={eventsEmitter:bR,update:IR,translate:LR,transition:$R,slide:qR,loop:XR,grabCursor:ZR,events:cL,breakpoints:hL,checkOverflow:wL,classes:bL},Yc={};class qt{constructor(){let e,r;for(var n=arguments.length,s=new Array(n),i=0;i1){const c=[];return a.querySelectorAll(r.el).forEach(f=>{const d=Yt({},r,{el:f});c.push(new qt(d))}),c}const o=this;o.__swiper__=!0,o.support=zv(),o.device=Vv({userAgent:r.userAgent}),o.browser=pR(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const l={};o.modules.forEach(c=>{c({params:r,swiper:o,extendParams:_L(r,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const u=Yt({},ch,l);return o.params=Yt({},u,Yc,r),o.originalParams=Yt({},o.params),o.passedParams=Yt({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(c=>{o.on(c,o.params.on[c])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:r,params:n}=this,s=yt(r,`.${n.slideClass}, swiper-slide`),i=Bo(s[0]);return Bo(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===e))}recalcSlides(){const e=this,{slidesEl:r,params:n}=e;e.slides=yt(r,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,r){const n=this;e=Math.min(Math.max(e,0),1);const s=n.minTranslate(),a=(n.maxTranslate()-s)*e+s;n.translateTo(a,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",r.join(" "))}getSlideClasses(e){const r=this;return r.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=[];e.slides.forEach(n=>{const s=e.getSlideClasses(n);r.push({slideEl:n,classNames:s}),e.emit("_slideClass",n,s)}),e.emit("_slideClasses",r)}slidesPerViewDynamic(e,r){e===void 0&&(e="current"),r===void 0&&(r=!1);const n=this,{params:s,slides:i,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:u}=n;let c=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let f=i[u]?Math.ceil(i[u].swiperSlideSize):0,d;for(let p=u+1;pl&&(d=!0));for(let p=u-1;p>=0;p-=1)i[p]&&!d&&(f+=i[p].swiperSlideSize,c+=1,f>l&&(d=!0))}else if(e==="current")for(let f=u+1;f=0;f-=1)a[u]-a[f]{a.complete&&tl(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)s(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(a.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||s()}n.watchOverflow&&r!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,r){r===void 0&&(r=!0);const n=this,s=n.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${s}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(i=>{e==="vertical"?i.style.width="":i.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(e){const r=this;r.rtl&&e==="rtl"||!r.rtl&&e==="ltr"||(r.rtl=e==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(e){const r=this;if(r.mounted)return!0;let n=e||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const s=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(s()):yt(n,s())[0];return!a&&r.params.createElements&&(a=Kt("div",r.params.wrapperClass),n.append(a),yt(n,`.${r.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(r,{el:n,wrapperEl:a,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Rn(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Rn(n,"direction")==="rtl"),wrongRTL:Rn(a,"display")==="-webkit-box"}),!0}init(e){const r=this;if(r.initialized||r.mount(e)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(),r.attachEvents();const s=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&s.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(i=>{i.complete?tl(r,i):i.addEventListener("load",a=>{tl(r,a.target)})}),uh(r),r.initialized=!0,uh(r),r.emit("init"),r.emit("afterInit"),r}destroy(e,r){e===void 0&&(e=!0),r===void 0&&(r=!0);const n=this,{params:s,el:i,wrapperEl:a,slides:o}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),s.loop&&n.loopDestroy(),r&&(n.removeClasses(),i&&typeof i!="string"&&i.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),iR(n)),n.destroyed=!0),null}static extendDefaults(e){Yt(Yc,e)}static get extendedDefaults(){return Yc}static get defaults(){return ch}static installModule(e){qt.prototype.__modules__||(qt.prototype.__modules__=[]);const r=qt.prototype.__modules__;typeof e=="function"&&r.indexOf(e)<0&&r.push(e)}static use(e){return Array.isArray(e)?(e.forEach(r=>qt.installModule(r)),qt):(qt.installModule(e),qt)}}Object.keys(qc).forEach(t=>{Object.keys(qc[t]).forEach(e=>{qt.prototype[e]=qc[t][e]})});qt.use([gR,mR]);var Rt="top",Qt="bottom",Jt="right",Lt="left",hu="auto",Ls=[Rt,Qt,Jt,Lt],Ii="start",ws="end",Gv="clippingParents",Sp="viewport",Qi="popper",Kv="reference",fh=Ls.reduce(function(t,e){return t.concat([e+"-"+Ii,e+"-"+ws])},[]),Tp=[].concat(Ls,[hu]).reduce(function(t,e){return t.concat([e,e+"-"+Ii,e+"-"+ws])},[]),Xv="beforeRead",Qv="read",Jv="afterRead",Zv="beforeMain",eE="main",tE="afterMain",rE="beforeWrite",nE="write",iE="afterWrite",sE=[Xv,Qv,Jv,Zv,eE,tE,rE,nE,iE];function Dr(t){return t?(t.nodeName||"").toLowerCase():null}function Zt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Mi(t){var e=Zt(t).Element;return t instanceof e||t instanceof Element}function ar(t){var e=Zt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function xp(t){if(typeof ShadowRoot>"u")return!1;var e=Zt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function vL(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},s=e.attributes[r]||{},i=e.elements[r];!ar(i)||!Dr(i)||(Object.assign(i.style,n),Object.keys(s).forEach(function(a){var o=s[a];o===!1?i.removeAttribute(a):i.setAttribute(a,o===!0?"":o)}))})}function EL(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var s=e.elements[n],i=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),o=a.reduce(function(l,u){return l[u]="",l},{});!ar(s)||!Dr(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}const Ap={name:"applyStyles",enabled:!0,phase:"write",fn:vL,effect:EL,requires:["computeStyles"]};function Rr(t){return t.split("-")[0]}var Ei=Math.max,Nl=Math.min,_s=Math.round;function dh(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function oE(){return!/^((?!chrome|android).)*safari/i.test(dh())}function vs(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),s=1,i=1;e&&ar(t)&&(s=t.offsetWidth>0&&_s(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&_s(n.height)/t.offsetHeight||1);var a=Mi(t)?Zt(t):window,o=a.visualViewport,l=!oE()&&r,u=(n.left+(l&&o?o.offsetLeft:0))/s,c=(n.top+(l&&o?o.offsetTop:0))/i,f=n.width/s,d=n.height/i;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function Cp(t){var e=vs(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function aE(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&xp(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function gn(t){return Zt(t).getComputedStyle(t)}function SL(t){return["table","td","th"].indexOf(Dr(t))>=0}function Hn(t){return((Mi(t)?t.ownerDocument:t.document)||window.document).documentElement}function pu(t){return Dr(t)==="html"?t:t.assignedSlot||t.parentNode||(xp(t)?t.host:null)||Hn(t)}function ey(t){return!ar(t)||gn(t).position==="fixed"?null:t.offsetParent}function TL(t){var e=/firefox/i.test(dh()),r=/Trident/i.test(dh());if(r&&ar(t)){var n=gn(t);if(n.position==="fixed")return null}var s=pu(t);for(xp(s)&&(s=s.host);ar(s)&&["html","body"].indexOf(Dr(s))<0;){var i=gn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function Go(t){for(var e=Zt(t),r=ey(t);r&&SL(r)&&gn(r).position==="static";)r=ey(r);return r&&(Dr(r)==="html"||Dr(r)==="body"&&gn(r).position==="static")?e:r||TL(t)||e}function Ip(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function To(t,e,r){return Ei(t,Nl(e,r))}function xL(t,e,r){var n=To(t,e,r);return n>r?r:n}function lE(){return{top:0,right:0,bottom:0,left:0}}function uE(t){return Object.assign({},lE(),t)}function cE(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var AL=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,uE(typeof e!="number"?e:cE(e,Ls))};function CL(t){var e,r=t.state,n=t.name,s=t.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,o=Rr(r.placement),l=Ip(o),u=[Lt,Jt].indexOf(o)>=0,c=u?"height":"width";if(!(!i||!a)){var f=AL(s.padding,r),d=Cp(i),p=l==="y"?Rt:Lt,m=l==="y"?Qt:Jt,b=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],_=Go(i),E=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,y=b/2-v/2,T=f[p],x=E-d[c]-f[m],A=E/2-d[c]/2+y,P=To(T,A,x),L=l;r.modifiersData[n]=(e={},e[L]=P,e.centerOffset=P-A,e)}}function IL(t){var e=t.state,r=t.options,n=r.element,s=n===void 0?"[data-popper-arrow]":n;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||aE(e.elements.popper,s)&&(e.elements.arrow=s))}const fE={name:"arrow",enabled:!0,phase:"main",fn:CL,effect:IL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Es(t){return t.split("-")[1]}var ML={top:"auto",right:"auto",bottom:"auto",left:"auto"};function OL(t,e){var r=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:_s(r*s)/s||0,y:_s(n*s)/s||0}}function ty(t){var e,r=t.popper,n=t.popperRect,s=t.placement,i=t.variation,a=t.offsets,o=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=a.x,p=d===void 0?0:d,m=a.y,b=m===void 0?0:m,v=typeof c=="function"?c({x:p,y:b}):{x:p,y:b};p=v.x,b=v.y;var _=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),y=Lt,T=Rt,x=window;if(u){var A=Go(r),P="clientHeight",L="clientWidth";if(A===Zt(r)&&(A=Hn(r),gn(A).position!=="static"&&o==="absolute"&&(P="scrollHeight",L="scrollWidth")),A=A,s===Rt||(s===Lt||s===Jt)&&i===ws){T=Qt;var W=f&&A===x&&x.visualViewport?x.visualViewport.height:A[P];b-=W-n.height,b*=l?1:-1}if(s===Lt||(s===Rt||s===Qt)&&i===ws){y=Jt;var U=f&&A===x&&x.visualViewport?x.visualViewport.width:A[L];p-=U-n.width,p*=l?1:-1}}var H=Object.assign({position:o},u&&ML),C=c===!0?OL({x:p,y:b},Zt(r)):{x:p,y:b};if(p=C.x,b=C.y,l){var I;return Object.assign({},H,(I={},I[T]=E?"0":"",I[y]=_?"0":"",I.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",I))}return Object.assign({},H,(e={},e[T]=E?b+"px":"",e[y]=_?p+"px":"",e.transform="",e))}function PL(t){var e=t.state,r=t.options,n=r.gpuAcceleration,s=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,o=r.roundOffsets,l=o===void 0?!0:o,u={placement:Rr(e.placement),variation:Es(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ty(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ty(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Mp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:PL,data:{}};var xa={passive:!0};function kL(t){var e=t.state,r=t.instance,n=t.options,s=n.scroll,i=s===void 0?!0:s,a=n.resize,o=a===void 0?!0:a,l=Zt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,xa)}),o&&l.addEventListener("resize",r.update,xa),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,xa)}),o&&l.removeEventListener("resize",r.update,xa)}}const Op={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kL,data:{}};var RL={left:"right",right:"left",bottom:"top",top:"bottom"};function rl(t){return t.replace(/left|right|bottom|top/g,function(e){return RL[e]})}var LL={start:"end",end:"start"};function ry(t){return t.replace(/start|end/g,function(e){return LL[e]})}function Pp(t){var e=Zt(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function kp(t){return vs(Hn(t)).left+Pp(t).scrollLeft}function NL(t,e){var r=Zt(t),n=Hn(t),s=r.visualViewport,i=n.clientWidth,a=n.clientHeight,o=0,l=0;if(s){i=s.width,a=s.height;var u=oE();(u||!u&&e==="fixed")&&(o=s.offsetLeft,l=s.offsetTop)}return{width:i,height:a,x:o+kp(t),y:l}}function DL(t){var e,r=Hn(t),n=Pp(t),s=(e=t.ownerDocument)==null?void 0:e.body,i=Ei(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Ei(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+kp(t),l=-n.scrollTop;return gn(s||r).direction==="rtl"&&(o+=Ei(r.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function Rp(t){var e=gn(t),r=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+n)}function dE(t){return["html","body","#document"].indexOf(Dr(t))>=0?t.ownerDocument.body:ar(t)&&Rp(t)?t:dE(pu(t))}function xo(t,e){var r;e===void 0&&(e=[]);var n=dE(t),s=n===((r=t.ownerDocument)==null?void 0:r.body),i=Zt(n),a=s?[i].concat(i.visualViewport||[],Rp(n)?n:[]):n,o=e.concat(a);return s?o:o.concat(xo(pu(a)))}function hh(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function BL(t,e){var r=vs(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function ny(t,e,r){return e===Sp?hh(NL(t,r)):Mi(e)?BL(e,r):hh(DL(Hn(t)))}function $L(t){var e=xo(pu(t)),r=["absolute","fixed"].indexOf(gn(t).position)>=0,n=r&&ar(t)?Go(t):t;return Mi(n)?e.filter(function(s){return Mi(s)&&aE(s,n)&&Dr(s)!=="body"}):[]}function FL(t,e,r,n){var s=e==="clippingParents"?$L(t):[].concat(e),i=[].concat(s,[r]),a=i[0],o=i.reduce(function(l,u){var c=ny(t,u,n);return l.top=Ei(c.top,l.top),l.right=Nl(c.right,l.right),l.bottom=Nl(c.bottom,l.bottom),l.left=Ei(c.left,l.left),l},ny(t,a,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function hE(t){var e=t.reference,r=t.element,n=t.placement,s=n?Rr(n):null,i=n?Es(n):null,a=e.x+e.width/2-r.width/2,o=e.y+e.height/2-r.height/2,l;switch(s){case Rt:l={x:a,y:e.y-r.height};break;case Qt:l={x:a,y:e.y+e.height};break;case Jt:l={x:e.x+e.width,y:o};break;case Lt:l={x:e.x-r.width,y:o};break;default:l={x:e.x,y:e.y}}var u=s?Ip(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ii:l[u]=l[u]-(e[c]/2-r[c]/2);break;case ws:l[u]=l[u]+(e[c]/2-r[c]/2);break}}return l}function Ss(t,e){e===void 0&&(e={});var r=e,n=r.placement,s=n===void 0?t.placement:n,i=r.strategy,a=i===void 0?t.strategy:i,o=r.boundary,l=o===void 0?Gv:o,u=r.rootBoundary,c=u===void 0?Sp:u,f=r.elementContext,d=f===void 0?Qi:f,p=r.altBoundary,m=p===void 0?!1:p,b=r.padding,v=b===void 0?0:b,_=uE(typeof v!="number"?v:cE(v,Ls)),E=d===Qi?Kv:Qi,y=t.rects.popper,T=t.elements[m?E:d],x=FL(Mi(T)?T:T.contextElement||Hn(t.elements.popper),l,c,a),A=vs(t.elements.reference),P=hE({reference:A,element:y,strategy:"absolute",placement:s}),L=hh(Object.assign({},y,P)),W=d===Qi?L:A,U={top:x.top-W.top+_.top,bottom:W.bottom-x.bottom+_.bottom,left:x.left-W.left+_.left,right:W.right-x.right+_.right},H=t.modifiersData.offset;if(d===Qi&&H){var C=H[s];Object.keys(U).forEach(function(I){var N=[Jt,Qt].indexOf(I)>=0?1:-1,J=[Rt,Qt].indexOf(I)>=0?"y":"x";U[I]+=C[J]*N})}return U}function UL(t,e){e===void 0&&(e={});var r=e,n=r.placement,s=r.boundary,i=r.rootBoundary,a=r.padding,o=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?Tp:l,c=Es(n),f=c?o?fh:fh.filter(function(m){return Es(m)===c}):Ls,d=f.filter(function(m){return u.indexOf(m)>=0});d.length===0&&(d=f);var p=d.reduce(function(m,b){return m[b]=Ss(t,{placement:b,boundary:s,rootBoundary:i,padding:a})[Rr(b)],m},{});return Object.keys(p).sort(function(m,b){return p[m]-p[b]})}function jL(t){if(Rr(t)===hu)return[];var e=rl(t);return[ry(t),e,ry(e)]}function WL(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=r.mainAxis,i=s===void 0?!0:s,a=r.altAxis,o=a===void 0?!0:a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,m=p===void 0?!0:p,b=r.allowedAutoPlacements,v=e.options.placement,_=Rr(v),E=_===v,y=l||(E||!m?[rl(v)]:jL(v)),T=[v].concat(y).reduce(function(me,ee){return me.concat(Rr(ee)===hu?UL(e,{placement:ee,boundary:c,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:b}):ee)},[]),x=e.rects.reference,A=e.rects.popper,P=new Map,L=!0,W=T[0],U=0;U=0,J=N?"width":"height",ne=Ss(e,{placement:H,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),te=N?I?Jt:Lt:I?Qt:Rt;x[J]>A[J]&&(te=rl(te));var B=rl(te),ae=[];if(i&&ae.push(ne[C]<=0),o&&ae.push(ne[te]<=0,ne[B]<=0),ae.every(function(me){return me})){W=H,L=!1;break}P.set(H,ae)}if(L)for(var Y=m?3:1,ce=function(ee){var K=T.find(function(j){var D=P.get(j);if(D)return D.slice(0,ee).every(function(X){return X})});if(K)return W=K,"break"},$=Y;$>0;$--){var ue=ce($);if(ue==="break")break}e.placement!==W&&(e.modifiersData[n]._skip=!0,e.placement=W,e.reset=!0)}}const pE={name:"flip",enabled:!0,phase:"main",fn:WL,requiresIfExists:["offset"],data:{_skip:!1}};function iy(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function sy(t){return[Rt,Jt,Qt,Lt].some(function(e){return t[e]>=0})}function HL(t){var e=t.state,r=t.name,n=e.rects.reference,s=e.rects.popper,i=e.modifiersData.preventOverflow,a=Ss(e,{elementContext:"reference"}),o=Ss(e,{altBoundary:!0}),l=iy(a,n),u=iy(o,s,i),c=sy(l),f=sy(u);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const gE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HL};function zL(t,e,r){var n=Rr(t),s=[Lt,Rt].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=i[0],o=i[1];return a=a||0,o=(o||0)*s,[Lt,Jt].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}function VL(t){var e=t.state,r=t.options,n=t.name,s=r.offset,i=s===void 0?[0,0]:s,a=Tp.reduce(function(c,f){return c[f]=zL(f,e.rects,i),c},{}),o=a[e.placement],l=o.x,u=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=a}const mE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VL};function qL(t){var e=t.state,r=t.name;e.modifiersData[r]=hE({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Lp={name:"popperOffsets",enabled:!0,phase:"read",fn:qL,data:{}};function YL(t){return t==="x"?"y":"x"}function GL(t){var e=t.state,r=t.options,n=t.name,s=r.mainAxis,i=s===void 0?!0:s,a=r.altAxis,o=a===void 0?!1:a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,p=d===void 0?!0:d,m=r.tetherOffset,b=m===void 0?0:m,v=Ss(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),_=Rr(e.placement),E=Es(e.placement),y=!E,T=Ip(_),x=YL(T),A=e.modifiersData.popperOffsets,P=e.rects.reference,L=e.rects.popper,W=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,U=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(A){if(i){var I,N=T==="y"?Rt:Lt,J=T==="y"?Qt:Jt,ne=T==="y"?"height":"width",te=A[T],B=te+v[N],ae=te-v[J],Y=p?-L[ne]/2:0,ce=E===Ii?P[ne]:L[ne],$=E===Ii?-L[ne]:-P[ne],ue=e.elements.arrow,me=p&&ue?Cp(ue):{width:0,height:0},ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:lE(),K=ee[N],j=ee[J],D=To(0,P[ne],me[ne]),X=y?P[ne]/2-Y-D-K-U.mainAxis:ce-D-K-U.mainAxis,le=y?-P[ne]/2+Y+D+j+U.mainAxis:$+D+j+U.mainAxis,se=e.elements.arrow&&Go(e.elements.arrow),M=se?T==="y"?se.clientTop||0:se.clientLeft||0:0,O=(I=H==null?void 0:H[T])!=null?I:0,F=te+X-O-M,R=te+le-O,V=To(p?Nl(B,F):B,te,p?Ei(ae,R):ae);A[T]=V,C[T]=V-te}if(o){var q,oe=T==="x"?Rt:Lt,Q=T==="x"?Qt:Jt,G=A[x],re=x==="y"?"height":"width",z=G+v[oe],ie=G-v[Q],he=[Rt,Lt].indexOf(_)!==-1,be=(q=H==null?void 0:H[x])!=null?q:0,S=he?z:G-P[re]-L[re]-be+U.altAxis,g=he?G+P[re]+L[re]-be-U.altAxis:ie,h=p&&he?xL(S,G,g):To(p?S:z,G,p?g:ie);A[x]=h,C[x]=h-G}e.modifiersData[n]=C}}const bE={name:"preventOverflow",enabled:!0,phase:"main",fn:GL,requiresIfExists:["offset"]};function KL(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function XL(t){return t===Zt(t)||!ar(t)?Pp(t):KL(t)}function QL(t){var e=t.getBoundingClientRect(),r=_s(e.width)/t.offsetWidth||1,n=_s(e.height)/t.offsetHeight||1;return r!==1||n!==1}function JL(t,e,r){r===void 0&&(r=!1);var n=ar(e),s=ar(e)&&QL(e),i=Hn(e),a=vs(t,s,r),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Dr(e)!=="body"||Rp(i))&&(o=XL(e)),ar(e)?(l=vs(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=kp(i))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function ZL(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function s(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(o){if(!r.has(o)){var l=e.get(o);l&&s(l)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||s(i)}),n}function eN(t){var e=ZL(t);return sE.reduce(function(r,n){return r.concat(e.filter(function(s){return s.phase===n}))},[])}function tN(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function rN(t){var e=t.reduce(function(r,n){var s=r[n.name];return r[n.name]=s?Object.assign({},s,n,{options:Object.assign({},s.options,n.options),data:Object.assign({},s.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var oy={placement:"bottom",modifiers:[],strategy:"absolute"};function ay(){for(var t=arguments.length,e=new Array(t),r=0;r(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,r)=>`#${CSS.escape(r)}`)),t),uN=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),cN=t=>{do t+=Math.floor(Math.random()*aN);while(document.getElementById(t));return t},fN=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(r);return!n&&!s?0:(e=e.split(",")[0],r=r.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(r))*lN)},_E=t=>{t.dispatchEvent(new Event(ph))},sn=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Dn=t=>sn(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(wE(t)):null,Ns=t=>{if(!sn(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const n=t.closest("summary");if(n&&n.parentNode!==r||n===null)return!1}return e},Bn=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",vE=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?vE(t.parentNode):null},Dl=()=>{},Ko=t=>{t.offsetHeight},EE=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Kc=[],dN=t=>{document.readyState==="loading"?(Kc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Kc)e()}),Kc.push(t)):t()},ur=()=>document.documentElement.dir==="rtl",fr=t=>{dN(()=>{const e=EE();if(e){const r=t.NAME,n=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=n,t.jQueryInterface)}})},$t=(t,e=[],r=t)=>typeof t=="function"?t(...e):r,SE=(t,e,r=!0)=>{if(!r){$t(t);return}const s=fN(e)+5;let i=!1;const a=({target:o})=>{o===e&&(i=!0,e.removeEventListener(ph,a),$t(t))};e.addEventListener(ph,a),setTimeout(()=>{i||_E(e)},s)},Dp=(t,e,r,n)=>{const s=t.length;let i=t.indexOf(e);return i===-1?!r&&n?t[s-1]:t[0]:(i+=r?1:-1,n&&(i=(i+s)%s),t[Math.max(0,Math.min(i,s-1))])},hN=/[^.]*(?=\..*)\.|.*/,pN=/\..*/,gN=/::\d+$/,Xc={};let ly=1;const TE={mouseenter:"mouseover",mouseleave:"mouseout"},mN=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function xE(t,e){return e&&`${e}::${ly++}`||t.uidEvent||ly++}function AE(t){const e=xE(t);return t.uidEvent=e,Xc[e]=Xc[e]||{},Xc[e]}function bN(t,e){return function r(n){return Bp(n,{delegateTarget:t}),r.oneOff&&Se.off(t,n.type,e),e.apply(t,[n])}}function yN(t,e,r){return function n(s){const i=t.querySelectorAll(e);for(let{target:a}=s;a&&a!==this;a=a.parentNode)for(const o of i)if(o===a)return Bp(s,{delegateTarget:a}),n.oneOff&&Se.off(t,s.type,e,r),r.apply(a,[s])}}function CE(t,e,r=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===r)}function IE(t,e,r){const n=typeof e=="string",s=n?r:e||r;let i=ME(t);return mN.has(i)||(i=t),[n,s,i]}function uy(t,e,r,n,s){if(typeof e!="string"||!t)return;let[i,a,o]=IE(e,r,n);e in TE&&(a=(m=>function(b){if(!b.relatedTarget||b.relatedTarget!==b.delegateTarget&&!b.delegateTarget.contains(b.relatedTarget))return m.call(this,b)})(a));const l=AE(t),u=l[o]||(l[o]={}),c=CE(u,a,i?r:null);if(c){c.oneOff=c.oneOff&&s;return}const f=xE(a,e.replace(hN,"")),d=i?yN(t,r,a):bN(t,a);d.delegationSelector=i?r:null,d.callable=a,d.oneOff=s,d.uidEvent=f,u[f]=d,t.addEventListener(o,d,i)}function gh(t,e,r,n,s){const i=CE(e[r],n,s);i&&(t.removeEventListener(r,i,!!s),delete e[r][i.uidEvent])}function wN(t,e,r,n){const s=e[r]||{};for(const[i,a]of Object.entries(s))i.includes(n)&&gh(t,e,r,a.callable,a.delegationSelector)}function ME(t){return t=t.replace(pN,""),TE[t]||t}const Se={on(t,e,r,n){uy(t,e,r,n,!1)},one(t,e,r,n){uy(t,e,r,n,!0)},off(t,e,r,n){if(typeof e!="string"||!t)return;const[s,i,a]=IE(e,r,n),o=a!==e,l=AE(t),u=l[a]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;gh(t,l,a,i,s?r:null);return}if(c)for(const f of Object.keys(l))wN(t,l,f,e.slice(1));for(const[f,d]of Object.entries(u)){const p=f.replace(gN,"");(!o||e.includes(p))&&gh(t,l,a,d.callable,d.delegationSelector)}},trigger(t,e,r){if(typeof e!="string"||!t)return null;const n=EE(),s=ME(e),i=e!==s;let a=null,o=!0,l=!0,u=!1;i&&n&&(a=n.Event(e,r),n(t).trigger(a),o=!a.isPropagationStopped(),l=!a.isImmediatePropagationStopped(),u=a.isDefaultPrevented());const c=Bp(new Event(e,{bubbles:o,cancelable:!0}),r);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&a&&a.preventDefault(),c}};function Bp(t,e={}){for(const[r,n]of Object.entries(e))try{t[r]=n}catch{Object.defineProperty(t,r,{configurable:!0,get(){return n}})}return t}function cy(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Qc(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const on={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${Qc(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Qc(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of r){let s=n.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=cy(t.dataset[n])}return e},getDataAttribute(t,e){return cy(t.getAttribute(`data-bs-${Qc(e)}`))}};class Xo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,r){const n=sn(r)?on.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...sn(r)?on.getDataAttributes(r):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,r=this.constructor.DefaultType){for(const[n,s]of Object.entries(r)){const i=e[n],a=sn(i)?"element":uN(i);if(!new RegExp(s).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}}}const _N="5.3.3";class Er extends Xo{constructor(e,r){super(),e=Dn(e),e&&(this._element=e,this._config=this._getConfig(r),Gc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Gc.remove(this._element,this.constructor.DATA_KEY),Se.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,r,n=!0){SE(e,r,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Gc.get(Dn(e),this.DATA_KEY)}static getOrCreateInstance(e,r={}){return this.getInstance(e)||new this(e,typeof r=="object"?r:null)}static get VERSION(){return _N}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Jc=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&r!=="#"?r.trim():null}return e?e.split(",").map(r=>wE(r)).join(","):null},Le={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(r=>r.matches(e))},parents(t,e){const r=[];let n=t.parentNode.closest(e);for(;n;)r.push(n),n=n.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(r=>!Bn(r)&&Ns(r))},getSelectorFromElement(t){const e=Jc(t);return e&&Le.findOne(e)?e:null},getElementFromSelector(t){const e=Jc(t);return e?Le.findOne(e):null},getMultipleElementsFromSelector(t){const e=Jc(t);return e?Le.find(e):[]}},mu=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Se.on(document,r,`[data-bs-dismiss="${n}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),Bn(this))return;const i=Le.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},vN="alert",EN="bs.alert",OE=`.${EN}`,SN=`close${OE}`,TN=`closed${OE}`,xN="fade",AN="show";class bu extends Er{static get NAME(){return vN}close(){if(Se.trigger(this._element,SN).defaultPrevented)return;this._element.classList.remove(AN);const r=this._element.classList.contains(xN);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),Se.trigger(this._element,TN),this.dispose()}static jQueryInterface(e){return this.each(function(){const r=bu.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}mu(bu,"close");fr(bu);const CN="button",IN="bs.button",MN=`.${IN}`,ON=".data-api",PN="active",fy='[data-bs-toggle="button"]',kN=`click${MN}${ON}`;class yu extends Er{static get NAME(){return CN}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(PN))}static jQueryInterface(e){return this.each(function(){const r=yu.getOrCreateInstance(this);e==="toggle"&&r[e]()})}}Se.on(document,kN,fy,t=>{t.preventDefault();const e=t.target.closest(fy);yu.getOrCreateInstance(e).toggle()});fr(yu);const RN="swipe",Ds=".bs.swipe",LN=`touchstart${Ds}`,NN=`touchmove${Ds}`,DN=`touchend${Ds}`,BN=`pointerdown${Ds}`,$N=`pointerup${Ds}`,FN="touch",UN="pen",jN="pointer-event",WN=40,HN={endCallback:null,leftCallback:null,rightCallback:null},zN={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Bl extends Xo{constructor(e,r){super(),this._element=e,!(!e||!Bl.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return HN}static get DefaultType(){return zN}static get NAME(){return RN}dispose(){Se.off(this._element,Ds)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),$t(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=WN)return;const r=e/this._deltaX;this._deltaX=0,r&&$t(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Se.on(this._element,BN,e=>this._start(e)),Se.on(this._element,$N,e=>this._end(e)),this._element.classList.add(jN)):(Se.on(this._element,LN,e=>this._start(e)),Se.on(this._element,NN,e=>this._move(e)),Se.on(this._element,DN,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===UN||e.pointerType===FN)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const VN="carousel",qN="bs.carousel",zn=`.${qN}`,PE=".data-api",YN="ArrowLeft",GN="ArrowRight",KN=500,no="next",qi="prev",Ji="left",nl="right",XN=`slide${zn}`,Zc=`slid${zn}`,QN=`keydown${zn}`,JN=`mouseenter${zn}`,ZN=`mouseleave${zn}`,e2=`dragstart${zn}`,t2=`load${zn}${PE}`,r2=`click${zn}${PE}`,kE="carousel",Aa="active",n2="slide",i2="carousel-item-end",s2="carousel-item-start",o2="carousel-item-next",a2="carousel-item-prev",RE=".active",LE=".carousel-item",l2=RE+LE,u2=".carousel-item img",c2=".carousel-indicators",f2="[data-bs-slide], [data-bs-slide-to]",d2='[data-bs-ride="carousel"]',h2={[YN]:nl,[GN]:Ji},p2={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},g2={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Qo extends Er{constructor(e,r){super(e,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Le.findOne(c2,this._element),this._addEventListeners(),this._config.ride===kE&&this.cycle()}static get Default(){return p2}static get DefaultType(){return g2}static get NAME(){return VN}next(){this._slide(no)}nextWhenVisible(){!document.hidden&&Ns(this._element)&&this.next()}prev(){this._slide(qi)}pause(){this._isSliding&&_E(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Se.one(this._element,Zc,()=>this.cycle());return}this.cycle()}}to(e){const r=this._getItems();if(e>r.length-1||e<0)return;if(this._isSliding){Se.one(this._element,Zc,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const s=e>n?no:qi;this._slide(s,r[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Se.on(this._element,QN,e=>this._keydown(e)),this._config.pause==="hover"&&(Se.on(this._element,JN,()=>this.pause()),Se.on(this._element,ZN,()=>this._maybeEnableCycle())),this._config.touch&&Bl.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of Le.find(u2,this._element))Se.on(n,e2,s=>s.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(Ji)),rightCallback:()=>this._slide(this._directionToOrder(nl)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),KN+this._config.interval))}};this._swipeHelper=new Bl(this._element,r)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const r=h2[e.key];r&&(e.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const r=Le.findOne(RE,this._indicatorsElement);r.classList.remove(Aa),r.removeAttribute("aria-current");const n=Le.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(Aa),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const r=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(e,r=null){if(this._isSliding)return;const n=this._getActive(),s=e===no,i=r||Dp(this._getItems(),n,s,this._config.wrap);if(i===n)return;const a=this._getItemIndex(i),o=p=>Se.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(XN).defaultPrevented||!n||!i)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;const c=s?s2:i2,f=s?o2:a2;i.classList.add(f),Ko(i),n.classList.add(c),i.classList.add(c);const d=()=>{i.classList.remove(c,f),i.classList.add(Aa),n.classList.remove(Aa,f,c),this._isSliding=!1,o(Zc)};this._queueCallback(d,n,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(n2)}_getActive(){return Le.findOne(l2,this._element)}_getItems(){return Le.find(LE,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return ur()?e===Ji?qi:no:e===Ji?no:qi}_orderToDirection(e){return ur()?e===qi?Ji:nl:e===qi?nl:Ji}static jQueryInterface(e){return this.each(function(){const r=Qo.getOrCreateInstance(this,e);if(typeof e=="number"){r.to(e);return}if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Se.on(document,r2,f2,function(t){const e=Le.getElementFromSelector(this);if(!e||!e.classList.contains(kE))return;t.preventDefault();const r=Qo.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){r.to(n),r._maybeEnableCycle();return}if(on.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});Se.on(window,t2,()=>{const t=Le.find(d2);for(const e of t)Qo.getOrCreateInstance(e)});fr(Qo);const m2="collapse",b2="bs.collapse",Jo=`.${b2}`,y2=".data-api",w2=`show${Jo}`,_2=`shown${Jo}`,v2=`hide${Jo}`,E2=`hidden${Jo}`,S2=`click${Jo}${y2}`,ef="show",ns="collapse",Ca="collapsing",T2="collapsed",x2=`:scope .${ns} .${ns}`,A2="collapse-horizontal",C2="width",I2="height",M2=".collapse.show, .collapse.collapsing",mh='[data-bs-toggle="collapse"]',O2={parent:null,toggle:!0},P2={parent:"(null|element)",toggle:"boolean"};class $o extends Er{constructor(e,r){super(e,r),this._isTransitioning=!1,this._triggerArray=[];const n=Le.find(mh);for(const s of n){const i=Le.getSelectorFromElement(s),a=Le.find(i).filter(o=>o===this._element);i!==null&&a.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return O2}static get DefaultType(){return P2}static get NAME(){return m2}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(M2).filter(o=>o!==this._element).map(o=>$o.getOrCreateInstance(o,{toggle:!1}))),e.length&&e[0]._isTransitioning||Se.trigger(this._element,w2).defaultPrevented)return;for(const o of e)o.hide();const n=this._getDimension();this._element.classList.remove(ns),this._element.classList.add(Ca),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(Ca),this._element.classList.add(ns,ef),this._element.style[n]="",Se.trigger(this._element,_2)},a=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[n]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||Se.trigger(this._element,v2).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,Ko(this._element),this._element.classList.add(Ca),this._element.classList.remove(ns,ef);for(const s of this._triggerArray){const i=Le.getElementFromSelector(s);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(Ca),this._element.classList.add(ns),Se.trigger(this._element,E2)};this._element.style[r]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(ef)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Dn(e.parent),e}_getDimension(){return this._element.classList.contains(A2)?C2:I2}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(mh);for(const r of e){const n=Le.getElementFromSelector(r);n&&this._addAriaAndCollapsedClass([r],this._isShown(n))}}_getFirstLevelChildren(e){const r=Le.find(x2,this._config.parent);return Le.find(e,this._config.parent).filter(n=>!r.includes(n))}_addAriaAndCollapsedClass(e,r){if(e.length)for(const n of e)n.classList.toggle(T2,!r),n.setAttribute("aria-expanded",r)}static jQueryInterface(e){const r={};return typeof e=="string"&&/show|hide/.test(e)&&(r.toggle=!1),this.each(function(){const n=$o.getOrCreateInstance(this,r);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Se.on(document,S2,mh,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Le.getMultipleElementsFromSelector(this))$o.getOrCreateInstance(e,{toggle:!1}).toggle()});fr($o);const dy="dropdown",k2="bs.dropdown",Ui=`.${k2}`,$p=".data-api",R2="Escape",hy="Tab",L2="ArrowUp",py="ArrowDown",N2=2,D2=`hide${Ui}`,B2=`hidden${Ui}`,$2=`show${Ui}`,F2=`shown${Ui}`,NE=`click${Ui}${$p}`,DE=`keydown${Ui}${$p}`,U2=`keyup${Ui}${$p}`,Zi="show",j2="dropup",W2="dropend",H2="dropstart",z2="dropup-center",V2="dropdown-center",pi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',q2=`${pi}.${Zi}`,il=".dropdown-menu",Y2=".navbar",G2=".navbar-nav",K2=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",X2=ur()?"top-end":"top-start",Q2=ur()?"top-start":"top-end",J2=ur()?"bottom-end":"bottom-start",Z2=ur()?"bottom-start":"bottom-end",eD=ur()?"left-start":"right-start",tD=ur()?"right-start":"left-start",rD="top",nD="bottom",iD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},sD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Lr extends Er{constructor(e,r){super(e,r),this._popper=null,this._parent=this._element.parentNode,this._menu=Le.next(this._element,il)[0]||Le.prev(this._element,il)[0]||Le.findOne(il,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return iD}static get DefaultType(){return sD}static get NAME(){return dy}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Bn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Se.trigger(this._element,$2,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(G2))for(const n of[].concat(...document.body.children))Se.on(n,"mouseover",Dl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Zi),this._element.classList.add(Zi),Se.trigger(this._element,F2,e)}}hide(){if(Bn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Se.trigger(this._element,D2,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))Se.off(n,"mouseover",Dl);this._popper&&this._popper.destroy(),this._menu.classList.remove(Zi),this._element.classList.remove(Zi),this._element.setAttribute("aria-expanded","false"),on.removeDataAttribute(this._menu,"popper"),Se.trigger(this._element,B2,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!sn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${dy.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof yE>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:sn(this._config.reference)?e=Dn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=Np(e,this._menu,r)}_isShown(){return this._menu.classList.contains(Zi)}_getPlacement(){const e=this._parent;if(e.classList.contains(W2))return eD;if(e.classList.contains(H2))return tD;if(e.classList.contains(z2))return rD;if(e.classList.contains(V2))return nD;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(j2)?r?Q2:X2:r?Z2:J2}_detectNavbar(){return this._element.closest(Y2)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(on.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...$t(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:r}){const n=Le.find(K2,this._menu).filter(s=>Ns(s));n.length&&Dp(n,r,e===py,!n.includes(r)).focus()}static jQueryInterface(e){return this.each(function(){const r=Lr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}static clearMenus(e){if(e.button===N2||e.type==="keyup"&&e.key!==hy)return;const r=Le.find(q2);for(const n of r){const s=Lr.getInstance(n);if(!s||s._config.autoClose===!1)continue;const i=e.composedPath(),a=i.includes(s._menu);if(i.includes(s._element)||s._config.autoClose==="inside"&&!a||s._config.autoClose==="outside"&&a||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key===hy||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:s._element};e.type==="click"&&(o.clickEvent=e),s._completeHide(o)}}static dataApiKeydownHandler(e){const r=/input|textarea/i.test(e.target.tagName),n=e.key===R2,s=[L2,py].includes(e.key);if(!s&&!n||r&&!n)return;e.preventDefault();const i=this.matches(pi)?this:Le.prev(this,pi)[0]||Le.next(this,pi)[0]||Le.findOne(pi,e.delegateTarget.parentNode),a=Lr.getOrCreateInstance(i);if(s){e.stopPropagation(),a.show(),a._selectMenuItem(e);return}a._isShown()&&(e.stopPropagation(),a.hide(),i.focus())}}Se.on(document,DE,pi,Lr.dataApiKeydownHandler);Se.on(document,DE,il,Lr.dataApiKeydownHandler);Se.on(document,NE,Lr.clearMenus);Se.on(document,U2,Lr.clearMenus);Se.on(document,NE,pi,function(t){t.preventDefault(),Lr.getOrCreateInstance(this).toggle()});fr(Lr);const BE="backdrop",oD="fade",gy="show",my=`mousedown.bs.${BE}`,aD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},lD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class $E extends Xo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return aD}static get DefaultType(){return lD}static get NAME(){return BE}show(e){if(!this._config.isVisible){$t(e);return}this._append();const r=this._getElement();this._config.isAnimated&&Ko(r),r.classList.add(gy),this._emulateAnimation(()=>{$t(e)})}hide(e){if(!this._config.isVisible){$t(e);return}this._getElement().classList.remove(gy),this._emulateAnimation(()=>{this.dispose(),$t(e)})}dispose(){this._isAppended&&(Se.off(this._element,my),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(oD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Dn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Se.on(e,my,()=>{$t(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){SE(e,this._getElement(),this._config.isAnimated)}}const uD="focustrap",cD="bs.focustrap",$l=`.${cD}`,fD=`focusin${$l}`,dD=`keydown.tab${$l}`,hD="Tab",pD="forward",by="backward",gD={autofocus:!0,trapElement:null},mD={autofocus:"boolean",trapElement:"element"};class FE extends Xo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return gD}static get DefaultType(){return mD}static get NAME(){return uD}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Se.off(document,$l),Se.on(document,fD,e=>this._handleFocusin(e)),Se.on(document,dD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Se.off(document,$l))}_handleFocusin(e){const{trapElement:r}=this._config;if(e.target===document||e.target===r||r.contains(e.target))return;const n=Le.focusableChildren(r);n.length===0?r.focus():this._lastTabNavDirection===by?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===hD&&(this._lastTabNavDirection=e.shiftKey?by:pD)}}const yy=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",wy=".sticky-top",Ia="padding-right",_y="margin-right";class bh{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ia,r=>r+e),this._setElementAttributes(yy,Ia,r=>r+e),this._setElementAttributes(wy,_y,r=>r-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ia),this._resetElementAttributes(yy,Ia),this._resetElementAttributes(wy,_y)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,r,n){const s=this.getWidth(),i=a=>{if(a!==this._element&&window.innerWidth>a.clientWidth+s)return;this._saveInitialAttribute(a,r);const o=window.getComputedStyle(a).getPropertyValue(r);a.style.setProperty(r,`${n(Number.parseFloat(o))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,r){const n=e.style.getPropertyValue(r);n&&on.setDataAttribute(e,r,n)}_resetElementAttributes(e,r){const n=s=>{const i=on.getDataAttribute(s,r);if(i===null){s.style.removeProperty(r);return}on.removeDataAttribute(s,r),s.style.setProperty(r,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,r){if(sn(e)){r(e);return}for(const n of Le.find(e,this._element))r(n)}}const bD="modal",yD="bs.modal",cr=`.${yD}`,wD=".data-api",_D="Escape",vD=`hide${cr}`,ED=`hidePrevented${cr}`,UE=`hidden${cr}`,jE=`show${cr}`,SD=`shown${cr}`,TD=`resize${cr}`,xD=`click.dismiss${cr}`,AD=`mousedown.dismiss${cr}`,CD=`keydown.dismiss${cr}`,ID=`click${cr}${wD}`,vy="modal-open",MD="fade",Ey="show",tf="modal-static",OD=".modal.show",PD=".modal-dialog",kD=".modal-body",RD='[data-bs-toggle="modal"]',LD={backdrop:!0,focus:!0,keyboard:!0},ND={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ts extends Er{constructor(e,r){super(e,r),this._dialog=Le.findOne(PD,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new bh,this._addEventListeners()}static get Default(){return LD}static get DefaultType(){return ND}static get NAME(){return bD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Se.trigger(this._element,jE,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(vy),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Se.trigger(this._element,vD).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ey),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Se.off(window,cr),Se.off(this._dialog,cr),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new $E({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new FE({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=Le.findOne(kD,this._dialog);r&&(r.scrollTop=0),Ko(this._element),this._element.classList.add(Ey);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Se.trigger(this._element,SD,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Se.on(this._element,CD,e=>{if(e.key===_D){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Se.on(window,TD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Se.on(this._element,AD,e=>{Se.one(this._element,xD,r=>{if(!(this._element!==e.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(vy),this._resetAdjustments(),this._scrollBar.reset(),Se.trigger(this._element,UE)})}_isAnimated(){return this._element.classList.contains(MD)}_triggerBackdropTransition(){if(Se.trigger(this._element,ED).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(tf)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(tf),this._queueCallback(()=>{this._element.classList.remove(tf),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),n=r>0;if(n&&!e){const s=ur()?"paddingLeft":"paddingRight";this._element.style[s]=`${r}px`}if(!n&&e){const s=ur()?"paddingRight":"paddingLeft";this._element.style[s]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,r){return this.each(function(){const n=Ts.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](r)}})}}Se.on(document,ID,RD,function(t){const e=Le.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Se.one(e,jE,s=>{s.defaultPrevented||Se.one(e,UE,()=>{Ns(this)&&this.focus()})});const r=Le.findOne(OD);r&&Ts.getInstance(r).hide(),Ts.getOrCreateInstance(e).toggle(this)});mu(Ts);fr(Ts);const DD="offcanvas",BD="bs.offcanvas",vn=`.${BD}`,WE=".data-api",$D=`load${vn}${WE}`,FD="Escape",Sy="show",Ty="showing",xy="hiding",UD="offcanvas-backdrop",HE=".offcanvas.show",jD=`show${vn}`,WD=`shown${vn}`,HD=`hide${vn}`,Ay=`hidePrevented${vn}`,zE=`hidden${vn}`,zD=`resize${vn}`,VD=`click${vn}${WE}`,qD=`keydown.dismiss${vn}`,YD='[data-bs-toggle="offcanvas"]',GD={backdrop:!0,keyboard:!0,scroll:!1},KD={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class $n extends Er{constructor(e,r){super(e,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return GD}static get DefaultType(){return KD}static get NAME(){return DD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Se.trigger(this._element,jD,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new bh().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ty);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Sy),this._element.classList.remove(Ty),Se.trigger(this._element,WD,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||Se.trigger(this._element,HD).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(xy),this._backdrop.hide();const r=()=>{this._element.classList.remove(Sy,xy),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new bh().reset(),Se.trigger(this._element,zE)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Se.trigger(this._element,Ay);return}this.hide()},r=!!this._config.backdrop;return new $E({className:UD,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?e:null})}_initializeFocusTrap(){return new FE({trapElement:this._element})}_addEventListeners(){Se.on(this._element,qD,e=>{if(e.key===FD){if(this._config.keyboard){this.hide();return}Se.trigger(this._element,Ay)}})}static jQueryInterface(e){return this.each(function(){const r=$n.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}Se.on(document,VD,YD,function(t){const e=Le.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Bn(this))return;Se.one(e,zE,()=>{Ns(this)&&this.focus()});const r=Le.findOne(HE);r&&r!==e&&$n.getInstance(r).hide(),$n.getOrCreateInstance(e).toggle(this)});Se.on(window,$D,()=>{for(const t of Le.find(HE))$n.getOrCreateInstance(t).show()});Se.on(window,zD,()=>{for(const t of Le.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&$n.getOrCreateInstance(t).hide()});mu($n);fr($n);const XD=/^aria-[\w-]*$/i,VE={"*":["class","dir","id","lang","role",XD],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},QD=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),JD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ZD=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?QD.has(r)?!!JD.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(r))};function eB(t,e,r){if(!t.length)return t;if(r&&typeof r=="function")return r(t);const s=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...s.body.querySelectorAll("*"));for(const a of i){const o=a.nodeName.toLowerCase();if(!Object.keys(e).includes(o)){a.remove();continue}const l=[].concat(...a.attributes),u=[].concat(e["*"]||[],e[o]||[]);for(const c of l)ZD(c,u)||a.removeAttribute(c.nodeName)}return s.body.innerHTML}const tB="TemplateFactory",rB={allowList:VE,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},nB={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},iB={entry:"(string|element|function|null)",selector:"(string|element)"};class sB extends Xo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return rB}static get DefaultType(){return nB}static get NAME(){return tB}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[s,i]of Object.entries(this._config.content))this._setContent(e,i,s);const r=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&r.classList.add(...n.split(" ")),r}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[r,n]of Object.entries(e))super._typeCheckConfig({selector:r,entry:n},iB)}_setContent(e,r,n){const s=Le.findOne(n,e);if(s){if(r=this._resolvePossibleFunction(r),!r){s.remove();return}if(sn(r)){this._putElementInTemplate(Dn(r),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(r);return}s.textContent=r}}_maybeSanitize(e){return this._config.sanitize?eB(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return $t(e,[this])}_putElementInTemplate(e,r){if(this._config.html){r.innerHTML="",r.append(e);return}r.textContent=e.textContent}}const oB="tooltip",aB=new Set(["sanitize","allowList","sanitizeFn"]),rf="fade",lB="modal",Ma="show",uB=".tooltip-inner",Cy=`.${lB}`,Iy="hide.bs.modal",io="hover",nf="focus",cB="click",fB="manual",dB="hide",hB="hidden",pB="show",gB="shown",mB="inserted",bB="click",yB="focusin",wB="focusout",_B="mouseenter",vB="mouseleave",EB={AUTO:"auto",TOP:"top",RIGHT:ur()?"left":"right",BOTTOM:"bottom",LEFT:ur()?"right":"left"},SB={allowList:VE,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},TB={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Bs extends Er{constructor(e,r){if(typeof yE>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return SB}static get DefaultType(){return TB}static get NAME(){return oB}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Se.off(this._element.closest(Cy),Iy,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Se.trigger(this._element,this.constructor.eventName(pB)),n=(vE(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(s),Se.trigger(this._element,this.constructor.eventName(mB))),this._popper=this._createPopper(s),s.classList.add(Ma),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Se.on(o,"mouseover",Dl);const a=()=>{Se.trigger(this._element,this.constructor.eventName(gB)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(a,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Se.trigger(this._element,this.constructor.eventName(dB)).defaultPrevented)return;if(this._getTipElement().classList.remove(Ma),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Se.off(s,"mouseover",Dl);this._activeTrigger[cB]=!1,this._activeTrigger[nf]=!1,this._activeTrigger[io]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Se.trigger(this._element,this.constructor.eventName(hB)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const r=this._getTemplateFactory(e).toHtml();if(!r)return null;r.classList.remove(rf,Ma),r.classList.add(`bs-${this.constructor.NAME}-auto`);const n=cN(this.constructor.NAME).toString();return r.setAttribute("id",n),this._isAnimated()&&r.classList.add(rf),r}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new sB({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[uB]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(rf)}_isShown(){return this.tip&&this.tip.classList.contains(Ma)}_createPopper(e){const r=$t(this._config.placement,[this,e,this._element]),n=EB[r.toUpperCase()];return Np(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_resolvePossibleFunction(e){return $t(e,[this._element])}_getPopperConfig(e){const r={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...r,...$t(this._config.popperConfig,[r])}}_setListeners(){const e=this._config.trigger.split(" ");for(const r of e)if(r==="click")Se.on(this._element,this.constructor.eventName(bB),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(r!==fB){const n=r===io?this.constructor.eventName(_B):this.constructor.eventName(yB),s=r===io?this.constructor.eventName(vB):this.constructor.eventName(wB);Se.on(this._element,n,this._config.selector,i=>{const a=this._initializeOnDelegatedTarget(i);a._activeTrigger[i.type==="focusin"?nf:io]=!0,a._enter()}),Se.on(this._element,s,this._config.selector,i=>{const a=this._initializeOnDelegatedTarget(i);a._activeTrigger[i.type==="focusout"?nf:io]=a._element.contains(i.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Se.on(this._element.closest(Cy),Iy,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,r){clearTimeout(this._timeout),this._timeout=setTimeout(e,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const r=on.getDataAttributes(this._element);for(const n of Object.keys(r))aB.has(n)&&delete r[n];return e={...r,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Dn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[r,n]of Object.entries(this._config))this.constructor.Default[r]!==n&&(e[r]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const r=Bs.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}fr(Bs);const xB="popover",AB=".popover-header",CB=".popover-body",IB={...Bs.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},MB={...Bs.DefaultType,content:"(null|string|element|function)"};class Fp extends Bs{static get Default(){return IB}static get DefaultType(){return MB}static get NAME(){return xB}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[AB]:this._getTitle(),[CB]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const r=Fp.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}fr(Fp);const OB="scrollspy",PB="bs.scrollspy",Up=`.${PB}`,kB=".data-api",RB=`activate${Up}`,My=`click${Up}`,LB=`load${Up}${kB}`,NB="dropdown-item",Yi="active",DB='[data-bs-spy="scroll"]',sf="[href]",BB=".nav, .list-group",Oy=".nav-link",$B=".nav-item",FB=".list-group-item",UB=`${Oy}, ${$B} > ${Oy}, ${FB}`,jB=".dropdown",WB=".dropdown-toggle",HB={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},zB={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class wu extends Er{constructor(e,r){super(e,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return HB}static get DefaultType(){return zB}static get NAME(){return OB}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Dn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(r=>Number.parseFloat(r))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Se.off(this._config.target,My),Se.on(this._config.target,My,sf,e=>{const r=this._observableSections.get(e.target.hash);if(r){e.preventDefault();const n=this._rootElement||window,s=r.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:s,behavior:"smooth"});return}n.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),e)}_observerCallback(e){const r=a=>this._targetLinks.get(`#${a.target.id}`),n=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(r(a))},s=(this._rootElement||document.documentElement).scrollTop,i=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(a));continue}const o=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&o){if(n(a),!s)return;continue}!i&&!o&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Le.find(sf,this._config.target);for(const r of e){if(!r.hash||Bn(r))continue;const n=Le.findOne(decodeURI(r.hash),this._element);Ns(n)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Yi),this._activateParents(e),Se.trigger(this._element,RB,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(NB)){Le.findOne(WB,e.closest(jB)).classList.add(Yi);return}for(const r of Le.parents(e,BB))for(const n of Le.prev(r,UB))n.classList.add(Yi)}_clearActiveClass(e){e.classList.remove(Yi);const r=Le.find(`${sf}.${Yi}`,e);for(const n of r)n.classList.remove(Yi)}static jQueryInterface(e){return this.each(function(){const r=wu.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Se.on(window,LB,()=>{for(const t of Le.find(DB))wu.getOrCreateInstance(t)});fr(wu);const VB="tab",qB="bs.tab",ji=`.${qB}`,YB=`hide${ji}`,GB=`hidden${ji}`,KB=`show${ji}`,XB=`shown${ji}`,QB=`click${ji}`,JB=`keydown${ji}`,ZB=`load${ji}`,e$="ArrowLeft",Py="ArrowRight",t$="ArrowUp",ky="ArrowDown",of="Home",Ry="End",gi="active",Ly="fade",af="show",r$="dropdown",qE=".dropdown-toggle",n$=".dropdown-menu",lf=`:not(${qE})`,i$='.list-group, .nav, [role="tablist"]',s$=".nav-item, .list-group-item",o$=`.nav-link${lf}, .list-group-item${lf}, [role="tab"]${lf}`,YE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',uf=`${o$}, ${YE}`,a$=`.${gi}[data-bs-toggle="tab"], .${gi}[data-bs-toggle="pill"], .${gi}[data-bs-toggle="list"]`;class xs extends Er{constructor(e){super(e),this._parent=this._element.closest(i$),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Se.on(this._element,JB,r=>this._keydown(r)))}static get NAME(){return VB}show(){const e=this._element;if(this._elemIsActive(e))return;const r=this._getActiveElem(),n=r?Se.trigger(r,YB,{relatedTarget:e}):null;Se.trigger(e,KB,{relatedTarget:r}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(r,e),this._activate(e,r))}_activate(e,r){if(!e)return;e.classList.add(gi),this._activate(Le.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(af);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Se.trigger(e,XB,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(Ly))}_deactivate(e,r){if(!e)return;e.classList.remove(gi),e.blur(),this._deactivate(Le.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(af);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Se.trigger(e,GB,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(Ly))}_keydown(e){if(![e$,Py,t$,ky,of,Ry].includes(e.key))return;e.stopPropagation(),e.preventDefault();const r=this._getChildren().filter(s=>!Bn(s));let n;if([of,Ry].includes(e.key))n=r[e.key===of?0:r.length-1];else{const s=[Py,ky].includes(e.key);n=Dp(r,e.target,s,!0)}n&&(n.focus({preventScroll:!0}),xs.getOrCreateInstance(n).show())}_getChildren(){return Le.find(uf,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,r){this._setAttributeIfNotExists(e,"role","tablist");for(const n of r)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const r=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",r),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),r||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const r=Le.getElementFromSelector(e);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,r){const n=this._getOuterElement(e);if(!n.classList.contains(r$))return;const s=(i,a)=>{const o=Le.findOne(i,n);o&&o.classList.toggle(a,r)};s(qE,gi),s(n$,af),n.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(e,r,n){e.hasAttribute(r)||e.setAttribute(r,n)}_elemIsActive(e){return e.classList.contains(gi)}_getInnerElement(e){return e.matches(uf)?e:Le.findOne(uf,e)}_getOuterElement(e){return e.closest(s$)||e}static jQueryInterface(e){return this.each(function(){const r=xs.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Se.on(document,QB,YE,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Bn(this)&&xs.getOrCreateInstance(this).show()});Se.on(window,ZB,()=>{for(const t of Le.find(a$))xs.getOrCreateInstance(t)});fr(xs);const l$="toast",u$="bs.toast",Vn=`.${u$}`,c$=`mouseover${Vn}`,f$=`mouseout${Vn}`,d$=`focusin${Vn}`,h$=`focusout${Vn}`,p$=`hide${Vn}`,g$=`hidden${Vn}`,m$=`show${Vn}`,b$=`shown${Vn}`,y$="fade",Ny="hide",Oa="show",Pa="showing",w$={animation:"boolean",autohide:"boolean",delay:"number"},_$={animation:!0,autohide:!0,delay:5e3};class _u extends Er{constructor(e,r){super(e,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return _$}static get DefaultType(){return w$}static get NAME(){return l$}show(){if(Se.trigger(this._element,m$).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(y$);const r=()=>{this._element.classList.remove(Pa),Se.trigger(this._element,b$),this._maybeScheduleHide()};this._element.classList.remove(Ny),Ko(this._element),this._element.classList.add(Oa,Pa),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||Se.trigger(this._element,p$).defaultPrevented)return;const r=()=>{this._element.classList.add(Ny),this._element.classList.remove(Pa,Oa),Se.trigger(this._element,g$)};this._element.classList.add(Pa),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Oa),super.dispose()}isShown(){return this._element.classList.contains(Oa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,r){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Se.on(this._element,c$,e=>this._onInteraction(e,!0)),Se.on(this._element,f$,e=>this._onInteraction(e,!1)),Se.on(this._element,d$,e=>this._onInteraction(e,!0)),Se.on(this._element,h$,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const r=_u.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}mu(_u);fr(_u);function v$(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let i;const a=pt();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=a.createElement("div");function l(m,b){const v=e.params.virtual;if(v.cache&&e.virtual.cache[b])return e.virtual.cache[b];let _;return v.renderSlide?(_=v.renderSlide.call(e,m,b),typeof _=="string"&&(o.innerHTML=_,_=o.children[0])):e.isElement?_=Kt("swiper-slide"):_=Kt("div",e.params.slideClass),_.setAttribute("data-swiper-slide-index",b),v.renderSlide||(_.innerHTML=m),v.cache&&(e.virtual.cache[b]=_),_}function u(m,b){const{slidesPerView:v,slidesPerGroup:_,centeredSlides:E,loop:y,initialSlide:T}=e.params;if(b&&!y&&T>0)return;const{addSlidesBefore:x,addSlidesAfter:A}=e.params.virtual,{from:P,to:L,slides:W,slidesGrid:U,offset:H}=e.virtual;e.params.cssMode||e.updateActiveIndex();const C=e.activeIndex||0;let I;e.rtlTranslate?I="right":I=e.isHorizontal()?"left":"top";let N,J;E?(N=Math.floor(v/2)+_+A,J=Math.floor(v/2)+_+x):(N=v+(_-1)+A,J=(y?v:_)+x);let ne=C-J,te=C+N;y||(ne=Math.max(ne,0),te=Math.min(te,W.length-1));let B=(e.slidesGrid[ne]||0)-(e.slidesGrid[0]||0);y&&C>=J?(ne-=J,E||(B+=e.slidesGrid[0])):y&&C{ee.style[I]=`${B-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),s("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:B,from:ne,to:te,slides:function(){const K=[];for(let j=ne;j<=te;j+=1)K.push(W[j]);return K}()}),e.params.virtual.renderExternalUpdate?ae():s("virtualUpdate");return}const Y=[],ce=[],$=ee=>{let K=ee;return ee<0?K=W.length+ee:K>=W.length&&(K=K-W.length),K};if(m)e.slides.filter(ee=>ee.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(ee=>{ee.remove()});else for(let ee=P;ee<=L;ee+=1)if(eete){const K=$(ee);e.slides.filter(j=>j.matches(`.${e.params.slideClass}[data-swiper-slide-index="${K}"], swiper-slide[data-swiper-slide-index="${K}"]`)).forEach(j=>{j.remove()})}const ue=y?-W.length:0,me=y?W.length*2:W.length;for(let ee=ue;ee=ne&&ee<=te){const K=$(ee);typeof L>"u"||m?ce.push(K):(ee>L&&ce.push(K),ee{e.slidesEl.append(l(W[ee],ee))}),y)for(let ee=Y.length-1;ee>=0;ee-=1){const K=Y[ee];e.slidesEl.prepend(l(W[K],K))}else Y.sort((ee,K)=>K-ee),Y.forEach(ee=>{e.slidesEl.prepend(l(W[ee],ee))});yt(e.slidesEl,".swiper-slide, swiper-slide").forEach(ee=>{ee.style[I]=`${B-Math.abs(e.cssOverflowAdjustment())}px`}),ae()}function c(m){if(typeof m=="object"&&"length"in m)for(let b=0;b{const x=E[T],A=x.getAttribute("data-swiper-slide-index");A&&x.setAttribute("data-swiper-slide-index",parseInt(A,10)+_),y[parseInt(T,10)+_]=x}),e.virtual.cache=y}u(!0),e.slideTo(v,0)}function d(m){if(typeof m>"u"||m===null)return;let b=e.activeIndex;if(Array.isArray(m))for(let v=m.length-1;v>=0;v-=1)e.params.virtual.cache&&(delete e.virtual.cache[m[v]],Object.keys(e.virtual.cache).forEach(_=>{_>m&&(e.virtual.cache[_-1]=e.virtual.cache[_],e.virtual.cache[_-1].setAttribute("data-swiper-slide-index",_-1),delete e.virtual.cache[_])})),e.virtual.slides.splice(m[v],1),m[v]{v>m&&(e.virtual.cache[v-1]=e.virtual.cache[v],e.virtual.cache[v-1].setAttribute("data-swiper-slide-index",v-1),delete e.virtual.cache[v])})),e.virtual.slides.splice(m,1),m{if(!e.params.virtual.enabled)return;let m;if(typeof e.passedParams.virtual.slides>"u"){const b=[...e.slidesEl.children].filter(v=>v.matches(`.${e.params.slideClass}, swiper-slide`));b.length&&(e.virtual.slides=[...b],m=!0,b.forEach((v,_)=>{v.setAttribute("data-swiper-slide-index",_),e.virtual.cache[_]=v,v.remove()}))}m||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,u(!1,!0)}),n("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(i),i=setTimeout(()=>{u()},100)):u())}),n("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&po(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:c,prependSlide:f,removeSlide:d,removeAllSlides:p,update:u})}function E$(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=pt(),a=rt();e.keyboard={enabled:!1},r({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(c){if(!e.enabled)return;const{rtlTranslate:f}=e;let d=c;d.originalEvent&&(d=d.originalEvent);const p=d.keyCode||d.charCode,m=e.params.keyboard.pageUpDown,b=m&&p===33,v=m&&p===34,_=p===37,E=p===39,y=p===38,T=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&E||e.isVertical()&&T||v)||!e.allowSlidePrev&&(e.isHorizontal()&&_||e.isVertical()&&y||b))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||v||_||E||y||T)){let x=!1;if(vi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&vi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const A=e.el,P=A.clientWidth,L=A.clientHeight,W=a.innerWidth,U=a.innerHeight,H=Ll(A);f&&(H.left-=A.scrollLeft);const C=[[H.left,H.top],[H.left+P,H.top],[H.left,H.top+L],[H.left+P,H.top+L]];for(let I=0;I=0&&N[0]<=W&&N[1]>=0&&N[1]<=U){if(N[0]===0&&N[1]===0)continue;x=!0}}if(!x)return}e.isHorizontal()?((b||v||_||E)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((v||E)&&!f||(b||_)&&f)&&e.slideNext(),((b||_)&&!f||(v||E)&&f)&&e.slidePrev()):((b||v||y||T)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(v||T)&&e.slideNext(),(b||y)&&e.slidePrev()),s("keyPress",p)}}function l(){e.keyboard.enabled||(i.addEventListener("keydown",o),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(i.removeEventListener("keydown",o),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&l()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:l,disable:u})}function S$(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=rt();r({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,o=ir(),l;const u=[];function c(y){let P=0,L=0,W=0,U=0;return"detail"in y&&(L=y.detail),"wheelDelta"in y&&(L=-y.wheelDelta/120),"wheelDeltaY"in y&&(L=-y.wheelDeltaY/120),"wheelDeltaX"in y&&(P=-y.wheelDeltaX/120),"axis"in y&&y.axis===y.HORIZONTAL_AXIS&&(P=L,L=0),W=P*10,U=L*10,"deltaY"in y&&(U=y.deltaY),"deltaX"in y&&(W=y.deltaX),y.shiftKey&&!W&&(W=U,U=0),(W||U)&&y.deltaMode&&(y.deltaMode===1?(W*=40,U*=40):(W*=800,U*=800)),W&&!P&&(P=W<1?-1:1),U&&!L&&(L=U<1?-1:1),{spinX:P,spinY:L,pixelX:W,pixelY:U}}function f(){e.enabled&&(e.mouseEntered=!0)}function d(){e.enabled&&(e.mouseEntered=!1)}function p(y){return e.params.mousewheel.thresholdDelta&&y.delta=6&&ir()-o<60?!0:(y.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",y.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",y.raw)),o=new i.Date().getTime(),!1)}function m(y){const T=e.params.mousewheel;if(y.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function b(y){let T=y,x=!0;if(!e.enabled||y.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const A=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let P=e.el;e.params.mousewheel.eventsTarget!=="container"&&(P=document.querySelector(e.params.mousewheel.eventsTarget));const L=P&&P.contains(T.target);if(!e.mouseEntered&&!L&&!A.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let W=0;const U=e.rtlTranslate?-1:1,H=c(T);if(A.forceToAxis)if(e.isHorizontal())if(Math.abs(H.pixelX)>Math.abs(H.pixelY))W=-H.pixelX*U;else return!0;else if(Math.abs(H.pixelY)>Math.abs(H.pixelX))W=-H.pixelY;else return!0;else W=Math.abs(H.pixelX)>Math.abs(H.pixelY)?-H.pixelX*U:-H.pixelY;if(W===0)return!0;A.invert&&(W=-W);let C=e.getTranslate()+W*A.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),x=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),x&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const I={time:ir(),delta:Math.abs(W),direction:Math.sign(W),raw:y};u.length>=2&&u.shift();const N=u.length?u[u.length-1]:void 0;if(u.push(I),N?(I.direction!==N.direction||I.delta>N.delta||I.time>N.time+150)&&p(I):p(I),m(I))return!0}else{const I={time:ir(),delta:Math.abs(W),direction:Math.sign(W)},N=l&&I.time=e.minTranslate()&&(J=e.minTranslate()),J<=e.maxTranslate()&&(J=e.maxTranslate()),e.setTransition(0),e.setTranslate(J),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!ne&&e.isBeginning||!te&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:I.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,ae=u[0];if(u.push(I),B&&(I.delta>B.delta||I.direction!==B.direction))u.splice(0);else if(u.length>=15&&I.time-ae.time<500&&ae.delta-I.delta>=1&&I.delta<=6){const Y=W>0?.8:.2;l=I,u.splice(0),a=Ci(()=>{e.destroyed||!e.params||e.slideToClosest(e.params.speed,!0,void 0,Y)},0)}a||(a=Ci(()=>{if(e.destroyed||!e.params)return;const Y=.5;l=I,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,Y)},500))}if(N||s("scroll",T),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),A.releaseOnEdges&&(J===e.minTranslate()||J===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function v(y){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[y]("mouseenter",f),T[y]("mouseleave",d),T[y]("wheel",b)}function _(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(v("addEventListener"),e.mousewheel.enabled=!0,!0)}function E(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(v("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&E(),e.params.mousewheel.enabled&&_()}),n("destroy",()=>{e.params.cssMode&&_(),e.mousewheel.enabled&&E()}),Object.assign(e.mousewheel,{enable:_,disable:E})}function jp(t,e,r,n){return t.params.createElements&&Object.keys(n).forEach(s=>{if(!r[s]&&r.auto===!0){let i=yt(t.el,`.${n[s]}`)[0];i||(i=Kt("div",n[s]),i.className=n[s],t.el.append(i)),r[s]=i,e[s]=i}}),r}function T$(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function i(m){let b;return m&&typeof m=="string"&&e.isElement&&(b=e.el.querySelector(m)||e.hostEl.querySelector(m),b)?b:(m&&(typeof m=="string"&&(b=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&b&&b.length>1&&e.el.querySelectorAll(m).length===1?b=e.el.querySelector(m):b&&b.length===1&&(b=b[0])),m&&!b?m:b)}function a(m,b){const v=e.params.navigation;m=$e(m),m.forEach(_=>{_&&(_.classList[b?"add":"remove"](...v.disabledClass.split(" ")),_.tagName==="BUTTON"&&(_.disabled=b),e.params.watchOverflow&&e.enabled&&_.classList[e.isLocked?"add":"remove"](v.lockClass))})}function o(){const{nextEl:m,prevEl:b}=e.navigation;if(e.params.loop){a(b,!1),a(m,!1);return}a(b,e.isBeginning&&!e.params.rewind),a(m,e.isEnd&&!e.params.rewind)}function l(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function u(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function c(){const m=e.params.navigation;if(e.params.navigation=jp(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let b=i(m.nextEl),v=i(m.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:v}),b=$e(b),v=$e(v);const _=(E,y)=>{E&&E.addEventListener("click",y==="next"?u:l),!e.enabled&&E&&E.classList.add(...m.lockClass.split(" "))};b.forEach(E=>_(E,"next")),v.forEach(E=>_(E,"prev"))}function f(){let{nextEl:m,prevEl:b}=e.navigation;m=$e(m),b=$e(b);const v=(_,E)=>{_.removeEventListener("click",E==="next"?u:l),_.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(_=>v(_,"next")),b.forEach(_=>v(_,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(c(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:m,prevEl:b}=e.navigation;if(m=$e(m),b=$e(b),e.enabled){o();return}[...m,...b].filter(v=>!!v).forEach(v=>v.classList.add(e.params.navigation.lockClass))}),n("click",(m,b)=>{let{nextEl:v,prevEl:_}=e.navigation;v=$e(v),_=$e(_);const E=b.target;let y=_.includes(E)||v.includes(E);if(e.isElement&&!y){const T=b.path||b.composedPath&&b.composedPath();T&&(y=T.find(x=>v.includes(x)||_.includes(x)))}if(e.params.navigation.hideOnClick&&!y){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===E||e.pagination.el.contains(E)))return;let T;v.length?T=v[0].classList.contains(e.params.navigation.hiddenClass):_.length&&(T=_[0].classList.contains(e.params.navigation.hiddenClass)),s(T===!0?"navigationShow":"navigationHide"),[...v,..._].filter(x=>!!x).forEach(x=>x.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),o()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:d,disable:p,update:o,init:c,destroy:f})}function Xr(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function x$(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:E=>E,formatFractionTotal:E=>E,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(E,y){const{bulletActiveClass:T}=e.params.pagination;E&&(E=E[`${y==="prev"?"previous":"next"}ElementSibling`],E&&(E.classList.add(`${T}-${y}`),E=E[`${y==="prev"?"previous":"next"}ElementSibling`],E&&E.classList.add(`${T}-${y}-${y}`)))}function c(E,y,T){if(E=E%T,y=y%T,y===E+1)return"next";if(y===E-1)return"previous"}function f(E){const y=E.target.closest(Xr(e.params.pagination.bulletClass));if(!y)return;E.preventDefault();const T=Bo(y)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===T)return;const x=c(e.realIndex,T,e.slides.length);x==="next"?e.slideNext():x==="previous"?e.slidePrev():e.slideToLoop(T)}else e.slideTo(T)}function d(){const E=e.rtl,y=e.params.pagination;if(l())return;let T=e.pagination.el;T=$e(T);let x,A;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,L=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(A=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,A=e.previousSnapIndex):(A=e.previousIndex||0,x=e.activeIndex||0),y.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const W=e.pagination.bullets;let U,H,C;if(y.dynamicBullets&&(a=lh(W[0],e.isHorizontal()?"width":"height"),T.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&A!==void 0&&(o+=x-(A||0),o>y.dynamicMainBullets-1?o=y.dynamicMainBullets-1:o<0&&(o=0)),U=Math.max(x-o,0),H=U+(Math.min(W.length,y.dynamicMainBullets)-1),C=(H+U)/2),W.forEach(I=>{const N=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(J=>`${y.bulletActiveClass}${J}`)].map(J=>typeof J=="string"&&J.includes(" ")?J.split(" "):J).flat();I.classList.remove(...N)}),T.length>1)W.forEach(I=>{const N=Bo(I);N===x?I.classList.add(...y.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),y.dynamicBullets&&(N>=U&&N<=H&&I.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),N===U&&u(I,"prev"),N===H&&u(I,"next"))});else{const I=W[x];if(I&&I.classList.add(...y.bulletActiveClass.split(" ")),e.isElement&&W.forEach((N,J)=>{N.setAttribute("part",J===x?"bullet-active":"bullet")}),y.dynamicBullets){const N=W[U],J=W[H];for(let ne=U;ne<=H;ne+=1)W[ne]&&W[ne].classList.add(...`${y.bulletActiveClass}-main`.split(" "));u(N,"prev"),u(J,"next")}}if(y.dynamicBullets){const I=Math.min(W.length,y.dynamicMainBullets+4),N=(a*I-a)/2-C*a,J=E?"right":"left";W.forEach(ne=>{ne.style[e.isHorizontal()?J:"top"]=`${N}px`})}}T.forEach((W,U)=>{if(y.type==="fraction"&&(W.querySelectorAll(Xr(y.currentClass)).forEach(H=>{H.textContent=y.formatFractionCurrent(x+1)}),W.querySelectorAll(Xr(y.totalClass)).forEach(H=>{H.textContent=y.formatFractionTotal(L)})),y.type==="progressbar"){let H;y.progressbarOpposite?H=e.isHorizontal()?"vertical":"horizontal":H=e.isHorizontal()?"horizontal":"vertical";const C=(x+1)/L;let I=1,N=1;H==="horizontal"?I=C:N=C,W.querySelectorAll(Xr(y.progressbarFillClass)).forEach(J=>{J.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${N})`,J.style.transitionDuration=`${e.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(W.innerHTML=y.renderCustom(e,x+1,L),U===0&&s("paginationRender",W)):(U===0&&s("paginationRender",W),s("paginationUpdate",W)),e.params.watchOverflow&&e.enabled&&W.classList[e.isLocked?"add":"remove"](y.lockClass)})}function p(){const E=e.params.pagination;if(l())return;const y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let T=e.pagination.el;T=$e(T);let x="";if(E.type==="bullets"){let A=e.params.loop?Math.ceil(y/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&A>y&&(A=y);for(let P=0;P`}E.type==="fraction"&&(E.renderFraction?x=E.renderFraction.call(e,E.currentClass,E.totalClass):x=` / `),E.type==="progressbar"&&(E.renderProgressbar?x=E.renderProgressbar.call(e,E.progressbarFillClass):x=``),e.pagination.bullets=[],T.forEach(A=>{E.type!=="custom"&&(A.innerHTML=x||""),E.type==="bullets"&&e.pagination.bullets.push(...A.querySelectorAll(Xr(E.bulletClass)))}),E.type!=="custom"&&s("paginationRender",T[0])}function m(){e.params.pagination=jp(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const E=e.params.pagination;if(!E.el)return;let y;typeof E.el=="string"&&e.isElement&&(y=e.el.querySelector(E.el)),!y&&typeof E.el=="string"&&(y=[...document.querySelectorAll(E.el)]),y||(y=E.el),!(!y||y.length===0)&&(e.params.uniqueNavElements&&typeof E.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...e.el.querySelectorAll(E.el)],y.length>1&&(y=y.find(T=>vi(T,".swiper")[0]===e.el))),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(e.pagination,{el:y}),y=$e(y),y.forEach(T=>{E.type==="bullets"&&E.clickable&&T.classList.add(...(E.clickableClass||"").split(" ")),T.classList.add(E.modifierClass+E.type),T.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass),E.type==="bullets"&&E.dynamicBullets&&(T.classList.add(`${E.modifierClass}${E.type}-dynamic`),o=0,E.dynamicMainBullets<1&&(E.dynamicMainBullets=1)),E.type==="progressbar"&&E.progressbarOpposite&&T.classList.add(E.progressbarOppositeClass),E.clickable&&T.addEventListener("click",f),e.enabled||T.classList.add(E.lockClass)}))}function b(){const E=e.params.pagination;if(l())return;let y=e.pagination.el;y&&(y=$e(y),y.forEach(T=>{T.classList.remove(E.hiddenClass),T.classList.remove(E.modifierClass+E.type),T.classList.remove(e.isHorizontal()?E.horizontalClass:E.verticalClass),E.clickable&&(T.classList.remove(...(E.clickableClass||"").split(" ")),T.removeEventListener("click",f))})),e.pagination.bullets&&e.pagination.bullets.forEach(T=>T.classList.remove(...E.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const E=e.params.pagination;let{el:y}=e.pagination;y=$e(y),y.forEach(T=>{T.classList.remove(E.horizontalClass,E.verticalClass),T.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?_():(m(),p(),d())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),n("snapIndexChange",()=>{d()}),n("snapGridLengthChange",()=>{p(),d()}),n("destroy",()=>{b()}),n("enable disable",()=>{let{el:E}=e.pagination;E&&(E=$e(E),E.forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{d()}),n("click",(E,y)=>{const T=y.target,x=$e(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!T.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&T===e.navigation.nextEl||e.navigation.prevEl&&T===e.navigation.prevEl))return;const A=x[0].classList.contains(e.params.pagination.hiddenClass);s(A===!0?"paginationShow":"paginationHide"),x.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const v=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:E}=e.pagination;E&&(E=$e(E),E.forEach(y=>y.classList.remove(e.params.pagination.paginationDisabledClass))),m(),p(),d()},_=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:E}=e.pagination;E&&(E=$e(E),E.forEach(y=>y.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:v,disable:_,render:p,update:d,init:m,destroy:b})}function A$(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=pt();let a=!1,o=null,l=null,u,c,f,d;r({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:I}=e,{dragEl:N,el:J}=C,ne=e.params.scrollbar,te=e.params.loop?e.progressLoop:e.progress;let B=c,ae=(f-c)*te;I?(ae=-ae,ae>0?(B=c-ae,ae=0):-ae+c>f&&(B=f+ae)):ae<0?(B=c+ae,ae=0):ae+c>f&&(B=f-ae),e.isHorizontal()?(N.style.transform=`translate3d(${ae}px, 0, 0)`,N.style.width=`${B}px`):(N.style.transform=`translate3d(0px, ${ae}px, 0)`,N.style.height=`${B}px`),ne.hide&&(clearTimeout(o),J.style.opacity=1,o=setTimeout(()=>{J.style.opacity=0,J.style.transitionDuration="400ms"},1e3))}function m(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:I,el:N}=C;I.style.width="",I.style.height="",f=e.isHorizontal()?N.offsetWidth:N.offsetHeight,d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=f*d:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?I.style.width=`${c}px`:I.style.height=`${c}px`,d>=1?N.style.display="none":N.style.display="",e.params.scrollbar.hide&&(N.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function v(C){return e.isHorizontal()?C.clientX:C.clientY}function _(C){const{scrollbar:I,rtlTranslate:N}=e,{el:J}=I;let ne;ne=(v(C)-Ll(J)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(f-c),ne=Math.max(Math.min(ne,1),0),N&&(ne=1-ne);const te=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*ne;e.updateProgress(te),e.setTranslate(te),e.updateActiveIndex(),e.updateSlidesClasses()}function E(C){const I=e.params.scrollbar,{scrollbar:N,wrapperEl:J}=e,{el:ne,dragEl:te}=N;a=!0,u=C.target===te?v(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),J.style.transitionDuration="100ms",te.style.transitionDuration="100ms",_(C),clearTimeout(l),ne.style.transitionDuration="0ms",I.hide&&(ne.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",C)}function y(C){const{scrollbar:I,wrapperEl:N}=e,{el:J,dragEl:ne}=I;a&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,_(C),N.style.transitionDuration="0ms",J.style.transitionDuration="0ms",ne.style.transitionDuration="0ms",s("scrollbarDragMove",C))}function T(C){const I=e.params.scrollbar,{scrollbar:N,wrapperEl:J}=e,{el:ne}=N;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",J.style.transitionDuration=""),I.hide&&(clearTimeout(l),l=Ci(()=>{ne.style.opacity=0,ne.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",C),I.snapOnRelease&&e.slideToClosest())}function x(C){const{scrollbar:I,params:N}=e,J=I.el;if(!J)return;const ne=J,te=N.passiveListeners?{passive:!1,capture:!1}:!1,B=N.passiveListeners?{passive:!0,capture:!1}:!1;if(!ne)return;const ae=C==="on"?"addEventListener":"removeEventListener";ne[ae]("pointerdown",E,te),i[ae]("pointermove",y,te),i[ae]("pointerup",T,B)}function A(){!e.params.scrollbar.el||!e.scrollbar.el||x("on")}function P(){!e.params.scrollbar.el||!e.scrollbar.el||x("off")}function L(){const{scrollbar:C,el:I}=e;e.params.scrollbar=jp(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const N=e.params.scrollbar;if(!N.el)return;let J;if(typeof N.el=="string"&&e.isElement&&(J=e.el.querySelector(N.el)),!J&&typeof N.el=="string"){if(J=i.querySelectorAll(N.el),!J.length)return}else J||(J=N.el);e.params.uniqueNavElements&&typeof N.el=="string"&&J.length>1&&I.querySelectorAll(N.el).length===1&&(J=I.querySelector(N.el)),J.length>0&&(J=J[0]),J.classList.add(e.isHorizontal()?N.horizontalClass:N.verticalClass);let ne;J&&(ne=J.querySelector(Xr(e.params.scrollbar.dragClass)),ne||(ne=Kt("div",e.params.scrollbar.dragClass),J.append(ne))),Object.assign(C,{el:J,dragEl:ne}),N.draggable&&A(),J&&J.classList[e.enabled?"remove":"add"](...Mn(e.params.scrollbar.lockClass))}function W(){const C=e.params.scrollbar,I=e.scrollbar.el;I&&I.classList.remove(...Mn(e.isHorizontal()?C.horizontalClass:C.verticalClass)),P()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:I}=e.scrollbar;I=$e(I),I.forEach(N=>{N.classList.remove(C.horizontalClass,C.verticalClass),N.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?H():(L(),b(),p())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{p()}),n("setTransition",(C,I)=>{m(I)}),n("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Mn(e.params.scrollbar.lockClass))}),n("destroy",()=>{W()});const U=()=>{e.el.classList.remove(...Mn(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Mn(e.params.scrollbar.scrollbarDisabledClass)),L(),b(),p()},H=()=>{e.el.classList.add(...Mn(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Mn(e.params.scrollbar.scrollbarDisabledClass)),W()};Object.assign(e.scrollbar,{enable:U,disable:H,updateSize:b,setTranslate:p,init:L,destroy:W})}function C$(t){let{swiper:e,extendParams:r,on:n}=t;r({parallax:{enabled:!1}});const s="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",i=(l,u)=>{const{rtl:c}=e,f=c?-1:1,d=l.getAttribute("data-swiper-parallax")||"0";let p=l.getAttribute("data-swiper-parallax-x"),m=l.getAttribute("data-swiper-parallax-y");const b=l.getAttribute("data-swiper-parallax-scale"),v=l.getAttribute("data-swiper-parallax-opacity"),_=l.getAttribute("data-swiper-parallax-rotate");if(p||m?(p=p||"0",m=m||"0"):e.isHorizontal()?(p=d,m="0"):(m=d,p="0"),p.indexOf("%")>=0?p=`${parseInt(p,10)*u*f}%`:p=`${p*u*f}px`,m.indexOf("%")>=0?m=`${parseInt(m,10)*u}%`:m=`${m*u}px`,typeof v<"u"&&v!==null){const y=v-(v-1)*(1-Math.abs(u));l.style.opacity=y}let E=`translate3d(${p}, ${m}, 0px)`;if(typeof b<"u"&&b!==null){const y=b-(b-1)*(1-Math.abs(u));E+=` scale(${y})`}if(_&&typeof _<"u"&&_!==null){const y=_*u*-1;E+=` rotate(${y}deg)`}l.style.transform=E},a=()=>{const{el:l,slides:u,progress:c,snapGrid:f,isElement:d}=e,p=yt(l,s);e.isElement&&p.push(...yt(e.hostEl,s)),p.forEach(m=>{i(m,c)}),u.forEach((m,b)=>{let v=m.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(v+=Math.ceil(b/2)-c*(f.length-1)),v=Math.min(Math.max(v,-1),1),m.querySelectorAll(`${s}, [data-swiper-parallax-rotate]`).forEach(_=>{i(_,v)})})},o=function(l){l===void 0&&(l=e.params.speed);const{el:u,hostEl:c}=e,f=[...u.querySelectorAll(s)];e.isElement&&f.push(...c.querySelectorAll(s)),f.forEach(d=>{let p=parseInt(d.getAttribute("data-swiper-parallax-duration"),10)||l;l===0&&(p=0),d.style.transitionDuration=`${p}ms`})};n("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),n("init",()=>{e.params.parallax.enabled&&a()}),n("setTranslate",()=>{e.params.parallax.enabled&&a()}),n("setTransition",(l,u)=>{e.params.parallax.enabled&&o(u)})}function I$(t){let{swiper:e,extendParams:r,on:n,emit:s}=t;const i=rt();r({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a=1,o=!1,l=!1,u={x:0,y:0};const c=-3;let f,d;const p=[],m={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},b={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},v={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let _=1;Object.defineProperty(e.zoom,"scale",{get(){return _},set(ee){if(_!==ee){const K=m.imageEl,j=m.slideEl;s("zoomChange",ee,K,j)}_=ee}});function E(){if(p.length<2)return 1;const ee=p[0].pageX,K=p[0].pageY,j=p[1].pageX,D=p[1].pageY;return Math.sqrt((j-ee)**2+(D-K)**2)}function y(){const ee=e.params.zoom,K=m.imageWrapEl.getAttribute("data-swiper-zoom")||ee.maxRatio;if(ee.limitToOriginalSize&&m.imageEl&&m.imageEl.naturalWidth){const j=m.imageEl.naturalWidth/m.imageEl.offsetWidth;return Math.min(j,K)}return K}function T(){if(p.length<2)return{x:null,y:null};const ee=m.imageEl.getBoundingClientRect();return[(p[0].pageX+(p[1].pageX-p[0].pageX)/2-ee.x-i.scrollX)/a,(p[0].pageY+(p[1].pageY-p[0].pageY)/2-ee.y-i.scrollY)/a]}function x(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function A(ee){const K=x();return!!(ee.target.matches(K)||e.slides.filter(j=>j.contains(ee.target)).length>0)}function P(ee){const K=`.${e.params.zoom.containerClass}`;return!!(ee.target.matches(K)||[...e.hostEl.querySelectorAll(K)].filter(j=>j.contains(ee.target)).length>0)}function L(ee){if(ee.pointerType==="mouse"&&p.splice(0,p.length),!A(ee))return;const K=e.params.zoom;if(f=!1,d=!1,p.push(ee),!(p.length<2)){if(f=!0,m.scaleStart=E(),!m.slideEl){m.slideEl=ee.target.closest(`.${e.params.slideClass}, swiper-slide`),m.slideEl||(m.slideEl=e.slides[e.activeIndex]);let j=m.slideEl.querySelector(`.${K.containerClass}`);if(j&&(j=j.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=j,j?m.imageWrapEl=vi(m.imageEl,`.${K.containerClass}`)[0]:m.imageWrapEl=void 0,!m.imageWrapEl){m.imageEl=void 0;return}m.maxRatio=y()}if(m.imageEl){const[j,D]=T();m.originX=j,m.originY=D,m.imageEl.style.transitionDuration="0ms"}o=!0}}function W(ee){if(!A(ee))return;const K=e.params.zoom,j=e.zoom,D=p.findIndex(X=>X.pointerId===ee.pointerId);D>=0&&(p[D]=ee),!(p.length<2)&&(d=!0,m.scaleMove=E(),m.imageEl&&(j.scale=m.scaleMove/m.scaleStart*a,j.scale>m.maxRatio&&(j.scale=m.maxRatio-1+(j.scale-m.maxRatio+1)**.5),j.scaleX.pointerId===ee.pointerId);D>=0&&p.splice(D,1),!(!f||!d)&&(f=!1,d=!1,m.imageEl&&(j.scale=Math.max(Math.min(j.scale,m.maxRatio),K.minRatio),m.imageEl.style.transitionDuration=`${e.params.speed}ms`,m.imageEl.style.transform=`translate3d(0,0,0) scale(${j.scale})`,a=j.scale,o=!1,j.scale>1&&m.slideEl?m.slideEl.classList.add(`${K.zoomedSlideClass}`):j.scale<=1&&m.slideEl&&m.slideEl.classList.remove(`${K.zoomedSlideClass}`),j.scale===1&&(m.originX=0,m.originY=0,m.slideEl=void 0)))}let H;function C(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function I(){clearTimeout(H),e.touchEventsData.preventTouchMoveFromPointerMove=!0,H=setTimeout(()=>{e.destroyed||C()})}function N(ee){const K=e.device;if(!m.imageEl||b.isTouched)return;K.android&&ee.cancelable&&ee.preventDefault(),b.isTouched=!0;const j=p.length>0?p[0]:ee;b.touchesStart.x=j.pageX,b.touchesStart.y=j.pageY}function J(ee){const j=ee.pointerType==="mouse"&&e.params.zoom.panOnMouseMove;if(!A(ee)||!P(ee))return;const D=e.zoom;if(!m.imageEl)return;if(!b.isTouched||!m.slideEl){j&&B(ee);return}if(j){B(ee);return}b.isMoved||(b.width=m.imageEl.offsetWidth||m.imageEl.clientWidth,b.height=m.imageEl.offsetHeight||m.imageEl.clientHeight,b.startX=ah(m.imageWrapEl,"x")||0,b.startY=ah(m.imageWrapEl,"y")||0,m.slideWidth=m.slideEl.offsetWidth,m.slideHeight=m.slideEl.offsetHeight,m.imageWrapEl.style.transitionDuration="0ms");const X=b.width*D.scale,le=b.height*D.scale;if(b.minX=Math.min(m.slideWidth/2-X/2,0),b.maxX=-b.minX,b.minY=Math.min(m.slideHeight/2-le/2,0),b.maxY=-b.minY,b.touchesCurrent.x=p.length>0?p[0].pageX:ee.pageX,b.touchesCurrent.y=p.length>0?p[0].pageY:ee.pageY,Math.max(Math.abs(b.touchesCurrent.x-b.touchesStart.x),Math.abs(b.touchesCurrent.y-b.touchesStart.y))>5&&(e.allowClick=!1),!b.isMoved&&!o){if(e.isHorizontal()&&(Math.floor(b.minX)===Math.floor(b.startX)&&b.touchesCurrent.xb.touchesStart.x)){b.isTouched=!1,C();return}if(!e.isHorizontal()&&(Math.floor(b.minY)===Math.floor(b.startY)&&b.touchesCurrent.yb.touchesStart.y)){b.isTouched=!1,C();return}}ee.cancelable&&ee.preventDefault(),ee.stopPropagation(),I(),b.isMoved=!0;const M=(D.scale-a)/(m.maxRatio-e.params.zoom.minRatio),{originX:O,originY:F}=m;b.currentX=b.touchesCurrent.x-b.touchesStart.x+b.startX+M*(b.width-O*2),b.currentY=b.touchesCurrent.y-b.touchesStart.y+b.startY+M*(b.height-F*2),b.currentXb.maxX&&(b.currentX=b.maxX-1+(b.currentX-b.maxX+1)**.8),b.currentYb.maxY&&(b.currentY=b.maxY-1+(b.currentY-b.maxY+1)**.8),v.prevPositionX||(v.prevPositionX=b.touchesCurrent.x),v.prevPositionY||(v.prevPositionY=b.touchesCurrent.y),v.prevTime||(v.prevTime=Date.now()),v.x=(b.touchesCurrent.x-v.prevPositionX)/(Date.now()-v.prevTime)/2,v.y=(b.touchesCurrent.y-v.prevPositionY)/(Date.now()-v.prevTime)/2,Math.abs(b.touchesCurrent.x-v.prevPositionX)<2&&(v.x=0),Math.abs(b.touchesCurrent.y-v.prevPositionY)<2&&(v.y=0),v.prevPositionX=b.touchesCurrent.x,v.prevPositionY=b.touchesCurrent.y,v.prevTime=Date.now(),m.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}function ne(){const ee=e.zoom;if(p.length=0,!m.imageEl)return;if(!b.isTouched||!b.isMoved){b.isTouched=!1,b.isMoved=!1;return}b.isTouched=!1,b.isMoved=!1;let K=300,j=300;const D=v.x*K,X=b.currentX+D,le=v.y*j,se=b.currentY+le;v.x!==0&&(K=Math.abs((X-b.currentX)/v.x)),v.y!==0&&(j=Math.abs((se-b.currentY)/v.y));const M=Math.max(K,j);b.currentX=X,b.currentY=se;const O=b.width*ee.scale,F=b.height*ee.scale;b.minX=Math.min(m.slideWidth/2-O/2,0),b.maxX=-b.minX,b.minY=Math.min(m.slideHeight/2-F/2,0),b.maxY=-b.minY,b.currentX=Math.max(Math.min(b.currentX,b.maxX),b.minX),b.currentY=Math.max(Math.min(b.currentY,b.maxY),b.minY),m.imageWrapEl.style.transitionDuration=`${M}ms`,m.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}function te(){const ee=e.zoom;m.slideEl&&e.activeIndex!==e.slides.indexOf(m.slideEl)&&(m.imageEl&&(m.imageEl.style.transform="translate3d(0,0,0) scale(1)"),m.imageWrapEl&&(m.imageWrapEl.style.transform="translate3d(0,0,0)"),m.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),ee.scale=1,a=1,m.slideEl=void 0,m.imageEl=void 0,m.imageWrapEl=void 0,m.originX=0,m.originY=0)}function B(ee){if(a<=1||!m.imageWrapEl||!A(ee)||!P(ee))return;const K=i.getComputedStyle(m.imageWrapEl).transform,j=new i.DOMMatrix(K);if(!l){l=!0,u.x=ee.clientX,u.y=ee.clientY,b.startX=j.e,b.startY=j.f,b.width=m.imageEl.offsetWidth||m.imageEl.clientWidth,b.height=m.imageEl.offsetHeight||m.imageEl.clientHeight,m.slideWidth=m.slideEl.offsetWidth,m.slideHeight=m.slideEl.offsetHeight;return}const D=(ee.clientX-u.x)*c,X=(ee.clientY-u.y)*c,le=b.width*a,se=b.height*a,M=m.slideWidth,O=m.slideHeight,F=Math.min(M/2-le/2,0),R=-F,V=Math.min(O/2-se/2,0),q=-V,oe=Math.max(Math.min(b.startX+D,R),F),Q=Math.max(Math.min(b.startY+X,q),V);m.imageWrapEl.style.transitionDuration="0ms",m.imageWrapEl.style.transform=`translate3d(${oe}px, ${Q}px, 0)`,u.x=ee.clientX,u.y=ee.clientY,b.startX=oe,b.startY=Q}function ae(ee){const K=e.zoom,j=e.params.zoom;if(!m.slideEl){ee&&ee.target&&(m.slideEl=ee.target.closest(`.${e.params.slideClass}, swiper-slide`)),m.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?m.slideEl=yt(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:m.slideEl=e.slides[e.activeIndex]);let h=m.slideEl.querySelector(`.${j.containerClass}`);h&&(h=h.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=h,h?m.imageWrapEl=vi(m.imageEl,`.${j.containerClass}`)[0]:m.imageWrapEl=void 0}if(!m.imageEl||!m.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),m.slideEl.classList.add(`${j.zoomedSlideClass}`);let D,X,le,se,M,O,F,R,V,q,oe,Q,G,re,z,ie,he,be;typeof b.touchesStart.x>"u"&&ee?(D=ee.pageX,X=ee.pageY):(D=b.touchesStart.x,X=b.touchesStart.y);const S=typeof ee=="number"?ee:null;a===1&&S&&(D=void 0,X=void 0,b.touchesStart.x=void 0,b.touchesStart.y=void 0);const g=y();K.scale=S||g,a=S||g,ee&&!(a===1&&S)?(he=m.slideEl.offsetWidth,be=m.slideEl.offsetHeight,le=Ll(m.slideEl).left+i.scrollX,se=Ll(m.slideEl).top+i.scrollY,M=le+he/2-D,O=se+be/2-X,V=m.imageEl.offsetWidth||m.imageEl.clientWidth,q=m.imageEl.offsetHeight||m.imageEl.clientHeight,oe=V*K.scale,Q=q*K.scale,G=Math.min(he/2-oe/2,0),re=Math.min(be/2-Q/2,0),z=-G,ie=-re,F=M*K.scale,R=O*K.scale,Fz&&(F=z),Rie&&(R=ie)):(F=0,R=0),S&&K.scale===1&&(m.originX=0,m.originY=0),m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform=`translate3d(${F}px, ${R}px,0)`,m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform=`translate3d(0,0,0) scale(${K.scale})`}function Y(){const ee=e.zoom,K=e.params.zoom;if(!m.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?m.slideEl=yt(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:m.slideEl=e.slides[e.activeIndex];let j=m.slideEl.querySelector(`.${K.containerClass}`);j&&(j=j.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=j,j?m.imageWrapEl=vi(m.imageEl,`.${K.containerClass}`)[0]:m.imageWrapEl=void 0}!m.imageEl||!m.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),ee.scale=1,a=1,b.touchesStart.x=void 0,b.touchesStart.y=void 0,m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform="translate3d(0,0,0)",m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform="translate3d(0,0,0) scale(1)",m.slideEl.classList.remove(`${K.zoomedSlideClass}`),m.slideEl=void 0,m.originX=0,m.originY=0,e.params.zoom.panOnMouseMove&&(u={x:0,y:0},l&&(l=!1,b.startX=0,b.startY=0)))}function ce(ee){const K=e.zoom;K.scale&&K.scale!==1?Y():ae(ee)}function $(){const ee=e.params.passiveListeners?{passive:!0,capture:!1}:!1,K=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:ee,activeListenerWithCapture:K}}function ue(){const ee=e.zoom;if(ee.enabled)return;ee.enabled=!0;const{passiveListener:K,activeListenerWithCapture:j}=$();e.wrapperEl.addEventListener("pointerdown",L,K),e.wrapperEl.addEventListener("pointermove",W,j),["pointerup","pointercancel","pointerout"].forEach(D=>{e.wrapperEl.addEventListener(D,U,K)}),e.wrapperEl.addEventListener("pointermove",J,j)}function me(){const ee=e.zoom;if(!ee.enabled)return;ee.enabled=!1;const{passiveListener:K,activeListenerWithCapture:j}=$();e.wrapperEl.removeEventListener("pointerdown",L,K),e.wrapperEl.removeEventListener("pointermove",W,j),["pointerup","pointercancel","pointerout"].forEach(D=>{e.wrapperEl.removeEventListener(D,U,K)}),e.wrapperEl.removeEventListener("pointermove",J,j)}n("init",()=>{e.params.zoom.enabled&&ue()}),n("destroy",()=>{me()}),n("touchStart",(ee,K)=>{e.zoom.enabled&&N(K)}),n("touchEnd",(ee,K)=>{e.zoom.enabled&&ne()}),n("doubleTap",(ee,K)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&ce(K)}),n("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&te()}),n("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&te()}),Object.assign(e.zoom,{enable:ue,disable:me,in:ae,out:Y,toggle:ce})}function M$(t){let{swiper:e,extendParams:r,on:n}=t;r({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function s(u,c){const f=function(){let b,v,_;return(E,y)=>{for(v=-1,b=E.length;b-v>1;)_=b+v>>1,E[_]<=y?v=_:b=_;return b}}();this.x=u,this.y=c,this.lastIndex=u.length-1;let d,p;return this.interpolate=function(b){return b?(p=f(this.x,b),d=p-1,(b-this.x[d])*(this.y[p]-this.y[d])/(this.x[p]-this.x[d])+this.y[d]):0},this}function i(u){e.controller.spline=e.params.loop?new s(e.slidesGrid,u.slidesGrid):new s(e.snapGrid,u.snapGrid)}function a(u,c){const f=e.controller.control;let d,p;const m=e.constructor;function b(v){if(v.destroyed)return;const _=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(i(v),p=-e.controller.spline.interpolate(-_)),(!p||e.params.controller.by==="container")&&(d=(v.maxTranslate()-v.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),p=(_-e.minTranslate())*d+v.minTranslate()),e.params.controller.inverse&&(p=v.maxTranslate()-p),v.updateProgress(p),v.setTranslate(p,e),v.updateActiveIndex(),v.updateSlidesClasses()}if(Array.isArray(f))for(let v=0;v{b.updateAutoHeight()}),So(b.wrapperEl,()=>{d&&b.transitionEnd()})))}if(Array.isArray(d))for(p=0;p{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){(typeof e.params.controller.control=="string"?[...document.querySelectorAll(e.params.controller.control)]:[e.params.controller.control]).forEach(c=>{if(e.controller.control||(e.controller.control=[]),c&&c.swiper)e.controller.control.push(c.swiper);else if(c){const f=`${e.params.eventsPrefix}init`,d=p=>{e.controller.control.push(p.detail[0]),e.update(),c.removeEventListener(f,d)};c.addEventListener(f,d)}});return}e.controller.control=e.params.controller.control}),n("update",()=>{l()}),n("resize",()=>{l()}),n("observerUpdate",()=>{l()}),n("setTranslate",(u,c,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(c,f)}),n("setTransition",(u,c,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(c,f)}),Object.assign(e.controller,{setTranslate:a,setTransition:o})}function O$(t){let{swiper:e,extendParams:r,on:n}=t;r({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),e.a11y={clicked:!1};let s=null,i,a,o=new Date().getTime();function l(te){const B=s;B.length!==0&&(B.innerHTML="",B.innerHTML=te)}function u(te){const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(te).replace(/x/g,B)}function c(te){te=$e(te),te.forEach(B=>{B.setAttribute("tabIndex","0")})}function f(te){te=$e(te),te.forEach(B=>{B.setAttribute("tabIndex","-1")})}function d(te,B){te=$e(te),te.forEach(ae=>{ae.setAttribute("role",B)})}function p(te,B){te=$e(te),te.forEach(ae=>{ae.setAttribute("aria-roledescription",B)})}function m(te,B){te=$e(te),te.forEach(ae=>{ae.setAttribute("aria-controls",B)})}function b(te,B){te=$e(te),te.forEach(ae=>{ae.setAttribute("aria-label",B)})}function v(te,B){te=$e(te),te.forEach(ae=>{ae.setAttribute("id",B)})}function _(te,B){te=$e(te),te.forEach(ae=>{ae.setAttribute("aria-live",B)})}function E(te){te=$e(te),te.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function y(te){te=$e(te),te.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function T(te){if(te.keyCode!==13&&te.keyCode!==32)return;const B=e.params.a11y,ae=te.target;if(!(e.pagination&&e.pagination.el&&(ae===e.pagination.el||e.pagination.el.contains(te.target))&&!te.target.matches(Xr(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const Y=$e(e.navigation.prevEl);$e(e.navigation.nextEl).includes(ae)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(B.lastSlideMessage):l(B.nextSlideMessage)),Y.includes(ae)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(B.firstSlideMessage):l(B.prevSlideMessage))}e.pagination&&ae.matches(Xr(e.params.pagination.bulletClass))&&ae.click()}}function x(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:te,prevEl:B}=e.navigation;B&&(e.isBeginning?(E(B),f(B)):(y(B),c(B))),te&&(e.isEnd?(E(te),f(te)):(y(te),c(te)))}function A(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function P(){return A()&&e.params.pagination.clickable}function L(){const te=e.params.a11y;A()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(c(B),e.params.pagination.renderBullet||(d(B,"button"),b(B,te.paginationBulletMessage.replace(/\{\{index\}\}/,Bo(B)+1)))),B.matches(Xr(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const W=(te,B,ae)=>{c(te),te.tagName!=="BUTTON"&&(d(te,"button"),te.addEventListener("keydown",T)),b(te,ae),m(te,B)},U=te=>{a&&a!==te.target&&!a.contains(te.target)&&(i=!0),e.a11y.clicked=!0},H=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=te=>{o=new Date().getTime()},I=te=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-o<100)return;const B=te.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;a=B;const ae=e.slides.indexOf(B)===e.activeIndex,Y=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);ae||Y||te.sourceCapabilities&&te.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),i=!1)}))},N=()=>{const te=e.params.a11y;te.itemRoleDescriptionMessage&&p(e.slides,te.itemRoleDescriptionMessage),te.slideRole&&d(e.slides,te.slideRole);const B=e.slides.length;te.slideLabelMessage&&e.slides.forEach((ae,Y)=>{const ce=e.params.loop?parseInt(ae.getAttribute("data-swiper-slide-index"),10):Y,$=te.slideLabelMessage.replace(/\{\{index\}\}/,ce+1).replace(/\{\{slidesLength\}\}/,B);b(ae,$)})},J=()=>{const te=e.params.a11y;e.el.append(s);const B=e.el;te.containerRoleDescriptionMessage&&p(B,te.containerRoleDescriptionMessage),te.containerMessage&&b(B,te.containerMessage),te.containerRole&&d(B,te.containerRole);const ae=e.wrapperEl,Y=te.id||ae.getAttribute("id")||`swiper-wrapper-${u(16)}`,ce=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";v(ae,Y),_(ae,ce),N();let{nextEl:$,prevEl:ue}=e.navigation?e.navigation:{};$=$e($),ue=$e(ue),$&&$.forEach(ee=>W(ee,Y,te.nextSlideMessage)),ue&&ue.forEach(ee=>W(ee,Y,te.prevSlideMessage)),P()&&$e(e.pagination.el).forEach(K=>{K.addEventListener("keydown",T)}),pt().addEventListener("visibilitychange",C),e.el.addEventListener("focus",I,!0),e.el.addEventListener("focus",I,!0),e.el.addEventListener("pointerdown",U,!0),e.el.addEventListener("pointerup",H,!0)};function ne(){s&&s.remove();let{nextEl:te,prevEl:B}=e.navigation?e.navigation:{};te=$e(te),B=$e(B),te&&te.forEach(Y=>Y.removeEventListener("keydown",T)),B&&B.forEach(Y=>Y.removeEventListener("keydown",T)),P()&&$e(e.pagination.el).forEach(ce=>{ce.removeEventListener("keydown",T)}),pt().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",I,!0),e.el.removeEventListener("pointerdown",U,!0),e.el.removeEventListener("pointerup",H,!0))}n("beforeInit",()=>{s=Kt("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&J()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&N()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&x()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&L()}),n("destroy",()=>{e.params.a11y.enabled&&ne()})}function P$(t){let{swiper:e,extendParams:r,on:n}=t;r({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,i={};const a=p=>p.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=p=>{const m=rt();let b;p?b=new URL(p):b=m.location;const v=b.pathname.slice(1).split("/").filter(T=>T!==""),_=v.length,E=v[_-2],y=v[_-1];return{key:E,value:y}},l=(p,m)=>{const b=rt();if(!s||!e.params.history.enabled)return;let v;e.params.url?v=new URL(e.params.url):v=b.location;const _=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${m}"]`):e.slides[m];let E=a(_.getAttribute("data-history"));if(e.params.history.root.length>0){let T=e.params.history.root;T[T.length-1]==="/"&&(T=T.slice(0,T.length-1)),E=`${T}/${p?`${p}/`:""}${E}`}else v.pathname.includes(p)||(E=`${p?`${p}/`:""}${E}`);e.params.history.keepQuery&&(E+=v.search);const y=b.history.state;y&&y.value===E||(e.params.history.replaceState?b.history.replaceState({value:E},null,E):b.history.pushState({value:E},null,E))},u=(p,m,b)=>{if(m)for(let v=0,_=e.slides.length;v<_;v+=1){const E=e.slides[v];if(a(E.getAttribute("data-history"))===m){const T=e.getSlideIndex(E);e.slideTo(T,p,b)}}else e.slideTo(0,p,b)},c=()=>{i=o(e.params.url),u(e.params.speed,i.value,!1)},f=()=>{const p=rt();if(e.params.history){if(!p.history||!p.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(s=!0,i=o(e.params.url),!i.key&&!i.value){e.params.history.replaceState||p.addEventListener("popstate",c);return}u(0,i.value,e.params.runCallbacksOnInit),e.params.history.replaceState||p.addEventListener("popstate",c)}},d=()=>{const p=rt();e.params.history.replaceState||p.removeEventListener("popstate",c)};n("init",()=>{e.params.history.enabled&&f()}),n("destroy",()=>{e.params.history.enabled&&d()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{s&&l(e.params.history.key,e.activeIndex)}),n("slideChange",()=>{s&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)})}function k$(t){let{swiper:e,extendParams:r,emit:n,on:s}=t,i=!1;const a=pt(),o=rt();r({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(d,p){if(e.virtual&&e.params.virtual.enabled){const m=e.slides.find(v=>v.getAttribute("data-hash")===p);return m?parseInt(m.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(yt(e.slidesEl,`.${e.params.slideClass}[data-hash="${p}"], swiper-slide[data-hash="${p}"]`)[0])}}});const l=()=>{n("hashChange");const d=a.location.hash.replace("#",""),p=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],m=p?p.getAttribute("data-hash"):"";if(d!==m){const b=e.params.hashNavigation.getSlideIndex(e,d);if(typeof b>"u"||Number.isNaN(b))return;e.slideTo(b)}},u=()=>{if(!i||!e.params.hashNavigation.enabled)return;const d=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],p=d?d.getAttribute("data-hash")||d.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${p}`||""),n("hashSet")):(a.location.hash=p||"",n("hashSet"))},c=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;i=!0;const d=a.location.hash.replace("#","");if(d){const m=e.params.hashNavigation.getSlideIndex(e,d);e.slideTo(m||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&o.addEventListener("hashchange",l)},f=()=>{e.params.hashNavigation.watchState&&o.removeEventListener("hashchange",l)};s("init",()=>{e.params.hashNavigation.enabled&&c()}),s("destroy",()=>{e.params.hashNavigation.enabled&&f()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{i&&u()}),s("slideChange",()=>{i&&e.params.cssMode&&u()})}function R$(t){let{swiper:e,extendParams:r,on:n,emit:s,params:i}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l=i&&i.autoplay?i.autoplay.delay:3e3,u=i&&i.autoplay?i.autoplay.delay:3e3,c,f=new Date().getTime(),d,p,m,b,v,_,E;function y(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",y),!(E||B.detail&&B.detail.bySwiperTouchMove)&&U())}const T=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&(u=c,d=!1);const B=e.autoplay.paused?c:f+u-new Date().getTime();e.autoplay.timeLeft=B,s("autoplayTimeLeft",B,B/l),o=requestAnimationFrame(()=>{T()})},x=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.find(Y=>Y.classList.contains("swiper-slide-active")):B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},A=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),T();let ae=typeof B>"u"?e.params.autoplay.delay:B;l=e.params.autoplay.delay,u=e.params.autoplay.delay;const Y=x();!Number.isNaN(Y)&&Y>0&&typeof B>"u"&&(ae=Y,l=Y,u=Y),c=ae;const ce=e.params.speed,$=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(ce,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,ce,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(ce,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,ce,!0,!0),s("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{A()})))};return ae>0?(clearTimeout(a),a=setTimeout(()=>{$()},ae)):requestAnimationFrame(()=>{$()}),ae},P=()=>{f=new Date().getTime(),e.autoplay.running=!0,A(),s("autoplayStart")},L=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),s("autoplayStop")},W=(B,ae)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),B||(_=!0);const Y=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",y):U()};if(e.autoplay.paused=!0,ae){v&&(c=e.params.autoplay.delay),v=!1,Y();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),Y())},U=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),_?(_=!1,A(c)):A(),e.autoplay.paused=!1,s("autoplayResume"))},H=()=>{if(e.destroyed||!e.autoplay.running)return;const B=pt();B.visibilityState==="hidden"&&(_=!0,W(!0)),B.visibilityState==="visible"&&U()},C=B=>{B.pointerType==="mouse"&&(_=!0,E=!0,!(e.animating||e.autoplay.paused)&&W(!0))},I=B=>{B.pointerType==="mouse"&&(E=!1,e.autoplay.paused&&U())},N=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",I))},J=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",I))},ne=()=>{pt().addEventListener("visibilitychange",H)},te=()=>{pt().removeEventListener("visibilitychange",H)};n("init",()=>{e.params.autoplay.enabled&&(N(),ne(),P())}),n("destroy",()=>{J(),te(),e.autoplay.running&&L()}),n("_freeModeStaticRelease",()=>{(m||_)&&U()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?L():W(!0,!0)}),n("beforeTransitionStart",(B,ae,Y)=>{e.destroyed||!e.autoplay.running||(Y||!e.params.autoplay.disableOnInteraction?W(!0,!0):L())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){L();return}p=!0,m=!1,_=!1,b=setTimeout(()=>{_=!0,m=!0,W(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(b),clearTimeout(a),e.params.autoplay.disableOnInteraction){m=!1,p=!1;return}m&&e.params.cssMode&&U(),m=!1,p=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(v=!0)}),Object.assign(e.autoplay,{start:P,stop:L,pause:W,resume:U})}function L$(t){let{swiper:e,extendParams:r,on:n}=t;r({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,i=!1;e.thumbs={swiper:null};function a(){const u=e.thumbs.swiper;if(!u||u.destroyed)return;const c=u.clickedIndex,f=u.clickedSlide;if(f&&f.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof c>"u"||c===null)return;let d;u.params.loop?d=parseInt(u.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=c,e.params.loop?e.slideToLoop(d):e.slideTo(d)}function o(){const{thumbs:u}=e.params;if(s)return!1;s=!0;const c=e.constructor;if(u.swiper instanceof c)e.thumbs.swiper=u.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(ho(u.swiper)){const f=Object.assign({},u.swiper);Object.assign(f,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new c(f),i=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",a),!0}function l(u){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const f=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView;let d=1;const p=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),c.slides.forEach(v=>v.classList.remove(p)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let v=0;v{_.classList.add(p)});else for(let v=0;vT.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);_=c.slides.indexOf(y),E=e.activeIndex>e.previousIndex?"next":"prev"}else _=e.realIndex,E=_>e.previousIndex?"next":"prev";b&&(_+=E==="next"?m:-1*m),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(_)<0&&(c.params.centeredSlides?_>v?_=_-Math.floor(f/2)+1:_=_+Math.floor(f/2)-1:_>v&&c.params.slidesPerGroup,c.slideTo(_,u?0:void 0))}}n("beforeInit",()=>{const{thumbs:u}=e.params;if(!(!u||!u.swiper))if(typeof u.swiper=="string"||u.swiper instanceof HTMLElement){const c=pt(),f=()=>{const p=typeof u.swiper=="string"?c.querySelector(u.swiper):u.swiper;if(p&&p.swiper)u.swiper=p.swiper,o(),l(!0);else if(p){const m=`${e.params.eventsPrefix}init`,b=v=>{u.swiper=v.detail[0],p.removeEventListener(m,b),o(),l(!0),u.swiper.update(),e.update()};p.addEventListener(m,b)}return p},d=()=>{if(e.destroyed)return;f()||requestAnimationFrame(d)};requestAnimationFrame(d)}else o(),l(!0)}),n("slideChange update resize observerUpdate",()=>{l()}),n("setTransition",(u,c)=>{const f=e.thumbs.swiper;!f||f.destroyed||f.setTransition(c)}),n("beforeDestroy",()=>{const u=e.thumbs.swiper;!u||u.destroyed||i&&u.destroy()}),Object.assign(e.thumbs,{init:o,update:l})}function N$(t){let{swiper:e,extendParams:r,emit:n,once:s}=t;r({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function i(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:l,touches:u}=e;l.velocities.length===0&&l.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:ir()})}function o(l){let{currentPos:u}=l;if(e.params.cssMode)return;const{params:c,wrapperEl:f,rtlTranslate:d,snapGrid:p,touchEventsData:m}=e,v=ir()-m.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length1){const L=m.velocities.pop(),W=m.velocities.pop(),U=L.position-W.position,H=L.time-W.time;e.velocity=U/H,e.velocity/=2,Math.abs(e.velocity)150||ir()-L.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,m.velocities.length=0;let _=1e3*c.freeMode.momentumRatio;const E=e.velocity*_;let y=e.translate+E;d&&(y=-y);let T=!1,x;const A=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let P;if(ye.minTranslate())c.freeMode.momentumBounce?(y-e.minTranslate()>A&&(y=e.minTranslate()+A),x=e.minTranslate(),T=!0,m.allowMomentumBounce=!0):y=e.minTranslate(),c.loop&&c.centeredSlides&&(P=!0);else if(c.freeMode.sticky){let L;for(let W=0;W-y){L=W;break}Math.abs(p[L]-y){e.loopFix()}),e.velocity!==0){if(d?_=Math.abs((-y-e.translate)/e.velocity):_=Math.abs((y-e.translate)/e.velocity),c.freeMode.sticky){const L=Math.abs((d?-y:y)-e.translate),W=e.slidesSizesGrid[e.activeIndex];L{!e||e.destroyed||!m.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(x),So(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(y),e.setTransition(_),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,So(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(y),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||v>=c.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:i,onTouchMove:a,onTouchEnd:o}})}function D$(t){let{swiper:e,extendParams:r,on:n}=t;r({grid:{rows:1,fill:"column"}});let s,i,a,o;const l=()=>{let b=e.params.spaceBetween;return typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*e.size:typeof b=="string"&&(b=parseFloat(b)),b},u=b=>{const{slidesPerView:v}=e.params,{rows:_,fill:E}=e.params.grid,y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:b.length;a=Math.floor(y/_),Math.floor(y/_)===y/_?s=y:s=Math.ceil(y/_)*_,v!=="auto"&&E==="row"&&(s=Math.max(s,v*_)),i=s/_},c=()=>{e.slides&&e.slides.forEach(b=>{b.swiperSlideGridSet&&(b.style.height="",b.style[e.getDirectionLabel("margin-top")]="")})},f=(b,v,_)=>{const{slidesPerGroup:E}=e.params,y=l(),{rows:T,fill:x}=e.params.grid,A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:_.length;let P,L,W;if(x==="row"&&E>1){const U=Math.floor(b/(E*T)),H=b-T*E*U,C=U===0?E:Math.min(Math.ceil((A-U*T*E)/T),E);W=Math.floor(H/C),L=H-W*C+U*E,P=L+W*s/T,v.style.order=P}else x==="column"?(L=Math.floor(b/T),W=b-L*T,(L>a||L===a&&W===T-1)&&(W+=1,W>=T&&(W=0,L+=1))):(W=Math.floor(b/i),L=b-W*i);v.row=W,v.column=L,v.style.height=`calc((100% - ${(T-1)*y}px) / ${T})`,v.style[e.getDirectionLabel("margin-top")]=W!==0?y&&`${y}px`:"",v.swiperSlideGridSet=!0},d=(b,v)=>{const{centeredSlides:_,roundLengths:E}=e.params,y=l(),{rows:T}=e.params.grid;if(e.virtualSize=(b+y)*s,e.virtualSize=Math.ceil(e.virtualSize/T)-y,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),_){const x=[];for(let A=0;A{o=e.params.grid&&e.params.grid.rows>1},m=()=>{const{params:b,el:v}=e,_=b.grid&&b.grid.rows>1;o&&!_?(v.classList.remove(`${b.containerModifierClass}grid`,`${b.containerModifierClass}grid-column`),a=1,e.emitContainerClasses()):!o&&_&&(v.classList.add(`${b.containerModifierClass}grid`),b.grid.fill==="column"&&v.classList.add(`${b.containerModifierClass}grid-column`),e.emitContainerClasses()),o=_};n("init",p),n("update",m),e.grid={initSlides:u,unsetSlides:c,updateSlide:f,updateWrapperSize:d}}function B$(t){const e=this,{params:r,slidesEl:n}=e;r.loop&&e.loopDestroy();const s=i=>{if(typeof i=="string"){const a=document.createElement("div");a.innerHTML=i,n.append(a.children[0]),a.innerHTML=""}else n.append(i)};if(typeof t=="object"&&"length"in t)for(let i=0;i{if(typeof o=="string"){const l=document.createElement("div");l.innerHTML=o,s.prepend(l.children[0]),l.innerHTML=""}else s.prepend(o)};if(typeof t=="object"&&"length"in t){for(let o=0;o=o){r.appendSlide(e);return}let l=a>t?a+1:a;const u=[];for(let c=o-1;c>=t;c-=1){const f=r.slides[c];f.remove(),u.unshift(f)}if(typeof e=="object"&&"length"in e){for(let c=0;ct?a+e.length:a}else i.append(e);for(let c=0;c{if(r.params.effect!==e)return;r.classNames.push(`${r.params.containerModifierClass}${e}`),o&&o()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const f=a?a():{};Object.assign(r.params,f),Object.assign(r.originalParams,f)}),n("setTranslate",()=>{r.params.effect===e&&s()}),n("setTransition",(f,d)=>{r.params.effect===e&&i(d)}),n("transitionEnd",()=>{if(r.params.effect===e&&l){if(!u||!u().slideShadows)return;r.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>d.remove())}),l()}});let c;n("virtualUpdate",()=>{r.params.effect===e&&(r.slides.length||(c=!0),requestAnimationFrame(()=>{c&&r.slides&&r.slides.length&&(s(),c=!1)}))})}function Zo(t,e){const r=Fi(e);return r!==e&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function vu(t){let{swiper:e,duration:r,transformElements:n,allSlides:s}=t;const{activeIndex:i}=e,a=o=>o.parentElement?o.parentElement:e.slides.find(u=>u.shadowRoot&&u.shadowRoot===o.parentNode);if(e.params.virtualTranslate&&r!==0){let o=!1,l;s?l=n:l=n.filter(u=>{const c=u.classList.contains("swiper-slide-transform")?a(u):u;return e.getSlideIndex(c)===i}),l.forEach(u=>{So(u,()=>{if(o||!e||e.destroyed)return;o=!0,e.animating=!1;const c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(c)})})}}function H$(t){let{swiper:e,extendParams:r,on:n}=t;r({fadeEffect:{crossFade:!1}}),$s({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:a}=e,o=e.params.fadeEffect;for(let l=0;l{const o=e.slides.map(l=>Fi(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`}),vu({swiper:e,duration:a,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function z$(t){let{swiper:e,extendParams:r,on:n}=t;r({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(l,u,c)=>{let f=c?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),d=c?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");f||(f=Kt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"left":"top"}`.split(" ")),l.append(f)),d||(d=Kt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"right":"bottom"}`.split(" ")),l.append(d)),f&&(f.style.opacity=Math.max(-u,0)),d&&(d.style.opacity=Math.max(u,0))};$s({effect:"cube",swiper:e,on:n,setTranslate:()=>{const{el:l,wrapperEl:u,slides:c,width:f,height:d,rtlTranslate:p,size:m,browser:b}=e,v=du(e),_=e.params.cubeEffect,E=e.isHorizontal(),y=e.virtual&&e.params.virtual.enabled;let T=0,x;_.shadow&&(E?(x=e.wrapperEl.querySelector(".swiper-cube-shadow"),x||(x=Kt("div","swiper-cube-shadow"),e.wrapperEl.append(x)),x.style.height=`${f}px`):(x=l.querySelector(".swiper-cube-shadow"),x||(x=Kt("div","swiper-cube-shadow"),l.append(x))));for(let P=0;P-1&&(T=W*90+C*90,p&&(T=-W*90-C*90)),L.style.transform=ne,_.slideShadows&&s(L,C,E)}if(u.style.transformOrigin=`50% 50% -${m/2}px`,u.style["-webkit-transform-origin"]=`50% 50% -${m/2}px`,_.shadow)if(E)x.style.transform=`translate3d(0px, ${f/2+_.shadowOffset}px, ${-f/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${_.shadowScale})`;else{const P=Math.abs(T)-Math.floor(Math.abs(T)/90)*90,L=1.5-(Math.sin(P*2*Math.PI/360)/2+Math.cos(P*2*Math.PI/360)/2),W=_.shadowScale,U=_.shadowScale/L,H=_.shadowOffset;x.style.transform=`scale3d(${W}, 1, ${U}) translate3d(0px, ${d/2+H}px, ${-d/2/U}px) rotateX(-89.99deg)`}const A=(b.isSafari||b.isWebView)&&b.needPerspectiveFix?-m/2:0;u.style.transform=`translate3d(0px,0,${A}px) rotateX(${v(e.isHorizontal()?0:T)}deg) rotateY(${v(e.isHorizontal()?-T:0)}deg)`,u.style.setProperty("--swiper-cube-translate-z",`${A}px`)},setTransition:l=>{const{el:u,slides:c}=e;if(c.forEach(f=>{f.style.transitionDuration=`${l}ms`,f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${l}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const f=u.querySelector(".swiper-cube-shadow");f&&(f.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=e.isHorizontal();e.slides.forEach(u=>{const c=Math.max(Math.min(u.progress,1),-1);s(u,c,l)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function As(t,e,r){const n=`swiper-slide-shadow${r?`-${r}`:""}${t?` swiper-slide-shadow-${t}`:""}`,s=Fi(e);let i=s.querySelector(`.${n.split(" ").join(".")}`);return i||(i=Kt("div",n.split(" ")),s.append(i)),i}function V$(t){let{swiper:e,extendParams:r,on:n}=t;r({flipEffect:{slideShadows:!0,limitRotation:!0}});const s=(l,u)=>{let c=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),f=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");c||(c=As("flip",l,e.isHorizontal()?"left":"top")),f||(f=As("flip",l,e.isHorizontal()?"right":"bottom")),c&&(c.style.opacity=Math.max(-u,0)),f&&(f.style.opacity=Math.max(u,0))};$s({effect:"flip",swiper:e,on:n,setTranslate:()=>{const{slides:l,rtlTranslate:u}=e,c=e.params.flipEffect,f=du(e);for(let d=0;d{const u=e.slides.map(c=>Fi(c));u.forEach(c=>{c.style.transitionDuration=`${l}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${l}ms`})}),vu({swiper:e,duration:l,transformElements:u})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(l=>{let u=l.progress;e.params.flipEffect.limitRotation&&(u=Math.max(Math.min(l.progress,1),-1)),s(l,u)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function q$(t){let{swiper:e,extendParams:r,on:n}=t;r({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),$s({effect:"coverflow",swiper:e,on:n,setTranslate:()=>{const{width:a,height:o,slides:l,slidesSizesGrid:u}=e,c=e.params.coverflowEffect,f=e.isHorizontal(),d=e.translate,p=f?-d+a/2:-d+o/2,m=f?c.rotate:-c.rotate,b=c.depth,v=du(e);for(let _=0,E=l.length;_0?P:0),B&&(B.style.opacity=-P>0?-P:0)}}},setTransition:a=>{e.slides.map(l=>Fi(l)).forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${a}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function Y$(t){let{swiper:e,extendParams:r,on:n}=t;r({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const s=o=>typeof o=="string"?o:`${o}px`;$s({effect:"creative",swiper:e,on:n,setTranslate:()=>{const{slides:o,wrapperEl:l,slidesSizesGrid:u}=e,c=e.params.creativeEffect,{progressMultiplier:f}=c,d=e.params.centeredSlides,p=du(e);if(d){const m=u[0]/2-e.params.slidesOffsetBefore||0;l.style.transform=`translateX(calc(50% - ${m}px))`}for(let m=0;m0&&(P=c.prev,A=!0),T.forEach((N,J)=>{T[J]=`calc(${N}px + (${s(P.translate[J])} * ${Math.abs(_*f)}))`}),x.forEach((N,J)=>{let ne=P.rotate[J]*Math.abs(_*f);x[J]=ne}),b.style.zIndex=-Math.abs(Math.round(v))+o.length;const L=T.join(", "),W=`rotateX(${p(x[0])}deg) rotateY(${p(x[1])}deg) rotateZ(${p(x[2])}deg)`,U=E<0?`scale(${1+(1-P.scale)*E*f})`:`scale(${1-(1-P.scale)*E*f})`,H=E<0?1+(1-P.opacity)*E*f:1-(1-P.opacity)*E*f,C=`translate3d(${L}) ${W} ${U}`;if(A&&P.shadow||!A){let N=b.querySelector(".swiper-slide-shadow");if(!N&&P.shadow&&(N=As("creative",b)),N){const J=c.shadowPerProgress?_*(1/c.limitProgress):_;N.style.opacity=Math.min(Math.max(Math.abs(J),0),1)}}const I=Zo(c,b);I.style.transform=C,I.style.opacity=H,P.origin&&(I.style.transformOrigin=P.origin)}},setTransition:o=>{const l=e.slides.map(u=>Fi(u));l.forEach(u=>{u.style.transitionDuration=`${o}ms`,u.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${o}ms`})}),vu({swiper:e,duration:o,transformElements:l,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function G$(t){let{swiper:e,extendParams:r,on:n}=t;r({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),$s({effect:"cards",swiper:e,on:n,setTranslate:()=>{const{slides:a,activeIndex:o,rtlTranslate:l}=e,u=e.params.cardsEffect,{startTranslate:c,isTouched:f}=e.touchEventsData,d=l?-e.translate:e.translate;for(let p=0;p0&&v<1&&(f||e.params.cssMode)&&d-1&&(f||e.params.cssMode)&&d>c;if(W||U){const N=(1-Math.abs((Math.abs(v)-.5)/.5))**.5;A+=-28*v*N,x+=-.5*N,P+=96*N,y=`${-25*N*Math.abs(v)}%`}if(v<0?E=`calc(${E}px ${l?"-":"+"} (${P*Math.abs(v)}%))`:v>0?E=`calc(${E}px ${l?"-":"+"} (-${P*Math.abs(v)}%))`:E=`${E}px`,!e.isHorizontal()){const N=y;y=E,E=N}const H=v<0?`${1+(1-x)*v}`:`${1-(1-x)*v}`,C=` - translate3d(${E}, ${y}, ${T}px) - rotateZ(${u.rotate?l?-A:A:0}deg) - scale(${H}) - `;if(u.slideShadows){let N=m.querySelector(".swiper-slide-shadow");N||(N=As("cards",m)),N&&(N.style.opacity=Math.min(Math.max((Math.abs(v)-.5)/.5,0),1))}m.style.zIndex=-Math.abs(Math.round(b))+a.length;const I=Zo(u,m);I.style.transform=C}},setTransition:a=>{const o=e.slides.map(l=>Fi(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(u=>{u.style.transitionDuration=`${a}ms`})}),vu({swiper:e,duration:a,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const K$=[v$,E$,S$,T$,x$,A$,C$,I$,M$,O$,P$,k$,R$,L$,N$,D$,W$,H$,z$,V$,q$,Y$,G$];qt.use(K$);const Eu=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Cs(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function yh(t,e){const r=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Cs(e[n])&&Cs(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:yh(t[n],e[n]):t[n]=e[n]})}function X$(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Q$(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function J$(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function sl(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function Z$(t){let{swiper:e,slides:r,passedParams:n,changedParams:s,nextEl:i,prevEl:a,scrollbarEl:o,paginationEl:l}=t;const u=s.filter(W=>W!=="children"&&W!=="direction"&&W!=="wrapperClass"),{params:c,pagination:f,navigation:d,scrollbar:p,virtual:m,thumbs:b}=e;let v,_,E,y,T,x,A,P;s.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(v=!0),s.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(_=!0),s.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(E=!0),s.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&(y=!0),s.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(T=!0);const L=W=>{e[W]&&(e[W].destroy(),W==="navigation"?(e.isElement&&(e[W].prevEl.remove(),e[W].nextEl.remove()),c[W].prevEl=void 0,c[W].nextEl=void 0,e[W].prevEl=void 0,e[W].nextEl=void 0):(e.isElement&&e[W].el.remove(),c[W].el=void 0,e[W].el=void 0))};s.includes("loop")&&e.isElement&&(c.loop&&!n.loop?x=!0:!c.loop&&n.loop?A=!0:P=!0),u.forEach(W=>{if(Cs(c[W])&&Cs(n[W]))Object.assign(c[W],n[W]),(W==="navigation"||W==="pagination"||W==="scrollbar")&&"enabled"in n[W]&&!n[W].enabled&&L(W);else{const U=n[W];(U===!0||U===!1)&&(W==="navigation"||W==="pagination"||W==="scrollbar")?U===!1&&L(W):c[W]=n[W]}}),u.includes("controller")&&!_&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),s.includes("children")&&r&&m&&c.virtual.enabled?(m.slides=r,m.update(!0)):s.includes("virtual")&&m&&c.virtual.enabled&&(r&&(m.slides=r),m.update(!0)),s.includes("children")&&r&&c.loop&&(P=!0),v&&b.init()&&b.update(!0),_&&(e.controller.control=c.controller.control),E&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(c.pagination.el=l),f.init(),f.render(),f.update()),y&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(c.scrollbar.el=o),p.init(),p.updateSize(),p.setTranslate()),T&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),i.innerHTML=e.hostEl.constructor.nextButtonSvg,i.part.add("button-next"),e.el.appendChild(i)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),i&&(c.navigation.nextEl=i),a&&(c.navigation.prevEl=a),d.init(),d.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),s.includes("direction")&&e.changeDirection(n.direction,!1),(x||P)&&e.loopDestroy(),(A||P)&&e.loopCreate(),e.update()}const Dy=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},By=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function $y(t,e,r){const n={},s={};yh(n,ch);const i=[...Eu,"on"],a=i.map(l=>l.replace(/_/,""));i.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(s[l]=t[l])});const o=[...t.attributes];return typeof e=="string"&&typeof r<"u"&&o.push({name:e,value:Cs(r)?{...r}:r}),o.forEach(l=>{const u=By.find(c=>l.name.startsWith(`${c}-`));if(u){const c=sl(u),f=sl(l.name.split(`${u}-`)[1]);typeof s[c]>"u"&&(s[c]={}),s[c]===!0&&(s[c]={enabled:!0}),s[c][f]=Dy(l.value)}else{const c=sl(l.name);if(!a.includes(c))return;const f=Dy(l.value);s[c]&&By.includes(l.name)&&!Cs(f)?(s[c].constructor!==Object&&(s[c]={}),s[c].enabled=!!f):s[c]=f}}),yh(n,s),n.navigation?n.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...n.navigation!==!0?n.navigation:{}}:n.navigation===!1&&delete n.navigation,n.scrollbar?n.scrollbar={el:".swiper-scrollbar",...n.scrollbar!==!0?n.scrollbar:{}}:n.scrollbar===!1&&delete n.scrollbar,n.pagination?n.pagination={el:".swiper-pagination",...n.pagination!==!0?n.pagination:{}}:n.pagination===!1&&delete n.pagination,{params:n,passedParams:s}}const eF=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",tF="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class rF{}const GE=typeof window>"u"||typeof HTMLElement>"u"?rF:HTMLElement,Fy=` - `,KE=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const r=new CSSStyleSheet;r.replaceSync(e),t.adoptedStyleSheets=[r]}else{const r=document.createElement("style");r.rel="stylesheet",r.textContent=e,t.appendChild(r)}};class XE extends GE{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return Fy}static get prevButtonSvg(){return Fy.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[eF,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` -`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,r=[...this.querySelectorAll("[slot^=slide-]")].map(n=>parseInt(n.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=r.length?Math.max(...r)+1:0,!!this.rendered){if(this.slideSlots>e)for(let n=e;n=0;s-=1)s>this.slideSlots&&n[s].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&KE(this.shadowRoot,e),this.cssLinks().forEach(n=>{if(this.shadowRoot.querySelector(`link[href="${n}"]`))return;const i=document.createElement("link");i.rel="stylesheet",i.href=n,this.shadowRoot.appendChild(i)});const r=document.createElement("div");r.classList.add("swiper"),r.part="container",r.innerHTML=` - -
- - ${Array.from({length:this.slideSlots}).map((n,s)=>` - - - - `).join("")} -
- - ${X$(this.passedParams)?` -
${this.constructor.prevButtonSvg}
-
${this.constructor.nextButtonSvg}
- `:""} - ${Q$(this.passedParams)?` -
- `:""} - ${J$(this.passedParams)?` -
- `:""} - `,this.shadowRoot.appendChild(r),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:r,passedParams:n}=$y(this);this.swiperParams=r,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new qt(this.shadowRoot.querySelector(".swiper"),{...r.virtual?{}:{observer:!0},...r,touchEventsTarget:"container",onAny:function(s){s==="observerUpdate"&&e.calcSlideSlots();const i=r.eventsPrefix?`${r.eventsPrefix}${s.toLowerCase()}`:s.toLowerCase();for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;lr.includes("_")).map(r=>r.replace(/[A-Z]/g,n=>`-${n}`).replace("_","").toLowerCase())}}Eu.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(XE.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class nF extends GE{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(KE(this.shadowRoot,tF),this.shadowRoot.appendChild(document.createElement("slot")),e){const r=document.createElement("div");r.classList.add("swiper-lazy-preloader"),r.part.add("preloader"),this.shadowRoot.appendChild(r)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const UF=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",XE),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",nF))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Eu.push(...t)});export{gF as $,W1 as A,wr as B,NF as C,FI as D,CF as E,nr as F,kF as G,LF as H,IF as I,AF as J,P0 as K,TF as L,fO as M,xF as N,ZS as O,oF as P,bF as Q,DF as R,SF as S,yF as T,wF as U,aF as V,Lu as W,ZM as X,uF as Y,_F as Z,fF as _,sF as a,r1 as a0,vF as a1,UF as a2,OI as b,Z1 as c,lF as d,EF as e,pF as f,jw as g,dS as h,B0 as i,BS as j,PF as k,cF as l,BF as m,Sh as n,_f as o,RF as p,vf as q,Ph as r,ai as s,MF as t,OF as u,mF as v,hF as w,Th as x,dF as y,qS as z}; diff --git a/packages/modules/web_themes/colors/web/index.html b/packages/modules/web_themes/colors/web/index.html index e06e3feed1..fe3b8f9074 100644 --- a/packages/modules/web_themes/colors/web/index.html +++ b/packages/modules/web_themes/colors/web/index.html @@ -24,9 +24,8 @@ openWB - - - + + diff --git a/packages/modules/web_themes/koala/source/index.html b/packages/modules/web_themes/koala/source/index.html index 14e0fbe404..361ce4e9f9 100644 --- a/packages/modules/web_themes/koala/source/index.html +++ b/packages/modules/web_themes/koala/source/index.html @@ -7,7 +7,7 @@ - +
@@ -34,74 +34,87 @@ diff --git a/packages/modules/web_themes/koala/source/src/components/ChargePointPowerData.vue b/packages/modules/web_themes/koala/source/src/components/ChargePointPowerData.vue index 51d2014227..c2eee22a49 100644 --- a/packages/modules/web_themes/koala/source/src/components/ChargePointPowerData.vue +++ b/packages/modules/web_themes/koala/source/src/components/ChargePointPowerData.vue @@ -1,7 +1,7 @@