diff --git a/.gitignore b/.gitignore index c8b5dbc..8148d47 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,35 @@ src/db/wgdashboard.db node_modules/** */proxy.js src/static/app/proxy.js + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo +proxy.js +.vite/* \ No newline at end of file diff --git a/src/dashboard.py b/src/dashboard.py index 99ef7c3..72ed2c3 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1,9 +1,5 @@ -""" -< WGDashboard > - Copyright(C) 2021 Donald Zou [https://github.com/donaldzou] -Under Apache-2.0 License -""" - -from crypt import methods +import itertools +import random import sqlite3 import configparser import hashlib @@ -18,492 +14,244 @@ import re import urllib.parse import urllib.request import urllib.error +import uuid +from dataclasses import dataclass from datetime import datetime, timedelta +from json import JSONEncoder from operator import itemgetter +from typing import Dict, Any, Tuple + +import bcrypt # PIP installed library import ifcfg +import psutil +import pyotp from flask import Flask, request, render_template, redirect, url_for, session, jsonify, g -from flask_qrcode import QRcode +from flask.json.provider import JSONProvider +from json import JSONEncoder + from icmplib import ping, traceroute # Import other python files -from util import * import threading -# Dashboard Version -DASHBOARD_VERSION = 'v3.1' +from flask.json.provider import DefaultJSONProvider + +DASHBOARD_VERSION = 'v4.0' +CONFIGURATION_PATH = os.getenv('CONFIGURATION_PATH', '.') +DB_PATH = os.path.join(CONFIGURATION_PATH, 'db') +if not os.path.isdir(DB_PATH): + os.mkdir(DB_PATH) +DASHBOARD_CONF = os.path.join(CONFIGURATION_PATH, 'wg-dashboard.ini') # WireGuard's configuration path WG_CONF_PATH = None - # Dashboard Config Name -configuration_path = os.getenv('CONFIGURATION_PATH', '.') -DB_PATH = os.path.join(configuration_path, 'db') -if not os.path.isdir(DB_PATH): - os.mkdir(DB_PATH) -DASHBOARD_CONF = os.path.join(configuration_path, 'wg-dashboard.ini') - # Upgrade Required UPDATE = None - # Flask App Configuration app = Flask("WGDashboard") app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 5206928 -app.secret_key = secrets.token_urlsafe(16) -app.config['TEMPLATES_AUTO_RELOAD'] = True - -# Enable QR Code Generator -QRcode(app) - -# TODO: use class and object oriented programming -updateInfo = {} +app.secret_key = secrets.token_urlsafe(32) -def connect_db(): - """ - Connect to the database - @return: sqlite3.Connection - """ - return sqlite3.connect(os.path.join(configuration_path, 'db', 'wgdashboard.db')) - - -def get_dashboard_conf(): - """ - Get dashboard configuration - @return: configparser.ConfigParser - """ - r_config = configparser.ConfigParser(strict=False) - r_config.read(DASHBOARD_CONF) - return r_config - - -def set_dashboard_conf(config): - """ - Write to configuration - @param config: Input configuration - """ - with open(DASHBOARD_CONF, "w", encoding='utf-8') as conf_object: - config.write(conf_object) - - -# Get all keys from a configuration -def get_conf_peer_key(config_name): - """ - Get the peers keys of wireguard interface. - @param config_name: Name of WG interface - @type config_name: str - @return: Return list of peers keys or text if configuration not running - @rtype: list, str - """ - - try: - peers_keys = subprocess.check_output(f"wg show {config_name} peers", - shell=True, stderr=subprocess.STDOUT) - peers_keys = peers_keys.decode("UTF-8").split() - return peers_keys - except subprocess.CalledProcessError: - return config_name + " is not running." - - -def get_conf_running_peer_number(config_name): - """ - Get number of running peers on wireguard interface. - @param config_name: Name of WG interface - @type config_name: str - @return: Number of running peers, or test if configuration not running - @rtype: int, str - """ - - running = 0 - # Get latest handshakes - try: - data_usage = subprocess.check_output(f"wg show {config_name} latest-handshakes", - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError: - return 0 - data_usage = data_usage.decode("UTF-8").split() - count = 0 - now = datetime.now() - time_delta = timedelta(minutes=2) - for _ in range(int(len(data_usage) / 2)): - minus = now - datetime.fromtimestamp(int(data_usage[count + 1])) - if minus < time_delta: - running += 1 - count += 2 - return running - - -def read_conf_file_interface(config_name): - """ - Get interface settings. - @param config_name: Name of WG interface - @type config_name: str - @return: Dictionary with interface settings - @rtype: dict - """ - - conf_location = WG_CONF_PATH + "/" + config_name + ".conf" - try: - with open(conf_location, 'r', encoding='utf-8') as file_object: - file = file_object.read().split("\n") - data = {} - for i in file: - if not regex_match("#(.*)", i): - if len(i) > 0: - if i != "[Interface]": - tmp = re.split(r'\s*=\s*', i, 1) - if len(tmp) == 2: - data[tmp[0]] = tmp[1] - except FileNotFoundError as e: - return {} - return data - - -def read_conf_file(config_name): - """ - Get configurations from file of wireguard interface. - @param config_name: Name of WG interface - @type config_name: str - @return: Dictionary with interface and peers settings - @rtype: dict - """ - - conf_location = WG_CONF_PATH + "/" + config_name + ".conf" - f = open(conf_location, 'r') - file = f.read().split("\n") - conf_peer_data = { - "Interface": {}, - "Peers": [] - } - peers_start = 0 - for i in range(len(file)): - if not regex_match("#(.*)", file[i]) and regex_match(";(.*)", file[i]): - if file[i] == "[Peer]": - peers_start = i - break - else: - if len(file[i]) > 0: - if file[i] != "[Interface]": - tmp = re.split(r'\s*=\s*', file[i], 1) - if len(tmp) == 2: - conf_peer_data['Interface'][tmp[0]] = tmp[1] - conf_peers = file[peers_start:] - peer = -1 - for i in conf_peers: - if not regex_match("#(.*)", i) and not regex_match(";(.*)", i): - if i == "[Peer]": - peer += 1 - conf_peer_data["Peers"].append({}) - elif peer > -1: - if len(i) > 0: - tmp = re.split(r'\s*=\s*', i, 1) - if len(tmp) == 2: - conf_peer_data["Peers"][peer][tmp[0]] = tmp[1] - - f.close() - # Read Configuration File End - return conf_peer_data - - -def get_latest_handshake(config_name): - """ - Get the latest handshake from all peers of a configuration - @param config_name: Configuration name - @return: str - """ - - # Get latest handshakes - try: - data_usage = subprocess.check_output(f"wg show {config_name} latest-handshakes", - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError: - return "stopped" - data_usage = data_usage.decode("UTF-8").split() - count = 0 - now = datetime.now() - time_delta = timedelta(minutes=2) - for _ in range(int(len(data_usage) / 2)): - minus = now - datetime.fromtimestamp(int(data_usage[count + 1])) - if minus < time_delta: - status = "running" +class ModelEncoder(JSONEncoder): + def default(self, o: Any) -> Any: + if hasattr(o, 'toJson'): + return o.toJson() else: - status = "stopped" - if int(data_usage[count + 1]) > 0: - g.cur.execute("UPDATE %s SET latest_handshake = '%s', status = '%s' WHERE id='%s'" - % (config_name, str(minus).split(".", maxsplit=1)[0], status, data_usage[count])) + return super(ModelEncoder, self).default(o) + + +''' +Classes +''' + + +def ResponseObject(status=True, message=None, data=None) -> Flask.response_class: + response = Flask.make_response(app, { + "status": status, + "message": message, + "data": data + }) + response.content_type = "application/json" + return response + + +class CustomJsonEncoder(DefaultJSONProvider): + def __init__(self, app): + super().__init__(app) + + def default(self, o): + if isinstance(o, WireguardConfiguration) or isinstance(o, Peer) or isinstance(o, PeerJob): + return o.toJson() + return super().default(self, o) + + +app.json = CustomJsonEncoder(app) + + +class PeerJob: + def __init__(self, JobID: str, Configuration: str, Peer: str, + Field: str, Operator: str, Value: str, CreationDate: datetime, ExpireDate: datetime, Action: str): + self.Action = Action + self.ExpireDate = ExpireDate + self.CreationDate = CreationDate + self.Value = Value + self.Operator = Operator + self.Field = Field + self.Configuration = Configuration + self.Peer = Peer + self.JobID = JobID + + def toJson(self): + return { + "JobID": self.JobID, + "Configuration": self.Configuration, + "Peer": self.Peer, + "Field": self.Field, + "Operator": self.Operator, + "Value": self.Value, + "CreationDate": self.CreationDate, + "ExpireDate": self.ExpireDate, + "Action": self.Action + } + + def __dict__(self): + return self.toJson() + + +class PeerJobs: + + def __init__(self): + self.Jobs: list[PeerJob] = [] + self.jobdb = sqlite3.connect(os.path.join(CONFIGURATION_PATH, 'db', 'wgdashboard_job.db'), + check_same_thread=False) + self.jobdb.row_factory = sqlite3.Row + self.jobdbCursor = self.jobdb.cursor() + self.__createPeerJobsDatabase() + self.__getJobs() + + def __getJobs(self): + jobs = self.jobdbCursor.execute("SELECT * FROM PeerJobs WHERE ExpireDate IS NULL").fetchall() + for job in jobs: + self.Jobs.append(PeerJob( + job['JobID'], job['Configuration'], job['Peer'], job['Field'], job['Operator'], job['Value'], + job['CreationDate'], job['ExpireDate'], job['Action'])) + # print(self.Jobs) + + def __createPeerJobsDatabase(self): + existingTable = self.jobdbCursor.execute("SELECT name from sqlite_master where type='table'").fetchall() + existingTable = [t['name'] for t in existingTable] + + if "PeerJobs" not in existingTable: + self.jobdbCursor.execute(''' + CREATE TABLE PeerJobs (JobID VARCHAR NOT NULL, Configuration VARCHAR NOT NULL, Peer VARCHAR NOT NULL, + Field VARCHAR NOT NULL, Operator VARCHAR NOT NULL, Value VARCHAR NOT NULL, CreationDate DATETIME, + ExpireDate DATETIME, Action VARCHAR NOT NULL, PRIMARY KEY (JobID)) + ''') + self.jobdb.commit() + + if "PeerJobs_Logs" not in existingTable: + self.jobdbCursor.execute(''' + CREATE TABLE PeerJobs_Logs (LogID VARCHAR NOT NULL, JobID NOT NULL, LogDate DATETIME, Status VARCHAR NOT NULL, + Message VARCHAR NOT NULL, PRIMARY KEY (LogID)) + ''') + self.jobdb.commit() + + def toJson(self): + return [x.toJson() for x in self.Jobs] + + def searchJob(self, Configuration: str, Peer: str): + return list(filter(lambda x: x.Configuration == Configuration and x.Peer == Peer, self.Jobs)) + + +class WireguardConfiguration: + class InvalidConfigurationFileException(Exception): + def __init__(self, m): + self.message = m + + def __str__(self): + return self.message + + def __init__(self, name: str = None, data: dict = None): + self.__parser: configparser.ConfigParser = configparser.ConfigParser(strict=False) + self.__parser.optionxform = str + + self.Status: bool = False + self.Name: str = "" + self.PrivateKey: str = "" + self.PublicKey: str = "" + self.ListenPort: str = "" + self.Address: str = "" + self.DNS: str = "" + self.Table: str = "" + self.MTU: str = "" + self.PreUp: str = "" + self.PostUp: str = "" + self.PreDown: str = "" + self.PostDown: str = "" + self.SaveConfig: bool = True + + if name is not None: + self.Name = name + self.__parser.read_file(open(os.path.join(WG_CONF_PATH, f'{self.Name}.conf'))) + sections = self.__parser.sections() + if "Interface" not in sections: + raise self.InvalidConfigurationFileException( + "[Interface] section not found in " + os.path.join(WG_CONF_PATH, f'{self.Name}.conf')) + interfaceConfig = dict(self.__parser.items("Interface", True)) + for i in dir(self): + if str(i) in interfaceConfig.keys(): + if isinstance(getattr(self, i), bool): + setattr(self, i, _strToBool(interfaceConfig[i])) + else: + setattr(self, i, interfaceConfig[i]) + + if self.PrivateKey: + self.PublicKey = self.__getPublicKey() + + self.Status = self.getStatus() + else: - g.cur.execute("UPDATE %s SET latest_handshake = '(None)', status = '%s' WHERE id='%s'" - % (config_name, status, data_usage[count])) - count += 2 + self.Name = data["ConfigurationName"] + for i in dir(self): + if str(i) in data.keys(): + if isinstance(getattr(self, i), bool): + setattr(self, i, _strToBool(data[i])) + else: + setattr(self, i, str(data[i])) + # self.__createDatabase() + self.__parser["Interface"] = { + "PrivateKey": self.PrivateKey, + "Address": self.Address, + "ListenPort": self.ListenPort, + "PreUp": self.PreUp, + "PreDown": self.PreDown, + "PostUp": self.PostUp, + "PostDown": self.PostDown, + "SaveConfig": "true" + } -def get_transfer(config_name): - """ - Get transfer from all peers of a configuration - @param config_name: Configuration name - @return: str - """ - # Get transfer - try: - data_usage = subprocess.check_output(f"wg show {config_name} transfer", - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError: - return "stopped" - data_usage = data_usage.decode("UTF-8").split("\n") - final = [] - for i in data_usage: - final.append(i.split("\t")) - data_usage = final - for i in range(len(data_usage)): - cur_i = g.cur.execute( - "SELECT total_receive, total_sent, cumu_receive, cumu_sent, status FROM %s WHERE id='%s'" - % (config_name, data_usage[i][0])).fetchall() - if len(cur_i) > 0: - total_sent = cur_i[0][1] - total_receive = cur_i[0][0] - cur_total_sent = round(int(data_usage[i][2]) / (1024 ** 3), 4) - cur_total_receive = round(int(data_usage[i][1]) / (1024 ** 3), 4) - # if cur_i[0][4] == "running": - cumulative_receive = cur_i[0][2] + total_receive - cumulative_sent = cur_i[0][3] + total_sent - if total_sent <= cur_total_sent and total_receive <= cur_total_receive: - total_sent = cur_total_sent - total_receive = cur_total_receive - else: - # cumulative_receive = cur_i[0][2] + total_receive - # cumulative_sent = cur_i[0][3] + total_sent - g.cur.execute("UPDATE %s SET cumu_receive = %f, cumu_sent = %f, cumu_data = %f WHERE id = '%s'" % - (config_name, round(cumulative_receive, 4), round(cumulative_sent, 4), - round(cumulative_sent + cumulative_receive, 4), data_usage[i][0])) - total_sent = 0 - total_receive = 0 - g.cur.execute("UPDATE %s SET total_receive = %f, total_sent = %f, total_data = %f WHERE id = '%s'" % - (config_name, round(total_receive, 4), round(total_sent, 4), - round(total_receive + total_sent, 4), data_usage[i][0])) - # now = datetime.now() - # now_string = now.strftime("%d/%m/%Y %H:%M:%S") - # g.cur.execute(f''' - # INSERT INTO {config_name}_transfer (id, total_receive, total_sent, total_data, cumu_receive, cumu_sent, cumu_data, time) - # VALUES ('{data_usage[i][0]}', {round(total_receive, 4)}, {round(total_sent, 4)}, {round(total_receive + total_sent, 4)},{round(cumulative_receive, 4)}, {round(cumulative_sent, 4)}, - # {round(cumulative_sent + cumulative_receive, 4)}, '{now_string}') - # ''') - -def get_endpoint(config_name): - """ - Get endpoint from all peers of a configuration - @param config_name: Configuration name - @return: str - """ - # Get endpoint - try: - data_usage = subprocess.check_output(f"wg show {config_name} endpoints", - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError: - return "stopped" - data_usage = data_usage.decode("UTF-8").split() - count = 0 - for _ in range(int(len(data_usage) / 2)): - g.cur.execute("UPDATE " + config_name + " SET endpoint = '%s' WHERE id = '%s'" - % (data_usage[count + 1], data_usage[count])) - count += 2 + with open(os.path.join(DashboardConfig.GetConfig("Server", "wg_conf_path")[1], + f"{self.Name}.conf"), "w+") as configFile: + # print(self.__parser.sections()) + self.__parser.write(configFile) -def get_allowed_ip(conf_peer_data, config_name): - """ - Get allowed ips from all peers of a configuration - @param conf_peer_data: Configuration peer data - @param config_name: Configuration name - @return: None - """ - # Get allowed ip - for i in conf_peer_data["Peers"]: - g.cur.execute("UPDATE " + config_name + " SET allowed_ip = '%s' WHERE id = '%s'" - % (i.get('AllowedIPs', '(None)'), i["PublicKey"])) + self.Peers: list[Peer] = [] -def get_all_peers_data(config_name): - """ - Look for new peers from WireGuard - @param config_name: Configuration name - @return: None - """ - conf_peer_data = read_conf_file(config_name) - config = get_dashboard_conf() - failed_index = [] - for i in range(len(conf_peer_data['Peers'])): - if "PublicKey" in conf_peer_data['Peers'][i].keys(): - result = g.cur.execute( - "SELECT * FROM %s WHERE id='%s'" % (config_name, conf_peer_data['Peers'][i]["PublicKey"])).fetchall() - if len(result) == 0: - new_data = { - "id": conf_peer_data['Peers'][i]['PublicKey'], - "private_key": "", - "DNS": config.get("Peers", "peer_global_DNS"), - "endpoint_allowed_ip": config.get("Peers", "peer_endpoint_allowed_ip"), - "name": "", - "total_receive": 0, - "total_sent": 0, - "total_data": 0, - "endpoint": "N/A", - "status": "stopped", - "latest_handshake": "No Handshake", - "allowed_ip": "N/A", - "cumu_receive": 0, - "cumu_sent": 0, - "cumu_data": 0, - "traffic": [], - "mtu": config.get("Peers", "peer_mtu"), - "keepalive": config.get("Peers", "peer_keep_alive"), - "remote_endpoint": config.get("Peers", "remote_endpoint"), - "preshared_key": "" - } - if "PresharedKey" in conf_peer_data['Peers'][i].keys(): - new_data["preshared_key"] = conf_peer_data['Peers'][i]["PresharedKey"] - sql = f""" - INSERT INTO {config_name} - VALUES (:id, :private_key, :DNS, :endpoint_allowed_ip, :name, :total_receive, :total_sent, - :total_data, :endpoint, :status, :latest_handshake, :allowed_ip, :cumu_receive, :cumu_sent, - :cumu_data, :mtu, :keepalive, :remote_endpoint, :preshared_key); + # Create tables in database + self.__createDatabase() + self.getPeersList() + + def __createDatabase(self): + existingTables = cursor.execute("SELECT name FROM sqlite_master WHERE type='table'").fetchall() + existingTables = [t['name'] for t in existingTables] + if self.Name not in existingTables: + cursor.execute( """ - g.cur.execute(sql, new_data) - else: - print("Trying to parse a peer doesn't have public key...") - failed_index.append(i) - for i in failed_index: - conf_peer_data['Peers'].pop(i) - # Remove peers no longer exist in WireGuard configuration file - db_key = list(map(lambda a: a[0], g.cur.execute("SELECT id FROM %s" % config_name))) - wg_key = list(map(lambda a: a['PublicKey'], conf_peer_data['Peers'])) - for i in db_key: - if i not in wg_key: - g.cur.execute("DELETE FROM %s WHERE id = '%s'" % (config_name, i)) - get_latest_handshake(config_name) - get_transfer(config_name) - get_endpoint(config_name) - get_allowed_ip(conf_peer_data, config_name) - -def getLockAccessPeers(config_name): - col = g.cur.execute(f"PRAGMA table_info({config_name}_restrict_access)").fetchall() - col = [a[1] for a in col] - data = g.cur.execute(f"SELECT * FROM {config_name}_restrict_access").fetchall() - result = [{col[i]: data[k][i] for i in range(len(col))} for k in range(len(data))] - return result - -def get_peers(config_name, search, sort_t): - """ - Get all peers. - @param config_name: Name of WG interface - @type config_name: str - @param search: Search string - @type search: str - @param sort_t: Sorting tag - @type sort_t: str - @return: list - """ - tic = time.perf_counter() - col = g.cur.execute("PRAGMA table_info(" + config_name + ")").fetchall() - col = [a[1] for a in col] - get_all_peers_data(config_name) - if len(search) == 0: - data = g.cur.execute("SELECT * FROM " + config_name).fetchall() - result = [{col[i]: data[k][i] for i in range(len(col))} for k in range(len(data))] - else: - sql = "SELECT * FROM " + config_name + " WHERE name LIKE '%" + search + "%'" - data = g.cur.execute(sql).fetchall() - result = [{col[i]: data[k][i] for i in range(len(col))} for k in range(len(data))] - if sort_t == "allowed_ip": - result = sorted(result, key=lambda d: ipaddress.ip_network( - "0.0.0.0/0" if d[sort_t].split(",")[0] == "(None)" else d[sort_t].split(",")[0])) - else: - result = sorted(result, key=lambda d: d[sort_t]) - toc = time.perf_counter() - print(f"Finish fetching peers in {toc - tic:0.4f} seconds") - return result - - -def get_conf_pub_key(config_name): - """ - Get public key for configuration. - @param config_name: Name of WG interface - @type config_name: str - @return: Return public key or empty string - @rtype: str - """ - - try: - conf = configparser.ConfigParser(strict=False) - conf.read(WG_CONF_PATH + "/" + config_name + ".conf") - pri = conf.get("Interface", "PrivateKey") - pub = subprocess.check_output(f"echo '{pri}' | wg pubkey", shell=True, stderr=subprocess.STDOUT) - conf.clear() - return pub.decode().strip("\n") - except configparser.NoSectionError: - return "" - - -def get_conf_listen_port(config_name): - """ - Get listen port number. - @param config_name: Name of WG interface - @type config_name: str - @return: Return number of port or empty string - @rtype: str - """ - - conf = configparser.ConfigParser(strict=False) - conf.read(WG_CONF_PATH + "/" + config_name + ".conf") - port = "" - try: - port = conf.get("Interface", "ListenPort") - except (configparser.NoSectionError, configparser.NoOptionError): - if get_conf_status(config_name) == "running": - port = subprocess.check_output(f"wg show {config_name} listen-port", - shell=True, stderr=subprocess.STDOUT) - port = port.decode("UTF-8") - conf.clear() - return port - - -def get_conf_total_data(config_name): - """ - Get configuration's total amount of data - @param config_name: Configuration name - @return: list - """ - data = g.cur.execute("SELECT total_sent, total_receive, cumu_sent, cumu_receive FROM " + config_name) - upload_total = 0 - download_total = 0 - for i in data.fetchall(): - upload_total += i[0] - download_total += i[1] - upload_total += i[2] - download_total += i[3] - total = round(upload_total + download_total, 4) - upload_total = round(upload_total, 4) - download_total = round(download_total, 4) - return [total, upload_total, download_total] - -def get_conf_status(config_name): - """ - Check if the configuration is running or not - @param config_name: - @return: Return a string indicate the running status - """ - ifconfig = dict(ifcfg.interfaces().items()) - return "running" if config_name in ifconfig.keys() else "stopped" - - -def get_conf_list(): - """Get all wireguard interfaces with status. - - @return: Return a list of dicts with interfaces and its statuses - @rtype: list - """ - - conf = [] - for i in os.listdir(WG_CONF_PATH): - if regex_match("^(.{1,}).(conf)$", i): - i = i.replace('.conf', '') - create_table = f""" - CREATE TABLE IF NOT EXISTS {i} ( + CREATE TABLE %s ( id VARCHAR NOT NULL, private_key VARCHAR NULL, DNS VARCHAR NULL, endpoint_allowed_ip VARCHAR NULL, name VARCHAR NULL, total_receive FLOAT NULL, total_sent FLOAT NULL, total_data FLOAT NULL, endpoint VARCHAR NULL, @@ -512,10 +260,14 @@ def get_conf_list(): keepalive INT NULL, remote_endpoint VARCHAR NULL, preshared_key VARCHAR NULL, PRIMARY KEY (id) ) - """ - g.cur.execute(create_table) - create_table = f""" - CREATE TABLE IF NOT EXISTS {i}_restrict_access ( + """ % self.Name + ) + sqldb.commit() + + if f'{self.Name}_restrict_access' not in existingTables: + cursor.execute( + """ + CREATE TABLE %s_restrict_access ( id VARCHAR NOT NULL, private_key VARCHAR NULL, DNS VARCHAR NULL, endpoint_allowed_ip VARCHAR NULL, name VARCHAR NULL, total_receive FLOAT NULL, total_sent FLOAT NULL, total_data FLOAT NULL, endpoint VARCHAR NULL, @@ -524,258 +276,1250 @@ def get_conf_list(): keepalive INT NULL, remote_endpoint VARCHAR NULL, preshared_key VARCHAR NULL, PRIMARY KEY (id) ) - """ - g.cur.execute(create_table) - create_table = f""" - CREATE TABLE IF NOT EXISTS {i}_transfer ( - id VARCHAR NOT NULL, total_receive FLOAT NULL, + """ % self.Name + ) + sqldb.commit() + if f'{self.Name}_transfer' not in existingTables: + cursor.execute( + """ + CREATE TABLE %s_transfer ( + id VARCHAR NOT NULL, total_receive FLOAT NULL, total_sent FLOAT NULL, total_data FLOAT NULL, cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, time DATETIME ) - """ - g.cur.execute(create_table) - temp = {"conf": i, "status": get_conf_status(i), "public_key": get_conf_pub_key(i), "port": get_conf_listen_port(i)} - if temp['status'] == "running": - temp['checked'] = 'checked' - else: - temp['checked'] = "" - conf.append(temp) - if len(conf) > 0: - conf = sorted(conf, key=itemgetter('conf')) - return conf + """ % self.Name + ) + sqldb.commit() + if f'{self.Name}_deleted' not in existingTables: + cursor.execute( + """ + CREATE TABLE %s_deleted ( + id VARCHAR NOT NULL, private_key VARCHAR NULL, DNS VARCHAR NULL, + endpoint_allowed_ip VARCHAR NULL, name VARCHAR NULL, total_receive FLOAT NULL, + total_sent FLOAT NULL, total_data FLOAT NULL, endpoint VARCHAR NULL, + status VARCHAR NULL, latest_handshake VARCHAR NULL, allowed_ip VARCHAR NULL, + cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, mtu INT NULL, + keepalive INT NULL, remote_endpoint VARCHAR NULL, preshared_key VARCHAR NULL, + PRIMARY KEY (id) + ) + """ % self.Name + ) + sqldb.commit() + def __getPublicKey(self) -> str: + return _generatePublicKey(self.PrivateKey)[1] -def gen_public_key(private_key): - """Generate the public key. + def getStatus(self) -> bool: + self.Status = self.Name in psutil.net_if_addrs().keys() + return self.Status - @param private_key: Private key - @type private_key: str - @return: Return dict with public key or error message - @rtype: dict - """ + def __getRestrictedPeers(self): + self.RestrictedPeers = [] + restricted = cursor.execute("SELECT * FROM %s_restrict_access" % self.Name).fetchall() + for i in restricted: + self.RestrictedPeers.append(Peer(i, self)) - with open('private_key.txt', 'w', encoding='utf-8') as file_object: - file_object.write(private_key) - try: - subprocess.check_output("wg pubkey < private_key.txt > public_key.txt", shell=True) - with open('public_key.txt', encoding='utf-8') as file_object: - public_key = file_object.readline().strip() - os.remove('private_key.txt') - os.remove('public_key.txt') - return {"status": 'success', "msg": "", "data": public_key} - except subprocess.CalledProcessError: - os.remove('private_key.txt') - return {"status": 'failed', "msg": "Key is not the correct length or format", "data": ""} - - -def f_check_key_match(private_key, public_key, config_name): - """ - Check if private key and public key match - @param private_key: Private key - @type private_key: str - @param public_key: Public key - @type public_key: str - @param config_name: Name of WG interface - @type config_name: str - @return: Return dictionary with status - @rtype: dict - """ - - result = gen_public_key(private_key) - if result['status'] == 'failed': - return result - else: - sql = "SELECT * FROM " + config_name + " WHERE id = ?" - match = g.cur.execute(sql, (result['data'],)).fetchall() - if len(match) != 1 or result['data'] != public_key: - return {'status': 'failed', 'msg': 'Please check your private key, it does not match with the public key.'} - else: - return {'status': 'success'} - - -def check_repeat_allowed_ip(public_key, ip, config_name): - """ - Check if there are repeated IPs - @param public_key: Public key of the peer - @param ip: IP of the peer - @param config_name: configuration name - @return: a JSON object - """ - peer = g.cur.execute("SELECT COUNT(*) FROM " + config_name + " WHERE id = ?", (public_key,)).fetchone() - if peer[0] != 1: - return {'status': 'failed', 'msg': 'Peer does not exist'} - else: - existed_ip = g.cur.execute("SELECT COUNT(*) FROM " + - config_name + " WHERE id != ? AND allowed_ip LIKE '" + ip + "/%'", (public_key,)) \ - .fetchone() - if existed_ip[0] != 0: - return {'status': 'failed', 'msg': "Allowed IP already taken by another peer."} - else: - return {'status': 'success'} - - -def f_available_ips(config_name): - """ - Get a list of available IPs - @param config_name: Configuration Name - @return: list - """ - config_interface = read_conf_file_interface(config_name) - if "Address" in config_interface: - available = [] - existed = [] - conf_address = config_interface['Address'] - address = conf_address.split(',') - for i in address: - add, sub = i.split("/") - existed.append(ipaddress.ip_address(add.replace(" ", ""))) - peers = g.cur.execute("SELECT allowed_ip FROM " + config_name).fetchall() - for i in peers: - add = i[0].split(",") - for k in add: - a, s = k.split("/") - existed.append(ipaddress.ip_address(a.strip())) - count = 0 - for i in address: - tmpIP = ipaddress.ip_network(i.replace(" ", ""), False) - if tmpIP.version == 6: - for i in tmpIP.hosts(): - if i not in existed: - available.append(i) - count += 1 - if count > 100: - break - else: - available = available + list(tmpIP.hosts()) - - for i in existed: + def __getPeers(self): + self.Peers = [] + with open(os.path.join(WG_CONF_PATH, f'{self.Name}.conf'), 'r') as configFile: + p = [] + pCounter = -1 + content = configFile.read().split('\n') try: - available.remove(i) + peerStarts = content.index("[Peer]") + content = content[peerStarts:] + for i in content: + if not regex_match("#(.*)", i) and not regex_match(";(.*)", i): + if i == "[Peer]": + pCounter += 1 + p.append({}) + else: + if len(i) > 0: + split = re.split(r'\s*=\s*', i, 1) + if len(split) == 2: + p[pCounter][split[0]] = split[1] + for i in p: + if "PublicKey" in i.keys(): + checkIfExist = cursor.execute("SELECT * FROM %s WHERE id = ?" % self.Name, + ((i['PublicKey']),)).fetchone() + if checkIfExist is None: + newPeer = { + "id": i['PublicKey'], + "private_key": "", + "DNS": DashboardConfig.GetConfig("Peers", "peer_global_DNS")[1], + "endpoint_allowed_ip": DashboardConfig.GetConfig("Peers", "peer_endpoint_allowed_ip")[ + 1], + "name": "", + "total_receive": 0, + "total_sent": 0, + "total_data": 0, + "endpoint": "N/A", + "status": "stopped", + "latest_handshake": "N/A", + "allowed_ip": i.get("AllowedIPs", "N/A"), + "cumu_receive": 0, + "cumu_sent": 0, + "cumu_data": 0, + "traffic": [], + "mtu": DashboardConfig.GetConfig("Peers", "peer_mtu")[1], + "keepalive": DashboardConfig.GetConfig("Peers", "peer_keep_alive")[1], + "remote_endpoint": DashboardConfig.GetConfig("Peers", "remote_endpoint")[1], + "preshared_key": i["PresharedKey"] if "PresharedKey" in i.keys() else "" + } + cursor.execute( + """ + INSERT INTO %s + VALUES (:id, :private_key, :DNS, :endpoint_allowed_ip, :name, :total_receive, :total_sent, + :total_data, :endpoint, :status, :latest_handshake, :allowed_ip, :cumu_receive, :cumu_sent, + :cumu_data, :mtu, :keepalive, :remote_endpoint, :preshared_key); + """ % self.Name + , newPeer) + sqldb.commit() + self.Peers.append(Peer(newPeer, self)) + else: + cursor.execute("UPDATE %s SET allowed_ip = ? WHERE id = ?" % self.Name, + (i.get("AllowedIPs", "N/A"), i['PublicKey'],)) + sqldb.commit() + self.Peers.append(Peer(checkIfExist, self)) except ValueError: pass - available = [str(i) for i in available] - return available + + def searchPeer(self, publicKey): + for i in self.Peers: + if i.id == publicKey: + return True, i + return False, None + + def allowAccessPeers(self, listOfPublicKeys): + # numOfAllowedPeers = 0 + # numOfFailedToAllowPeers = 0 + for i in listOfPublicKeys: + p = cursor.execute("SELECT * FROM %s_restrict_access WHERE id = ?" % self.Name, (i,)).fetchone() + if p is not None: + cursor.execute("INSERT INTO %s SELECT * FROM %s_restrict_access WHERE id = ?" + % (self.Name, self.Name,), (p['id'],)) + cursor.execute("DELETE FROM %s_restrict_access WHERE id = ?" + % self.Name, (p['id'],)) + subprocess.check_output(f"wg set {self.Name} peer {p['id']} allowed-ips {p['allowed_ip']}", + shell=True, stderr=subprocess.STDOUT) + else: + return ResponseObject(False, "Failed to allow access of peer " + i) + if not self.__wgSave(): + return ResponseObject(False, "Failed to save configuration through WireGuard") + + self.__getPeers() + return ResponseObject(True, "Allow access successfully!") + + def restrictPeers(self, listOfPublicKeys): + numOfRestrictedPeers = 0 + numOfFailedToRestrictPeers = 0 + for p in listOfPublicKeys: + found, pf = self.searchPeer(p) + if found: + try: + subprocess.check_output(f"wg set {self.Name} peer {pf.id} remove", + shell=True, stderr=subprocess.STDOUT) + cursor.execute("INSERT INTO %s_restrict_access SELECT * FROM %s WHERE id = ?" % + (self.Name, self.Name,), (pf.id,)) + cursor.execute("UPDATE %s_restrict_access SET status = 'stopped' WHERE id = ?" % + (self.Name,), (pf.id,)) + cursor.execute("DELETE FROM %s WHERE id = ?" % self.Name, (pf.id,)) + numOfRestrictedPeers += 1 + except Exception as e: + numOfFailedToRestrictPeers += 1 + + if not self.__wgSave(): + return ResponseObject(False, "Failed to save configuration through WireGuard") + + self.__getPeers() + + if numOfRestrictedPeers == len(listOfPublicKeys): + return ResponseObject(True, f"Restricted {numOfRestrictedPeers} peer(s)") + return ResponseObject(False, + f"Restricted {numOfRestrictedPeers} peer(s) successfully. Failed to restrict {numOfFailedToRestrictPeers} peer(s)") + pass + + def deletePeers(self, listOfPublicKeys): + numOfDeletedPeers = 0 + numOfFailedToDeletePeers = 0 + for p in listOfPublicKeys: + found, pf = self.searchPeer(p) + if found: + try: + subprocess.check_output(f"wg set {self.Name} peer {pf.id} remove", + shell=True, stderr=subprocess.STDOUT) + cursor.execute("DELETE FROM %s WHERE id = ?" % self.Name, (pf.id,)) + numOfDeletedPeers += 1 + except Exception as e: + numOfFailedToDeletePeers += 1 + + if not self.__wgSave(): + return ResponseObject(False, "Failed to save configuration through WireGuard") + + self.__getPeers() + + if numOfDeletedPeers == len(listOfPublicKeys): + return ResponseObject(True, f"Deleted {numOfDeletedPeers} peer(s)") + return ResponseObject(False, + f"Deleted {numOfDeletedPeers} peer(s) successfully. Failed to delete {numOfFailedToDeletePeers} peer(s)") + + def __savePeers(self): + for i in self.Peers: + d = i.toJson() + sqldb.execute( + ''' + UPDATE %s SET private_key = :private_key, + DNS = :DNS, endpoint_allowed_ip = :endpoint_allowed_ip, name = :name, + total_receive = :total_receive, total_sent = :total_sent, total_data = :total_data, + endpoint = :endpoint, status = :status, latest_handshake = :latest_handshake, + allowed_ip = :allowed_ip, cumu_receive = :cumu_receive, cumu_sent = :cumu_sent, + cumu_data = :cumu_data, mtu = :mtu, keepalive = :keepalive, + remote_endpoint = :remote_endpoint, preshared_key = :preshared_key WHERE id = :id + ''' % self.Name, d + ) + sqldb.commit() + + def __wgSave(self) -> tuple[bool, str] | tuple[bool, None]: + try: + subprocess.check_output(f"wg-quick save {self.Name}", shell=True, stderr=subprocess.STDOUT) + return True, None + except subprocess.CalledProcessError as e: + return False, str(e) + + def getPeersLatestHandshake(self): + try: + latestHandshake = subprocess.check_output(f"wg show {self.Name} latest-handshakes", + shell=True, stderr=subprocess.STDOUT) + except subprocess.CalledProcessError: + return "stopped" + latestHandshake = latestHandshake.decode("UTF-8").split() + count = 0 + now = datetime.now() + time_delta = timedelta(minutes=2) + for _ in range(int(len(latestHandshake) / 2)): + minus = now - datetime.fromtimestamp(int(latestHandshake[count + 1])) + if minus < time_delta: + status = "running" + else: + status = "stopped" + if int(latestHandshake[count + 1]) > 0: + sqldb.execute("UPDATE %s SET latest_handshake = ?, status = ? WHERE id= ?" % self.Name + , (str(minus).split(".", maxsplit=1)[0], status, latestHandshake[count],)) + else: + sqldb.execute("UPDATE %s SET latest_handshake = 'No Handshake', status = ? WHERE id= ?" % self.Name + , (status, latestHandshake[count],)) + sqldb.commit() + count += 2 + + def getPeersTransfer(self): + try: + data_usage = subprocess.check_output(f"wg show {self.Name} transfer", + shell=True, stderr=subprocess.STDOUT) + data_usage = data_usage.decode("UTF-8").split("\n") + data_usage = [p.split("\t") for p in data_usage] + for i in range(len(data_usage)): + if len(data_usage[i]) == 3: + cur_i = cursor.execute( + "SELECT total_receive, total_sent, cumu_receive, cumu_sent, status FROM %s WHERE id= ? " + % self.Name, (data_usage[i][0],)).fetchone() + if cur_i is not None: + total_sent = cur_i['total_sent'] + total_receive = cur_i['total_receive'] + cur_total_sent = round(int(data_usage[i][2]) / (1024 ** 3), 4) + cur_total_receive = round(int(data_usage[i][1]) / (1024 ** 3), 4) + cumulative_receive = cur_i['cumu_receive'] + total_receive + cumulative_sent = cur_i['cumu_sent'] + total_sent + if total_sent <= cur_total_sent and total_receive <= cur_total_receive: + total_sent = cur_total_sent + total_receive = cur_total_receive + else: + cursor.execute( + "UPDATE %s SET cumu_receive = ?, cumu_sent = ?, cumu_data = ? WHERE id = ?" % + self.Name, (round(cumulative_receive, 4), round(cumulative_sent, 4), + round(cumulative_sent + cumulative_receive, 4), + data_usage[i][0],)) + total_sent = 0 + total_receive = 0 + + _, p = self.searchPeer(data_usage[i][0]) + if p.total_receive != round(total_receive, 4) or p.total_sent != round(total_sent, 4): + cursor.execute( + "UPDATE %s SET total_receive = ?, total_sent = ?, total_data = ? WHERE id = ?" + % self.Name, (round(total_receive, 4), round(total_sent, 4), + round(total_receive + total_sent, 4), data_usage[i][0],)) + now = datetime.now() + now_string = now.strftime("%d/%m/%Y %H:%M:%S") + # cursor.execute(f''' + # INSERT INTO %s_transfer + # (id, total_receive, total_sent, total_data, + # cumu_receive, cumu_sent, cumu_data, time) + # VALUES (?, ?, ?, ?, ?, ?, ?, ?) + # ''' % self.Name, (data_usage[i][0], round(total_receive, 4), round(total_sent, 4), + # round(total_receive + total_sent, 4), round(cumulative_receive, 4), + # round(cumulative_sent, 4), + # round(cumulative_sent + cumulative_receive, 4), now_string,)) + # sqldb.commit() + except Exception as e: + print("Error" + str(e)) + + def getPeersEndpoint(self): + try: + data_usage = subprocess.check_output(f"wg show {self.Name} endpoints", + shell=True, stderr=subprocess.STDOUT) + except subprocess.CalledProcessError: + return "stopped" + data_usage = data_usage.decode("UTF-8").split() + count = 0 + for _ in range(int(len(data_usage) / 2)): + sqldb.execute("UPDATE %s SET endpoint = ? WHERE id = ?" % self.Name + , (data_usage[count + 1], data_usage[count],)) + sqldb.commit() + count += 2 + + def toggleConfiguration(self) -> [bool, str]: + self.getStatus() + print("Status: ", self.getStatus()) + if self.Status: + try: + check = subprocess.check_output(f"wg-quick down {self.Name}", + shell=True, stderr=subprocess.STDOUT) + except subprocess.CalledProcessError as exc: + return False, str(exc.output.strip().decode("utf-8")) + else: + try: + check = subprocess.check_output(f"wg-quick up {self.Name}", + shell=True, stderr=subprocess.STDOUT) + except subprocess.CalledProcessError as exc: + return False, str(exc.output.strip().decode("utf-8")) + self.getStatus() + return True, None + + def getPeersList(self): + self.__getPeers() + return self.Peers + + def getRestrictedPeersList(self) -> list: + self.__getRestrictedPeers() + return self.RestrictedPeers + + def toJson(self): + self.Status = self.getStatus() + return { + "Status": self.Status, + "Name": self.Name, + "PrivateKey": self.PrivateKey, + "PublicKey": self.PublicKey, + "Address": self.Address, + "ListenPort": self.ListenPort, + "PreUp": self.PreUp, + "PreDown": self.PreDown, + "PostUp": self.PostUp, + "PostDown": self.PostDown, + "SaveConfig": self.SaveConfig + } + + +class Peer: + def __init__(self, tableData, configuration: WireguardConfiguration): + self.configuration = configuration + self.id = tableData["id"] + self.private_key = tableData["private_key"] + self.DNS = tableData["DNS"] + self.endpoint_allowed_ip = tableData["endpoint_allowed_ip"] + self.name = tableData["name"] + self.total_receive = tableData["total_receive"] + self.total_sent = tableData["total_sent"] + self.total_data = tableData["total_data"] + self.endpoint = tableData["endpoint"] + self.status = tableData["status"] + self.latest_handshake = tableData["latest_handshake"] + self.allowed_ip = tableData["allowed_ip"] + self.cumu_receive = tableData["cumu_receive"] + self.cumu_sent = tableData["cumu_sent"] + self.cumu_data = tableData["cumu_data"] + self.mtu = tableData["mtu"] + self.keepalive = tableData["keepalive"] + self.remote_endpoint = tableData["remote_endpoint"] + self.preshared_key = tableData["preshared_key"] + self.jobs: list[PeerJob] = [] + self.getJobs() + + def toJson(self): + return self.__dict__ + + def __repr__(self): + return str(self.toJson()) + + def updatePeer(self, name: str, private_key: str, + preshared_key: str, + dns_addresses: str, allowed_ip: str, endpoint_allowed_ip: str, mtu: int, + keepalive: int) -> ResponseObject: + + existingAllowedIps = [item for row in list( + map(lambda x: [q.strip() for q in x.split(',')], + map(lambda y: y.allowed_ip, + list(filter(lambda k: k.id != self.id, self.configuration.getPeersList()))))) for item in row] + + if allowed_ip in existingAllowedIps: + return ResponseObject(False, "Allowed IP already taken by another peer.") + if not _checkIPWithRange(endpoint_allowed_ip): + return ResponseObject(False, f"Endpoint Allowed IPs format is incorrect.") + if len(dns_addresses) > 0 and not _checkDNS(dns_addresses): + return ResponseObject(False, f"DNS format is incorrect.") + if mtu < 0 or mtu > 1460: + return ResponseObject(False, "MTU format is not correct.") + if keepalive < 0: + return ResponseObject(False, "Persistent Keepalive format is not correct.") + if len(private_key) > 0: + pubKey = _generatePublicKey(private_key) + if not pubKey[0] or pubKey[1] != self.id: + return ResponseObject(False, "Private key does not match with the public key.") + try: + if len(preshared_key) > 0: + rd = random.Random() + uid = uuid.UUID(int=rd.getrandbits(128), version=4) + with open(f"{uid}", "w+") as f: + f.write(preshared_key) + updatePsk = subprocess.check_output( + f"wg set {self.configuration.Name} peer {self.id} preshared-key {uid}", + shell=True, stderr=subprocess.STDOUT) + os.remove(str(uid)) + if len(updatePsk.decode().strip("\n")) != 0: + return ResponseObject(False, + "Update peer failed when updating preshared key") + updateAllowedIp = subprocess.check_output( + f'wg set {self.configuration.Name} peer {self.id} allowed-ips "{allowed_ip.replace(" ", "")}"', + shell=True, stderr=subprocess.STDOUT) + if len(updateAllowedIp.decode().strip("\n")) != 0: + return ResponseObject(False, + "Update peer failed when updating allowed IPs") + saveConfig = subprocess.check_output(f"wg-quick save {self.configuration.Name}", + shell=True, stderr=subprocess.STDOUT) + if f"wg showconf {self.configuration.Name}" not in saveConfig.decode().strip('\n'): + return ResponseObject(False, + "Update peer failed when saving the configuration.") + cursor.execute( + '''UPDATE %s SET name = ?, private_key = ?, DNS = ?, endpoint_allowed_ip = ?, mtu = ?, + keepalive = ?, preshared_key = ? WHERE id = ?''' % self.configuration.Name, + (name, private_key, dns_addresses, endpoint_allowed_ip, mtu, + keepalive, preshared_key, self.id,) + ) + return ResponseObject() + except subprocess.CalledProcessError as exc: + return ResponseObject(False, exc.output.decode("UTF-8").strip()) + + def downloadPeer(self) -> dict[str, str]: + filename = self.name + if len(filename) == 0: + filename = "UntitledPeer" + filename = "".join(filename.split(' ')) + filename = f"{filename}_{self.configuration.Name}" + illegal_filename = [".", ",", "/", "?", "<", ">", "\\", ":", "*", '|' '\"', "com1", "com2", "com3", + "com4", "com5", "com6", "com7", "com8", "com9", "lpt1", "lpt2", "lpt3", "lpt4", + "lpt5", "lpt6", "lpt7", "lpt8", "lpt9", "con", "nul", "prn"] + for i in illegal_filename: + filename = filename.replace(i, "") + + peerConfiguration = f'''[Interface] +PrivateKey = {self.private_key} +Address = {self.allowed_ip} +MTU = {str(self.mtu)} +''' + if len(self.DNS) > 0: + peerConfiguration += f"DNS = {self.DNS}\n" + peerConfiguration += f''' +[Peer] +PublicKey = {self.configuration.PublicKey} +AllowedIPs = {self.endpoint_allowed_ip} +Endpoint = {DashboardConfig.GetConfig("Peers", "remote_endpoint")[1]}:{self.configuration.ListenPort} +PersistentKeepalive = {str(self.keepalive)} +''' + if len(self.preshared_key) > 0: + peerConfiguration += f"PresharedKey = {self.preshared_key}\n" + return { + "fileName": filename, + "file": peerConfiguration + } + + def getJobs(self): + self.jobs = AllPeerJobs.searchJob(self.configuration.Name, self.id) + # print(AllPeerJobs.searchJob(self.configuration.Name, self.id)) + + +# Regex Match +def regex_match(regex, text): + pattern = re.compile(regex) + return pattern.search(text) is not None + + +def iPv46RegexCheck(ip): + return re.match( + '((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))', + ip) + + +class DashboardConfig: + + def __init__(self): + if not os.path.exists(DASHBOARD_CONF): + open(DASHBOARD_CONF, "x") + self.__config = configparser.ConfigParser(strict=False) + self.__config.read_file(open(DASHBOARD_CONF, "r+")) + self.hiddenAttribute = ["totp_key"] + self.__default = { + "Account": { + "username": "admin", + "password": "admin", + "enable_totp": "false", + "totp_key": pyotp.random_base32() + }, + "Server": { + "wg_conf_path": "/etc/wireguard", + "app_ip": "0.0.0.0", + "app_port": "10086", + "auth_req": "true", + "version": DASHBOARD_VERSION, + "dashboard_refresh_interval": "60000", + "dashboard_sort": "status", + "dashboard_theme": "dark" + }, + "Peers": { + "peer_global_DNS": "1.1.1.1", + "peer_endpoint_allowed_ip": "0.0.0.0/0", + "peer_display_mode": "grid", + "remote_endpoint": ifcfg.default_interface()['inet'], + "peer_MTU": "1420", + "peer_keep_alive": "21" + }, + "Other": { + "welcome_session": "true" + } + } + + for section, keys in self.__default.items(): + for key, value in keys.items(): + exist, currentData = self.GetConfig(section, key) + if not exist: + self.SetConfig(section, key, value, True) + + def __configValidation(self, key, value: Any) -> [bool, str]: + if type(value) is str and len(value) == 0: + return False, "Field cannot be empty!" + if key == "peer_global_dns": + value = value.split(",") + for i in value: + try: + ipaddress.ip_address(i) + except ValueError as e: + return False, str(e) + if key == "peer_endpoint_allowed_ip": + value = value.split(",") + for i in value: + try: + ipaddress.ip_network(i, strict=False) + except Exception as e: + return False, str(e) + if key == "wg_conf_path": + if not os.path.exists(value): + return False, f"{value} is not a valid path" + if key == "password": + if self.GetConfig("Account", "password")[0]: + if not self.__checkPassword( + value["currentPassword"], self.GetConfig("Account", "password")[1].encode("utf-8")): + return False, "Current password does not match." + if value["newPassword"] != value["repeatNewPassword"]: + return False, "New passwords does not match" + return True, "" + + def generatePassword(self, plainTextPassword: str): + return bcrypt.hashpw(plainTextPassword.encode("utf-8"), bcrypt.gensalt(rounds=12)) + + def __checkPassword(self, plainTextPassword: str, hashedPassword: bytes): + return bcrypt.checkpw(plainTextPassword.encode("utf-8"), hashedPassword) + + def SetConfig(self, section: str, key: str, value: any, init: bool = False) -> [bool, str]: + if key in self.hiddenAttribute and not init: + return False, None + + if not init: + valid, msg = self.__configValidation(key, value) + if not valid: + return False, msg + + if section == "Account" and key == "password": + if not init: + value = self.generatePassword(value["newPassword"]).decode("utf-8") + else: + value = self.generatePassword(value).decode("utf-8") + + if section not in self.__config: + self.__config[section] = {} + + if key not in self.__config[section].keys() or value != self.__config[section][key]: + if type(value) is bool: + if value: + self.__config[section][key] = "true" + else: + self.__config[section][key] = "false" + else: + self.__config[section][key] = value + return self.SaveConfig(), "" + return True, "" + + def SaveConfig(self) -> bool: + try: + with open(DASHBOARD_CONF, "w+", encoding='utf-8') as configFile: + self.__config.write(configFile) + return True + except Exception as e: + return False + + def GetConfig(self, section, key) -> [any, bool]: + if section not in self.__config: + return False, None + + if key not in self.__config[section]: + return False, None + + if self.__config[section][key] in ["1", "yes", "true", "on"]: + return True, True + + if self.__config[section][key] in ["0", "no", "false", "off"]: + return True, False + + return True, self.__config[section][key] + + def toJson(self) -> dict[str, dict[Any, Any]]: + the_dict = {} + + for section in self.__config.sections(): + the_dict[section] = {} + for key, val in self.__config.items(section): + if key not in self.hiddenAttribute: + if val in ["1", "yes", "true", "on"]: + the_dict[section][key] = True + elif val in ["0", "no", "false", "off"]: + the_dict[section][key] = False + else: + the_dict[section][key] = val + return the_dict + + +DashboardConfig = DashboardConfig() +WireguardConfigurations: dict[str, WireguardConfiguration] = {} +AllPeerJobs: PeerJobs = PeerJobs() + +''' +Private Functions +''' + + +def _strToBool(value: str) -> bool: + return value.lower() in ("yes", "true", "t", "1", 1) + + +def _regexMatch(regex, text): + pattern = re.compile(regex) + return pattern.search(text) is not None + + +def _getConfigurationList() -> [WireguardConfiguration]: + configurations = {} + for i in os.listdir(WG_CONF_PATH): + if _regexMatch("^(.{1,}).(conf)$", i): + i = i.replace('.conf', '') + try: + configurations[i] = WireguardConfiguration(i) + except WireguardConfiguration.InvalidConfigurationFileException as e: + print(f"{i} have an invalid configuration file.") + return configurations + + +def _checkIPWithRange(ip): + ip_patterns = ( + r"((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|\/)){4}([0-9]{1,2})(,|$)", + r"[0-9a-fA-F]{0,4}(:([0-9a-fA-F]{0,4})){1,7}\/([0-9]{1,3})(,|$)" + ) + + for match_pattern in ip_patterns: + match_result = regex_match(match_pattern, ip) + if match_result: + result = match_result + break else: - return [] + result = None + + return result -""" -Flask Functions -""" +def _checkIP(ip): + ip_patterns = ( + r"((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}", + r"[0-9a-fA-F]{0,4}(:([0-9a-fA-F]{0,4})){1,7}$" + ) + for match_pattern in ip_patterns: + match_result = regex_match(match_pattern, ip) + if match_result: + result = match_result + break + else: + result = None -@app.teardown_request -def close_DB(exception): - """ - Commit to the database for every request - @param exception: Exception - @return: None - """ - if hasattr(g, 'db'): - g.db.commit() - g.db.close() + return result + + +def _checkDNS(dns): + dns = dns.replace(' ', '').split(',') + for i in dns: + if not (_checkIP(i) or regex_match(r"(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z][a-z]{0,61}[a-z]", i)): + return False + return True + + +def _generatePublicKey(privateKey) -> tuple[bool, str] | tuple[bool, None]: + try: + publicKey = subprocess.check_output(f"wg pubkey", input=privateKey.encode(), shell=True, + stderr=subprocess.STDOUT) + return True, publicKey.decode().strip('\n') + except subprocess.CalledProcessError: + return False, None + + +def _generatePrivateKey() -> [bool, str]: + try: + publicKey = subprocess.check_output(f"wg genkey", shell=True, + stderr=subprocess.STDOUT) + return True, publicKey.decode().strip('\n') + except subprocess.CalledProcessError: + return False, None + + +def _getWireguardConfigurationAvailableIP(configName: str) -> tuple[bool, list[str]] | tuple[bool, None]: + if configName not in WireguardConfigurations.keys(): + return False, None + configuration = WireguardConfigurations[configName] + if len(configuration.Address) > 0: + address = configuration.Address.split(',') + print(address) + existedAddress = [] + availableAddress = [] + for p in configuration.Peers: + if len(p.allowed_ip) > 0: + add = p.allowed_ip.split(',') + for i in add: + a, c = i.split('/') + existedAddress.append(ipaddress.ip_address(a.replace(" ", ""))) + for i in address: + addressSplit, cidr = i.split('/') + existedAddress.append(ipaddress.ip_address(addressSplit.replace(" ", ""))) + for i in address: + network = ipaddress.ip_network(i.replace(" ", ""), False) + count = 0 + for h in network.hosts(): + if h not in existedAddress: + availableAddress.append(ipaddress.ip_network(h).compressed) + count += 1 + if network.version == 6 and count > 255: + break + return True, availableAddress + + return False, None + + +''' +API Routes +''' @app.before_request def auth_req(): - """ - Action before every request - @return: Redirect - """ - return None - if getattr(g, 'db', None) is None: - print('hi') - g.db = connect_db() - g.cur = g.db.cursor() - conf = get_dashboard_conf() - req = conf.get("Server", "auth_req") - session['theme'] = conf.get("Server", "dashboard_theme") - session['update'] = UPDATE - session['updateInfo'] = updateInfo - session['dashboard_version'] = DASHBOARD_VERSION - if req == "true": - if '/static/' not in request.path and \ - request.endpoint != "signin" and \ - request.endpoint != "signout" and \ - request.endpoint != "auth" and \ - "username" not in session: - print("User not signed in - Attempted access: " + str(request.endpoint)) - if request.endpoint != "index": - session['message'] = "You need to sign in first!" - else: - session['message'] = "" - conf.clear() + authenticationRequired = DashboardConfig.GetConfig("Server", "auth_req")[1] + if authenticationRequired: - redirectURL = str(request.url) - redirectURL = redirectURL.replace("http://", "") - redirectURL = redirectURL.replace("https://", "") - return redirect("/signin?redirect=" + redirectURL) - else: - if request.endpoint in ['signin', 'signout', 'auth', 'settings', 'update_acct', 'update_pwd', - 'update_app_ip_port', 'update_wg_conf_path']: - conf.clear() - return redirect(url_for("index")) - conf.clear() - return None + if ('/static/' not in request.path and "username" not in session and "/" != request.path + and "validateAuthentication" not in request.path and "authenticate" not in request.path + and "getDashboardConfiguration" not in request.path and "getDashboardTheme" not in request.path + and "isTotpEnabled" not in request.path + ): + response = Flask.make_response(app, { + "status": False, + "message": None, + "data": None + }) + response.content_type = "application/json" + response.status_code = 401 + return response -""" -Sign In / Sign Out -""" +@app.route('/api/validateAuthentication', methods=["GET"]) +def API_ValidateAuthentication(): + token = request.cookies.get("authToken") + "" + if token == "" or "username" not in session or session["username"] != token: + return ResponseObject(False, "Invalid authentication") + + return ResponseObject(True) -@app.route('/signin', methods=['GET']) -def signin(): - """ - Sign in request - @return: template - """ - - message = "" - if "message" in session: - message = session['message'] - session.pop("message") - return render_template('signin.html', message=message, version=DASHBOARD_VERSION) - - -# Sign Out -@app.route('/signout', methods=['GET']) -def signout(): - """ - Sign out request - @return: redirect back to sign in - """ - if "username" in session: - session.pop("username") - return redirect(url_for('signin')) - - -@app.route('/auth', methods=['POST']) -def auth(): - """ - Authentication request - @return: json object indicating verifying - """ +@app.route('/api/authenticate', methods=['POST']) +def API_AuthenticateLogin(): data = request.get_json() - config = get_dashboard_conf() - password = hashlib.sha256(data['password'].encode()) - if password.hexdigest() == config["Account"]["password"] \ - and data['username'] == config["Account"]["username"]: - session['username'] = data['username'] - resp = Flask.make_response(jsonify({"status": True, "msg": ""})) + valid = bcrypt.checkpw(data['password'].encode("utf-8"), + DashboardConfig.GetConfig("Account", "password")[1].encode("utf-8")) + totpEnabled = DashboardConfig.GetConfig("Account", "enable_totp")[1] + totpValid = False + if totpEnabled: + totpValid = pyotp.TOTP(DashboardConfig.GetConfig("Account", "totp_key")[1]).now() == data['totp'] - resp.set_cookie("auth", hashlib.sha256(f"{data['username']}{datetime.now()}".encode()).hexdigest()) + if (valid + and data['username'] == DashboardConfig.GetConfig("Account", "username")[1] + and ((totpEnabled and totpValid) or not totpEnabled) + ): + authToken = hashlib.sha256(f"{data['username']}{datetime.now()}".encode()).hexdigest() + session['username'] = authToken + resp = ResponseObject(True, DashboardConfig.GetConfig("Other", "welcome_session")[1]) + resp.set_cookie("authToken", authToken) session.permanent = True - config.clear(resp) - return - config.clear() - return jsonify({"status": False, "msg": "Username or Password is incorrect."}) + return resp + + if totpEnabled: + return ResponseObject(False, "Sorry, your username, password or OTP is incorrect.") + else: + return ResponseObject(False, "Sorry, your username or password is incorrect.") +@app.route('/api/signout') +def API_SignOut(): + resp = ResponseObject(True, "") + resp.delete_cookie("authToken") + return resp -""" -Index Page -""" + +@app.route('/api/getWireguardConfigurations', methods=["GET"]) +def API_getWireguardConfigurations(): + WireguardConfigurations = _getConfigurationList() + return ResponseObject(data=[wc for wc in WireguardConfigurations.values()]) + + +@app.route('/api/addWireguardConfiguration', methods=["POST"]) +def API_addWireguardConfiguration(): + data = request.get_json() + keys = [ + "ConfigurationName", + "Address", + "ListenPort", + "PrivateKey", + "PublicKey", + "PresharedKey", + "PreUp", + "PreDown", + "PostUp", + "PostDown", + ] + requiredKeys = [ + "ConfigurationName", "Address", "ListenPort", "PrivateKey" + ] + for i in keys: + if i not in data.keys() or (i in requiredKeys and len(str(data[i])) == 0): + return ResponseObject(False, "Please provide all required parameters.") + + # Check duplicate names, ports, address + for i in WireguardConfigurations.values(): + if i.Name == data['ConfigurationName']: + return ResponseObject(False, + f"Already have a configuration with the name \"{data['ConfigurationName']}\"", + "ConfigurationName") + + if str(i.ListenPort) == str(data["ListenPort"]): + return ResponseObject(False, + f"Already have a configuration with the port \"{data['ListenPort']}\"", + "ListenPort") + + if i.Address == data["Address"]: + return ResponseObject(False, + f"Already have a configuration with the address \"{data['Address']}\"", + "Address") + + WireguardConfigurations[data['ConfigurationName']] = WireguardConfiguration(data=data) + return ResponseObject() + + +@app.route('/api/toggleWireguardConfiguration/') +def API_toggleWireguardConfiguration(): + configurationName = request.args.get('configurationName') + + if configurationName is None or len( + configurationName) == 0 or configurationName not in WireguardConfigurations.keys(): + return ResponseObject(False, "Please provide a valid configuration name") + + toggleStatus, msg = WireguardConfigurations[configurationName].toggleConfiguration() + + return ResponseObject(toggleStatus, msg, WireguardConfigurations[configurationName].Status) + + +@app.route('/api/getDashboardConfiguration', methods=["GET"]) +def API_getDashboardConfiguration(): + return ResponseObject(data=DashboardConfig.toJson()) + + +@app.route('/api/updateDashboardConfiguration', methods=["POST"]) +def API_updateDashboardConfiguration(): + data = request.get_json() + for section in data['DashboardConfiguration'].keys(): + for key in data['DashboardConfiguration'][section].keys(): + if not DashboardConfig.SetConfig(section, key, data['DashboardConfiguration'][section][key])[0]: + return ResponseObject(False, "Section or value is invalid.") + return ResponseObject() + + +@app.route('/api/updateDashboardConfigurationItem', methods=["POST"]) +def API_updateDashboardConfigurationItem(): + data = request.get_json() + if "section" not in data.keys() or "key" not in data.keys() or "value" not in data.keys(): + return ResponseObject(False, "Invalid request.") + + valid, msg = DashboardConfig.SetConfig( + data["section"], data["key"], data['value']) + + if not valid: + return ResponseObject(False, msg) + + return ResponseObject() + + +@app.route('/api/updatePeerSettings/', methods=['POST']) +def API_updatePeerSettings(configName): + data = request.get_json() + id = data['id'] + if len(id) > 0 and configName in WireguardConfigurations.keys(): + name = data['name'] + private_key = data['private_key'] + dns_addresses = data['DNS'] + allowed_ip = data['allowed_ip'] + endpoint_allowed_ip = data['endpoint_allowed_ip'] + preshared_key = data['preshared_key'] + mtu = data['mtu'] + keepalive = data['keepalive'] + wireguardConfig = WireguardConfigurations[configName] + foundPeer, peer = wireguardConfig.searchPeer(id) + if foundPeer: + return peer.updatePeer(name, private_key, preshared_key, dns_addresses, + allowed_ip, endpoint_allowed_ip, mtu, keepalive) + return ResponseObject(False, "Peer does not exist") + + +@app.route('/api/deletePeers/', methods=['POST']) +def API_deletePeers(configName: str) -> ResponseObject: + data = request.get_json() + peers = data['peers'] + if configName in WireguardConfigurations.keys(): + if len(peers) == 0: + return ResponseObject(False, "Please specify more than one peer") + configuration = WireguardConfigurations.get(configName) + return configuration.deletePeers(peers) + + return ResponseObject(False, "Configuration does not exist") + + +@app.route('/api/restrictPeers/', methods=['POST']) +def API_restrictPeers(configName: str) -> ResponseObject: + data = request.get_json() + peers = data['peers'] + if configName in WireguardConfigurations.keys(): + if len(peers) == 0: + return ResponseObject(False, "Please specify more than one peer") + configuration = WireguardConfigurations.get(configName) + return configuration.restrictPeers(peers) + return ResponseObject(False, "Configuration does not exist") + + +@app.route('/api/allowAccessPeers/', methods=['POST']) +def API_allowAccessPeers(configName: str) -> ResponseObject: + data = request.get_json() + peers = data['peers'] + if configName in WireguardConfigurations.keys(): + if len(peers) == 0: + return ResponseObject(False, "Please specify more than one peer") + configuration = WireguardConfigurations.get(configName) + return configuration.allowAccessPeers(peers) + return ResponseObject(False, "Configuration does not exist") + + +@app.route('/api/addPeers/', methods=['POST']) +def API_addPeers(configName): + data = request.get_json() + bulkAdd = data['bulkAdd'] + bulkAddAmount = data['bulkAddAmount'] + public_key = data['public_key'] + allowed_ips = data['allowed_ips'] + endpoint_allowed_ip = data['endpoint_allowed_ip'] + dns_addresses = data['DNS'] + mtu = data['mtu'] + keep_alive = data['keepalive'] + preshared_key = data['preshared_key'] + + if configName in WireguardConfigurations.keys(): + config = WireguardConfigurations.get(configName) + if (not bulkAdd and (len(public_key) == 0 or len(allowed_ips) == 0)) or len(endpoint_allowed_ip) == 0: + return ResponseObject(False, "Please fill in all required box.") + if not config.getStatus(): + return ResponseObject(False, + f"{configName} is not running, please turn on the configuration before adding peers.") + if bulkAdd: + if bulkAddAmount < 1: + return ResponseObject(False, "Please specify amount of peers you want to add") + availableIps = _getWireguardConfigurationAvailableIP(configName) + if not availableIps[0]: + return ResponseObject(False, "No more available IP can assign") + if bulkAddAmount > len(availableIps[1]): + return ResponseObject(False, + f"The maximum number of peers can add is {len(availableIps[1])}") + + keyPairs = [] + for i in range(bulkAddAmount): + key = _generatePrivateKey()[1] + keyPairs.append([key, _generatePublicKey(key)[1], _generatePrivateKey()[1], availableIps[1][i], + f"{config.Name}_{datetime.now().strftime('%m%d%Y%H%M%S')}_Peer_#_{(i + 1)}"]) + if len(keyPairs) == 0: + return ResponseObject(False, "Generating key pairs by bulk failed") + + for i in range(bulkAddAmount): + subprocess.check_output( + f"wg set {config.Name} peer {keyPairs[i][1]} allowed-ips {keyPairs[i][3]}", + shell=True, stderr=subprocess.STDOUT) + subprocess.check_output( + f"wg-quick save {config.Name}", shell=True, stderr=subprocess.STDOUT) + config.getPeersList() + + for i in range(bulkAddAmount): + found, peer = config.searchPeer(keyPairs[i][1]) + if found: + if not peer.updatePeer(keyPairs[i][4], keyPairs[i][0], preshared_key, dns_addresses, + keyPairs[i][3], + endpoint_allowed_ip, mtu, keep_alive).status: + return ResponseObject(False, "Failed to add peers in bulk") + + return ResponseObject() + + else: + if config.searchPeer(public_key)[0] is True: + return ResponseObject(False, f"This peer already exist.") + name = data['name'] + private_key = data['private_key'] + subprocess.check_output( + f"wg set {config.Name} peer {public_key} allowed-ips {''.join(allowed_ips)}", + shell=True, stderr=subprocess.STDOUT) + if len(preshared_key) > 0: + subprocess.check_output( + f"wg set {config.Name} peer {public_key} preshared-key {preshared_key}", + shell=True, stderr=subprocess.STDOUT) + subprocess.check_output( + f"wg-quick save {config.Name}", shell=True, stderr=subprocess.STDOUT) + config.getPeersList() + found, peer = config.searchPeer(public_key) + if found: + return peer.updatePeer(name, private_key, preshared_key, dns_addresses, ",".join(allowed_ips), + endpoint_allowed_ip, mtu, keep_alive) + + return ResponseObject(False, "Configuration does not exist") + + +@app.route("/api/downloadPeer/") +def API_downloadPeer(configName): + data = request.args + if configName not in WireguardConfigurations.keys(): + return ResponseObject(False, "Configuration or peer does not exist") + configuration = WireguardConfigurations[configName] + peerFound, peer = configuration.searchPeer(data['id']) + if len(data['id']) == 0 or not peerFound: + return ResponseObject(False, "Configuration or peer does not exist") + return ResponseObject(data=peer.downloadPeer()) + + +@app.route("/api/downloadAllPeers/") +def API_downloadAllPeers(configName): + if configName not in WireguardConfigurations.keys(): + return ResponseObject(False, "Configuration or peer does not exist") + configuration = WireguardConfigurations[configName] + peerData = [] + untitledPeer = 0 + for i in configuration.Peers: + file = i.downloadPeer() + if file["fileName"] == "UntitledPeer_" + configName: + file["fileName"] = str(untitledPeer) + "_" + file["fileName"] + untitledPeer += 1 + peerData.append(file) + return ResponseObject(data=peerData) + + +@app.route("/api/getAvailableIPs/") +def API_getAvailableIPs(configName): + status, ips = _getWireguardConfigurationAvailableIP(configName) + return ResponseObject(status=status, data=ips) + + +@app.route('/api/getWireguardConfigurationInfo', methods=["GET"]) +def API_getConfigurationInfo(): + configurationName = request.args.get("configurationName") + if not configurationName or configurationName not in WireguardConfigurations.keys(): + return ResponseObject(False, "Please provide configuration name") + return ResponseObject(data={ + "configurationInfo": WireguardConfigurations[configurationName], + "configurationPeers": WireguardConfigurations[configurationName].getPeersList(), + "configurationRestrictedPeers": WireguardConfigurations[configurationName].getRestrictedPeersList() + }) + + +@app.route('/api/getDashboardTheme') +def API_getDashboardTheme(): + return ResponseObject(data=DashboardConfig.GetConfig("Server", "dashboard_theme")[1]) + + +@app.route('/api/ping/getAllPeersIpAddress') +def API_ping_getAllPeersIpAddress(): + ips = {} + for c in WireguardConfigurations.values(): + cips = {} + for p in c.Peers: + allowed_ip = p.allowed_ip.replace(" ", "").split(",") + parsed = [] + for x in allowed_ip: + ip = ipaddress.ip_network(x, strict=False) + if len(list(ip.hosts())) == 1: + parsed.append(str(ip.hosts()[0])) + endpoint = p.endpoint.replace(" ", "").replace("(none)", "") + if len(p.name) > 0: + cips[f"{p.name} - {p.id}"] = { + "allowed_ips": parsed, + "endpoint": endpoint + } + else: + cips[f"{p.id}"] = { + "allowed_ips": parsed, + "endpoint": endpoint + } + ips[c.Name] = cips + return ResponseObject(data=ips) + + +@app.route('/api/ping/execute') +def API_ping_execute(): + if "ipAddress" in request.args.keys() and "count" in request.args.keys(): + ip = request.args['ipAddress'] + count = request.args['count'] + try: + if ip is not None and len(ip) > 0 and count is not None and count.isnumeric(): + result = ping(ip, count=int(count), source=None) + + return ResponseObject(data={ + "address": result.address, + "is_alive": result.is_alive, + "min_rtt": result.min_rtt, + "avg_rtt": result.avg_rtt, + "max_rtt": result.max_rtt, + "package_sent": result.packets_sent, + "package_received": result.packets_received, + "package_loss": result.packet_loss + }) + + return ResponseObject(False, "Please specify an IP Address (v4/v6)") + except Exception as exp: + return ResponseObject(False, exp) + return ResponseObject(False, "Please provide ipAddress and count") + + +@app.route('/api/traceroute/execute') +def API_traceroute_execute(): + if "ipAddress" in request.args.keys() and len(request.args.get("ipAddress")) > 0: + ipAddress = request.args.get('ipAddress') + try: + tracerouteResult = traceroute(ipAddress) + result = [] + for hop in tracerouteResult: + if len(result) > 1: + skipped = False + for i in range(result[-1]["hop"] + 1, hop.distance): + result.append( + { + "hop": i, + "ip": "*", + "avg_rtt": "*", + "min_rtt": "*", + "max_rtt": "*" + } + ) + skip = True + if skipped: continue + result.append( + { + "hop": hop.distance, + "ip": hop.address, + "avg_rtt": hop.avg_rtt, + "min_rtt": hop.min_rtt, + "max_rtt": hop.max_rtt + }) + return ResponseObject(data=result) + except Exception as exp: + return ResponseObject(False, exp) + else: + return ResponseObject(False, "Please provide ipAddress") + + +''' +Sign Up +''' + + +@app.route('/api/isTotpEnabled') +def API_isTotpEnabled(): + return ResponseObject(data=DashboardConfig.GetConfig("Account", "enable_totp")[1]) + + +@app.route('/api/Welcome_GetTotpLink') +def API_Welcome_GetTotpLink(): + if DashboardConfig.GetConfig("Other", "welcome_session")[1]: + return ResponseObject( + data=pyotp.totp.TOTP(DashboardConfig.GetConfig("Account", "totp_key")[1]).provisioning_uri( + issuer_name="WGDashboard")) + return ResponseObject(False) + + +@app.route('/api/Welcome_VerifyTotpLink', methods=["POST"]) +def API_Welcome_VerifyTotpLink(): + data = request.get_json() + if DashboardConfig.GetConfig("Other", "welcome_session")[1]: + totp = pyotp.TOTP(DashboardConfig.GetConfig("Account", "totp_key")[1]).now() + print(totp) + return ResponseObject(totp == data['totp']) + return ResponseObject(False) + + +@app.route('/api/Welcome_Finish', methods=["POST"]) +def API_Welcome_Finish(): + data = request.get_json() + if DashboardConfig.GetConfig("Other", "welcome_session")[1]: + if data["username"] == "": + return ResponseObject(False, "Username cannot be blank.") + + if data["newPassword"] == "" or len(data["newPassword"]) < 8: + return ResponseObject(False, "Password must be at least 8 characters") + + updateUsername, updateUsernameErr = DashboardConfig.SetConfig("Account", "username", data["username"]) + updatePassword, updatePasswordErr = DashboardConfig.SetConfig("Account", "password", + { + "newPassword": data["newPassword"], + "repeatNewPassword": data[ + "repeatNewPassword"], + "currentPassword": "admin" + }) + updateEnableTotp, updateEnableTotpErr = DashboardConfig.SetConfig("Account", "enable_totp", data["enable_totp"]) + + if not updateUsername or not updatePassword or not updateEnableTotp: + return ResponseObject(False, f"{updateUsernameErr},{updatePasswordErr},{updateEnableTotpErr}".strip(",")) + + DashboardConfig.SetConfig("Other", "welcome_session", False) + + return ResponseObject() @app.route('/', methods=['GET']) @@ -784,1282 +1528,35 @@ def index(): Index page related @return: Template """ - msg = "" - if "switch_msg" in session: - msg = session["switch_msg"] - session.pop("switch_msg") - # return render_template('index_new.html') - return render_template('index.html', conf=get_conf_list(), msg=msg) + return render_template('index_new.html') -# Setting Page -@app.route('/settings', methods=['GET']) -def settings(): - """ - Settings page related - @return: Template - """ - message = "" - status = "" - config = get_dashboard_conf() - if "message" in session and "message_status" in session: - message = session['message'] - status = session['message_status'] - session.pop("message") - session.pop("message_status") - required_auth = config.get("Server", "auth_req") - return render_template('settings.html', conf=get_conf_list(), message=message, status=status, - app_ip=config.get("Server", "app_ip"), app_port=config.get("Server", "app_port"), - required_auth=required_auth, wg_conf_path=config.get("Server", "wg_conf_path"), - peer_global_DNS=config.get("Peers", "peer_global_DNS"), - peer_endpoint_allowed_ip=config.get("Peers", "peer_endpoint_allowed_ip"), - peer_mtu=config.get("Peers", "peer_mtu"), - peer_keepalive=config.get("Peers", "peer_keep_alive"), - peer_remote_endpoint=config.get("Peers", "remote_endpoint")) - - -@app.route('/update_acct', methods=['POST']) -def update_acct(): - """ - Change dashboard username - @return: Redirect - """ - - if len(request.form['username']) == 0: - session['message'] = "Username cannot be empty." - session['message_status'] = "danger" - return redirect(url_for("settings")) - config = get_dashboard_conf() - config.set("Account", "username", request.form['username']) - try: - set_dashboard_conf(config) - config.clear() - session['message'] = "Username update successfully!" - session['message_status'] = "success" - session['username'] = request.form['username'] - return redirect(url_for("settings")) - except Exception: - session['message'] = "Username update failed." - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - - -# Update peer default setting -@app.route('/update_peer_default_config', methods=['POST']) -def update_peer_default_config(): - """ - Update new peers default setting - @return: None - """ - - config = get_dashboard_conf() - if len(request.form['peer_endpoint_allowed_ip']) == 0 or \ - len(request.form['peer_global_DNS']) == 0 or \ - len(request.form['peer_remote_endpoint']) == 0: - session['message'] = "Please fill in all required boxes." - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - # Check DNS Format - dns_addresses = request.form['peer_global_DNS'] - if not check_DNS(dns_addresses): - session['message'] = "Peer DNS Format Incorrect." - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - dns_addresses = dns_addresses.replace(" ", "").split(',') - dns_addresses = ",".join(dns_addresses) - # Check Endpoint Allowed IPs - ip = request.form['peer_endpoint_allowed_ip'] - if not check_Allowed_IPs(ip): - session['message'] = "Peer Endpoint Allowed IPs Format Incorrect. " \ - "Example: 192.168.1.1/32 or 192.168.1.1/32,192.168.1.2/32" - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - # Check MTU Format - if not len(request.form['peer_mtu']) > 0 or not request.form['peer_mtu'].isdigit(): - session['message'] = "MTU format is incorrect." - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - # Check keepalive Format - if not len(request.form['peer_keep_alive']) > 0 or not request.form['peer_keep_alive'].isdigit(): - session['message'] = "Persistent keepalive format is incorrect." - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - # Check peer remote endpoint - if not check_remote_endpoint(request.form['peer_remote_endpoint']): - session['message'] = "Peer Remote Endpoint format is incorrect. It can only be a valid " \ - "IP address or valid domain (without http:// or https://). " - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - config.set("Peers", "remote_endpoint", request.form['peer_remote_endpoint']) - config.set("Peers", "peer_keep_alive", request.form['peer_keep_alive']) - config.set("Peers", "peer_mtu", request.form['peer_mtu']) - config.set("Peers", "peer_endpoint_allowed_ip", ','.join(clean_IP_with_range(ip))) - config.set("Peers", "peer_global_DNS", dns_addresses) - try: - set_dashboard_conf(config) - session['message'] = "Peer Default Settings update successfully!" - session['message_status'] = "success" - config.clear() - return redirect(url_for("settings")) - except Exception: - session['message'] = "Peer Default Settings update failed." - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - - -# Update dashboard password -@app.route('/update_pwd', methods=['POST']) -def update_pwd(): - """ - Update dashboard password - @return: Redirect - """ - - config = get_dashboard_conf() - if hashlib.sha256(request.form['currentpass'].encode()).hexdigest() == config.get("Account", "password"): - if hashlib.sha256(request.form['newpass'].encode()).hexdigest() == hashlib.sha256( - request.form['repnewpass'].encode()).hexdigest(): - config.set("Account", "password", hashlib.sha256(request.form['repnewpass'].encode()).hexdigest()) - try: - set_dashboard_conf(config) - session['message'] = "Password update successfully!" - session['message_status'] = "success" - config.clear() - return redirect(url_for("settings")) - except Exception: - session['message'] = "Password update failed" - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - else: - session['message'] = "Your New Password does not match." - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - else: - session['message'] = "Your Password does not match." - session['message_status'] = "danger" - config.clear() - return redirect(url_for("settings")) - - -@app.route('/update_app_ip_port', methods=['POST']) -def update_app_ip_port(): - """ - Update dashboard ip and port - @return: None - """ - - config = get_dashboard_conf() - config.set("Server", "app_ip", request.form['app_ip']) - config.set("Server", "app_port", request.form['app_port']) - set_dashboard_conf(config) - config.clear() - subprocess.Popen('bash wgd.sh restart', shell=True) - return "" - - -# Update WireGuard configuration file path -@app.route('/update_wg_conf_path', methods=['POST']) -def update_wg_conf_path(): - """ - Update configuration path - @return: None - """ - - config = get_dashboard_conf() - config.set("Server", "wg_conf_path", request.form['wg_conf_path']) - set_dashboard_conf(config) - config.clear() - session['message'] = "WireGuard Configuration Path Update Successfully!" - session['message_status'] = "success" - subprocess.Popen('bash wgd.sh restart', shell=True) - - -@app.route('/update_dashboard_sort', methods=['POST']) -def update_dashbaord_sort(): - """ - Update configuration sorting - @return: Boolean - """ - - config = get_dashboard_conf() - data = request.get_json() - sort_tag = ['name', 'status', 'allowed_ip'] - if data['sort'] in sort_tag: - config.set("Server", "dashboard_sort", data['sort']) - else: - config.set("Server", "dashboard_sort", 'status') - set_dashboard_conf(config) - config.clear() - return "true" - - -# Update configuration refresh interval -@app.route('/update_dashboard_refresh_interval', methods=['POST']) -def update_dashboard_refresh_interval(): - """ - Change the refresh time. - @return: Return text with result - @rtype: str - """ - - preset_interval = ["5000", "10000", "30000", "60000"] - if request.form["interval"] in preset_interval: - config = get_dashboard_conf() - config.set("Server", "dashboard_refresh_interval", str(request.form['interval'])) - set_dashboard_conf(config) - config.clear() - return "true" - else: - return "false" - - -# Configuration Page -@app.route('/configuration/', methods=['GET']) -def configuration(config_name): - """ - Show wireguard interface view. - @param config_name: Name of WG interface - @type config_name: str - @return: Template - """ - - config = get_dashboard_conf() - conf_data = { - "name": config_name, - "status": get_conf_status(config_name), - "checked": "" - } - if conf_data['status'] == "stopped": - conf_data['checked'] = "nope" - else: - conf_data['checked'] = "checked" - config_list = get_conf_list() - if config_name not in [conf['conf'] for conf in config_list]: - return redirect('/') - - refresh_interval = int(config.get("Server", "dashboard_refresh_interval")) - dns_address = config.get("Peers", "peer_global_DNS") - allowed_ip = config.get("Peers", "peer_endpoint_allowed_ip") - peer_mtu = config.get("Peers", "peer_MTU") - peer_keep_alive = config.get("Peers", "peer_keep_alive") - config.clear() - return render_template('configuration.html', conf=get_conf_list(), conf_data=conf_data, - dashboard_refresh_interval=refresh_interval, - DNS=dns_address, - endpoint_allowed_ip=allowed_ip, - title=config_name, - mtu=peer_mtu, - keep_alive=peer_keep_alive) - - -# Get configuration details -# @socketio.on("get_config") -@app.route('/get_config/', methods=['GET']) -def get_conf(config_name): - """ - Get configuration setting of wireguard interface. - @param config_name: Name of WG interface - @type config_name: str - @return: TODO - """ - result = { - "status": True, - "message": "", - "data": {} - } - if not session: - result["status"] = False - result["message"] = "Oops!
You're not signed in. Please refresh your page." - return jsonify(result) - - if getattr(g, 'db', None) is None: - g.db = connect_db() - g.cur = g.db.cursor() - config_interface = read_conf_file_interface(config_name) - - if config_interface != {}: - search = request.args.get('search') - if len(search) == 0: - search = "" - search = urllib.parse.unquote(search) - config = get_dashboard_conf() - sort = config.get("Server", "dashboard_sort") - peer_display_mode = config.get("Peers", "peer_display_mode") - wg_ip = config.get("Peers", "remote_endpoint") - if "Address" not in config_interface: - conf_address = "N/A" - else: - conf_address = config_interface['Address'] - result['data'] = { - "peer_data": get_peers(config_name, search, sort), - "name": config_name, - "status": get_conf_status(config_name), - "total_data_usage": get_conf_total_data(config_name), - "public_key": get_conf_pub_key(config_name), - "listen_port": get_conf_listen_port(config_name), - "running_peer": get_conf_running_peer_number(config_name), - "conf_address": conf_address, - "wg_ip": wg_ip, - "sort_tag": sort, - "dashboard_refresh_interval": int(config.get("Server", "dashboard_refresh_interval")), - "peer_display_mode": peer_display_mode, - "lock_access_peers": getLockAccessPeers(config_name) - } - if result['data']['status'] == "stopped": - result['data']['checked'] = "nope" - else: - result['data']['checked'] = "checked" - config.clear() - else: - result['status'] = False - result['message'] = "I cannot find this configuration.
Please refresh and try again" - config.clear() - return jsonify(result) - - -# Turn on / off a configuration -@app.route('/switch/', methods=['GET']) -def switch(config_name): - """ - On/off the wireguard interface. - @param config_name: Name of WG interface - @type config_name: str - @return: redirects - """ - - status = get_conf_status(config_name) - if status == "running": - try: - check = subprocess.check_output("wg-quick down " + config_name, - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError as exc: - # session["switch_msg"] = exc.output.strip().decode("utf-8") - return jsonify({"status": False, "reason":"Can't stop configuration", "message": str(exc.output.strip().decode("utf-8"))}) - elif status == "stopped": - try: - subprocess.check_output("wg-quick up " + config_name, - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError as exc: - # session["switch_msg"] = exc.output.strip().decode("utf-8") - return jsonify({"status": False, "reason":"Can't turn on configuration", "message": str(exc.output.strip().decode("utf-8"))}) - return jsonify({"status": True, "reason":""}) - -@app.route('/add_peer_bulk/', methods=['POST']) -def add_peer_bulk(config_name): - """ - Add peers by bulk - @param config_name: Configuration Name - @return: String - """ - data = request.get_json() - keys = data['keys'] - endpoint_allowed_ip = data['endpoint_allowed_ip'] - dns_addresses = data['DNS'] - enable_preshared_key = data["enable_preshared_key"] - amount = data['amount'] - config_interface = read_conf_file_interface(config_name) - if "Address" not in config_interface: - return "Configuration must have an IP address." - if not amount.isdigit() or int(amount) < 1: - return "Amount must be integer larger than 0" - amount = int(amount) - if not check_DNS(dns_addresses): - return "DNS formate is incorrect. Example: 1.1.1.1" - if not check_Allowed_IPs(endpoint_allowed_ip): - return "Endpoint Allowed IPs format is incorrect." - if len(data['MTU']) == 0 or not data['MTU'].isdigit(): - return "MTU format is not correct." - if len(data['keep_alive']) == 0 or not data['keep_alive'].isdigit(): - return "Persistent Keepalive format is not correct." - ips = f_available_ips(config_name) - if amount > len(ips): - return f"Cannot create more than {len(ips)} peers." - wg_command = ["wg", "set", config_name] - sql_command = [] - for i in range(amount): - keys[i]['name'] = f"{config_name}_{datetime.now().strftime('%m%d%Y%H%M%S')}_Peer_#_{(i + 1)}" - wg_command.append("peer") - wg_command.append(keys[i]['publicKey']) - keys[i]['allowed_ips'] = ips.pop(0) - if enable_preshared_key: - keys[i]['psk_file'] = f"{keys[i]['name']}.txt" - f = open(keys[i]['psk_file'], "w+") - f.write(keys[i]['presharedKey']) - f.close() - wg_command.append("preshared-key") - wg_command.append(keys[i]['psk_file']) - else: - keys[i]['psk_file'] = "" - wg_command.append("allowed-ips") - wg_command.append(keys[i]['allowed_ips']) - update = ["UPDATE ", config_name, " SET name = '", keys[i]['name'], - "', private_key = '", keys[i]['privateKey'], "', DNS = '", dns_addresses, - "', endpoint_allowed_ip = '", endpoint_allowed_ip, "' WHERE id = '", keys[i]['publicKey'], "'"] - sql_command.append(update) - try: - status = subprocess.check_output(" ".join(wg_command), shell=True, stderr=subprocess.STDOUT) - status = subprocess.check_output("wg-quick save " + config_name, shell=True, stderr=subprocess.STDOUT) - get_all_peers_data(config_name) - if enable_preshared_key: - for i in keys: - os.remove(i['psk_file']) - for i in range(len(sql_command)): - sql_command[i] = "".join(sql_command[i]) - g.cur.executescript("; ".join(sql_command)) - return "true" - except subprocess.CalledProcessError as exc: - return exc.output.strip() - - -@app.route('/add_peer/', methods=['POST']) -def add_peer(config_name): - """ - Add Peers - @param config_name: configuration name - @return: string - """ - data = request.get_json() - public_key = data['public_key'] - allowed_ips = data['allowed_ips'] - endpoint_allowed_ip = data['endpoint_allowed_ip'] - dns_addresses = data['DNS'] - enable_preshared_key = data["enable_preshared_key"] - preshared_key = data['preshared_key'] - keys = get_conf_peer_key(config_name) - if len(public_key) == 0 or len(dns_addresses) == 0 or len(allowed_ips) == 0 or len(endpoint_allowed_ip) == 0: - return "Please fill in all required box." - if not isinstance(keys, list): - return config_name + " is not running." - if public_key in keys:d;lp - return "Public key already exist." - check_dup_ip = g.cur.execute( - "SELECT COUNT(*) FROM " + config_name + " WHERE allowed_ip LIKE '" + allowed_ips + "/%'", ) \ - .fetchone() - if check_dup_ip[0] != 0: - return "Allowed IP already taken by another peer." - if not check_DNS(dns_addresses): - return "DNS formate is incorrect. Example: 1.1.1.1" - if not check_Allowed_IPs(endpoint_allowed_ip): - return "Endpoint Allowed IPs format is incorrect." - if len(data['MTU']) == 0 or not data['MTU'].isdigit(): - return "MTU format is not correct." - if len(data['keep_alive']) == 0 or not data['keep_alive'].isdigit(): - return "Persistent Keepalive format is not correct." - try: - if enable_preshared_key: - now = str(datetime.now().strftime("%m%d%Y%H%M%S")) - f_name = now + "_tmp_psk.txt" - f = open(f_name, "w+") - f.write(preshared_key) - f.close() - status = subprocess.check_output( - f"wg set {config_name} peer {public_key} allowed-ips {allowed_ips} preshared-key {f_name}", - shell=True, stderr=subprocess.STDOUT) - os.remove(f_name) - elif not enable_preshared_key: - status = subprocess.check_output(f"wg set {config_name} peer {public_key} allowed-ips {allowed_ips}", - shell=True, stderr=subprocess.STDOUT) - status = subprocess.check_output("wg-quick save " + config_name, shell=True, stderr=subprocess.STDOUT) - get_all_peers_data(config_name) - sql = "UPDATE " + config_name + " SET name = ?, private_key = ?, DNS = ?, endpoint_allowed_ip = ? WHERE id = ?" - g.cur.execute(sql, (data['name'], data['private_key'], data['DNS'], endpoint_allowed_ip, public_key)) - return "true" - except subprocess.CalledProcessError as exc: - return exc.output.strip() - - -@app.route('/remove_peer/', methods=['POST']) -def remove_peer(config_name): - """ - Remove peer. - @param config_name: Name of WG interface - @type config_name: str - @return: Return result of action or recommendations - @rtype: str - """ - - if get_conf_status(config_name) == "stopped": - return "Your need to turn on " + config_name + " first." - data = request.get_json() - delete_keys = data['peer_ids'] - keys = get_conf_peer_key(config_name) - if not isinstance(keys, list): - return config_name + " is not running." - else: - return deletePeers(config_name, delete_keys, g.cur, g.db) - - -@app.route('/save_peer_setting/', methods=['POST']) -def save_peer_setting(config_name): - """ - Save peer configuration. - - @param config_name: Name of WG interface - @type config_name: str - @return: Return status of action and text with recommendations - """ - - data = request.get_json() - id = data['id'] - name = data['name'] - private_key = data['private_key'] - dns_addresses = data['DNS'] - allowed_ip = data['allowed_ip'] - endpoint_allowed_ip = data['endpoint_allowed_ip'] - preshared_key = data['preshared_key'] - check_peer_exist = g.cur.execute("SELECT COUNT(*) FROM " + config_name + " WHERE id = ?", (id,)).fetchone() - if check_peer_exist[0] == 1: - check_ip = check_repeat_allowed_ip(id, allowed_ip, config_name) - if not check_IP_with_range(endpoint_allowed_ip): - return jsonify({"status": "failed", "msg": "Endpoint Allowed IPs format is incorrect."}) - if not check_DNS(dns_addresses): - return jsonify({"status": "failed", "msg": "DNS format is incorrect."}) - if len(data['MTU']) == 0 or not data['MTU'].isdigit(): - return jsonify({"status": "failed", "msg": "MTU format is not correct."}) - if len(data['keep_alive']) == 0 or not data['keep_alive'].isdigit(): - return jsonify({"status": "failed", "msg": "Persistent Keepalive format is not correct."}) - if private_key != "": - check_key = f_check_key_match(private_key, id, config_name) - if check_key['status'] == "failed": - return jsonify(check_key) - if check_ip['status'] == "failed": - return jsonify(check_ip) - try: - tmp_psk = open("tmp_edit_psk.txt", "w+") - tmp_psk.write(preshared_key) - tmp_psk.close() - change_psk = subprocess.check_output(f"wg set {config_name} peer {id} preshared-key tmp_edit_psk.txt", - shell=True, stderr=subprocess.STDOUT) - if change_psk.decode("UTF-8") != "": - return jsonify({"status": "failed", "msg": change_psk.decode("UTF-8")}) - if allowed_ip == "": - allowed_ip = '""' - allowed_ip = allowed_ip.replace(" ", "") - change_ip = subprocess.check_output(f"wg set {config_name} peer {id} allowed-ips {allowed_ip}", - shell=True, stderr=subprocess.STDOUT) - subprocess.check_output(f'wg-quick save {config_name}', shell=True, stderr=subprocess.STDOUT) - if change_ip.decode("UTF-8") != "": - return jsonify({"status": "failed", "msg": change_ip.decode("UTF-8")}) - sql = "UPDATE " + config_name + " SET name = ?, private_key = ?, DNS = ?, endpoint_allowed_ip = ?, mtu = ?, keepalive = ?, preshared_key = ? WHERE id = ?" - g.cur.execute(sql, (name, private_key, dns_addresses, endpoint_allowed_ip, data["MTU"], - data["keep_alive"], preshared_key, id)) - return jsonify({"status": "success", "msg": ""}) - except subprocess.CalledProcessError as exc: - return jsonify({"status": "failed", "msg": str(exc.output.decode("UTF-8").strip())}) - else: - return jsonify({"status": "failed", "msg": "This peer does not exist."}) - - -# Get peer settings -@app.route('/get_peer_data/', methods=['POST']) -def get_peer_name(config_name): - """ - Get peer settings. - - @param config_name: Name of WG interface - @type config_name: str - @return: Return settings of peer - """ - - data = request.get_json() - peer_id = data['id'] - result = g.cur.execute( - "SELECT name, allowed_ip, DNS, private_key, endpoint_allowed_ip, mtu, keepalive, preshared_key FROM " - + config_name + " WHERE id = ?", (peer_id,)).fetchall() - data = {"name": result[0][0], "allowed_ip": result[0][1], "DNS": result[0][2], - "private_key": result[0][3], "endpoint_allowed_ip": result[0][4], - "mtu": result[0][5], "keep_alive": result[0][6], "preshared_key": result[0][7]} - return jsonify(data) - - -# Return available IPs -@app.route('/available_ips/', methods=['GET']) -def available_ips(config_name): - result = {"status": True, "message":"", "data": f_available_ips(config_name)} - if len(result["data"]) == 0: - result['status'] = False - result['message'] = f"No more available IP for {config_name}." - return jsonify(result) - - -# Check if both key match -@app.route('/check_key_match/', methods=['POST']) -def check_key_match(config_name): - """ - Check key matches - @param config_name: Name of WG interface - @type config_name: str - @return: Return dictionary with status - """ - - data = request.get_json() - private_key = data['private_key'] - public_key = data['public_key'] - return jsonify(f_check_key_match(private_key, public_key, config_name)) - - -@app.route("/qrcode/", methods=['GET']) -def generate_qrcode(config_name): - """ - Generate QRCode - @param config_name: Configuration Name - @return: Template containing QRcode img - """ - peer_id = request.args.get('id') - get_peer = g.cur.execute( - "SELECT private_key, allowed_ip, DNS, mtu, endpoint_allowed_ip, keepalive, preshared_key FROM " - + config_name + " WHERE id = ?", (peer_id,)).fetchall() - config = get_dashboard_conf() - if len(get_peer) == 1: - peer = get_peer[0] - if peer[0] != "": - public_key = get_conf_pub_key(config_name) - listen_port = get_conf_listen_port(config_name) - endpoint = config.get("Peers", "remote_endpoint") + ":" + listen_port - private_key = peer[0] - allowed_ip = peer[1] - dns_addresses = peer[2] - mtu_value = peer[3] - endpoint_allowed_ip = peer[4] - keepalive = peer[5] - preshared_key = peer[6] - - result = "[Interface]\nPrivateKey = " + private_key + "\nAddress = " + allowed_ip + "\nMTU = " \ - + str(mtu_value) + "\nDNS = " + dns_addresses + "\n\n[Peer]\nPublicKey = " + public_key \ - + "\nAllowedIPs = " + endpoint_allowed_ip + "\nPersistentKeepalive = " \ - + str(keepalive) + "\nEndpoint = " + endpoint - if preshared_key != "": - result += "\nPresharedKey = " + preshared_key - return render_template("qrcode.html", i=result) - else: - return redirect("/configuration/" + config_name) - - -@app.route('/download_all/', methods=['GET']) -def download_all(config_name): - """ - Download all configuration - @param config_name: Configuration Name - @return: JSON Object - """ - get_peer = g.cur.execute( - "SELECT private_key, allowed_ip, DNS, mtu, endpoint_allowed_ip, keepalive, preshared_key, name FROM " - + config_name + " WHERE private_key != ''").fetchall() - config = get_dashboard_conf() - data = [] - public_key = get_conf_pub_key(config_name) - listen_port = get_conf_listen_port(config_name) - endpoint = config.get("Peers", "remote_endpoint") + ":" + listen_port - for peer in get_peer: - private_key = peer[0] - allowed_ip = peer[1] - dns_addresses = peer[2] - mtu_value = peer[3] - endpoint_allowed_ip = peer[4] - keepalive = peer[5] - preshared_key = peer[6] - filename = peer[7] - if len(filename) == 0: - filename = "Untitled_Peer" - else: - filename = peer[7] - # Clean filename - illegal_filename = [".", ",", "/", "?", "<", ">", "\\", ":", "*", '|' '\"', "com1", "com2", "com3", - "com4", "com5", "com6", "com7", "com8", "com9", "lpt1", "lpt2", "lpt3", "lpt4", - "lpt5", "lpt6", "lpt7", "lpt8", "lpt9", "con", "nul", "prn"] - for i in illegal_filename: - filename = filename.replace(i, "") - if len(filename) == 0: - filename = "Untitled_Peer" - filename = "".join(filename.split(' ')) - filename = filename + "_" + config_name - psk = "" - if preshared_key != "": - psk = "\nPresharedKey = " + preshared_key - - return_data = "[Interface]\nPrivateKey = " + private_key + "\nAddress = " + allowed_ip + "\nDNS = " + \ - dns_addresses + "\nMTU = " + str(mtu_value) + "\n\n[Peer]\nPublicKey = " + \ - public_key + "\nAllowedIPs = " + endpoint_allowed_ip + "\nEndpoint = " + \ - endpoint + "\nPersistentKeepalive = " + str(keepalive) + psk - data.append({"filename": f"{filename}.conf", "content": return_data}) - return jsonify({"status": True, "peers": data, "filename": f"{config_name}.zip"}) - - -# Download configuration file -@app.route('/download/', methods=['GET']) -def download(config_name): - """ - Download one configuration - @param config_name: Configuration name - @return: JSON object - """ - peer_id = request.args.get('id') - get_peer = g.cur.execute( - "SELECT private_key, allowed_ip, DNS, mtu, endpoint_allowed_ip, keepalive, preshared_key, name FROM " - + config_name + " WHERE id = ?", (peer_id,)).fetchall() - config = get_dashboard_conf() - if len(get_peer) == 1: - peer = get_peer[0] - if peer[0] != "": - public_key = get_conf_pub_key(config_name) - listen_port = get_conf_listen_port(config_name) - endpoint = config.get("Peers", "remote_endpoint") + ":" + listen_port - private_key = peer[0] - allowed_ip = peer[1] - dns_addresses = peer[2] - mtu_value = peer[3] - endpoint_allowed_ip = peer[4] - keepalive = peer[5] - preshared_key = peer[6] - filename = peer[7] - if len(filename) == 0: - filename = "Untitled_Peer" - else: - filename = peer[7] - # Clean filename - illegal_filename = [".", ",", "/", "?", "<", ">", "\\", ":", "*", '|' '\"', "com1", "com2", "com3", - "com4", "com5", "com6", "com7", "com8", "com9", "lpt1", "lpt2", "lpt3", "lpt4", - "lpt5", "lpt6", "lpt7", "lpt8", "lpt9", "con", "nul", "prn"] - for i in illegal_filename: - filename = filename.replace(i, "") - if len(filename) == 0: - filename = "Untitled_Peer" - filename = "".join(filename.split(' ')) - filename = filename + "_" + config_name - psk = "" - if preshared_key != "": - psk = "\nPresharedKey = " + preshared_key - - return_data = "[Interface]\nPrivateKey = " + private_key + "\nAddress = " + allowed_ip + "\nDNS = " + \ - dns_addresses + "\nMTU = " + str(mtu_value) + "\n\n[Peer]\nPublicKey = " + \ - public_key + "\nAllowedIPs = " + endpoint_allowed_ip + "\nEndpoint = " + \ - endpoint + "\nPersistentKeepalive = " + str(keepalive) + psk - - return jsonify({"status": True, "filename": f"{filename}.conf", "content": return_data}) - return jsonify({"status": False, "filename": "", "content": ""}) - - -@app.route('/switch_display_mode/', methods=['GET']) -def switch_display_mode(mode): - """ - Change display view style. - - @param mode: Mode name - @type mode: str - @return: Return text with result - @rtype: str - """ - - if mode in ['list', 'grid']: - config = get_dashboard_conf() - config.set("Peers", "peer_display_mode", mode) - set_dashboard_conf(config) - config.clear() - return "true" - return "false" - - -# APIs -import api -# TODO: Add configuration prefix to all configuration API - -@app.route('/api/getPeerDataUsage', methods=['POST']) -def getPeerDataUsage(): - data = request.get_json() - returnData = {"status": True, "reason": ""} - required = ['peerID', 'config', 'interval'] - if checkJSONAllParameter(required, data): - returnData = api.managePeer.getPeerDataUsage(api.managePeer, data, g.cur) - else: - return jsonify(api.notEnoughParameter) - return jsonify(returnData) - -@app.route('/api/togglePeerAccess', methods=['POST']) -def togglePeerAccess(): - data = request.get_json() - returnData = {"status": True, "reason": ""} - required = ['peerID', 'config'] - if checkJSONAllParameter(required, data): - returnData = api.togglePeerAccess(data, g) - else: - return jsonify(api.notEnoughParameter) - return jsonify(returnData) - -@app.route('/api/addConfigurationAddressCheck', methods=['POST']) -def addConfigurationAddressCheck(): - data = request.get_json() - returnData = {"status": True, "reason": ""} - required = ['address'] - if checkJSONAllParameter(required, data): - returnData = api.manageConfiguration.AddressCheck(api.manageConfiguration, data) - else: - return jsonify(api.notEnoughParameter) - return jsonify(returnData) - -@app.route('/api/addConfigurationPortCheck', methods=['POST']) -def addConfigurationPortCheck(): - data = request.get_json() - returnData = {"status": True, "reason": ""} - required = ['port'] - if checkJSONAllParameter(required, data): - returnData = api.manageConfiguration.PortCheck(api.manageConfiguration, data, get_conf_list()) - else: - return jsonify(api.notEnoughParameter) - return jsonify(returnData) - -@app.route('/api/addConfigurationNameCheck', methods=['POST']) -def addConfigurationNameCheck(): - data = request.get_json() - returnData = {"status": True, "reason": ""} - required = ['name'] - if checkJSONAllParameter(required, data): - returnData = api.manageConfiguration.NameCheck(api.manageConfiguration, data, get_conf_list()) - else: - return jsonify(api.notEnoughParameter) - return jsonify(returnData) - -@app.route('/api/addConfiguration', methods=["POST"]) -def addConfiguration(): - data = request.get_json() - returnData = {"status": True, "reason": ""} - required = ['addConfigurationPrivateKey', 'addConfigurationName', 'addConfigurationListenPort', - 'addConfigurationAddress', 'addConfigurationPreUp', 'addConfigurationPreDown', - 'addConfigurationPostUp', 'addConfigurationPostDown'] - needFilled = ['addConfigurationPrivateKey', 'addConfigurationName', 'addConfigurationListenPort', - 'addConfigurationAddress'] - if not checkJSONAllParameter(needFilled, data): - return jsonify(api.notEnoughParameter) - for i in required: - if i not in data.keys(): - return jsonify(api.notEnoughParameter) - config = get_conf_list() - nameCheck = api.manageConfiguration.NameCheck(api.manageConfiguration, {"name": data['addConfigurationName']}, config) - if not nameCheck['status']: - return nameCheck - - portCheck = api.manageConfiguration.PortCheck(api.manageConfiguration, {"port": data['addConfigurationListenPort']}, config) - if not portCheck['status']: - return portCheck - - addressCheck = api.manageConfiguration.AddressCheck(api.manageConfiguration, {"address": data['addConfigurationAddress']}) - if not addressCheck['status']: - return addressCheck - - returnData = api.manageConfiguration.addConfiguration(api.manageConfiguration, data, config, WG_CONF_PATH) - return jsonify(returnData) - -@app.route('/api/saveConfiguration', methods=["POST"]) -def saveConfiguration(): - data = request.get_json() - required = ['configurationName', 'ListenPort'] - if not checkJSONAllParameter(required, data): - return jsonify(api.notEnoughParameter) - return api.manageConfiguration.saveConfiguration(api.manageConfiguration, data, WG_CONF_PATH, get_conf_list()) - -@app.route('/api/deleteConfiguration', methods=['POST']) -def deleteConfiguration(): - data = request.get_json() - required = ['name'] - if not checkJSONAllParameter(required, data): - return jsonify(api.notEnoughParameter) - returnData = api.manageConfiguration.deleteConfiguration(api.manageConfiguration, data, get_conf_list(), g, WG_CONF_PATH) - return returnData - -@app.route('/api/getConfigurationInfo', methods=['GET']) -def getConfigurationInfo(): - data = request.args.to_dict() - required = ['configName'] - if not checkJSONAllParameter(required, data): - return jsonify(api.notEnoughParameter) - else: - return api.manageConfiguration.getConfigurationInfo(api.manageConfiguration, data['configName'], WG_CONF_PATH) - -@app.route('/api/settings/setTheme', methods=['POST']) -def setTheme(): - data = request.get_json() - required = ['theme'] - if not checkJSONAllParameter(required, data): - return jsonify(api.notEnoughParameter) - else: - return api.settings.setTheme(api.settings, data['theme'], get_dashboard_conf(), set_dashboard_conf) - - - - -""" -Dashboard Tools Related -""" - - -# Get all IP for ping -@app.route('/get_ping_ip', methods=['POST']) -def get_ping_ip(): - # TODO: convert return to json object - - """ - Get ips for network testing. - @return: HTML containing a list of IPs - """ - - config = request.form['config'] - peers = g.cur.execute("SELECT id, name, allowed_ip, endpoint FROM " + config).fetchall() - html = "" - for i in peers: - html += '' - allowed_ip = str(i[2]).split(",") - for k in allowed_ip: - k = k.split("/") - if len(k) == 2: - html += "" - endpoint = str(i[3]).split(":") - if len(endpoint) == 2: - html += "" - html += "" - return html - - -# Ping IP -@app.route('/ping_ip', methods=['POST']) -def ping_ip(): - """ - Execute ping command. - @return: Return text with result - @rtype: str - """ - - try: - result = ping('' + request.form['ip'] + '', count=int(request.form['count']), privileged=True, source=None) - returnjson = { - "address": result.address, - "is_alive": result.is_alive, - "min_rtt": result.min_rtt, - "avg_rtt": result.avg_rtt, - "max_rtt": result.max_rtt, - "package_sent": result.packets_sent, - "package_received": result.packets_received, - "package_loss": result.packet_loss - } - if returnjson['package_loss'] == 1.0: - returnjson['package_loss'] = returnjson['package_sent'] - return jsonify(returnjson) - except Exception: - return "Error" - - -# Traceroute IP -@app.route('/traceroute_ip', methods=['POST']) -def traceroute_ip(): - """ - Execute ping traceroute command. - - @return: Return text with result - @rtype: str - """ - - try: - result = traceroute('' + request.form['ip'] + '', first_hop=1, max_hops=30, count=1, fast=True) - returnjson = [] - last_distance = 0 - for hop in result: - if last_distance + 1 != hop.distance: - returnjson.append({"hop": "*", "ip": "*", "avg_rtt": "", "min_rtt": "", "max_rtt": ""}) - returnjson.append({"hop": hop.distance, "ip": hop.address, "avg_rtt": hop.avg_rtt, "min_rtt": hop.min_rtt, - "max_rtt": hop.max_rtt}) - last_distance = hop.distance - return jsonify(returnjson) - except Exception: - return "Error" - -### NEW API ROUTES - -@app.route('/api/authenticate', methods=['POST']) -def api_auth(): - """ - Authentication request - @return: json object indicating verifying - """ - data = request.get_json() - config = get_dashboard_conf() - password = hashlib.sha256(data['password'].encode()) - if password.hexdigest() == config["Account"]["password"] \ - and data['username'] == config["Account"]["username"]: - session['username'] = data['username'] - resp = jsonify(ResponseObject(True)) - resp.set_cookie("authToken", hashlib.sha256(f"{data['username']}{datetime.now()}".encode()).hexdigest()) - session.permanent = True - config.clear() - return resp - - config.clear() - return jsonify(ResponseObject(False, "Username or password in incorrect.")) - - -def ResponseObject(status = True, message = None, data = None) -> dict: - return { - "status": status, - "message": message, - "data": data - } - - -import atexit -@atexit.register -def goodbye(): - global stop_thread - global bgThread - stop_thread = True - - print("Stopping background thread") - -def get_all_transfer_thread(): - print("waiting 15 sec ") - time.sleep(7) - global stop_thread - # with app1.app_context(): - try: - db = connect_db() - cur = db.cursor() +def backGroundThread(): + with app.app_context(): + print("Waiting 5 sec") + time.sleep(5) while True: - print(stop_thread) - # if stop_thread: - # break - conf = [] - for i in os.listdir(WG_CONF_PATH): - if regex_match("^(.{1,}).(conf)$", i): - i = i.replace('.conf', '') - create_table = f""" - CREATE TABLE IF NOT EXISTS {i} ( - id VARCHAR NOT NULL, private_key VARCHAR NULL, DNS VARCHAR NULL, - endpoint_allowed_ip VARCHAR NULL, name VARCHAR NULL, total_receive FLOAT NULL, - total_sent FLOAT NULL, total_data FLOAT NULL, endpoint VARCHAR NULL, - status VARCHAR NULL, latest_handshake VARCHAR NULL, allowed_ip VARCHAR NULL, - cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, mtu INT NULL, - keepalive INT NULL, remote_endpoint VARCHAR NULL, preshared_key VARCHAR NULL, - PRIMARY KEY (id) - ) - """ - cur.execute(create_table) - create_table = f""" - CREATE TABLE IF NOT EXISTS {i}_restrict_access ( - id VARCHAR NOT NULL, private_key VARCHAR NULL, DNS VARCHAR NULL, - endpoint_allowed_ip VARCHAR NULL, name VARCHAR NULL, total_receive FLOAT NULL, - total_sent FLOAT NULL, total_data FLOAT NULL, endpoint VARCHAR NULL, - status VARCHAR NULL, latest_handshake VARCHAR NULL, allowed_ip VARCHAR NULL, - cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, mtu INT NULL, - keepalive INT NULL, remote_endpoint VARCHAR NULL, preshared_key VARCHAR NULL, - PRIMARY KEY (id) - ) - """ - cur.execute(create_table) - create_table = f""" - CREATE TABLE IF NOT EXISTS {i}_transfer ( - id VARCHAR NOT NULL, total_receive FLOAT NULL, - total_sent FLOAT NULL, total_data FLOAT NULL, - cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, time DATETIME - ) - """ - cur.execute(create_table) - db.commit() - temp = {"conf": i, "status": get_conf_status(i), "public_key": get_conf_pub_key(i), "port": get_conf_listen_port(i)} - if temp['status'] == "running": - temp['checked'] = 'checked' - else: - temp['checked'] = "" - conf.append(temp) - if len(conf) > 0: - conf = sorted(conf, key=itemgetter('conf')) - for i in conf: - print(i['conf']) - config_name = i['conf'] - try: - data_usage = subprocess.check_output(f"wg show {config_name} transfer", - shell=True, stderr=subprocess.STDOUT) - data_usage = data_usage.decode("UTF-8").split("\n") - final = [] - for i in data_usage: - final.append(i.split("\t")) - data_usage = final - for i in range(len(data_usage)): - cur_i = cur.execute( - "SELECT total_receive, total_sent, cumu_receive, cumu_sent, status FROM %s WHERE id='%s'" - % (config_name, data_usage[i][0])).fetchall() - if len(cur_i) > 0: - total_sent = cur_i[0][1] - total_receive = cur_i[0][0] - cur_total_sent = round(int(data_usage[i][2]) / (1024 ** 3), 4) - cur_total_receive = round(int(data_usage[i][1]) / (1024 ** 3), 4) - cumulative_receive = cur_i[0][2] + total_receive - cumulative_sent = cur_i[0][3] + total_sent - if total_sent <= cur_total_sent and total_receive <= cur_total_receive: - total_sent = cur_total_sent - total_receive = cur_total_receive - else: - cur.execute("UPDATE %s SET cumu_receive = %f, cumu_sent = %f, cumu_data = %f WHERE id = '%s'" % - (config_name, round(cumulative_receive, 4), round(cumulative_sent, 4), - round(cumulative_sent + cumulative_receive, 4), data_usage[i][0])) - total_sent = 0 - total_receive = 0 - cur.execute("UPDATE %s SET total_receive = %f, total_sent = %f, total_data = %f WHERE id = '%s'" % - (config_name, round(total_receive, 4), round(total_sent, 4), - round(total_receive + total_sent, 4), data_usage[i][0])) - now = datetime.now() - now_string = now.strftime("%d/%m/%Y %H:%M:%S") - cur.execute(f''' - INSERT INTO {config_name}_transfer (id, total_receive, total_sent, total_data, cumu_receive, cumu_sent, cumu_data, time) - VALUES ('{data_usage[i][0]}', {round(total_receive, 4)}, {round(total_sent, 4)}, {round(total_receive + total_sent, 4)},{round(cumulative_receive, 4)}, {round(cumulative_sent, 4)}, - {round(cumulative_sent + cumulative_receive, 4)}, '{now_string}') - ''') - db.commit() - except subprocess.CalledProcessError: - pass - time.sleep(30) - except KeyboardInterrupt: - return True -""" -Dashboard Initialization -""" - + for c in WireguardConfigurations.values(): + if c.getStatus(): + try: + c.getPeersTransfer() + c.getPeersLatestHandshake() + c.getPeersEndpoint() + except Exception as e: + print("Error: " + str(e)) + time.sleep(10) -def init_dashboard(): - """ - Create dashboard default configuration. - """ - # Set Default INI File - if not os.path.isfile(DASHBOARD_CONF): - open(DASHBOARD_CONF, "w+").close() - config = get_dashboard_conf() - # Default dashboard account setting - if "Account" not in config: - config['Account'] = {} - if "username" not in config['Account']: - config['Account']['username'] = 'admin' - if "password" not in config['Account']: - config['Account']['password'] = '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918' - # Default dashboard server setting - if "Server" not in config: - config['Server'] = {} - if 'wg_conf_path' not in config['Server']: - config['Server']['wg_conf_path'] = '/etc/wireguard' - if 'app_ip' not in config['Server']: - config['Server']['app_ip'] = '0.0.0.0' - if 'app_port' not in config['Server']: - config['Server']['app_port'] = '10086' - if 'auth_req' not in config['Server']: - config['Server']['auth_req'] = 'true' - if 'version' not in config['Server'] or config['Server']['version'] != DASHBOARD_VERSION: - config['Server']['version'] = DASHBOARD_VERSION - if 'dashboard_refresh_interval' not in config['Server']: - config['Server']['dashboard_refresh_interval'] = '60000' - if 'dashboard_sort' not in config['Server']: - config['Server']['dashboard_sort'] = 'status' - if 'dashboard_theme' not in config['Server']: - config['Server']['dashboard_theme'] = 'light' - # Default dashboard peers setting - if "Peers" not in config: - config['Peers'] = {} - if 'peer_global_DNS' not in config['Peers']: - config['Peers']['peer_global_DNS'] = '1.1.1.1' - if 'peer_endpoint_allowed_ip' not in config['Peers']: - config['Peers']['peer_endpoint_allowed_ip'] = '0.0.0.0/0' - if 'peer_display_mode' not in config['Peers']: - config['Peers']['peer_display_mode'] = 'grid' - if 'remote_endpoint' not in config['Peers']: - config['Peers']['remote_endpoint'] = ifcfg.default_interface()['inet'] - if 'peer_MTU' not in config['Peers']: - config['Peers']['peer_MTU'] = "1420" - if 'peer_keep_alive' not in config['Peers']: - config['Peers']['peer_keep_alive'] = "21" - set_dashboard_conf(config) - config.clear() - - -def check_update(): - """ - Dashboard check update - - @return: Retunt text with result - @rtype: str - """ - config = get_dashboard_conf() - try: - data = urllib.request.urlopen("https://api.github.com/repos/donaldzou/WGDashboard/releases").read() - output = json.loads(data) - release = [] - for i in output: - if not i["prerelease"]: - release.append(i) - global updateInfo - updateInfo = i - break - if config.get("Server", "version") == release[0]["tag_name"]: - result = "false" - else: - result = "true" - return result - except urllib.error.HTTPError: - return "false" - - -""" -Configure DashBoard before start web-server -""" - - -def run_dashboard(): - init_dashboard() - global UPDATE - UPDATE = check_update() - config = configparser.ConfigParser(strict=False) - config.read('wg-dashboard.ini') - # global app_ip - app_ip = config.get("Server", "app_ip") - # global app_port - app_port = config.get("Server", "app_port") - global WG_CONF_PATH - WG_CONF_PATH = config.get("Server", "wg_conf_path") - config.clear() - x = threading.Thread(target=get_all_transfer_thread) - x.start() - return app - - -""" -Get host and port for web-server -""" -def get_host_bind(): - init_dashboard() - config = configparser.ConfigParser(strict=False) - config.read('wg-dashboard.ini') - app_ip = config.get("Server", "app_ip") - app_port = config.get("Server", "app_port") - return app_ip, app_port if __name__ == "__main__": - init_dashboard() - UPDATE = check_update() - config = configparser.ConfigParser(strict=False) - config.read('wg-dashboard.ini') - # global app_ip - app_ip = config.get("Server", "app_ip") - # global app_port - app_port = config.get("Server", "app_port") - WG_CONF_PATH = config.get("Server", "wg_conf_path") - config.clear() - global bgThread - global stop_thread - stop_thread = False - bgThread = threading.Thread(target=get_all_transfer_thread) + sqldb = sqlite3.connect(os.path.join(CONFIGURATION_PATH, 'db', 'wgdashboard.db'), check_same_thread=False) + sqldb.row_factory = sqlite3.Row + cursor = sqldb.cursor() + _, app_ip = DashboardConfig.GetConfig("Server", "app_ip") + _, app_port = DashboardConfig.GetConfig("Server", "app_port") + _, WG_CONF_PATH = DashboardConfig.GetConfig("Server", "wg_conf_path") + WireguardConfigurations = _getConfigurationList() + bgThread = threading.Thread(target=backGroundThread) bgThread.daemon = True bgThread.start() - app.run(host=app_ip, debug=False, port=app_port) \ No newline at end of file + app.run(host=app_ip, debug=True, port=app_port) diff --git a/src/dashboard_new.py b/src/dashboard_new.py deleted file mode 100644 index 37596cf..0000000 --- a/src/dashboard_new.py +++ /dev/null @@ -1,1557 +0,0 @@ -import itertools -import random -import sqlite3 -import configparser -import hashlib -import ipaddress -import json -# Python Built-in Library -import os -import secrets -import subprocess -import time -import re -import urllib.parse -import urllib.request -import urllib.error -import uuid -from dataclasses import dataclass -from datetime import datetime, timedelta -from json import JSONEncoder -from operator import itemgetter -from typing import Dict, Any, Tuple - -import bcrypt -# PIP installed library -import ifcfg -import psutil -import pyotp -from flask import Flask, request, render_template, redirect, url_for, session, jsonify, g -from flask.json.provider import JSONProvider -from json import JSONEncoder - -from icmplib import ping, traceroute - -# Import other python files -import threading - -from flask.json.provider import DefaultJSONProvider - -DASHBOARD_VERSION = 'v4.0' -CONFIGURATION_PATH = os.getenv('CONFIGURATION_PATH', '.') -DB_PATH = os.path.join(CONFIGURATION_PATH, 'db') -if not os.path.isdir(DB_PATH): - os.mkdir(DB_PATH) -DASHBOARD_CONF = os.path.join(CONFIGURATION_PATH, 'wg-dashboard.ini') - -# WireGuard's configuration path -WG_CONF_PATH = None -# Dashboard Config Name -# Upgrade Required -UPDATE = None -# Flask App Configuration -app = Flask("WGDashboard") -app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 5206928 -app.secret_key = secrets.token_urlsafe(32) - - -class ModelEncoder(JSONEncoder): - def default(self, o: Any) -> Any: - if hasattr(o, 'toJson'): - return o.toJson() - else: - return super(ModelEncoder, self).default(o) - - -''' -Classes -''' - - -def ResponseObject(status=True, message=None, data=None) -> Flask.response_class: - response = Flask.make_response(app, { - "status": status, - "message": message, - "data": data - }) - response.content_type = "application/json" - return response - - -class CustomJsonEncoder(DefaultJSONProvider): - def __init__(self, app): - super().__init__(app) - - def default(self, o): - if isinstance(o, WireguardConfiguration) or isinstance(o, Peer): - return o.toJson() - return super().default(self, o) - - -app.json = CustomJsonEncoder(app) - - -class PeerJob: - def __init__(self, JobID: str, Configuration: str, Peer: str, - Field: str, Operator: str, Value: str, CreationDate: datetime, ExpireDate: datetime, Action: str): - self.Action = Action - self.ExpireDate = ExpireDate - self.CreationDate = CreationDate - self.Value = Value - self.Operator = Operator - self.Field = Field - self.Configuration = Configuration - self.Peer = Peer - self.JobID = JobID - - def toJson(self): - return { - "JobID": self.JobID, - "Configuration": self.Configuration, - "Peer": self.Peer, - "Field": self.Field, - "Operator": self.Operator, - "Value": self.Value, - "CreationDate": self.CreationDate.strftime("%Y-%m-%d %H:%M:%S"), - "ExpireDate": self.ExpireDate.strftime("%Y-%m-%d %H:%M:%S"), - "Action": self.Action - } - - -class PeerJobs: - - def __init__(self): - self.Jobs: list[PeerJob] = [] - - def __getJobs(self): - jobs = jobdbCursor.execute("SELECT * FROM PeerJobs WHERE CURRENT_DATE < ExpireDate").fetchall() - for job in jobs: - self.Jobs.append(PeerJob( - job['JobID'], job['Configuration'], job['Peer'], job['Field'], job['Operator'], job['Value'], - job['CreationDate'], job['ExpireDate'], job['Action'])) - - def toJson(self): - return [x.toJson() for x in self.Jobs] - - def searchJob(self, Configuration: str, Peer: str): - return list(filter(lambda x: x.Configuration == Configuration and x.Peer == Peer, self.Jobs)) - - -class WireguardConfiguration: - class InvalidConfigurationFileException(Exception): - def __init__(self, m): - self.message = m - - def __str__(self): - return self.message - - def __init__(self, name: str = None, data: dict = None): - self.__parser: configparser.ConfigParser = configparser.ConfigParser(strict=False) - self.__parser.optionxform = str - - self.Status: bool = False - self.Name: str = "" - self.PrivateKey: str = "" - self.PublicKey: str = "" - self.ListenPort: str = "" - self.Address: str = "" - self.DNS: str = "" - self.Table: str = "" - self.MTU: str = "" - self.PreUp: str = "" - self.PostUp: str = "" - self.PreDown: str = "" - self.PostDown: str = "" - self.SaveConfig: bool = True - - if name is not None: - self.Name = name - self.__parser.read_file(open(os.path.join(WG_CONF_PATH, f'{self.Name}.conf'))) - sections = self.__parser.sections() - if "Interface" not in sections: - raise self.InvalidConfigurationFileException( - "[Interface] section not found in " + os.path.join(WG_CONF_PATH, f'{self.Name}.conf')) - interfaceConfig = dict(self.__parser.items("Interface", True)) - for i in dir(self): - if str(i) in interfaceConfig.keys(): - if isinstance(getattr(self, i), bool): - setattr(self, i, _strToBool(interfaceConfig[i])) - else: - setattr(self, i, interfaceConfig[i]) - - if self.PrivateKey: - self.PublicKey = self.__getPublicKey() - - self.Status = self.getStatus() - - else: - self.Name = data["ConfigurationName"] - for i in dir(self): - if str(i) in data.keys(): - if isinstance(getattr(self, i), bool): - setattr(self, i, _strToBool(data[i])) - else: - setattr(self, i, str(data[i])) - - # self.__createDatabase() - self.__parser["Interface"] = { - "PrivateKey": self.PrivateKey, - "Address": self.Address, - "ListenPort": self.ListenPort, - "PreUp": self.PreUp, - "PreDown": self.PreDown, - "PostUp": self.PostUp, - "PostDown": self.PostDown, - "SaveConfig": "true" - } - - with open(os.path.join(DashboardConfig.GetConfig("Server", "wg_conf_path")[1], - f"{self.Name}.conf"), "w+") as configFile: - # print(self.__parser.sections()) - self.__parser.write(configFile) - - self.Peers: list[Peer] = [] - - # Create tables in database - self.__createDatabase() - self.getPeersList() - - def __createDatabase(self): - existingTables = cursor.execute("SELECT name FROM sqlite_master WHERE type='table'").fetchall() - existingTables = [t['name'] for t in existingTables] - if self.Name not in existingTables: - cursor.execute( - """ - CREATE TABLE %s ( - id VARCHAR NOT NULL, private_key VARCHAR NULL, DNS VARCHAR NULL, - endpoint_allowed_ip VARCHAR NULL, name VARCHAR NULL, total_receive FLOAT NULL, - total_sent FLOAT NULL, total_data FLOAT NULL, endpoint VARCHAR NULL, - status VARCHAR NULL, latest_handshake VARCHAR NULL, allowed_ip VARCHAR NULL, - cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, mtu INT NULL, - keepalive INT NULL, remote_endpoint VARCHAR NULL, preshared_key VARCHAR NULL, - PRIMARY KEY (id) - ) - """ % self.Name - ) - sqldb.commit() - - if f'{self.Name}_restrict_access' not in existingTables: - cursor.execute( - """ - CREATE TABLE %s_restrict_access ( - id VARCHAR NOT NULL, private_key VARCHAR NULL, DNS VARCHAR NULL, - endpoint_allowed_ip VARCHAR NULL, name VARCHAR NULL, total_receive FLOAT NULL, - total_sent FLOAT NULL, total_data FLOAT NULL, endpoint VARCHAR NULL, - status VARCHAR NULL, latest_handshake VARCHAR NULL, allowed_ip VARCHAR NULL, - cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, mtu INT NULL, - keepalive INT NULL, remote_endpoint VARCHAR NULL, preshared_key VARCHAR NULL, - PRIMARY KEY (id) - ) - """ % self.Name - ) - sqldb.commit() - if f'{self.Name}_transfer' not in existingTables: - cursor.execute( - """ - CREATE TABLE %s_transfer ( - id VARCHAR NOT NULL, total_receive FLOAT NULL, - total_sent FLOAT NULL, total_data FLOAT NULL, - cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, time DATETIME - ) - """ % self.Name - ) - sqldb.commit() - if f'{self.Name}_deleted' not in existingTables: - cursor.execute( - """ - CREATE TABLE %s_deleted ( - id VARCHAR NOT NULL, private_key VARCHAR NULL, DNS VARCHAR NULL, - endpoint_allowed_ip VARCHAR NULL, name VARCHAR NULL, total_receive FLOAT NULL, - total_sent FLOAT NULL, total_data FLOAT NULL, endpoint VARCHAR NULL, - status VARCHAR NULL, latest_handshake VARCHAR NULL, allowed_ip VARCHAR NULL, - cumu_receive FLOAT NULL, cumu_sent FLOAT NULL, cumu_data FLOAT NULL, mtu INT NULL, - keepalive INT NULL, remote_endpoint VARCHAR NULL, preshared_key VARCHAR NULL, - PRIMARY KEY (id) - ) - """ % self.Name - ) - sqldb.commit() - - def __getPublicKey(self) -> str: - return _generatePublicKey(self.PrivateKey)[1] - - def getStatus(self) -> bool: - self.Status = self.Name in psutil.net_if_addrs().keys() - return self.Status - - def __getRestrictedPeers(self): - self.RestrictedPeers = [] - restricted = cursor.execute("SELECT * FROM %s_restrict_access" % self.Name).fetchall() - for i in restricted: - self.RestrictedPeers.append(Peer(i, self)) - - def __getPeers(self): - self.Peers = [] - with open(os.path.join(WG_CONF_PATH, f'{self.Name}.conf'), 'r') as configFile: - p = [] - pCounter = -1 - content = configFile.read().split('\n') - try: - peerStarts = content.index("[Peer]") - content = content[peerStarts:] - for i in content: - if not regex_match("#(.*)", i) and not regex_match(";(.*)", i): - if i == "[Peer]": - pCounter += 1 - p.append({}) - else: - if len(i) > 0: - split = re.split(r'\s*=\s*', i, 1) - if len(split) == 2: - p[pCounter][split[0]] = split[1] - for i in p: - if "PublicKey" in i.keys(): - checkIfExist = cursor.execute("SELECT * FROM %s WHERE id = ?" % self.Name, - ((i['PublicKey']),)).fetchone() - if checkIfExist is None: - newPeer = { - "id": i['PublicKey'], - "private_key": "", - "DNS": DashboardConfig.GetConfig("Peers", "peer_global_DNS")[1], - "endpoint_allowed_ip": DashboardConfig.GetConfig("Peers", "peer_endpoint_allowed_ip")[ - 1], - "name": "", - "total_receive": 0, - "total_sent": 0, - "total_data": 0, - "endpoint": "N/A", - "status": "stopped", - "latest_handshake": "N/A", - "allowed_ip": i.get("AllowedIPs", "N/A"), - "cumu_receive": 0, - "cumu_sent": 0, - "cumu_data": 0, - "traffic": [], - "mtu": DashboardConfig.GetConfig("Peers", "peer_mtu")[1], - "keepalive": DashboardConfig.GetConfig("Peers", "peer_keep_alive")[1], - "remote_endpoint": DashboardConfig.GetConfig("Peers", "remote_endpoint")[1], - "preshared_key": i["PresharedKey"] if "PresharedKey" in i.keys() else "" - } - cursor.execute( - """ - INSERT INTO %s - VALUES (:id, :private_key, :DNS, :endpoint_allowed_ip, :name, :total_receive, :total_sent, - :total_data, :endpoint, :status, :latest_handshake, :allowed_ip, :cumu_receive, :cumu_sent, - :cumu_data, :mtu, :keepalive, :remote_endpoint, :preshared_key); - """ % self.Name - , newPeer) - sqldb.commit() - self.Peers.append(Peer(newPeer, self)) - else: - cursor.execute("UPDATE %s SET allowed_ip = ? WHERE id = ?" % self.Name, - (i.get("AllowedIPs", "N/A"), i['PublicKey'],)) - sqldb.commit() - self.Peers.append(Peer(checkIfExist, self)) - except ValueError: - pass - - def searchPeer(self, publicKey): - for i in self.Peers: - if i.id == publicKey: - return True, i - return False, None - - def allowAccessPeers(self, listOfPublicKeys): - # numOfAllowedPeers = 0 - # numOfFailedToAllowPeers = 0 - for i in listOfPublicKeys: - p = cursor.execute("SELECT * FROM %s_restrict_access WHERE id = ?" % self.Name, (i,)).fetchone() - if p is not None: - cursor.execute("INSERT INTO %s SELECT * FROM %s_restrict_access WHERE id = ?" - % (self.Name, self.Name,), (p['id'],)) - cursor.execute("DELETE FROM %s_restrict_access WHERE id = ?" - % self.Name, (p['id'],)) - subprocess.check_output(f"wg set {self.Name} peer {p['id']} allowed-ips {p['allowed_ip']}", - shell=True, stderr=subprocess.STDOUT) - else: - return ResponseObject(False, "Failed to allow access of peer " + i) - if not self.__wgSave(): - return ResponseObject(False, "Failed to save configuration through WireGuard") - - self.__getPeers() - return ResponseObject(True, "Allow access successfully!") - - def restrictPeers(self, listOfPublicKeys): - numOfRestrictedPeers = 0 - numOfFailedToRestrictPeers = 0 - for p in listOfPublicKeys: - found, pf = self.searchPeer(p) - if found: - try: - subprocess.check_output(f"wg set {self.Name} peer {pf.id} remove", - shell=True, stderr=subprocess.STDOUT) - cursor.execute("INSERT INTO %s_restrict_access SELECT * FROM %s WHERE id = ?" % - (self.Name, self.Name,), (pf.id,)) - cursor.execute("UPDATE %s_restrict_access SET status = 'stopped' WHERE id = ?" % - (self.Name,), (pf.id,)) - cursor.execute("DELETE FROM %s WHERE id = ?" % self.Name, (pf.id,)) - numOfRestrictedPeers += 1 - except Exception as e: - numOfFailedToRestrictPeers += 1 - - if not self.__wgSave(): - return ResponseObject(False, "Failed to save configuration through WireGuard") - - self.__getPeers() - - if numOfRestrictedPeers == len(listOfPublicKeys): - return ResponseObject(True, f"Restricted {numOfRestrictedPeers} peer(s)") - return ResponseObject(False, - f"Restricted {numOfRestrictedPeers} peer(s) successfully. Failed to restrict {numOfFailedToRestrictPeers} peer(s)") - pass - - def deletePeers(self, listOfPublicKeys): - numOfDeletedPeers = 0 - numOfFailedToDeletePeers = 0 - for p in listOfPublicKeys: - found, pf = self.searchPeer(p) - if found: - try: - subprocess.check_output(f"wg set {self.Name} peer {pf.id} remove", - shell=True, stderr=subprocess.STDOUT) - cursor.execute("DELETE FROM %s WHERE id = ?" % self.Name, (pf.id,)) - numOfDeletedPeers += 1 - except Exception as e: - numOfFailedToDeletePeers += 1 - - if not self.__wgSave(): - return ResponseObject(False, "Failed to save configuration through WireGuard") - - self.__getPeers() - - if numOfDeletedPeers == len(listOfPublicKeys): - return ResponseObject(True, f"Deleted {numOfDeletedPeers} peer(s)") - return ResponseObject(False, - f"Deleted {numOfDeletedPeers} peer(s) successfully. Failed to delete {numOfFailedToDeletePeers} peer(s)") - - def __savePeers(self): - for i in self.Peers: - d = i.toJson() - sqldb.execute( - ''' - UPDATE %s SET private_key = :private_key, - DNS = :DNS, endpoint_allowed_ip = :endpoint_allowed_ip, name = :name, - total_receive = :total_receive, total_sent = :total_sent, total_data = :total_data, - endpoint = :endpoint, status = :status, latest_handshake = :latest_handshake, - allowed_ip = :allowed_ip, cumu_receive = :cumu_receive, cumu_sent = :cumu_sent, - cumu_data = :cumu_data, mtu = :mtu, keepalive = :keepalive, - remote_endpoint = :remote_endpoint, preshared_key = :preshared_key WHERE id = :id - ''' % self.Name, d - ) - sqldb.commit() - - def __wgSave(self) -> tuple[bool, str] | tuple[bool, None]: - try: - subprocess.check_output(f"wg-quick save {self.Name}", shell=True, stderr=subprocess.STDOUT) - return True, None - except subprocess.CalledProcessError as e: - return False, str(e) - - def getPeersLatestHandshake(self): - try: - latestHandshake = subprocess.check_output(f"wg show {self.Name} latest-handshakes", - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError: - return "stopped" - latestHandshake = latestHandshake.decode("UTF-8").split() - count = 0 - now = datetime.now() - time_delta = timedelta(minutes=2) - for _ in range(int(len(latestHandshake) / 2)): - minus = now - datetime.fromtimestamp(int(latestHandshake[count + 1])) - if minus < time_delta: - status = "running" - else: - status = "stopped" - if int(latestHandshake[count + 1]) > 0: - sqldb.execute("UPDATE %s SET latest_handshake = ?, status = ? WHERE id= ?" % self.Name - , (str(minus).split(".", maxsplit=1)[0], status, latestHandshake[count],)) - else: - sqldb.execute("UPDATE %s SET latest_handshake = 'No Handshake', status = ? WHERE id= ?" % self.Name - , (status, latestHandshake[count],)) - sqldb.commit() - count += 2 - - def getPeersTransfer(self): - try: - data_usage = subprocess.check_output(f"wg show {self.Name} transfer", - shell=True, stderr=subprocess.STDOUT) - data_usage = data_usage.decode("UTF-8").split("\n") - data_usage = [p.split("\t") for p in data_usage] - for i in range(len(data_usage)): - if len(data_usage[i]) == 3: - cur_i = cursor.execute( - "SELECT total_receive, total_sent, cumu_receive, cumu_sent, status FROM %s WHERE id= ? " - % self.Name, (data_usage[i][0],)).fetchone() - if cur_i is not None: - total_sent = cur_i['total_sent'] - total_receive = cur_i['total_receive'] - cur_total_sent = round(int(data_usage[i][2]) / (1024 ** 3), 4) - cur_total_receive = round(int(data_usage[i][1]) / (1024 ** 3), 4) - cumulative_receive = cur_i['cumu_receive'] + total_receive - cumulative_sent = cur_i['cumu_sent'] + total_sent - if total_sent <= cur_total_sent and total_receive <= cur_total_receive: - total_sent = cur_total_sent - total_receive = cur_total_receive - else: - cursor.execute( - "UPDATE %s SET cumu_receive = ?, cumu_sent = ?, cumu_data = ? WHERE id = ?" % - self.Name, (round(cumulative_receive, 4), round(cumulative_sent, 4), - round(cumulative_sent + cumulative_receive, 4), - data_usage[i][0],)) - total_sent = 0 - total_receive = 0 - - _, p = self.searchPeer(data_usage[i][0]) - if p.total_receive != round(total_receive, 4) or p.total_sent != round(total_sent, 4): - cursor.execute( - "UPDATE %s SET total_receive = ?, total_sent = ?, total_data = ? WHERE id = ?" - % self.Name, (round(total_receive, 4), round(total_sent, 4), - round(total_receive + total_sent, 4), data_usage[i][0],)) - now = datetime.now() - now_string = now.strftime("%d/%m/%Y %H:%M:%S") - # cursor.execute(f''' - # INSERT INTO %s_transfer - # (id, total_receive, total_sent, total_data, - # cumu_receive, cumu_sent, cumu_data, time) - # VALUES (?, ?, ?, ?, ?, ?, ?, ?) - # ''' % self.Name, (data_usage[i][0], round(total_receive, 4), round(total_sent, 4), - # round(total_receive + total_sent, 4), round(cumulative_receive, 4), - # round(cumulative_sent, 4), - # round(cumulative_sent + cumulative_receive, 4), now_string,)) - # sqldb.commit() - except Exception as e: - print("Error" + str(e)) - - def getPeersEndpoint(self): - try: - data_usage = subprocess.check_output(f"wg show {self.Name} endpoints", - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError: - return "stopped" - data_usage = data_usage.decode("UTF-8").split() - count = 0 - for _ in range(int(len(data_usage) / 2)): - sqldb.execute("UPDATE %s SET endpoint = ? WHERE id = ?" % self.Name - , (data_usage[count + 1], data_usage[count],)) - sqldb.commit() - count += 2 - - def toggleConfiguration(self) -> [bool, str]: - self.getStatus() - print("Status: ", self.getStatus()) - if self.Status: - try: - check = subprocess.check_output(f"wg-quick down {self.Name}", - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError as exc: - return False, str(exc.output.strip().decode("utf-8")) - else: - try: - check = subprocess.check_output(f"wg-quick up {self.Name}", - shell=True, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError as exc: - return False, str(exc.output.strip().decode("utf-8")) - self.getStatus() - return True, None - - def getPeersList(self): - self.__getPeers() - return self.Peers - - def getRestrictedPeersList(self) -> list: - self.__getRestrictedPeers() - return self.RestrictedPeers - - def toJson(self): - self.Status = self.getStatus() - return { - "Status": self.Status, - "Name": self.Name, - "PrivateKey": self.PrivateKey, - "PublicKey": self.PublicKey, - "Address": self.Address, - "ListenPort": self.ListenPort, - "PreUp": self.PreUp, - "PreDown": self.PreDown, - "PostUp": self.PostUp, - "PostDown": self.PostDown, - "SaveConfig": self.SaveConfig - } - - -class Peer: - def __init__(self, tableData, configuration: WireguardConfiguration): - self.configuration = configuration - self.id = tableData["id"] - self.private_key = tableData["private_key"] - self.DNS = tableData["DNS"] - self.endpoint_allowed_ip = tableData["endpoint_allowed_ip"] - self.name = tableData["name"] - self.total_receive = tableData["total_receive"] - self.total_sent = tableData["total_sent"] - self.total_data = tableData["total_data"] - self.endpoint = tableData["endpoint"] - self.status = tableData["status"] - self.latest_handshake = tableData["latest_handshake"] - self.allowed_ip = tableData["allowed_ip"] - self.cumu_receive = tableData["cumu_receive"] - self.cumu_sent = tableData["cumu_sent"] - self.cumu_data = tableData["cumu_data"] - self.mtu = tableData["mtu"] - self.keepalive = tableData["keepalive"] - self.remote_endpoint = tableData["remote_endpoint"] - self.preshared_key = tableData["preshared_key"] - - def toJson(self): - return self.__dict__ - - def __repr__(self): - return str(self.toJson()) - - def updatePeer(self, name: str, private_key: str, - preshared_key: str, - dns_addresses: str, allowed_ip: str, endpoint_allowed_ip: str, mtu: int, - keepalive: int) -> ResponseObject: - - existingAllowedIps = [item for row in list( - map(lambda x: [q.strip() for q in x.split(',')], - map(lambda y: y.allowed_ip, - list(filter(lambda k: k.id != self.id, self.configuration.getPeersList()))))) for item in row] - - if allowed_ip in existingAllowedIps: - return ResponseObject(False, "Allowed IP already taken by another peer.") - if not _checkIPWithRange(endpoint_allowed_ip): - return ResponseObject(False, f"Endpoint Allowed IPs format is incorrect.") - if len(dns_addresses) > 0 and not _checkDNS(dns_addresses): - return ResponseObject(False, f"DNS format is incorrect.") - if mtu < 0 or mtu > 1460: - return ResponseObject(False, "MTU format is not correct.") - if keepalive < 0: - return ResponseObject(False, "Persistent Keepalive format is not correct.") - if len(private_key) > 0: - pubKey = _generatePublicKey(private_key) - if not pubKey[0] or pubKey[1] != self.id: - return ResponseObject(False, "Private key does not match with the public key.") - try: - if len(preshared_key) > 0: - rd = random.Random() - uid = uuid.UUID(int=rd.getrandbits(128), version=4) - with open(f"{uid}", "w+") as f: - f.write(preshared_key) - updatePsk = subprocess.check_output( - f"wg set {self.configuration.Name} peer {self.id} preshared-key {uid}", - shell=True, stderr=subprocess.STDOUT) - os.remove(str(uid)) - if len(updatePsk.decode().strip("\n")) != 0: - return ResponseObject(False, - "Update peer failed when updating preshared key") - updateAllowedIp = subprocess.check_output( - f'wg set {self.configuration.Name} peer {self.id} allowed-ips "{allowed_ip.replace(" ", "")}"', - shell=True, stderr=subprocess.STDOUT) - if len(updateAllowedIp.decode().strip("\n")) != 0: - return ResponseObject(False, - "Update peer failed when updating allowed IPs") - saveConfig = subprocess.check_output(f"wg-quick save {self.configuration.Name}", - shell=True, stderr=subprocess.STDOUT) - if f"wg showconf {self.configuration.Name}" not in saveConfig.decode().strip('\n'): - return ResponseObject(False, - "Update peer failed when saving the configuration.") - cursor.execute( - '''UPDATE %s SET name = ?, private_key = ?, DNS = ?, endpoint_allowed_ip = ?, mtu = ?, - keepalive = ?, preshared_key = ? WHERE id = ?''' % self.configuration.Name, - (name, private_key, dns_addresses, endpoint_allowed_ip, mtu, - keepalive, preshared_key, self.id,) - ) - return ResponseObject() - except subprocess.CalledProcessError as exc: - return ResponseObject(False, exc.output.decode("UTF-8").strip()) - - def downloadPeer(self) -> dict[str, str]: - filename = self.name - if len(filename) == 0: - filename = "UntitledPeer" - filename = "".join(filename.split(' ')) - filename = f"{filename}_{self.configuration.Name}" - illegal_filename = [".", ",", "/", "?", "<", ">", "\\", ":", "*", '|' '\"', "com1", "com2", "com3", - "com4", "com5", "com6", "com7", "com8", "com9", "lpt1", "lpt2", "lpt3", "lpt4", - "lpt5", "lpt6", "lpt7", "lpt8", "lpt9", "con", "nul", "prn"] - for i in illegal_filename: - filename = filename.replace(i, "") - - peerConfiguration = f'''[Interface] -PrivateKey = {self.private_key} -Address = {self.allowed_ip} -MTU = {str(self.mtu)} -''' - if len(self.DNS) > 0: - peerConfiguration += f"DNS = {self.DNS}\n" - peerConfiguration += f''' -[Peer] -PublicKey = {self.configuration.PublicKey} -AllowedIPs = {self.endpoint_allowed_ip} -Endpoint = {DashboardConfig.GetConfig("Peers", "remote_endpoint")[1]}:{self.configuration.ListenPort} -PersistentKeepalive = {str(self.keepalive)} -''' - if len(self.preshared_key) > 0: - peerConfiguration += f"PresharedKey = {self.preshared_key}\n" - return { - "fileName": filename, - "file": peerConfiguration - } - - -# Regex Match -def regex_match(regex, text): - pattern = re.compile(regex) - return pattern.search(text) is not None - - -def iPv46RegexCheck(ip): - return re.match( - '((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))', - ip) - - -class DashboardConfig: - - def __init__(self): - if not os.path.exists(DASHBOARD_CONF): - open(DASHBOARD_CONF, "x") - self.__config = configparser.ConfigParser(strict=False) - self.__config.read_file(open(DASHBOARD_CONF, "r+")) - self.hiddenAttribute = ["totp_key"] - self.__default = { - "Account": { - "username": "admin", - "password": "admin", - "enable_totp": "false", - "totp_key": pyotp.random_base32() - }, - "Server": { - "wg_conf_path": "/etc/wireguard", - "app_ip": "0.0.0.0", - "app_port": "10086", - "auth_req": "true", - "version": DASHBOARD_VERSION, - "dashboard_refresh_interval": "60000", - "dashboard_sort": "status", - "dashboard_theme": "dark" - }, - "Peers": { - "peer_global_DNS": "1.1.1.1", - "peer_endpoint_allowed_ip": "0.0.0.0/0", - "peer_display_mode": "grid", - "remote_endpoint": ifcfg.default_interface()['inet'], - "peer_MTU": "1420", - "peer_keep_alive": "21" - }, - "Other": { - "welcome_session": "true" - } - } - - for section, keys in self.__default.items(): - for key, value in keys.items(): - exist, currentData = self.GetConfig(section, key) - if not exist: - self.SetConfig(section, key, value, True) - - def __configValidation(self, key, value: Any) -> [bool, str]: - if type(value) is str and len(value) == 0: - return False, "Field cannot be empty!" - if key == "peer_global_dns": - value = value.split(",") - for i in value: - try: - ipaddress.ip_address(i) - except ValueError as e: - return False, str(e) - if key == "peer_endpoint_allowed_ip": - value = value.split(",") - for i in value: - try: - ipaddress.ip_network(i, strict=False) - except Exception as e: - return False, str(e) - if key == "wg_conf_path": - if not os.path.exists(value): - return False, f"{value} is not a valid path" - if key == "password": - if self.GetConfig("Account", "password")[0]: - if not self.__checkPassword( - value["currentPassword"], self.GetConfig("Account", "password")[1].encode("utf-8")): - return False, "Current password does not match." - if value["newPassword"] != value["repeatNewPassword"]: - return False, "New passwords does not match" - return True, "" - - def generatePassword(self, plainTextPassword: str): - return bcrypt.hashpw(plainTextPassword.encode("utf-8"), bcrypt.gensalt(rounds=12)) - - def __checkPassword(self, plainTextPassword: str, hashedPassword: bytes): - return bcrypt.checkpw(plainTextPassword.encode("utf-8"), hashedPassword) - - def SetConfig(self, section: str, key: str, value: any, init: bool = False) -> [bool, str]: - if key in self.hiddenAttribute and not init: - return False, None - - if not init: - valid, msg = self.__configValidation(key, value) - if not valid: - return False, msg - - if section == "Account" and key == "password": - if not init: - value = self.generatePassword(value["newPassword"]).decode("utf-8") - else: - value = self.generatePassword(value).decode("utf-8") - - if section not in self.__config: - self.__config[section] = {} - - if key not in self.__config[section].keys() or value != self.__config[section][key]: - if type(value) is bool: - if value: - self.__config[section][key] = "true" - else: - self.__config[section][key] = "false" - else: - self.__config[section][key] = value - return self.SaveConfig(), "" - return True, "" - - def SaveConfig(self) -> bool: - try: - with open(DASHBOARD_CONF, "w+", encoding='utf-8') as configFile: - self.__config.write(configFile) - return True - except Exception as e: - return False - - def GetConfig(self, section, key) -> [any, bool]: - if section not in self.__config: - return False, None - - if key not in self.__config[section]: - return False, None - - if self.__config[section][key] in ["1", "yes", "true", "on"]: - return True, True - - if self.__config[section][key] in ["0", "no", "false", "off"]: - return True, False - - return True, self.__config[section][key] - - def toJson(self) -> dict[str, dict[Any, Any]]: - the_dict = {} - - for section in self.__config.sections(): - the_dict[section] = {} - for key, val in self.__config.items(section): - if key not in self.hiddenAttribute: - if val in ["1", "yes", "true", "on"]: - the_dict[section][key] = True - elif val in ["0", "no", "false", "off"]: - the_dict[section][key] = False - else: - the_dict[section][key] = val - return the_dict - - -DashboardConfig = DashboardConfig() -WireguardConfigurations: dict[str, WireguardConfiguration] = {} -AllPeerJobs: PeerJobs = PeerJobs() - -''' -Private Functions -''' - - -def _strToBool(value: str) -> bool: - return value.lower() in ("yes", "true", "t", "1", 1) - - -def _regexMatch(regex, text): - pattern = re.compile(regex) - return pattern.search(text) is not None - - -def _getConfigurationList() -> [WireguardConfiguration]: - configurations = {} - for i in os.listdir(WG_CONF_PATH): - if _regexMatch("^(.{1,}).(conf)$", i): - i = i.replace('.conf', '') - try: - configurations[i] = WireguardConfiguration(i) - except WireguardConfiguration.InvalidConfigurationFileException as e: - print(f"{i} have an invalid configuration file.") - return configurations - - -def _checkIPWithRange(ip): - ip_patterns = ( - r"((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|\/)){4}([0-9]{1,2})(,|$)", - r"[0-9a-fA-F]{0,4}(:([0-9a-fA-F]{0,4})){1,7}\/([0-9]{1,3})(,|$)" - ) - - for match_pattern in ip_patterns: - match_result = regex_match(match_pattern, ip) - if match_result: - result = match_result - break - else: - result = None - - return result - - -def _checkIP(ip): - ip_patterns = ( - r"((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}", - r"[0-9a-fA-F]{0,4}(:([0-9a-fA-F]{0,4})){1,7}$" - ) - for match_pattern in ip_patterns: - match_result = regex_match(match_pattern, ip) - if match_result: - result = match_result - break - else: - result = None - - return result - - -def _checkDNS(dns): - dns = dns.replace(' ', '').split(',') - for i in dns: - if not (_checkIP(i) or regex_match(r"(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z][a-z]{0,61}[a-z]", i)): - return False - return True - - -def _generatePublicKey(privateKey) -> tuple[bool, str] | tuple[bool, None]: - try: - publicKey = subprocess.check_output(f"wg pubkey", input=privateKey.encode(), shell=True, - stderr=subprocess.STDOUT) - return True, publicKey.decode().strip('\n') - except subprocess.CalledProcessError: - return False, None - - -def _generatePrivateKey() -> [bool, str]: - try: - publicKey = subprocess.check_output(f"wg genkey", shell=True, - stderr=subprocess.STDOUT) - return True, publicKey.decode().strip('\n') - except subprocess.CalledProcessError: - return False, None - - -def _getWireguardConfigurationAvailableIP(configName: str) -> tuple[bool, list[str]] | tuple[bool, None]: - if configName not in WireguardConfigurations.keys(): - return False, None - configuration = WireguardConfigurations[configName] - if len(configuration.Address) > 0: - address = configuration.Address.split(',') - print(address) - existedAddress = [] - availableAddress = [] - for p in configuration.Peers: - if len(p.allowed_ip) > 0: - add = p.allowed_ip.split(',') - for i in add: - a, c = i.split('/') - existedAddress.append(ipaddress.ip_address(a.replace(" ", ""))) - for i in address: - addressSplit, cidr = i.split('/') - existedAddress.append(ipaddress.ip_address(addressSplit.replace(" ", ""))) - for i in address: - network = ipaddress.ip_network(i.replace(" ", ""), False) - count = 0 - for h in network.hosts(): - if h not in existedAddress: - availableAddress.append(ipaddress.ip_network(h).compressed) - count += 1 - if network.version == 6 and count > 255: - break - return True, availableAddress - - return False, None - - -''' -API Routes -''' - - -@app.before_request -def auth_req(): - authenticationRequired = DashboardConfig.GetConfig("Server", "auth_req")[1] - if authenticationRequired: - - if ('/static/' not in request.path and "username" not in session and "/" != request.path - and "validateAuthentication" not in request.path and "authenticate" not in request.path - and "getDashboardConfiguration" not in request.path and "getDashboardTheme" not in request.path - and "isTotpEnabled" not in request.path - ): - response = Flask.make_response(app, { - "status": False, - "message": None, - "data": None - }) - response.content_type = "application/json" - response.status_code = 401 - return response - - -@app.route('/api/validateAuthentication', methods=["GET"]) -def API_ValidateAuthentication(): - token = request.cookies.get("authToken") + "" - if token == "" or "username" not in session or session["username"] != token: - return ResponseObject(False, "Invalid authentication") - - return ResponseObject(True) - - -@app.route('/api/authenticate', methods=['POST']) -def API_AuthenticateLogin(): - data = request.get_json() - valid = bcrypt.checkpw(data['password'].encode("utf-8"), - DashboardConfig.GetConfig("Account", "password")[1].encode("utf-8")) - totpEnabled = DashboardConfig.GetConfig("Account", "enable_totp")[1] - totpValid = False - - if totpEnabled: - totpValid = pyotp.TOTP(DashboardConfig.GetConfig("Account", "totp_key")[1]).now() == data['totp'] - - if (valid - and data['username'] == DashboardConfig.GetConfig("Account", "username")[1] - and ((totpEnabled and totpValid) or not totpEnabled) - ): - authToken = hashlib.sha256(f"{data['username']}{datetime.now()}".encode()).hexdigest() - session['username'] = authToken - resp = ResponseObject(True, DashboardConfig.GetConfig("Other", "welcome_session")[1]) - resp.set_cookie("authToken", authToken) - session.permanent = True - return resp - - if totpEnabled: - return ResponseObject(False, "Sorry, your username, password or OTP is incorrect.") - else: - return ResponseObject(False, "Sorry, your username or password is incorrect.") - - -@app.route('/api/signout') -def API_SignOut(): - resp = ResponseObject(True, "") - resp.delete_cookie("authToken") - return resp - - -@app.route('/api/getWireguardConfigurations', methods=["GET"]) -def API_getWireguardConfigurations(): - WireguardConfigurations = _getConfigurationList() - return ResponseObject(data=[wc for wc in WireguardConfigurations.values()]) - - -@app.route('/api/addWireguardConfiguration', methods=["POST"]) -def API_addWireguardConfiguration(): - data = request.get_json() - keys = [ - "ConfigurationName", - "Address", - "ListenPort", - "PrivateKey", - "PublicKey", - "PresharedKey", - "PreUp", - "PreDown", - "PostUp", - "PostDown", - ] - requiredKeys = [ - "ConfigurationName", "Address", "ListenPort", "PrivateKey" - ] - for i in keys: - if i not in data.keys() or (i in requiredKeys and len(str(data[i])) == 0): - return ResponseObject(False, "Please provide all required parameters.") - - # Check duplicate names, ports, address - for i in WireguardConfigurations.values(): - if i.Name == data['ConfigurationName']: - return ResponseObject(False, - f"Already have a configuration with the name \"{data['ConfigurationName']}\"", - "ConfigurationName") - - if str(i.ListenPort) == str(data["ListenPort"]): - return ResponseObject(False, - f"Already have a configuration with the port \"{data['ListenPort']}\"", - "ListenPort") - - if i.Address == data["Address"]: - return ResponseObject(False, - f"Already have a configuration with the address \"{data['Address']}\"", - "Address") - - WireguardConfigurations[data['ConfigurationName']] = WireguardConfiguration(data=data) - return ResponseObject() - - -@app.route('/api/toggleWireguardConfiguration/') -def API_toggleWireguardConfiguration(): - configurationName = request.args.get('configurationName') - - if configurationName is None or len( - configurationName) == 0 or configurationName not in WireguardConfigurations.keys(): - return ResponseObject(False, "Please provide a valid configuration name") - - toggleStatus, msg = WireguardConfigurations[configurationName].toggleConfiguration() - - return ResponseObject(toggleStatus, msg, WireguardConfigurations[configurationName].Status) - - -@app.route('/api/getDashboardConfiguration', methods=["GET"]) -def API_getDashboardConfiguration(): - return ResponseObject(data=DashboardConfig.toJson()) - - -@app.route('/api/updateDashboardConfiguration', methods=["POST"]) -def API_updateDashboardConfiguration(): - data = request.get_json() - for section in data['DashboardConfiguration'].keys(): - for key in data['DashboardConfiguration'][section].keys(): - if not DashboardConfig.SetConfig(section, key, data['DashboardConfiguration'][section][key])[0]: - return ResponseObject(False, "Section or value is invalid.") - return ResponseObject() - - -@app.route('/api/updateDashboardConfigurationItem', methods=["POST"]) -def API_updateDashboardConfigurationItem(): - data = request.get_json() - if "section" not in data.keys() or "key" not in data.keys() or "value" not in data.keys(): - return ResponseObject(False, "Invalid request.") - - valid, msg = DashboardConfig.SetConfig( - data["section"], data["key"], data['value']) - - if not valid: - return ResponseObject(False, msg) - - return ResponseObject() - - -@app.route('/api/updatePeerSettings/', methods=['POST']) -def API_updatePeerSettings(configName): - data = request.get_json() - id = data['id'] - if len(id) > 0 and configName in WireguardConfigurations.keys(): - name = data['name'] - private_key = data['private_key'] - dns_addresses = data['DNS'] - allowed_ip = data['allowed_ip'] - endpoint_allowed_ip = data['endpoint_allowed_ip'] - preshared_key = data['preshared_key'] - mtu = data['mtu'] - keepalive = data['keepalive'] - wireguardConfig = WireguardConfigurations[configName] - foundPeer, peer = wireguardConfig.searchPeer(id) - if foundPeer: - return peer.updatePeer(name, private_key, preshared_key, dns_addresses, - allowed_ip, endpoint_allowed_ip, mtu, keepalive) - return ResponseObject(False, "Peer does not exist") - - -@app.route('/api/deletePeers/', methods=['POST']) -def API_deletePeers(configName: str) -> ResponseObject: - data = request.get_json() - peers = data['peers'] - if configName in WireguardConfigurations.keys(): - if len(peers) == 0: - return ResponseObject(False, "Please specify more than one peer") - configuration = WireguardConfigurations.get(configName) - return configuration.deletePeers(peers) - - return ResponseObject(False, "Configuration does not exist") - - -@app.route('/api/restrictPeers/', methods=['POST']) -def API_restrictPeers(configName: str) -> ResponseObject: - data = request.get_json() - peers = data['peers'] - if configName in WireguardConfigurations.keys(): - if len(peers) == 0: - return ResponseObject(False, "Please specify more than one peer") - configuration = WireguardConfigurations.get(configName) - return configuration.restrictPeers(peers) - return ResponseObject(False, "Configuration does not exist") - - -@app.route('/api/allowAccessPeers/', methods=['POST']) -def API_allowAccessPeers(configName: str) -> ResponseObject: - data = request.get_json() - peers = data['peers'] - if configName in WireguardConfigurations.keys(): - if len(peers) == 0: - return ResponseObject(False, "Please specify more than one peer") - configuration = WireguardConfigurations.get(configName) - return configuration.allowAccessPeers(peers) - return ResponseObject(False, "Configuration does not exist") - - -@app.route('/api/addPeers/', methods=['POST']) -def API_addPeers(configName): - data = request.get_json() - bulkAdd = data['bulkAdd'] - bulkAddAmount = data['bulkAddAmount'] - public_key = data['public_key'] - allowed_ips = data['allowed_ips'] - endpoint_allowed_ip = data['endpoint_allowed_ip'] - dns_addresses = data['DNS'] - mtu = data['mtu'] - keep_alive = data['keepalive'] - preshared_key = data['preshared_key'] - - if configName in WireguardConfigurations.keys(): - config = WireguardConfigurations.get(configName) - if (not bulkAdd and (len(public_key) == 0 or len(allowed_ips) == 0)) or len(endpoint_allowed_ip) == 0: - return ResponseObject(False, "Please fill in all required box.") - if not config.getStatus(): - return ResponseObject(False, - f"{configName} is not running, please turn on the configuration before adding peers.") - if bulkAdd: - if bulkAddAmount < 1: - return ResponseObject(False, "Please specify amount of peers you want to add") - availableIps = _getWireguardConfigurationAvailableIP(configName) - if not availableIps[0]: - return ResponseObject(False, "No more available IP can assign") - if bulkAddAmount > len(availableIps[1]): - return ResponseObject(False, - f"The maximum number of peers can add is {len(availableIps[1])}") - - keyPairs = [] - for i in range(bulkAddAmount): - key = _generatePrivateKey()[1] - keyPairs.append([key, _generatePublicKey(key)[1], _generatePrivateKey()[1], availableIps[1][i], - f"{config.Name}_{datetime.now().strftime('%m%d%Y%H%M%S')}_Peer_#_{(i + 1)}"]) - if len(keyPairs) == 0: - return ResponseObject(False, "Generating key pairs by bulk failed") - - for i in range(bulkAddAmount): - subprocess.check_output( - f"wg set {config.Name} peer {keyPairs[i][1]} allowed-ips {keyPairs[i][3]}", - shell=True, stderr=subprocess.STDOUT) - subprocess.check_output( - f"wg-quick save {config.Name}", shell=True, stderr=subprocess.STDOUT) - config.getPeersList() - - for i in range(bulkAddAmount): - found, peer = config.searchPeer(keyPairs[i][1]) - if found: - if not peer.updatePeer(keyPairs[i][4], keyPairs[i][0], preshared_key, dns_addresses, - keyPairs[i][3], - endpoint_allowed_ip, mtu, keep_alive).status: - return ResponseObject(False, "Failed to add peers in bulk") - - return ResponseObject() - - else: - if config.searchPeer(public_key)[0] is True: - return ResponseObject(False, f"This peer already exist.") - name = data['name'] - private_key = data['private_key'] - subprocess.check_output( - f"wg set {config.Name} peer {public_key} allowed-ips {''.join(allowed_ips)}", - shell=True, stderr=subprocess.STDOUT) - if len(preshared_key) > 0: - subprocess.check_output( - f"wg set {config.Name} peer {public_key} preshared-key {preshared_key}", - shell=True, stderr=subprocess.STDOUT) - subprocess.check_output( - f"wg-quick save {config.Name}", shell=True, stderr=subprocess.STDOUT) - config.getPeersList() - found, peer = config.searchPeer(public_key) - if found: - return peer.updatePeer(name, private_key, preshared_key, dns_addresses, ",".join(allowed_ips), - endpoint_allowed_ip, mtu, keep_alive) - - return ResponseObject(False, "Configuration does not exist") - - -@app.route("/api/downloadPeer/") -def API_downloadPeer(configName): - data = request.args - if configName not in WireguardConfigurations.keys(): - return ResponseObject(False, "Configuration or peer does not exist") - configuration = WireguardConfigurations[configName] - peerFound, peer = configuration.searchPeer(data['id']) - if len(data['id']) == 0 or not peerFound: - return ResponseObject(False, "Configuration or peer does not exist") - return ResponseObject(data=peer.downloadPeer()) - - -@app.route("/api/downloadAllPeers/") -def API_downloadAllPeers(configName): - if configName not in WireguardConfigurations.keys(): - return ResponseObject(False, "Configuration or peer does not exist") - configuration = WireguardConfigurations[configName] - peerData = [] - untitledPeer = 0 - for i in configuration.Peers: - file = i.downloadPeer() - if file["fileName"] == "UntitledPeer_" + configName: - file["fileName"] = str(untitledPeer) + "_" + file["fileName"] - untitledPeer += 1 - peerData.append(file) - return ResponseObject(data=peerData) - - -@app.route("/api/getAvailableIPs/") -def API_getAvailableIPs(configName): - status, ips = _getWireguardConfigurationAvailableIP(configName) - return ResponseObject(status=status, data=ips) - - -@app.route('/api/getWireguardConfigurationInfo', methods=["GET"]) -def API_getConfigurationInfo(): - configurationName = request.args.get("configurationName") - if not configurationName or configurationName not in WireguardConfigurations.keys(): - return ResponseObject(False, "Please provide configuration name") - return ResponseObject(data={ - "configurationInfo": WireguardConfigurations[configurationName], - "configurationPeers": WireguardConfigurations[configurationName].getPeersList(), - "configurationRestrictedPeers": WireguardConfigurations[configurationName].getRestrictedPeersList() - }) - - -@app.route('/api/getDashboardTheme') -def API_getDashboardTheme(): - return ResponseObject(data=DashboardConfig.GetConfig("Server", "dashboard_theme")[1]) - - -@app.route('/api/ping/getAllPeersIpAddress') -def API_ping_getAllPeersIpAddress(): - ips = {} - for c in WireguardConfigurations.values(): - cips = {} - for p in c.Peers: - allowed_ip = p.allowed_ip.replace(" ", "").split(",") - parsed = [] - for x in allowed_ip: - ip = ipaddress.ip_network(x, strict=False) - if len(list(ip.hosts())) == 1: - parsed.append(str(ip.hosts()[0])) - endpoint = p.endpoint.replace(" ", "").replace("(none)", "") - if len(p.name) > 0: - cips[f"{p.name} - {p.id}"] = { - "allowed_ips": parsed, - "endpoint": endpoint - } - else: - cips[f"{p.id}"] = { - "allowed_ips": parsed, - "endpoint": endpoint - } - ips[c.Name] = cips - return ResponseObject(data=ips) - - -@app.route('/api/ping/execute') -def API_ping_execute(): - if "ipAddress" in request.args.keys() and "count" in request.args.keys(): - ip = request.args['ipAddress'] - count = request.args['count'] - try: - if ip is not None and len(ip) > 0 and count is not None and count.isnumeric(): - result = ping(ip, count=int(count), source=None) - - return ResponseObject(data={ - "address": result.address, - "is_alive": result.is_alive, - "min_rtt": result.min_rtt, - "avg_rtt": result.avg_rtt, - "max_rtt": result.max_rtt, - "package_sent": result.packets_sent, - "package_received": result.packets_received, - "package_loss": result.packet_loss - }) - - return ResponseObject(False, "Please specify an IP Address (v4/v6)") - except Exception as exp: - return ResponseObject(False, exp) - return ResponseObject(False, "Please provide ipAddress and count") - - -@app.route('/api/traceroute/execute') -def API_traceroute_execute(): - if "ipAddress" in request.args.keys() and len(request.args.get("ipAddress")) > 0: - ipAddress = request.args.get('ipAddress') - try: - tracerouteResult = traceroute(ipAddress) - result = [] - for hop in tracerouteResult: - if len(result) > 1: - skipped = False - for i in range(result[-1]["hop"] + 1, hop.distance): - result.append( - { - "hop": i, - "ip": "*", - "avg_rtt": "*", - "min_rtt": "*", - "max_rtt": "*" - } - ) - skip = True - if skipped: continue - result.append( - { - "hop": hop.distance, - "ip": hop.address, - "avg_rtt": hop.avg_rtt, - "min_rtt": hop.min_rtt, - "max_rtt": hop.max_rtt - }) - return ResponseObject(data=result) - except Exception as exp: - return ResponseObject(False, exp) - else: - return ResponseObject(False, "Please provide ipAddress") - - -''' -Sign Up -''' - - -@app.route('/api/isTotpEnabled') -def API_isTotpEnabled(): - return ResponseObject(data=DashboardConfig.GetConfig("Account", "enable_totp")[1]) - - -@app.route('/api/Welcome_GetTotpLink') -def API_Welcome_GetTotpLink(): - if DashboardConfig.GetConfig("Other", "welcome_session")[1]: - return ResponseObject( - data=pyotp.totp.TOTP(DashboardConfig.GetConfig("Account", "totp_key")[1]).provisioning_uri( - issuer_name="WGDashboard")) - return ResponseObject(False) - - -@app.route('/api/Welcome_VerifyTotpLink', methods=["POST"]) -def API_Welcome_VerifyTotpLink(): - data = request.get_json() - if DashboardConfig.GetConfig("Other", "welcome_session")[1]: - totp = pyotp.TOTP(DashboardConfig.GetConfig("Account", "totp_key")[1]).now() - print(totp) - return ResponseObject(totp == data['totp']) - return ResponseObject(False) - - -@app.route('/api/Welcome_Finish', methods=["POST"]) -def API_Welcome_Finish(): - data = request.get_json() - if DashboardConfig.GetConfig("Other", "welcome_session")[1]: - if data["username"] == "": - return ResponseObject(False, "Username cannot be blank.") - - if data["newPassword"] == "" or len(data["newPassword"]) < 8: - return ResponseObject(False, "Password must be at least 8 characters") - - updateUsername, updateUsernameErr = DashboardConfig.SetConfig("Account", "username", data["username"]) - updatePassword, updatePasswordErr = DashboardConfig.SetConfig("Account", "password", - { - "newPassword": data["newPassword"], - "repeatNewPassword": data[ - "repeatNewPassword"], - "currentPassword": "admin" - }) - updateEnableTotp, updateEnableTotpErr = DashboardConfig.SetConfig("Account", "enable_totp", data["enable_totp"]) - - if not updateUsername or not updatePassword or not updateEnableTotp: - return ResponseObject(False, f"{updateUsernameErr},{updatePasswordErr},{updateEnableTotpErr}".strip(",")) - - DashboardConfig.SetConfig("Other", "welcome_session", False) - - return ResponseObject() - - -@app.route('/', methods=['GET']) -def index(): - """ - Index page related - @return: Template - """ - return render_template('index_new.html') - - -def backGroundThread(): - with app.app_context(): - print("Waiting 5 sec") - time.sleep(5) - while True: - for c in WireguardConfigurations.values(): - if c.getStatus(): - - try: - c.getPeersTransfer() - c.getPeersLatestHandshake() - c.getPeersEndpoint() - except Exception as e: - print("Error: " + str(e)) - time.sleep(10) - - -def createPeerJobsDatabase(): - existingTable = jobdbCursor.execute("SELECT name from sqlite_master where type='table'").fetchall() - existingTable = [t['name'] for t in existingTable] - - if "PeerJobs" not in existingTable: - jobdbCursor.execute(''' - CREATE TABLE PeerJobs (JobID VARCHAR NOT NULL, Configuration VARCHAR NOT NULL, Peer VARCHAR NOT NULL, - Field VARCHAR NOT NULL, Operator VARCHAR NOT NULL, Value VARCHAR NOT NULL, CreationDate DATETIME, - ExpireDate DATETIME, Action VARCHAR NOT NULL, PRIMARY KEY (JobID)) - ''') - jobdb.commit() - - if "PeerJobs_Logs" not in existingTable: - jobdbCursor.execute(''' - CREATE TABLE PeerJobs_Logs (LogID VARCHAR NOT NULL, JobID NOT NULL, LogDate DATETIME, Status VARCHAR NOT NULL, - Message VARCHAR NOT NULL, PRIMARY KEY (LogID)) - ''') - jobdb.commit() - - -if __name__ == "__main__": - sqldb = sqlite3.connect(os.path.join(CONFIGURATION_PATH, 'db', 'wgdashboard.db'), check_same_thread=False) - sqldb.row_factory = sqlite3.Row - cursor = sqldb.cursor() - - # Database for the background job - jobdb = sqlite3.connect(os.path.join(CONFIGURATION_PATH, 'db', 'wgdashboard_job.db'), check_same_thread=False) - jobdb.row_factory = sqlite3.Row - jobdbCursor = jobdb.cursor() - createPeerJobsDatabase() - - # End - - _, app_ip = DashboardConfig.GetConfig("Server", "app_ip") - _, app_port = DashboardConfig.GetConfig("Server", "app_port") - _, WG_CONF_PATH = DashboardConfig.GetConfig("Server", "wg_conf_path") - WireguardConfigurations = _getConfigurationList() - bgThread = threading.Thread(target=backGroundThread) - bgThread.daemon = True - bgThread.start() - - app.run(host=app_ip, debug=True, port=app_port) diff --git a/src/static/app/dist/assets/index.css b/src/static/app/dist/assets/index.css index 5c29826..eaa49d1 100644 --- a/src/static/app/dist/assets/index.css +++ b/src/static/app/dist/assets/index.css @@ -1,4 +1,4 @@ -@charset "UTF-8";::-webkit-scrollbar{display:none}.codeFont{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.feather{width:16px;height:16px;vertical-align:text-bottom}.btn-primary{font-weight:700}@property --brandColor1{syntax: ""; initial-value: #009dff; inherits: false;}@property --brandColor2{syntax: ""; initial-value: #ff4a00; inherits: false;}@property --distance2{syntax: ""; initial-value: 0%; inherits: false;}@property --degree{syntax: ""; initial-value: 234deg; inherits: false;}.dashboardLogo{background:#178bff;background:linear-gradient(234deg,var(--brandColor1) var(--distance2),var(--brandColor2) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;transition:--brandColor1 1s,--brandColor2 .3s,--distance2 1s!important}.btn-brand{background:linear-gradient(var(--degree),var(--brandColor1) var(--distance2),var(--brandColor2) 100%);border:0!important;transition:--brandColor1 1s,--brandColor2 1s,--distance2 .5s!important}.btn-brand.loading{animation:spin infinite forwards 3s linear}.btn-brand:hover,.dashboardLogo:hover{--brandColor1: #009dff;--brandColor2: #ff875b;--distance2: 30%}.signInBtn.signedIn{--distance2: 100%}@keyframes spin{0%{--degree: 234deg}to{--degree: 594deg}}[data-bs-theme=dark].main,#app:has(.main[data-bs-theme=dark]){background-color:#1b1e21}.sidebar .nav-link,.bottomNavContainer .nav-link{font-weight:500;color:#333;transition:.2s cubic-bezier(.82,-.07,0,1.01)}[data-bs-theme=dark] .sidebar .nav-link{color:#fff}[data-bs-theme=dark] .sidebar .nav-link.active{color:#74b7ff}[data-bs-theme=dark] .nav-link:hover{background-color:#323844}.nav-link:hover{padding-left:30px;background-color:#dfdfdf}.sidebar .nav-link .feather{margin-right:4px;color:#999}.sidebar .nav-link.active,.bottomNavContainer .nav-link.active{color:#007bff}.sidebar .nav-link:hover .feather,.sidebar .nav-link.active .feather{color:inherit}.sidebar-heading{font-size:.75rem;text-transform:uppercase}.navbar-brand{padding-top:.75rem;padding-bottom:.75rem;font-size:1rem}.navbar .navbar-toggler{top:.25rem;right:1rem}.form-control{transition:all .2s ease-in-out}.form-control:disabled{cursor:not-allowed}.navbar .form-control{padding:.75rem 1rem;border-width:0;border-radius:0}.form-control-dark{color:#fff;background-color:#ffffff1a;border-color:#ffffff1a}.form-control-dark:focus{border-color:transparent;box-shadow:0 0 0 3px #ffffff40}.dot{width:10px;height:10px;border-radius:50px;display:inline-block;margin-left:auto!important;background-color:#6c757d}.dot.active{background-color:#28a745!important;box-shadow:0 0 0 .2rem #28a74545}.h6-dot-running{margin-left:.3rem}.card-running{border-color:#28a745}.info h6{line-break:anywhere;transition:all .4s cubic-bezier(.96,-.07,.34,1.01);opacity:1}.info .row .col-sm{display:flex;flex-direction:column}.info .row .col-sm small{display:flex}.info .row .col-sm small strong:last-child(1){margin-left:auto!important}.btn-control{border:none!important;padding:0;margin:0 1rem 0 0}.btn-control:hover{background-color:transparent!important}.btn-control:active,.btn-control:focus{background-color:transparent!important;border:none!important;box-shadow:none}.btn-qrcode-peer{padding:0!important}.btn-qrcode-peer:active,.btn-qrcode-peer:hover{transform:scale(.9) rotate(180deg);border:0!important}.btn-download-peer:active,.btn-download-peer:hover{color:#17a2b8!important;transform:translateY(5px)}.share_peer_btn_group .btn-control{margin:0 0 0 1rem;padding:0!important;transition:all .4s cubic-bezier(1,-.43,0,1.37)}.btn-control:hover{background:#fff}.btn-delete-peer:hover{color:#dc3545}.btn-lock-peer:hover{color:#28a745}.btn-lock-peer.lock,.btn-lock-peer.lock:hover{color:#6c757d}.btn-control.btn-outline-primary:hover{color:#007bff}.btn-download-peer:hover{color:#17a2b8}.login-container{padding:2rem}@media (max-width: 992px){.card-col{margin-bottom:1rem}}.switch{font-size:2rem}.switch:hover{text-decoration:none}.btn-group-label:hover{color:#007bff;border-color:#007bff;background:#fff}.peer_data_group{text-align:right;display:flex;margin-bottom:.5rem}.peer_data_group p{text-transform:uppercase;margin-bottom:0;margin-right:1rem}@media (max-width: 768px){.peer_data_group{text-align:left}}.index-switch{display:flex;align-items:center;justify-content:flex-end}main{margin-bottom:3rem}.peer_list{margin-bottom:7rem}@media (max-width: 768px){.add_btn{bottom:1.5rem!important}.peer_list{margin-bottom:7rem!important}}.btn-manage-group{z-index:99;position:fixed;bottom:3rem;right:2rem;display:flex}.btn-manage-group .setting_btn_menu{position:absolute;top:-124px;background-color:#fff;padding:1rem 0;right:0;box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;border-radius:10px;min-width:250px;display:none;transform:translateY(-30px);opacity:0;transition:all .3s cubic-bezier(.58,.03,.05,1.28)}.btn-manage-group .setting_btn_menu.show{display:block}.setting_btn_menu.showing{transform:translateY(0);opacity:1}.setting_btn_menu a{display:flex;padding:.5rem 1rem;transition:all .1s ease-in-out;font-size:1rem;align-items:center;cursor:pointer}.setting_btn_menu a:hover{background-color:#efefef;text-decoration:none}.setting_btn_menu a i{margin-right:auto!important}.add_btn{height:54px;z-index:99;border-radius:100px!important;padding:0 14px;box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;margin-right:1rem;font-size:1.5rem}.setting_btn{height:54px;z-index:99;border-radius:100px!important;padding:0 14px;box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;font-size:1.5rem}@-webkit-keyframes rotating{0%{-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotating{0%{-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.rotating:before{-webkit-animation:rotating .75s linear infinite;-moz-animation:rotating .75s linear infinite;-ms-animation:rotating .75s linear infinite;-o-animation:rotating .75s linear infinite;animation:rotating .75s linear infinite}.peer_private_key_textbox_switch{position:absolute;right:2rem;transform:translateY(-28px);font-size:1.2rem;cursor:pointer}#peer_private_key_textbox,#private_key,#public_key,#peer_preshared_key_textbox{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.progress-bar{transition:.3s ease-in-out}.key{transition:.2s ease-in-out;cursor:pointer}.key:hover{color:#007bff}.card{border-radius:10px}.peer_list .card .button-group{height:22px}.form-control{border-radius:10px}.btn{border-radius:8px}.login-box #username,.login-box #password,.login-box #totp{padding:.6rem calc(.9rem + 32px);height:inherit}.login-box label[for=username],.login-box label[for=password],.login-box label[for=totp]{font-size:1rem;margin:0!important;transform:translateY(2.1rem) translate(1rem);padding:0}.modal-content{border-radius:10px}.tooltip-inner{font-size:.8rem}@-webkit-keyframes loading{0%{background-color:#dfdfdf}50%{background-color:#adadad}to{background-color:#dfdfdf}}@-moz-keyframes loading{0%{background-color:#dfdfdf}50%{background-color:#adadad}to{background-color:#dfdfdf}}.conf_card{transition:.2s ease-in-out}.conf_card:hover{border-color:#007bff}.info_loading{height:19.19px;opacity:0!important}#conf_status_btn{transition:.2s ease-in-out}#conf_status_btn.info_loading{height:38px;border-radius:5px;animation:loading 3s infinite ease-in-out}#qrcode_img img{width:100%}#selected_ip_list .badge,#selected_peer_list .badge{margin:.1rem}#add_modal.ip_modal_open{transition:filter .2s ease-in-out;filter:brightness(.5)}#delete_bulk_modal .list-group a.active{background-color:#dc3545;border-color:#dc3545}#selected_peer_list{max-height:80px;overflow-y:scroll;overflow-x:hidden}.no-response{width:100%;height:100%;position:fixed;background:#000000ba;z-index:10000;display:none;flex-direction:column;align-items:center;justify-content:center;opacity:0;transition:all 1s ease-in-out}.no-response.active{display:flex}.no-response.active.show{opacity:100}.no-response .container>*{text-align:center}.no-responding{transition:all 1s ease-in-out;filter:blur(10px)}pre.index-alert{margin-bottom:0;padding:1rem;background-color:#343a40;border:1px solid rgba(0,0,0,.125);border-radius:.25rem;margin-top:1rem;color:#fff}.peerNameCol{display:flex;align-items:center;margin-bottom:.2rem}.peerName{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.peerLightContainer{text-transform:uppercase;margin:0;margin-left:auto!important}#config_body{transition:.3s ease-in-out}#config_body.firstLoading{opacity:.2}.chartTitle{display:flex}.chartControl{margin-bottom:1rem;display:flex;align-items:center}.chartTitle h6{margin-bottom:0;line-height:1;margin-right:.5rem}.chartContainer.fullScreen{position:fixed;z-index:9999;background-color:#fff;top:0;left:0;width:calc(100% + 15px);height:100%;padding:32px}.chartContainer.fullScreen .col-sm{padding-right:0;height:100%}.chartContainer.fullScreen .chartCanvasContainer{width:100%;height:calc(100% - 47px)!important;max-height:calc(100% - 47px)!important}#switch{transition:all .2s ease-in}.toggle--switch{display:none}.toggleLabel{width:64px;height:32px;background-color:#6c757d17;display:flex;position:relative;border:2px solid #6c757d8c;border-radius:100px;transition:all .2s ease-in;cursor:pointer;margin:0}.toggle--switch.waiting+.toggleLabel{opacity:.5}.toggleLabel:before{background-color:#6c757d;height:26px;width:26px;content:"";border-radius:100px;margin:1px;position:absolute;animation-name:off;animation-duration:.35s;animation-fill-mode:forwards;transition:all .2s ease-in;cursor:pointer}.toggleLabel:hover:before{filter:brightness(1.2)}.toggle--switch:checked+.toggleLabel{background-color:#007bff17!important;border:2px solid #007bff8c}.toggle--switch:checked+.toggleLabel:before{background-color:#007bff;animation-name:on;animation-duration:.35s;animation-fill-mode:forwards}@keyframes on{0%{left:0}60%{left:0;width:40px}to{left:32px;width:26px}}@keyframes off{0%{left:32px}60%{left:18px;width:40px}to{left:0;width:26px}}.toastContainer{z-index:99999!important}.toast{min-width:300px;background-color:#fff;z-index:99999}.toast-header{background-color:#fff}.toast-progressbar{width:100%;height:4px;background-color:#007bff;border-bottom-left-radius:.25rem}.addConfigurationAvailableIPs{margin-bottom:0}.input-feedback{display:none}#addConfigurationModal label{display:flex;width:100%;align-items:center}#addConfigurationModal label a{margin-left:auto!important}#reGeneratePrivateKey{border-top-right-radius:10px;border-bottom-right-radius:10px}.addConfigurationToggleStatus.waiting{opacity:.5}.peerDataUsageChartContainer{min-height:50vh;width:100%}.peerDataUsageChartControl{display:block!important;margin:0}.peerDataUsageChartControl .switchUnit{width:33.3%}.peerDataUsageChartControl .switchTimePeriod{width:25%}@media (min-width: 1200px){#peerDataUsage .modal-xl{max-width:95vw}}.bottom{display:none}@media (max-width: 768px){.bottom{display:block}.btn-manage-group{bottom:calc(3rem + 40px + env(safe-area-inset-bottom,5px))}main{padding-bottom:calc(3rem + 40px + env(safe-area-inset-bottom,5px))}}.bottomNavContainer{display:flex;color:#333;padding-bottom:env(safe-area-inset-bottom,5px);box-shadow:inset 0 1px #0000001a}.bottomNavButton{width:25vw;display:flex;flex-direction:column;align-items:center;margin:.7rem 0;color:#33333380;cursor:pointer;transition:all ease-in .2s}.bottomNavButton.active{color:#333}.bottomNavButton i{font-size:1.2rem}.bottomNavButton .subNav{width:100vw;position:absolute;z-index:10000;bottom:0;left:0;background-color:#272b30;display:none;animation-duration:.4s;padding-bottom:env(safe-area-inset-bottom,5px)}.bottomNavButton .subNav.active{display:block}.bottomNavButton .subNav .nav .nav-item .nav-link{padding:.7rem 1rem}.bottomNavWrapper{height:100%;width:100%;background-color:#000000a1;position:fixed;z-index:1030;display:none;left:0}.bottomNavWrapper.active{display:block}.sb-update-url .dot-running{transform:translate(10px)}.list-group-item{transition:all .1s ease-in}.theme-switch-btn{width:100%}.fade-enter-active,.fade-leave-active{transition:all .3s ease-in-out}.fade-enter-from,.fade-leave-to{transform:translateY(30px);opacity:0}.fade2-enter-active,.fade2-leave-active{transition:all .15s ease-in-out}.fade2-enter-from{transform:translate(20px);opacity:0}.fade2-leave-to{transform:translate(-20px);opacity:0}.login-container-fluid{height:calc(100% - 50px)!important}.totp{font-family:var(--bs-font-monospace)}.message-move,.message-enter-active,.message-leave-active{transition:all .5s ease}.message-enter-from,.message-leave-to{filter:blur(2px);opacity:0}.message-enter-from{transform:translateY(-30px) scale(.7)}.message-leave-to{transform:translateY(30px)}.message-leave-active{position:absolute}.fade3-enter-active,.fade3-leave-active{transition:all .15s ease-in-out}.fade3-enter-from{transform:scale(1);opacity:0}.fade3-leave-to{transform:scale(.8);opacity:0}/*! +@charset "UTF-8";::-webkit-scrollbar{display:none}.codeFont{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.feather{width:16px;height:16px;vertical-align:text-bottom}.btn-primary{font-weight:700}@property --brandColor1{syntax: ""; initial-value: #009dff; inherits: false;}@property --brandColor2{syntax: ""; initial-value: #ff4a00; inherits: false;}@property --distance2{syntax: ""; initial-value: 0%; inherits: false;}@property --degree{syntax: ""; initial-value: 234deg; inherits: false;}.dashboardLogo{background:#178bff;background:linear-gradient(234deg,var(--brandColor1) var(--distance2),var(--brandColor2) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;transition:--brandColor1 1s,--brandColor2 .3s,--distance2 1s!important}.btn-brand{background:linear-gradient(var(--degree),var(--brandColor1) var(--distance2),var(--brandColor2) 100%);border:0!important;transition:--brandColor1 1s,--brandColor2 1s,--distance2 .5s!important}.btn-brand.loading{animation:spin infinite forwards 3s linear}.btn-brand:hover,.dashboardLogo:hover{--brandColor1: #009dff;--brandColor2: #ff875b;--distance2: 30%}.signInBtn.signedIn{--distance2: 100%}@keyframes spin{0%{--degree: 234deg}to{--degree: 594deg}}[data-bs-theme=dark].main,#app:has(.main[data-bs-theme=dark]){background-color:#1b1e21}.sidebar .nav-link,.bottomNavContainer .nav-link{font-weight:500;color:#333;transition:.2s cubic-bezier(.82,-.07,0,1.01)}[data-bs-theme=dark] .sidebar .nav-link{color:#fff}[data-bs-theme=dark] .sidebar .nav-link.active{color:#74b7ff}[data-bs-theme=dark] .nav-link:hover{background-color:#323844}.nav-link:hover{padding-left:30px;background-color:#dfdfdf}.sidebar .nav-link .feather{margin-right:4px;color:#999}.sidebar .nav-link.active,.bottomNavContainer .nav-link.active{color:#007bff}.sidebar .nav-link:hover .feather,.sidebar .nav-link.active .feather{color:inherit}.sidebar-heading{font-size:.75rem;text-transform:uppercase}.navbar-brand{padding-top:.75rem;padding-bottom:.75rem;font-size:1rem}.navbar .navbar-toggler{top:.25rem;right:1rem}.form-control{transition:all .2s ease-in-out}.form-control:disabled{cursor:not-allowed}.navbar .form-control{padding:.75rem 1rem;border-width:0;border-radius:0}.form-control-dark{color:#fff;background-color:#ffffff1a;border-color:#ffffff1a}.form-control-dark:focus{border-color:transparent;box-shadow:0 0 0 3px #ffffff40}.dot{width:10px;height:10px;border-radius:50px;display:inline-block;margin-left:auto!important;background-color:#6c757d}.dot.active{background-color:#28a745!important;box-shadow:0 0 0 .2rem #28a74545}.h6-dot-running{margin-left:.3rem}.card-running{border-color:#28a745}.info h6{line-break:anywhere;transition:all .4s cubic-bezier(.96,-.07,.34,1.01);opacity:1}.info .row .col-sm{display:flex;flex-direction:column}.info .row .col-sm small{display:flex}.info .row .col-sm small strong:last-child(1){margin-left:auto!important}.btn-control{border:none!important;padding:0;margin:0 1rem 0 0}.btn-control:hover{background-color:transparent!important}.btn-control:active,.btn-control:focus{background-color:transparent!important;border:none!important;box-shadow:none}.btn-qrcode-peer{padding:0!important}.btn-qrcode-peer:active,.btn-qrcode-peer:hover{transform:scale(.9) rotate(180deg);border:0!important}.btn-download-peer:active,.btn-download-peer:hover{color:#17a2b8!important;transform:translateY(5px)}.share_peer_btn_group .btn-control{margin:0 0 0 1rem;padding:0!important;transition:all .4s cubic-bezier(1,-.43,0,1.37)}.btn-control:hover{background:#fff}.btn-delete-peer:hover{color:#dc3545}.btn-lock-peer:hover{color:#28a745}.btn-lock-peer.lock,.btn-lock-peer.lock:hover{color:#6c757d}.btn-control.btn-outline-primary:hover{color:#007bff}.btn-download-peer:hover{color:#17a2b8}.login-container{padding:2rem}@media (max-width: 992px){.card-col{margin-bottom:1rem}}.switch{font-size:2rem}.switch:hover{text-decoration:none}.btn-group-label:hover{color:#007bff;border-color:#007bff;background:#fff}.peer_data_group{text-align:right;display:flex;margin-bottom:.5rem}.peer_data_group p{text-transform:uppercase;margin-bottom:0;margin-right:1rem}@media (max-width: 768px){.peer_data_group{text-align:left}}.index-switch{display:flex;align-items:center;justify-content:flex-end}main{margin-bottom:3rem}.peer_list{margin-bottom:7rem}@media (max-width: 768px){.add_btn{bottom:1.5rem!important}.peer_list{margin-bottom:7rem!important}}.btn-manage-group{z-index:99;position:fixed;bottom:3rem;right:2rem;display:flex}.btn-manage-group .setting_btn_menu{position:absolute;top:-124px;background-color:#fff;padding:1rem 0;right:0;box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;border-radius:10px;min-width:250px;display:none;transform:translateY(-30px);opacity:0;transition:all .3s cubic-bezier(.58,.03,.05,1.28)}.btn-manage-group .setting_btn_menu.show{display:block}.setting_btn_menu.showing{transform:translateY(0);opacity:1}.setting_btn_menu a{display:flex;padding:.5rem 1rem;transition:all .1s ease-in-out;font-size:1rem;align-items:center;cursor:pointer}.setting_btn_menu a:hover{background-color:#efefef;text-decoration:none}.setting_btn_menu a i{margin-right:auto!important}.add_btn{height:54px;z-index:99;border-radius:100px!important;padding:0 14px;box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;margin-right:1rem;font-size:1.5rem}.setting_btn{height:54px;z-index:99;border-radius:100px!important;padding:0 14px;box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;font-size:1.5rem}@-webkit-keyframes rotating{0%{-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotating{0%{-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.rotating:before{-webkit-animation:rotating .75s linear infinite;-moz-animation:rotating .75s linear infinite;-ms-animation:rotating .75s linear infinite;-o-animation:rotating .75s linear infinite;animation:rotating .75s linear infinite}.peer_private_key_textbox_switch{position:absolute;right:2rem;transform:translateY(-28px);font-size:1.2rem;cursor:pointer}#peer_private_key_textbox,#private_key,#public_key,#peer_preshared_key_textbox{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.progress-bar{transition:.3s ease-in-out}.key{transition:.2s ease-in-out;cursor:pointer}.key:hover{color:#007bff}.card{border-radius:10px}.peer_list .card .button-group{height:22px}.form-control{border-radius:10px}.btn{border-radius:8px}.login-box #username,.login-box #password,.login-box #totp{padding:.6rem calc(.9rem + 32px);height:inherit}.login-box label[for=username],.login-box label[for=password],.login-box label[for=totp]{font-size:1rem;margin:0!important;transform:translateY(2.1rem) translate(1rem);padding:0}.modal-content{border-radius:10px}.tooltip-inner{font-size:.8rem}@-webkit-keyframes loading{0%{background-color:#dfdfdf}50%{background-color:#adadad}to{background-color:#dfdfdf}}@-moz-keyframes loading{0%{background-color:#dfdfdf}50%{background-color:#adadad}to{background-color:#dfdfdf}}.conf_card{transition:.2s ease-in-out}.conf_card:hover{border-color:#007bff}.info_loading{height:19.19px;opacity:0!important}#conf_status_btn{transition:.2s ease-in-out}#conf_status_btn.info_loading{height:38px;border-radius:5px;animation:loading 3s infinite ease-in-out}#qrcode_img img{width:100%}#selected_ip_list .badge,#selected_peer_list .badge{margin:.1rem}#add_modal.ip_modal_open{transition:filter .2s ease-in-out;filter:brightness(.5)}#delete_bulk_modal .list-group a.active{background-color:#dc3545;border-color:#dc3545}#selected_peer_list{max-height:80px;overflow-y:scroll;overflow-x:hidden}.no-response{width:100%;height:100%;position:fixed;background:#000000ba;z-index:10000;display:none;flex-direction:column;align-items:center;justify-content:center;opacity:0;transition:all 1s ease-in-out}.no-response.active{display:flex}.no-response.active.show{opacity:100}.no-response .container>*{text-align:center}.no-responding{transition:all 1s ease-in-out;filter:blur(10px)}pre.index-alert{margin-bottom:0;padding:1rem;background-color:#343a40;border:1px solid rgba(0,0,0,.125);border-radius:.25rem;margin-top:1rem;color:#fff}.peerNameCol{display:flex;align-items:center;margin-bottom:.2rem}.peerName{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.peerLightContainer{text-transform:uppercase;margin:0;margin-left:auto!important}#config_body{transition:.3s ease-in-out}#config_body.firstLoading{opacity:.2}.chartTitle{display:flex}.chartControl{margin-bottom:1rem;display:flex;align-items:center}.chartTitle h6{margin-bottom:0;line-height:1;margin-right:.5rem}.chartContainer.fullScreen{position:fixed;z-index:9999;background-color:#fff;top:0;left:0;width:calc(100% + 15px);height:100%;padding:32px}.chartContainer.fullScreen .col-sm{padding-right:0;height:100%}.chartContainer.fullScreen .chartCanvasContainer{width:100%;height:calc(100% - 47px)!important;max-height:calc(100% - 47px)!important}#switch{transition:all .2s ease-in}.toggle--switch{display:none}.toggleLabel{width:64px;height:32px;background-color:#6c757d17;display:flex;position:relative;border:2px solid #6c757d8c;border-radius:100px;transition:all .2s ease-in;cursor:pointer;margin:0}.toggle--switch.waiting+.toggleLabel{opacity:.5}.toggleLabel:before{background-color:#6c757d;height:26px;width:26px;content:"";border-radius:100px;margin:1px;position:absolute;animation-name:off;animation-duration:.35s;animation-fill-mode:forwards;transition:all .2s ease-in;cursor:pointer}.toggleLabel:hover:before{filter:brightness(1.2)}.toggle--switch:checked+.toggleLabel{background-color:#007bff17!important;border:2px solid #007bff8c}.toggle--switch:checked+.toggleLabel:before{background-color:#007bff;animation-name:on;animation-duration:.35s;animation-fill-mode:forwards}@keyframes on{0%{left:0}60%{left:0;width:40px}to{left:32px;width:26px}}@keyframes off{0%{left:32px}60%{left:18px;width:40px}to{left:0;width:26px}}.toastContainer{z-index:99999!important}.toast{min-width:300px;background-color:#fff;z-index:99999}.toast-header{background-color:#fff}.toast-progressbar{width:100%;height:4px;background-color:#007bff;border-bottom-left-radius:.25rem}.addConfigurationAvailableIPs{margin-bottom:0}.input-feedback{display:none}#addConfigurationModal label{display:flex;width:100%;align-items:center}#addConfigurationModal label a{margin-left:auto!important}#reGeneratePrivateKey{border-top-right-radius:10px;border-bottom-right-radius:10px}.addConfigurationToggleStatus.waiting{opacity:.5}.peerDataUsageChartContainer{min-height:50vh;width:100%}.peerDataUsageChartControl{display:block!important;margin:0}.peerDataUsageChartControl .switchUnit{width:33.3%}.peerDataUsageChartControl .switchTimePeriod{width:25%}@media (min-width: 1200px){#peerDataUsage .modal-xl{max-width:95vw}}.bottom{display:none}@media (max-width: 768px){.bottom{display:block}.btn-manage-group{bottom:calc(3rem + 40px + env(safe-area-inset-bottom,5px))}main{padding-bottom:calc(3rem + 40px + env(safe-area-inset-bottom,5px))}}.bottomNavContainer{display:flex;color:#333;padding-bottom:env(safe-area-inset-bottom,5px);box-shadow:inset 0 1px #0000001a}.bottomNavButton{width:25vw;display:flex;flex-direction:column;align-items:center;margin:.7rem 0;color:#33333380;cursor:pointer;transition:all ease-in .2s}.bottomNavButton.active{color:#333}.bottomNavButton i{font-size:1.2rem}.bottomNavButton .subNav{width:100vw;position:absolute;z-index:10000;bottom:0;left:0;background-color:#272b30;display:none;animation-duration:.4s;padding-bottom:env(safe-area-inset-bottom,5px)}.bottomNavButton .subNav.active{display:block}.bottomNavButton .subNav .nav .nav-item .nav-link{padding:.7rem 1rem}.bottomNavWrapper{height:100%;width:100%;background-color:#000000a1;position:fixed;z-index:1030;display:none;left:0}.bottomNavWrapper.active{display:block}.sb-update-url .dot-running{transform:translate(10px)}.list-group-item{transition:all .1s ease-in}.theme-switch-btn{width:100%}.fade-enter-active,.fade-leave-active{transition:all .3s ease-in-out}.fade-enter-from,.fade-leave-to{transform:translateY(30px);opacity:0}.fade2-enter-active,.fade2-leave-active{transition:all .15s ease-in-out}.fade2-enter-from{transform:translate(20px);opacity:0}.fade2-leave-to{transform:translate(-20px);opacity:0}.login-container-fluid{height:calc(100% - 50px)!important}.totp{font-family:var(--bs-font-monospace)}.message-move,.message-enter-active,.message-leave-active{transition:all .5s ease}.message-enter-from,.message-leave-to{filter:blur(2px);opacity:0}.message-enter-from{transform:translateY(-30px) scale(.7)}.message-leave-to{transform:translateY(30px)}.message-leave-active{position:absolute}.fade3-enter-active,.fade3-leave-active{transition:all .15s ease-in-out}.fade3-enter-from{transform:scale(1);opacity:0}.fade3-leave-to{transform:scale(.8);opacity:0}.list-move,.list-enter-active,.list-leave-active{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.list-enter-from,.list-leave-to{opacity:0;transform:translateY(30px)}.list-leave-active{position:absolute}.peerSettingContainer{background-color:#00000060;z-index:9999}/*! * Bootstrap v5.3.2 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) @@ -6,10 +6,10 @@ * Bootstrap Icons v1.11.2 (https://icons.getbootstrap.com/) * Copyright 2019-2023 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/icons/blob/main/LICENSE) -*/@font-face{font-display:block;font-family:bootstrap-icons;src:url(/static/app/dist/assets/bootstrap-icons.woff2?7141511ac37f13e1a387fb9fc6646256) format("woff2"),url(/static/app/dist/assets/bootstrap-icons.woff?7141511ac37f13e1a387fb9fc6646256) format("woff")}.bi:before,[class^=bi-]:before,[class*=" bi-"]:before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-123:before{content:""}.bi-alarm-fill:before{content:""}.bi-alarm:before{content:""}.bi-align-bottom:before{content:""}.bi-align-center:before{content:""}.bi-align-end:before{content:""}.bi-align-middle:before{content:""}.bi-align-start:before{content:""}.bi-align-top:before{content:""}.bi-alt:before{content:""}.bi-app-indicator:before{content:""}.bi-app:before{content:""}.bi-archive-fill:before{content:""}.bi-archive:before{content:""}.bi-arrow-90deg-down:before{content:""}.bi-arrow-90deg-left:before{content:""}.bi-arrow-90deg-right:before{content:""}.bi-arrow-90deg-up:before{content:""}.bi-arrow-bar-down:before{content:""}.bi-arrow-bar-left:before{content:""}.bi-arrow-bar-right:before{content:""}.bi-arrow-bar-up:before{content:""}.bi-arrow-clockwise:before{content:""}.bi-arrow-counterclockwise:before{content:""}.bi-arrow-down-circle-fill:before{content:""}.bi-arrow-down-circle:before{content:""}.bi-arrow-down-left-circle-fill:before{content:""}.bi-arrow-down-left-circle:before{content:""}.bi-arrow-down-left-square-fill:before{content:""}.bi-arrow-down-left-square:before{content:""}.bi-arrow-down-left:before{content:""}.bi-arrow-down-right-circle-fill:before{content:""}.bi-arrow-down-right-circle:before{content:""}.bi-arrow-down-right-square-fill:before{content:""}.bi-arrow-down-right-square:before{content:""}.bi-arrow-down-right:before{content:""}.bi-arrow-down-short:before{content:""}.bi-arrow-down-square-fill:before{content:""}.bi-arrow-down-square:before{content:""}.bi-arrow-down-up:before{content:""}.bi-arrow-down:before{content:""}.bi-arrow-left-circle-fill:before{content:""}.bi-arrow-left-circle:before{content:""}.bi-arrow-left-right:before{content:""}.bi-arrow-left-short:before{content:""}.bi-arrow-left-square-fill:before{content:""}.bi-arrow-left-square:before{content:""}.bi-arrow-left:before{content:""}.bi-arrow-repeat:before{content:""}.bi-arrow-return-left:before{content:""}.bi-arrow-return-right:before{content:""}.bi-arrow-right-circle-fill:before{content:""}.bi-arrow-right-circle:before{content:""}.bi-arrow-right-short:before{content:""}.bi-arrow-right-square-fill:before{content:""}.bi-arrow-right-square:before{content:""}.bi-arrow-right:before{content:""}.bi-arrow-up-circle-fill:before{content:""}.bi-arrow-up-circle:before{content:""}.bi-arrow-up-left-circle-fill:before{content:""}.bi-arrow-up-left-circle:before{content:""}.bi-arrow-up-left-square-fill:before{content:""}.bi-arrow-up-left-square:before{content:""}.bi-arrow-up-left:before{content:""}.bi-arrow-up-right-circle-fill:before{content:""}.bi-arrow-up-right-circle:before{content:""}.bi-arrow-up-right-square-fill:before{content:""}.bi-arrow-up-right-square:before{content:""}.bi-arrow-up-right:before{content:""}.bi-arrow-up-short:before{content:""}.bi-arrow-up-square-fill:before{content:""}.bi-arrow-up-square:before{content:""}.bi-arrow-up:before{content:""}.bi-arrows-angle-contract:before{content:""}.bi-arrows-angle-expand:before{content:""}.bi-arrows-collapse:before{content:""}.bi-arrows-expand:before{content:""}.bi-arrows-fullscreen:before{content:""}.bi-arrows-move:before{content:""}.bi-aspect-ratio-fill:before{content:""}.bi-aspect-ratio:before{content:""}.bi-asterisk:before{content:""}.bi-at:before{content:""}.bi-award-fill:before{content:""}.bi-award:before{content:""}.bi-back:before{content:""}.bi-backspace-fill:before{content:""}.bi-backspace-reverse-fill:before{content:""}.bi-backspace-reverse:before{content:""}.bi-backspace:before{content:""}.bi-badge-3d-fill:before{content:""}.bi-badge-3d:before{content:""}.bi-badge-4k-fill:before{content:""}.bi-badge-4k:before{content:""}.bi-badge-8k-fill:before{content:""}.bi-badge-8k:before{content:""}.bi-badge-ad-fill:before{content:""}.bi-badge-ad:before{content:""}.bi-badge-ar-fill:before{content:""}.bi-badge-ar:before{content:""}.bi-badge-cc-fill:before{content:""}.bi-badge-cc:before{content:""}.bi-badge-hd-fill:before{content:""}.bi-badge-hd:before{content:""}.bi-badge-tm-fill:before{content:""}.bi-badge-tm:before{content:""}.bi-badge-vo-fill:before{content:""}.bi-badge-vo:before{content:""}.bi-badge-vr-fill:before{content:""}.bi-badge-vr:before{content:""}.bi-badge-wc-fill:before{content:""}.bi-badge-wc:before{content:""}.bi-bag-check-fill:before{content:""}.bi-bag-check:before{content:""}.bi-bag-dash-fill:before{content:""}.bi-bag-dash:before{content:""}.bi-bag-fill:before{content:""}.bi-bag-plus-fill:before{content:""}.bi-bag-plus:before{content:""}.bi-bag-x-fill:before{content:""}.bi-bag-x:before{content:""}.bi-bag:before{content:""}.bi-bar-chart-fill:before{content:""}.bi-bar-chart-line-fill:before{content:""}.bi-bar-chart-line:before{content:""}.bi-bar-chart-steps:before{content:""}.bi-bar-chart:before{content:""}.bi-basket-fill:before{content:""}.bi-basket:before{content:""}.bi-basket2-fill:before{content:""}.bi-basket2:before{content:""}.bi-basket3-fill:before{content:""}.bi-basket3:before{content:""}.bi-battery-charging:before{content:""}.bi-battery-full:before{content:""}.bi-battery-half:before{content:""}.bi-battery:before{content:""}.bi-bell-fill:before{content:""}.bi-bell:before{content:""}.bi-bezier:before{content:""}.bi-bezier2:before{content:""}.bi-bicycle:before{content:""}.bi-binoculars-fill:before{content:""}.bi-binoculars:before{content:""}.bi-blockquote-left:before{content:""}.bi-blockquote-right:before{content:""}.bi-book-fill:before{content:""}.bi-book-half:before{content:""}.bi-book:before{content:""}.bi-bookmark-check-fill:before{content:""}.bi-bookmark-check:before{content:""}.bi-bookmark-dash-fill:before{content:""}.bi-bookmark-dash:before{content:""}.bi-bookmark-fill:before{content:""}.bi-bookmark-heart-fill:before{content:""}.bi-bookmark-heart:before{content:""}.bi-bookmark-plus-fill:before{content:""}.bi-bookmark-plus:before{content:""}.bi-bookmark-star-fill:before{content:""}.bi-bookmark-star:before{content:""}.bi-bookmark-x-fill:before{content:""}.bi-bookmark-x:before{content:""}.bi-bookmark:before{content:""}.bi-bookmarks-fill:before{content:""}.bi-bookmarks:before{content:""}.bi-bookshelf:before{content:""}.bi-bootstrap-fill:before{content:""}.bi-bootstrap-reboot:before{content:""}.bi-bootstrap:before{content:""}.bi-border-all:before{content:""}.bi-border-bottom:before{content:""}.bi-border-center:before{content:""}.bi-border-inner:before{content:""}.bi-border-left:before{content:""}.bi-border-middle:before{content:""}.bi-border-outer:before{content:""}.bi-border-right:before{content:""}.bi-border-style:before{content:""}.bi-border-top:before{content:""}.bi-border-width:before{content:""}.bi-border:before{content:""}.bi-bounding-box-circles:before{content:""}.bi-bounding-box:before{content:""}.bi-box-arrow-down-left:before{content:""}.bi-box-arrow-down-right:before{content:""}.bi-box-arrow-down:before{content:""}.bi-box-arrow-in-down-left:before{content:""}.bi-box-arrow-in-down-right:before{content:""}.bi-box-arrow-in-down:before{content:""}.bi-box-arrow-in-left:before{content:""}.bi-box-arrow-in-right:before{content:""}.bi-box-arrow-in-up-left:before{content:""}.bi-box-arrow-in-up-right:before{content:""}.bi-box-arrow-in-up:before{content:""}.bi-box-arrow-left:before{content:""}.bi-box-arrow-right:before{content:""}.bi-box-arrow-up-left:before{content:""}.bi-box-arrow-up-right:before{content:""}.bi-box-arrow-up:before{content:""}.bi-box-seam:before{content:""}.bi-box:before{content:""}.bi-braces:before{content:""}.bi-bricks:before{content:""}.bi-briefcase-fill:before{content:""}.bi-briefcase:before{content:""}.bi-brightness-alt-high-fill:before{content:""}.bi-brightness-alt-high:before{content:""}.bi-brightness-alt-low-fill:before{content:""}.bi-brightness-alt-low:before{content:""}.bi-brightness-high-fill:before{content:""}.bi-brightness-high:before{content:""}.bi-brightness-low-fill:before{content:""}.bi-brightness-low:before{content:""}.bi-broadcast-pin:before{content:""}.bi-broadcast:before{content:""}.bi-brush-fill:before{content:""}.bi-brush:before{content:""}.bi-bucket-fill:before{content:""}.bi-bucket:before{content:""}.bi-bug-fill:before{content:""}.bi-bug:before{content:""}.bi-building:before{content:""}.bi-bullseye:before{content:""}.bi-calculator-fill:before{content:""}.bi-calculator:before{content:""}.bi-calendar-check-fill:before{content:""}.bi-calendar-check:before{content:""}.bi-calendar-date-fill:before{content:""}.bi-calendar-date:before{content:""}.bi-calendar-day-fill:before{content:""}.bi-calendar-day:before{content:""}.bi-calendar-event-fill:before{content:""}.bi-calendar-event:before{content:""}.bi-calendar-fill:before{content:""}.bi-calendar-minus-fill:before{content:""}.bi-calendar-minus:before{content:""}.bi-calendar-month-fill:before{content:""}.bi-calendar-month:before{content:""}.bi-calendar-plus-fill:before{content:""}.bi-calendar-plus:before{content:""}.bi-calendar-range-fill:before{content:""}.bi-calendar-range:before{content:""}.bi-calendar-week-fill:before{content:""}.bi-calendar-week:before{content:""}.bi-calendar-x-fill:before{content:""}.bi-calendar-x:before{content:""}.bi-calendar:before{content:""}.bi-calendar2-check-fill:before{content:""}.bi-calendar2-check:before{content:""}.bi-calendar2-date-fill:before{content:""}.bi-calendar2-date:before{content:""}.bi-calendar2-day-fill:before{content:""}.bi-calendar2-day:before{content:""}.bi-calendar2-event-fill:before{content:""}.bi-calendar2-event:before{content:""}.bi-calendar2-fill:before{content:""}.bi-calendar2-minus-fill:before{content:""}.bi-calendar2-minus:before{content:""}.bi-calendar2-month-fill:before{content:""}.bi-calendar2-month:before{content:""}.bi-calendar2-plus-fill:before{content:""}.bi-calendar2-plus:before{content:""}.bi-calendar2-range-fill:before{content:""}.bi-calendar2-range:before{content:""}.bi-calendar2-week-fill:before{content:""}.bi-calendar2-week:before{content:""}.bi-calendar2-x-fill:before{content:""}.bi-calendar2-x:before{content:""}.bi-calendar2:before{content:""}.bi-calendar3-event-fill:before{content:""}.bi-calendar3-event:before{content:""}.bi-calendar3-fill:before{content:""}.bi-calendar3-range-fill:before{content:""}.bi-calendar3-range:before{content:""}.bi-calendar3-week-fill:before{content:""}.bi-calendar3-week:before{content:""}.bi-calendar3:before{content:""}.bi-calendar4-event:before{content:""}.bi-calendar4-range:before{content:""}.bi-calendar4-week:before{content:""}.bi-calendar4:before{content:""}.bi-camera-fill:before{content:""}.bi-camera-reels-fill:before{content:""}.bi-camera-reels:before{content:""}.bi-camera-video-fill:before{content:""}.bi-camera-video-off-fill:before{content:""}.bi-camera-video-off:before{content:""}.bi-camera-video:before{content:""}.bi-camera:before{content:""}.bi-camera2:before{content:""}.bi-capslock-fill:before{content:""}.bi-capslock:before{content:""}.bi-card-checklist:before{content:""}.bi-card-heading:before{content:""}.bi-card-image:before{content:""}.bi-card-list:before{content:""}.bi-card-text:before{content:""}.bi-caret-down-fill:before{content:""}.bi-caret-down-square-fill:before{content:""}.bi-caret-down-square:before{content:""}.bi-caret-down:before{content:""}.bi-caret-left-fill:before{content:""}.bi-caret-left-square-fill:before{content:""}.bi-caret-left-square:before{content:""}.bi-caret-left:before{content:""}.bi-caret-right-fill:before{content:""}.bi-caret-right-square-fill:before{content:""}.bi-caret-right-square:before{content:""}.bi-caret-right:before{content:""}.bi-caret-up-fill:before{content:""}.bi-caret-up-square-fill:before{content:""}.bi-caret-up-square:before{content:""}.bi-caret-up:before{content:""}.bi-cart-check-fill:before{content:""}.bi-cart-check:before{content:""}.bi-cart-dash-fill:before{content:""}.bi-cart-dash:before{content:""}.bi-cart-fill:before{content:""}.bi-cart-plus-fill:before{content:""}.bi-cart-plus:before{content:""}.bi-cart-x-fill:before{content:""}.bi-cart-x:before{content:""}.bi-cart:before{content:""}.bi-cart2:before{content:""}.bi-cart3:before{content:""}.bi-cart4:before{content:""}.bi-cash-stack:before{content:""}.bi-cash:before{content:""}.bi-cast:before{content:""}.bi-chat-dots-fill:before{content:""}.bi-chat-dots:before{content:""}.bi-chat-fill:before{content:""}.bi-chat-left-dots-fill:before{content:""}.bi-chat-left-dots:before{content:""}.bi-chat-left-fill:before{content:""}.bi-chat-left-quote-fill:before{content:""}.bi-chat-left-quote:before{content:""}.bi-chat-left-text-fill:before{content:""}.bi-chat-left-text:before{content:""}.bi-chat-left:before{content:""}.bi-chat-quote-fill:before{content:""}.bi-chat-quote:before{content:""}.bi-chat-right-dots-fill:before{content:""}.bi-chat-right-dots:before{content:""}.bi-chat-right-fill:before{content:""}.bi-chat-right-quote-fill:before{content:""}.bi-chat-right-quote:before{content:""}.bi-chat-right-text-fill:before{content:""}.bi-chat-right-text:before{content:""}.bi-chat-right:before{content:""}.bi-chat-square-dots-fill:before{content:""}.bi-chat-square-dots:before{content:""}.bi-chat-square-fill:before{content:""}.bi-chat-square-quote-fill:before{content:""}.bi-chat-square-quote:before{content:""}.bi-chat-square-text-fill:before{content:""}.bi-chat-square-text:before{content:""}.bi-chat-square:before{content:""}.bi-chat-text-fill:before{content:""}.bi-chat-text:before{content:""}.bi-chat:before{content:""}.bi-check-all:before{content:""}.bi-check-circle-fill:before{content:""}.bi-check-circle:before{content:""}.bi-check-square-fill:before{content:""}.bi-check-square:before{content:""}.bi-check:before{content:""}.bi-check2-all:before{content:""}.bi-check2-circle:before{content:""}.bi-check2-square:before{content:""}.bi-check2:before{content:""}.bi-chevron-bar-contract:before{content:""}.bi-chevron-bar-down:before{content:""}.bi-chevron-bar-expand:before{content:""}.bi-chevron-bar-left:before{content:""}.bi-chevron-bar-right:before{content:""}.bi-chevron-bar-up:before{content:""}.bi-chevron-compact-down:before{content:""}.bi-chevron-compact-left:before{content:""}.bi-chevron-compact-right:before{content:""}.bi-chevron-compact-up:before{content:""}.bi-chevron-contract:before{content:""}.bi-chevron-double-down:before{content:""}.bi-chevron-double-left:before{content:""}.bi-chevron-double-right:before{content:""}.bi-chevron-double-up:before{content:""}.bi-chevron-down:before{content:""}.bi-chevron-expand:before{content:""}.bi-chevron-left:before{content:""}.bi-chevron-right:before{content:""}.bi-chevron-up:before{content:""}.bi-circle-fill:before{content:""}.bi-circle-half:before{content:""}.bi-circle-square:before{content:""}.bi-circle:before{content:""}.bi-clipboard-check:before{content:""}.bi-clipboard-data:before{content:""}.bi-clipboard-minus:before{content:""}.bi-clipboard-plus:before{content:""}.bi-clipboard-x:before{content:""}.bi-clipboard:before{content:""}.bi-clock-fill:before{content:""}.bi-clock-history:before{content:""}.bi-clock:before{content:""}.bi-cloud-arrow-down-fill:before{content:""}.bi-cloud-arrow-down:before{content:""}.bi-cloud-arrow-up-fill:before{content:""}.bi-cloud-arrow-up:before{content:""}.bi-cloud-check-fill:before{content:""}.bi-cloud-check:before{content:""}.bi-cloud-download-fill:before{content:""}.bi-cloud-download:before{content:""}.bi-cloud-drizzle-fill:before{content:""}.bi-cloud-drizzle:before{content:""}.bi-cloud-fill:before{content:""}.bi-cloud-fog-fill:before{content:""}.bi-cloud-fog:before{content:""}.bi-cloud-fog2-fill:before{content:""}.bi-cloud-fog2:before{content:""}.bi-cloud-hail-fill:before{content:""}.bi-cloud-hail:before{content:""}.bi-cloud-haze-fill:before{content:""}.bi-cloud-haze:before{content:""}.bi-cloud-haze2-fill:before{content:""}.bi-cloud-lightning-fill:before{content:""}.bi-cloud-lightning-rain-fill:before{content:""}.bi-cloud-lightning-rain:before{content:""}.bi-cloud-lightning:before{content:""}.bi-cloud-minus-fill:before{content:""}.bi-cloud-minus:before{content:""}.bi-cloud-moon-fill:before{content:""}.bi-cloud-moon:before{content:""}.bi-cloud-plus-fill:before{content:""}.bi-cloud-plus:before{content:""}.bi-cloud-rain-fill:before{content:""}.bi-cloud-rain-heavy-fill:before{content:""}.bi-cloud-rain-heavy:before{content:""}.bi-cloud-rain:before{content:""}.bi-cloud-slash-fill:before{content:""}.bi-cloud-slash:before{content:""}.bi-cloud-sleet-fill:before{content:""}.bi-cloud-sleet:before{content:""}.bi-cloud-snow-fill:before{content:""}.bi-cloud-snow:before{content:""}.bi-cloud-sun-fill:before{content:""}.bi-cloud-sun:before{content:""}.bi-cloud-upload-fill:before{content:""}.bi-cloud-upload:before{content:""}.bi-cloud:before{content:""}.bi-clouds-fill:before{content:""}.bi-clouds:before{content:""}.bi-cloudy-fill:before{content:""}.bi-cloudy:before{content:""}.bi-code-slash:before{content:""}.bi-code-square:before{content:""}.bi-code:before{content:""}.bi-collection-fill:before{content:""}.bi-collection-play-fill:before{content:""}.bi-collection-play:before{content:""}.bi-collection:before{content:""}.bi-columns-gap:before{content:""}.bi-columns:before{content:""}.bi-command:before{content:""}.bi-compass-fill:before{content:""}.bi-compass:before{content:""}.bi-cone-striped:before{content:""}.bi-cone:before{content:""}.bi-controller:before{content:""}.bi-cpu-fill:before{content:""}.bi-cpu:before{content:""}.bi-credit-card-2-back-fill:before{content:""}.bi-credit-card-2-back:before{content:""}.bi-credit-card-2-front-fill:before{content:""}.bi-credit-card-2-front:before{content:""}.bi-credit-card-fill:before{content:""}.bi-credit-card:before{content:""}.bi-crop:before{content:""}.bi-cup-fill:before{content:""}.bi-cup-straw:before{content:""}.bi-cup:before{content:""}.bi-cursor-fill:before{content:""}.bi-cursor-text:before{content:""}.bi-cursor:before{content:""}.bi-dash-circle-dotted:before{content:""}.bi-dash-circle-fill:before{content:""}.bi-dash-circle:before{content:""}.bi-dash-square-dotted:before{content:""}.bi-dash-square-fill:before{content:""}.bi-dash-square:before{content:""}.bi-dash:before{content:""}.bi-diagram-2-fill:before{content:""}.bi-diagram-2:before{content:""}.bi-diagram-3-fill:before{content:""}.bi-diagram-3:before{content:""}.bi-diamond-fill:before{content:""}.bi-diamond-half:before{content:""}.bi-diamond:before{content:""}.bi-dice-1-fill:before{content:""}.bi-dice-1:before{content:""}.bi-dice-2-fill:before{content:""}.bi-dice-2:before{content:""}.bi-dice-3-fill:before{content:""}.bi-dice-3:before{content:""}.bi-dice-4-fill:before{content:""}.bi-dice-4:before{content:""}.bi-dice-5-fill:before{content:""}.bi-dice-5:before{content:""}.bi-dice-6-fill:before{content:""}.bi-dice-6:before{content:""}.bi-disc-fill:before{content:""}.bi-disc:before{content:""}.bi-discord:before{content:""}.bi-display-fill:before{content:""}.bi-display:before{content:""}.bi-distribute-horizontal:before{content:""}.bi-distribute-vertical:before{content:""}.bi-door-closed-fill:before{content:""}.bi-door-closed:before{content:""}.bi-door-open-fill:before{content:""}.bi-door-open:before{content:""}.bi-dot:before{content:""}.bi-download:before{content:""}.bi-droplet-fill:before{content:""}.bi-droplet-half:before{content:""}.bi-droplet:before{content:""}.bi-earbuds:before{content:""}.bi-easel-fill:before{content:""}.bi-easel:before{content:""}.bi-egg-fill:before{content:""}.bi-egg-fried:before{content:""}.bi-egg:before{content:""}.bi-eject-fill:before{content:""}.bi-eject:before{content:""}.bi-emoji-angry-fill:before{content:""}.bi-emoji-angry:before{content:""}.bi-emoji-dizzy-fill:before{content:""}.bi-emoji-dizzy:before{content:""}.bi-emoji-expressionless-fill:before{content:""}.bi-emoji-expressionless:before{content:""}.bi-emoji-frown-fill:before{content:""}.bi-emoji-frown:before{content:""}.bi-emoji-heart-eyes-fill:before{content:""}.bi-emoji-heart-eyes:before{content:""}.bi-emoji-laughing-fill:before{content:""}.bi-emoji-laughing:before{content:""}.bi-emoji-neutral-fill:before{content:""}.bi-emoji-neutral:before{content:""}.bi-emoji-smile-fill:before{content:""}.bi-emoji-smile-upside-down-fill:before{content:""}.bi-emoji-smile-upside-down:before{content:""}.bi-emoji-smile:before{content:""}.bi-emoji-sunglasses-fill:before{content:""}.bi-emoji-sunglasses:before{content:""}.bi-emoji-wink-fill:before{content:""}.bi-emoji-wink:before{content:""}.bi-envelope-fill:before{content:""}.bi-envelope-open-fill:before{content:""}.bi-envelope-open:before{content:""}.bi-envelope:before{content:""}.bi-eraser-fill:before{content:""}.bi-eraser:before{content:""}.bi-exclamation-circle-fill:before{content:""}.bi-exclamation-circle:before{content:""}.bi-exclamation-diamond-fill:before{content:""}.bi-exclamation-diamond:before{content:""}.bi-exclamation-octagon-fill:before{content:""}.bi-exclamation-octagon:before{content:""}.bi-exclamation-square-fill:before{content:""}.bi-exclamation-square:before{content:""}.bi-exclamation-triangle-fill:before{content:""}.bi-exclamation-triangle:before{content:""}.bi-exclamation:before{content:""}.bi-exclude:before{content:""}.bi-eye-fill:before{content:""}.bi-eye-slash-fill:before{content:""}.bi-eye-slash:before{content:""}.bi-eye:before{content:""}.bi-eyedropper:before{content:""}.bi-eyeglasses:before{content:""}.bi-facebook:before{content:""}.bi-file-arrow-down-fill:before{content:""}.bi-file-arrow-down:before{content:""}.bi-file-arrow-up-fill:before{content:""}.bi-file-arrow-up:before{content:""}.bi-file-bar-graph-fill:before{content:""}.bi-file-bar-graph:before{content:""}.bi-file-binary-fill:before{content:""}.bi-file-binary:before{content:""}.bi-file-break-fill:before{content:""}.bi-file-break:before{content:""}.bi-file-check-fill:before{content:""}.bi-file-check:before{content:""}.bi-file-code-fill:before{content:""}.bi-file-code:before{content:""}.bi-file-diff-fill:before{content:""}.bi-file-diff:before{content:""}.bi-file-earmark-arrow-down-fill:before{content:""}.bi-file-earmark-arrow-down:before{content:""}.bi-file-earmark-arrow-up-fill:before{content:""}.bi-file-earmark-arrow-up:before{content:""}.bi-file-earmark-bar-graph-fill:before{content:""}.bi-file-earmark-bar-graph:before{content:""}.bi-file-earmark-binary-fill:before{content:""}.bi-file-earmark-binary:before{content:""}.bi-file-earmark-break-fill:before{content:""}.bi-file-earmark-break:before{content:""}.bi-file-earmark-check-fill:before{content:""}.bi-file-earmark-check:before{content:""}.bi-file-earmark-code-fill:before{content:""}.bi-file-earmark-code:before{content:""}.bi-file-earmark-diff-fill:before{content:""}.bi-file-earmark-diff:before{content:""}.bi-file-earmark-easel-fill:before{content:""}.bi-file-earmark-easel:before{content:""}.bi-file-earmark-excel-fill:before{content:""}.bi-file-earmark-excel:before{content:""}.bi-file-earmark-fill:before{content:""}.bi-file-earmark-font-fill:before{content:""}.bi-file-earmark-font:before{content:""}.bi-file-earmark-image-fill:before{content:""}.bi-file-earmark-image:before{content:""}.bi-file-earmark-lock-fill:before{content:""}.bi-file-earmark-lock:before{content:""}.bi-file-earmark-lock2-fill:before{content:""}.bi-file-earmark-lock2:before{content:""}.bi-file-earmark-medical-fill:before{content:""}.bi-file-earmark-medical:before{content:""}.bi-file-earmark-minus-fill:before{content:""}.bi-file-earmark-minus:before{content:""}.bi-file-earmark-music-fill:before{content:""}.bi-file-earmark-music:before{content:""}.bi-file-earmark-person-fill:before{content:""}.bi-file-earmark-person:before{content:""}.bi-file-earmark-play-fill:before{content:""}.bi-file-earmark-play:before{content:""}.bi-file-earmark-plus-fill:before{content:""}.bi-file-earmark-plus:before{content:""}.bi-file-earmark-post-fill:before{content:""}.bi-file-earmark-post:before{content:""}.bi-file-earmark-ppt-fill:before{content:""}.bi-file-earmark-ppt:before{content:""}.bi-file-earmark-richtext-fill:before{content:""}.bi-file-earmark-richtext:before{content:""}.bi-file-earmark-ruled-fill:before{content:""}.bi-file-earmark-ruled:before{content:""}.bi-file-earmark-slides-fill:before{content:""}.bi-file-earmark-slides:before{content:""}.bi-file-earmark-spreadsheet-fill:before{content:""}.bi-file-earmark-spreadsheet:before{content:""}.bi-file-earmark-text-fill:before{content:""}.bi-file-earmark-text:before{content:""}.bi-file-earmark-word-fill:before{content:""}.bi-file-earmark-word:before{content:""}.bi-file-earmark-x-fill:before{content:""}.bi-file-earmark-x:before{content:""}.bi-file-earmark-zip-fill:before{content:""}.bi-file-earmark-zip:before{content:""}.bi-file-earmark:before{content:""}.bi-file-easel-fill:before{content:""}.bi-file-easel:before{content:""}.bi-file-excel-fill:before{content:""}.bi-file-excel:before{content:""}.bi-file-fill:before{content:""}.bi-file-font-fill:before{content:""}.bi-file-font:before{content:""}.bi-file-image-fill:before{content:""}.bi-file-image:before{content:""}.bi-file-lock-fill:before{content:""}.bi-file-lock:before{content:""}.bi-file-lock2-fill:before{content:""}.bi-file-lock2:before{content:""}.bi-file-medical-fill:before{content:""}.bi-file-medical:before{content:""}.bi-file-minus-fill:before{content:""}.bi-file-minus:before{content:""}.bi-file-music-fill:before{content:""}.bi-file-music:before{content:""}.bi-file-person-fill:before{content:""}.bi-file-person:before{content:""}.bi-file-play-fill:before{content:""}.bi-file-play:before{content:""}.bi-file-plus-fill:before{content:""}.bi-file-plus:before{content:""}.bi-file-post-fill:before{content:""}.bi-file-post:before{content:""}.bi-file-ppt-fill:before{content:""}.bi-file-ppt:before{content:""}.bi-file-richtext-fill:before{content:""}.bi-file-richtext:before{content:""}.bi-file-ruled-fill:before{content:""}.bi-file-ruled:before{content:""}.bi-file-slides-fill:before{content:""}.bi-file-slides:before{content:""}.bi-file-spreadsheet-fill:before{content:""}.bi-file-spreadsheet:before{content:""}.bi-file-text-fill:before{content:""}.bi-file-text:before{content:""}.bi-file-word-fill:before{content:""}.bi-file-word:before{content:""}.bi-file-x-fill:before{content:""}.bi-file-x:before{content:""}.bi-file-zip-fill:before{content:""}.bi-file-zip:before{content:""}.bi-file:before{content:""}.bi-files-alt:before{content:""}.bi-files:before{content:""}.bi-film:before{content:""}.bi-filter-circle-fill:before{content:""}.bi-filter-circle:before{content:""}.bi-filter-left:before{content:""}.bi-filter-right:before{content:""}.bi-filter-square-fill:before{content:""}.bi-filter-square:before{content:""}.bi-filter:before{content:""}.bi-flag-fill:before{content:""}.bi-flag:before{content:""}.bi-flower1:before{content:""}.bi-flower2:before{content:""}.bi-flower3:before{content:""}.bi-folder-check:before{content:""}.bi-folder-fill:before{content:""}.bi-folder-minus:before{content:""}.bi-folder-plus:before{content:""}.bi-folder-symlink-fill:before{content:""}.bi-folder-symlink:before{content:""}.bi-folder-x:before{content:""}.bi-folder:before{content:""}.bi-folder2-open:before{content:""}.bi-folder2:before{content:""}.bi-fonts:before{content:""}.bi-forward-fill:before{content:""}.bi-forward:before{content:""}.bi-front:before{content:""}.bi-fullscreen-exit:before{content:""}.bi-fullscreen:before{content:""}.bi-funnel-fill:before{content:""}.bi-funnel:before{content:""}.bi-gear-fill:before{content:""}.bi-gear-wide-connected:before{content:""}.bi-gear-wide:before{content:""}.bi-gear:before{content:""}.bi-gem:before{content:""}.bi-geo-alt-fill:before{content:""}.bi-geo-alt:before{content:""}.bi-geo-fill:before{content:""}.bi-geo:before{content:""}.bi-gift-fill:before{content:""}.bi-gift:before{content:""}.bi-github:before{content:""}.bi-globe:before{content:""}.bi-globe2:before{content:""}.bi-google:before{content:""}.bi-graph-down:before{content:""}.bi-graph-up:before{content:""}.bi-grid-1x2-fill:before{content:""}.bi-grid-1x2:before{content:""}.bi-grid-3x2-gap-fill:before{content:""}.bi-grid-3x2-gap:before{content:""}.bi-grid-3x2:before{content:""}.bi-grid-3x3-gap-fill:before{content:""}.bi-grid-3x3-gap:before{content:""}.bi-grid-3x3:before{content:""}.bi-grid-fill:before{content:""}.bi-grid:before{content:""}.bi-grip-horizontal:before{content:""}.bi-grip-vertical:before{content:""}.bi-hammer:before{content:""}.bi-hand-index-fill:before{content:""}.bi-hand-index-thumb-fill:before{content:""}.bi-hand-index-thumb:before{content:""}.bi-hand-index:before{content:""}.bi-hand-thumbs-down-fill:before{content:""}.bi-hand-thumbs-down:before{content:""}.bi-hand-thumbs-up-fill:before{content:""}.bi-hand-thumbs-up:before{content:""}.bi-handbag-fill:before{content:""}.bi-handbag:before{content:""}.bi-hash:before{content:""}.bi-hdd-fill:before{content:""}.bi-hdd-network-fill:before{content:""}.bi-hdd-network:before{content:""}.bi-hdd-rack-fill:before{content:""}.bi-hdd-rack:before{content:""}.bi-hdd-stack-fill:before{content:""}.bi-hdd-stack:before{content:""}.bi-hdd:before{content:""}.bi-headphones:before{content:""}.bi-headset:before{content:""}.bi-heart-fill:before{content:""}.bi-heart-half:before{content:""}.bi-heart:before{content:""}.bi-heptagon-fill:before{content:""}.bi-heptagon-half:before{content:""}.bi-heptagon:before{content:""}.bi-hexagon-fill:before{content:""}.bi-hexagon-half:before{content:""}.bi-hexagon:before{content:""}.bi-hourglass-bottom:before{content:""}.bi-hourglass-split:before{content:""}.bi-hourglass-top:before{content:""}.bi-hourglass:before{content:""}.bi-house-door-fill:before{content:""}.bi-house-door:before{content:""}.bi-house-fill:before{content:""}.bi-house:before{content:""}.bi-hr:before{content:""}.bi-hurricane:before{content:""}.bi-image-alt:before{content:""}.bi-image-fill:before{content:""}.bi-image:before{content:""}.bi-images:before{content:""}.bi-inbox-fill:before{content:""}.bi-inbox:before{content:""}.bi-inboxes-fill:before{content:""}.bi-inboxes:before{content:""}.bi-info-circle-fill:before{content:""}.bi-info-circle:before{content:""}.bi-info-square-fill:before{content:""}.bi-info-square:before{content:""}.bi-info:before{content:""}.bi-input-cursor-text:before{content:""}.bi-input-cursor:before{content:""}.bi-instagram:before{content:""}.bi-intersect:before{content:""}.bi-journal-album:before{content:""}.bi-journal-arrow-down:before{content:""}.bi-journal-arrow-up:before{content:""}.bi-journal-bookmark-fill:before{content:""}.bi-journal-bookmark:before{content:""}.bi-journal-check:before{content:""}.bi-journal-code:before{content:""}.bi-journal-medical:before{content:""}.bi-journal-minus:before{content:""}.bi-journal-plus:before{content:""}.bi-journal-richtext:before{content:""}.bi-journal-text:before{content:""}.bi-journal-x:before{content:""}.bi-journal:before{content:""}.bi-journals:before{content:""}.bi-joystick:before{content:""}.bi-justify-left:before{content:""}.bi-justify-right:before{content:""}.bi-justify:before{content:""}.bi-kanban-fill:before{content:""}.bi-kanban:before{content:""}.bi-key-fill:before{content:""}.bi-key:before{content:""}.bi-keyboard-fill:before{content:""}.bi-keyboard:before{content:""}.bi-ladder:before{content:""}.bi-lamp-fill:before{content:""}.bi-lamp:before{content:""}.bi-laptop-fill:before{content:""}.bi-laptop:before{content:""}.bi-layer-backward:before{content:""}.bi-layer-forward:before{content:""}.bi-layers-fill:before{content:""}.bi-layers-half:before{content:""}.bi-layers:before{content:""}.bi-layout-sidebar-inset-reverse:before{content:""}.bi-layout-sidebar-inset:before{content:""}.bi-layout-sidebar-reverse:before{content:""}.bi-layout-sidebar:before{content:""}.bi-layout-split:before{content:""}.bi-layout-text-sidebar-reverse:before{content:""}.bi-layout-text-sidebar:before{content:""}.bi-layout-text-window-reverse:before{content:""}.bi-layout-text-window:before{content:""}.bi-layout-three-columns:before{content:""}.bi-layout-wtf:before{content:""}.bi-life-preserver:before{content:""}.bi-lightbulb-fill:before{content:""}.bi-lightbulb-off-fill:before{content:""}.bi-lightbulb-off:before{content:""}.bi-lightbulb:before{content:""}.bi-lightning-charge-fill:before{content:""}.bi-lightning-charge:before{content:""}.bi-lightning-fill:before{content:""}.bi-lightning:before{content:""}.bi-link-45deg:before{content:""}.bi-link:before{content:""}.bi-linkedin:before{content:""}.bi-list-check:before{content:""}.bi-list-nested:before{content:""}.bi-list-ol:before{content:""}.bi-list-stars:before{content:""}.bi-list-task:before{content:""}.bi-list-ul:before{content:""}.bi-list:before{content:""}.bi-lock-fill:before{content:""}.bi-lock:before{content:""}.bi-mailbox:before{content:""}.bi-mailbox2:before{content:""}.bi-map-fill:before{content:""}.bi-map:before{content:""}.bi-markdown-fill:before{content:""}.bi-markdown:before{content:""}.bi-mask:before{content:""}.bi-megaphone-fill:before{content:""}.bi-megaphone:before{content:""}.bi-menu-app-fill:before{content:""}.bi-menu-app:before{content:""}.bi-menu-button-fill:before{content:""}.bi-menu-button-wide-fill:before{content:""}.bi-menu-button-wide:before{content:""}.bi-menu-button:before{content:""}.bi-menu-down:before{content:""}.bi-menu-up:before{content:""}.bi-mic-fill:before{content:""}.bi-mic-mute-fill:before{content:""}.bi-mic-mute:before{content:""}.bi-mic:before{content:""}.bi-minecart-loaded:before{content:""}.bi-minecart:before{content:""}.bi-moisture:before{content:""}.bi-moon-fill:before{content:""}.bi-moon-stars-fill:before{content:""}.bi-moon-stars:before{content:""}.bi-moon:before{content:""}.bi-mouse-fill:before{content:""}.bi-mouse:before{content:""}.bi-mouse2-fill:before{content:""}.bi-mouse2:before{content:""}.bi-mouse3-fill:before{content:""}.bi-mouse3:before{content:""}.bi-music-note-beamed:before{content:""}.bi-music-note-list:before{content:""}.bi-music-note:before{content:""}.bi-music-player-fill:before{content:""}.bi-music-player:before{content:""}.bi-newspaper:before{content:""}.bi-node-minus-fill:before{content:""}.bi-node-minus:before{content:""}.bi-node-plus-fill:before{content:""}.bi-node-plus:before{content:""}.bi-nut-fill:before{content:""}.bi-nut:before{content:""}.bi-octagon-fill:before{content:""}.bi-octagon-half:before{content:""}.bi-octagon:before{content:""}.bi-option:before{content:""}.bi-outlet:before{content:""}.bi-paint-bucket:before{content:""}.bi-palette-fill:before{content:""}.bi-palette:before{content:""}.bi-palette2:before{content:""}.bi-paperclip:before{content:""}.bi-paragraph:before{content:""}.bi-patch-check-fill:before{content:""}.bi-patch-check:before{content:""}.bi-patch-exclamation-fill:before{content:""}.bi-patch-exclamation:before{content:""}.bi-patch-minus-fill:before{content:""}.bi-patch-minus:before{content:""}.bi-patch-plus-fill:before{content:""}.bi-patch-plus:before{content:""}.bi-patch-question-fill:before{content:""}.bi-patch-question:before{content:""}.bi-pause-btn-fill:before{content:""}.bi-pause-btn:before{content:""}.bi-pause-circle-fill:before{content:""}.bi-pause-circle:before{content:""}.bi-pause-fill:before{content:""}.bi-pause:before{content:""}.bi-peace-fill:before{content:""}.bi-peace:before{content:""}.bi-pen-fill:before{content:""}.bi-pen:before{content:""}.bi-pencil-fill:before{content:""}.bi-pencil-square:before{content:""}.bi-pencil:before{content:""}.bi-pentagon-fill:before{content:""}.bi-pentagon-half:before{content:""}.bi-pentagon:before{content:""}.bi-people-fill:before{content:""}.bi-people:before{content:""}.bi-percent:before{content:""}.bi-person-badge-fill:before{content:""}.bi-person-badge:before{content:""}.bi-person-bounding-box:before{content:""}.bi-person-check-fill:before{content:""}.bi-person-check:before{content:""}.bi-person-circle:before{content:""}.bi-person-dash-fill:before{content:""}.bi-person-dash:before{content:""}.bi-person-fill:before{content:""}.bi-person-lines-fill:before{content:""}.bi-person-plus-fill:before{content:""}.bi-person-plus:before{content:""}.bi-person-square:before{content:""}.bi-person-x-fill:before{content:""}.bi-person-x:before{content:""}.bi-person:before{content:""}.bi-phone-fill:before{content:""}.bi-phone-landscape-fill:before{content:""}.bi-phone-landscape:before{content:""}.bi-phone-vibrate-fill:before{content:""}.bi-phone-vibrate:before{content:""}.bi-phone:before{content:""}.bi-pie-chart-fill:before{content:""}.bi-pie-chart:before{content:""}.bi-pin-angle-fill:before{content:""}.bi-pin-angle:before{content:""}.bi-pin-fill:before{content:""}.bi-pin:before{content:""}.bi-pip-fill:before{content:""}.bi-pip:before{content:""}.bi-play-btn-fill:before{content:""}.bi-play-btn:before{content:""}.bi-play-circle-fill:before{content:""}.bi-play-circle:before{content:""}.bi-play-fill:before{content:""}.bi-play:before{content:""}.bi-plug-fill:before{content:""}.bi-plug:before{content:""}.bi-plus-circle-dotted:before{content:""}.bi-plus-circle-fill:before{content:""}.bi-plus-circle:before{content:""}.bi-plus-square-dotted:before{content:""}.bi-plus-square-fill:before{content:""}.bi-plus-square:before{content:""}.bi-plus:before{content:""}.bi-power:before{content:""}.bi-printer-fill:before{content:""}.bi-printer:before{content:""}.bi-puzzle-fill:before{content:""}.bi-puzzle:before{content:""}.bi-question-circle-fill:before{content:""}.bi-question-circle:before{content:""}.bi-question-diamond-fill:before{content:""}.bi-question-diamond:before{content:""}.bi-question-octagon-fill:before{content:""}.bi-question-octagon:before{content:""}.bi-question-square-fill:before{content:""}.bi-question-square:before{content:""}.bi-question:before{content:""}.bi-rainbow:before{content:""}.bi-receipt-cutoff:before{content:""}.bi-receipt:before{content:""}.bi-reception-0:before{content:""}.bi-reception-1:before{content:""}.bi-reception-2:before{content:""}.bi-reception-3:before{content:""}.bi-reception-4:before{content:""}.bi-record-btn-fill:before{content:""}.bi-record-btn:before{content:""}.bi-record-circle-fill:before{content:""}.bi-record-circle:before{content:""}.bi-record-fill:before{content:""}.bi-record:before{content:""}.bi-record2-fill:before{content:""}.bi-record2:before{content:""}.bi-reply-all-fill:before{content:""}.bi-reply-all:before{content:""}.bi-reply-fill:before{content:""}.bi-reply:before{content:""}.bi-rss-fill:before{content:""}.bi-rss:before{content:""}.bi-rulers:before{content:""}.bi-save-fill:before{content:""}.bi-save:before{content:""}.bi-save2-fill:before{content:""}.bi-save2:before{content:""}.bi-scissors:before{content:""}.bi-screwdriver:before{content:""}.bi-search:before{content:""}.bi-segmented-nav:before{content:""}.bi-server:before{content:""}.bi-share-fill:before{content:""}.bi-share:before{content:""}.bi-shield-check:before{content:""}.bi-shield-exclamation:before{content:""}.bi-shield-fill-check:before{content:""}.bi-shield-fill-exclamation:before{content:""}.bi-shield-fill-minus:before{content:""}.bi-shield-fill-plus:before{content:""}.bi-shield-fill-x:before{content:""}.bi-shield-fill:before{content:""}.bi-shield-lock-fill:before{content:""}.bi-shield-lock:before{content:""}.bi-shield-minus:before{content:""}.bi-shield-plus:before{content:""}.bi-shield-shaded:before{content:""}.bi-shield-slash-fill:before{content:""}.bi-shield-slash:before{content:""}.bi-shield-x:before{content:""}.bi-shield:before{content:""}.bi-shift-fill:before{content:""}.bi-shift:before{content:""}.bi-shop-window:before{content:""}.bi-shop:before{content:""}.bi-shuffle:before{content:""}.bi-signpost-2-fill:before{content:""}.bi-signpost-2:before{content:""}.bi-signpost-fill:before{content:""}.bi-signpost-split-fill:before{content:""}.bi-signpost-split:before{content:""}.bi-signpost:before{content:""}.bi-sim-fill:before{content:""}.bi-sim:before{content:""}.bi-skip-backward-btn-fill:before{content:""}.bi-skip-backward-btn:before{content:""}.bi-skip-backward-circle-fill:before{content:""}.bi-skip-backward-circle:before{content:""}.bi-skip-backward-fill:before{content:""}.bi-skip-backward:before{content:""}.bi-skip-end-btn-fill:before{content:""}.bi-skip-end-btn:before{content:""}.bi-skip-end-circle-fill:before{content:""}.bi-skip-end-circle:before{content:""}.bi-skip-end-fill:before{content:""}.bi-skip-end:before{content:""}.bi-skip-forward-btn-fill:before{content:""}.bi-skip-forward-btn:before{content:""}.bi-skip-forward-circle-fill:before{content:""}.bi-skip-forward-circle:before{content:""}.bi-skip-forward-fill:before{content:""}.bi-skip-forward:before{content:""}.bi-skip-start-btn-fill:before{content:""}.bi-skip-start-btn:before{content:""}.bi-skip-start-circle-fill:before{content:""}.bi-skip-start-circle:before{content:""}.bi-skip-start-fill:before{content:""}.bi-skip-start:before{content:""}.bi-slack:before{content:""}.bi-slash-circle-fill:before{content:""}.bi-slash-circle:before{content:""}.bi-slash-square-fill:before{content:""}.bi-slash-square:before{content:""}.bi-slash:before{content:""}.bi-sliders:before{content:""}.bi-smartwatch:before{content:""}.bi-snow:before{content:""}.bi-snow2:before{content:""}.bi-snow3:before{content:""}.bi-sort-alpha-down-alt:before{content:""}.bi-sort-alpha-down:before{content:""}.bi-sort-alpha-up-alt:before{content:""}.bi-sort-alpha-up:before{content:""}.bi-sort-down-alt:before{content:""}.bi-sort-down:before{content:""}.bi-sort-numeric-down-alt:before{content:""}.bi-sort-numeric-down:before{content:""}.bi-sort-numeric-up-alt:before{content:""}.bi-sort-numeric-up:before{content:""}.bi-sort-up-alt:before{content:""}.bi-sort-up:before{content:""}.bi-soundwave:before{content:""}.bi-speaker-fill:before{content:""}.bi-speaker:before{content:""}.bi-speedometer:before{content:""}.bi-speedometer2:before{content:""}.bi-spellcheck:before{content:""}.bi-square-fill:before{content:""}.bi-square-half:before{content:""}.bi-square:before{content:""}.bi-stack:before{content:""}.bi-star-fill:before{content:""}.bi-star-half:before{content:""}.bi-star:before{content:""}.bi-stars:before{content:""}.bi-stickies-fill:before{content:""}.bi-stickies:before{content:""}.bi-sticky-fill:before{content:""}.bi-sticky:before{content:""}.bi-stop-btn-fill:before{content:""}.bi-stop-btn:before{content:""}.bi-stop-circle-fill:before{content:""}.bi-stop-circle:before{content:""}.bi-stop-fill:before{content:""}.bi-stop:before{content:""}.bi-stoplights-fill:before{content:""}.bi-stoplights:before{content:""}.bi-stopwatch-fill:before{content:""}.bi-stopwatch:before{content:""}.bi-subtract:before{content:""}.bi-suit-club-fill:before{content:""}.bi-suit-club:before{content:""}.bi-suit-diamond-fill:before{content:""}.bi-suit-diamond:before{content:""}.bi-suit-heart-fill:before{content:""}.bi-suit-heart:before{content:""}.bi-suit-spade-fill:before{content:""}.bi-suit-spade:before{content:""}.bi-sun-fill:before{content:""}.bi-sun:before{content:""}.bi-sunglasses:before{content:""}.bi-sunrise-fill:before{content:""}.bi-sunrise:before{content:""}.bi-sunset-fill:before{content:""}.bi-sunset:before{content:""}.bi-symmetry-horizontal:before{content:""}.bi-symmetry-vertical:before{content:""}.bi-table:before{content:""}.bi-tablet-fill:before{content:""}.bi-tablet-landscape-fill:before{content:""}.bi-tablet-landscape:before{content:""}.bi-tablet:before{content:""}.bi-tag-fill:before{content:""}.bi-tag:before{content:""}.bi-tags-fill:before{content:""}.bi-tags:before{content:""}.bi-telegram:before{content:""}.bi-telephone-fill:before{content:""}.bi-telephone-forward-fill:before{content:""}.bi-telephone-forward:before{content:""}.bi-telephone-inbound-fill:before{content:""}.bi-telephone-inbound:before{content:""}.bi-telephone-minus-fill:before{content:""}.bi-telephone-minus:before{content:""}.bi-telephone-outbound-fill:before{content:""}.bi-telephone-outbound:before{content:""}.bi-telephone-plus-fill:before{content:""}.bi-telephone-plus:before{content:""}.bi-telephone-x-fill:before{content:""}.bi-telephone-x:before{content:""}.bi-telephone:before{content:""}.bi-terminal-fill:before{content:""}.bi-terminal:before{content:""}.bi-text-center:before{content:""}.bi-text-indent-left:before{content:""}.bi-text-indent-right:before{content:""}.bi-text-left:before{content:""}.bi-text-paragraph:before{content:""}.bi-text-right:before{content:""}.bi-textarea-resize:before{content:""}.bi-textarea-t:before{content:""}.bi-textarea:before{content:""}.bi-thermometer-half:before{content:""}.bi-thermometer-high:before{content:""}.bi-thermometer-low:before{content:""}.bi-thermometer-snow:before{content:""}.bi-thermometer-sun:before{content:""}.bi-thermometer:before{content:""}.bi-three-dots-vertical:before{content:""}.bi-three-dots:before{content:""}.bi-toggle-off:before{content:""}.bi-toggle-on:before{content:""}.bi-toggle2-off:before{content:""}.bi-toggle2-on:before{content:""}.bi-toggles:before{content:""}.bi-toggles2:before{content:""}.bi-tools:before{content:""}.bi-tornado:before{content:""}.bi-trash-fill:before{content:""}.bi-trash:before{content:""}.bi-trash2-fill:before{content:""}.bi-trash2:before{content:""}.bi-tree-fill:before{content:""}.bi-tree:before{content:""}.bi-triangle-fill:before{content:""}.bi-triangle-half:before{content:""}.bi-triangle:before{content:""}.bi-trophy-fill:before{content:""}.bi-trophy:before{content:""}.bi-tropical-storm:before{content:""}.bi-truck-flatbed:before{content:""}.bi-truck:before{content:""}.bi-tsunami:before{content:""}.bi-tv-fill:before{content:""}.bi-tv:before{content:""}.bi-twitch:before{content:""}.bi-twitter:before{content:""}.bi-type-bold:before{content:""}.bi-type-h1:before{content:""}.bi-type-h2:before{content:""}.bi-type-h3:before{content:""}.bi-type-italic:before{content:""}.bi-type-strikethrough:before{content:""}.bi-type-underline:before{content:""}.bi-type:before{content:""}.bi-ui-checks-grid:before{content:""}.bi-ui-checks:before{content:""}.bi-ui-radios-grid:before{content:""}.bi-ui-radios:before{content:""}.bi-umbrella-fill:before{content:""}.bi-umbrella:before{content:""}.bi-union:before{content:""}.bi-unlock-fill:before{content:""}.bi-unlock:before{content:""}.bi-upc-scan:before{content:""}.bi-upc:before{content:""}.bi-upload:before{content:""}.bi-vector-pen:before{content:""}.bi-view-list:before{content:""}.bi-view-stacked:before{content:""}.bi-vinyl-fill:before{content:""}.bi-vinyl:before{content:""}.bi-voicemail:before{content:""}.bi-volume-down-fill:before{content:""}.bi-volume-down:before{content:""}.bi-volume-mute-fill:before{content:""}.bi-volume-mute:before{content:""}.bi-volume-off-fill:before{content:""}.bi-volume-off:before{content:""}.bi-volume-up-fill:before{content:""}.bi-volume-up:before{content:""}.bi-vr:before{content:""}.bi-wallet-fill:before{content:""}.bi-wallet:before{content:""}.bi-wallet2:before{content:""}.bi-watch:before{content:""}.bi-water:before{content:""}.bi-whatsapp:before{content:""}.bi-wifi-1:before{content:""}.bi-wifi-2:before{content:""}.bi-wifi-off:before{content:""}.bi-wifi:before{content:""}.bi-wind:before{content:""}.bi-window-dock:before{content:""}.bi-window-sidebar:before{content:""}.bi-window:before{content:""}.bi-wrench:before{content:""}.bi-x-circle-fill:before{content:""}.bi-x-circle:before{content:""}.bi-x-diamond-fill:before{content:""}.bi-x-diamond:before{content:""}.bi-x-octagon-fill:before{content:""}.bi-x-octagon:before{content:""}.bi-x-square-fill:before{content:""}.bi-x-square:before{content:""}.bi-x:before{content:""}.bi-youtube:before{content:""}.bi-zoom-in:before{content:""}.bi-zoom-out:before{content:""}.bi-bank:before{content:""}.bi-bank2:before{content:""}.bi-bell-slash-fill:before{content:""}.bi-bell-slash:before{content:""}.bi-cash-coin:before{content:""}.bi-check-lg:before{content:""}.bi-coin:before{content:""}.bi-currency-bitcoin:before{content:""}.bi-currency-dollar:before{content:""}.bi-currency-euro:before{content:""}.bi-currency-exchange:before{content:""}.bi-currency-pound:before{content:""}.bi-currency-yen:before{content:""}.bi-dash-lg:before{content:""}.bi-exclamation-lg:before{content:""}.bi-file-earmark-pdf-fill:before{content:""}.bi-file-earmark-pdf:before{content:""}.bi-file-pdf-fill:before{content:""}.bi-file-pdf:before{content:""}.bi-gender-ambiguous:before{content:""}.bi-gender-female:before{content:""}.bi-gender-male:before{content:""}.bi-gender-trans:before{content:""}.bi-headset-vr:before{content:""}.bi-info-lg:before{content:""}.bi-mastodon:before{content:""}.bi-messenger:before{content:""}.bi-piggy-bank-fill:before{content:""}.bi-piggy-bank:before{content:""}.bi-pin-map-fill:before{content:""}.bi-pin-map:before{content:""}.bi-plus-lg:before{content:""}.bi-question-lg:before{content:""}.bi-recycle:before{content:""}.bi-reddit:before{content:""}.bi-safe-fill:before{content:""}.bi-safe2-fill:before{content:""}.bi-safe2:before{content:""}.bi-sd-card-fill:before{content:""}.bi-sd-card:before{content:""}.bi-skype:before{content:""}.bi-slash-lg:before{content:""}.bi-translate:before{content:""}.bi-x-lg:before{content:""}.bi-safe:before{content:""}.bi-apple:before{content:""}.bi-microsoft:before{content:""}.bi-windows:before{content:""}.bi-behance:before{content:""}.bi-dribbble:before{content:""}.bi-line:before{content:""}.bi-medium:before{content:""}.bi-paypal:before{content:""}.bi-pinterest:before{content:""}.bi-signal:before{content:""}.bi-snapchat:before{content:""}.bi-spotify:before{content:""}.bi-stack-overflow:before{content:""}.bi-strava:before{content:""}.bi-wordpress:before{content:""}.bi-vimeo:before{content:""}.bi-activity:before{content:""}.bi-easel2-fill:before{content:""}.bi-easel2:before{content:""}.bi-easel3-fill:before{content:""}.bi-easel3:before{content:""}.bi-fan:before{content:""}.bi-fingerprint:before{content:""}.bi-graph-down-arrow:before{content:""}.bi-graph-up-arrow:before{content:""}.bi-hypnotize:before{content:""}.bi-magic:before{content:""}.bi-person-rolodex:before{content:""}.bi-person-video:before{content:""}.bi-person-video2:before{content:""}.bi-person-video3:before{content:""}.bi-person-workspace:before{content:""}.bi-radioactive:before{content:""}.bi-webcam-fill:before{content:""}.bi-webcam:before{content:""}.bi-yin-yang:before{content:""}.bi-bandaid-fill:before{content:""}.bi-bandaid:before{content:""}.bi-bluetooth:before{content:""}.bi-body-text:before{content:""}.bi-boombox:before{content:""}.bi-boxes:before{content:""}.bi-dpad-fill:before{content:""}.bi-dpad:before{content:""}.bi-ear-fill:before{content:""}.bi-ear:before{content:""}.bi-envelope-check-fill:before{content:""}.bi-envelope-check:before{content:""}.bi-envelope-dash-fill:before{content:""}.bi-envelope-dash:before{content:""}.bi-envelope-exclamation-fill:before{content:""}.bi-envelope-exclamation:before{content:""}.bi-envelope-plus-fill:before{content:""}.bi-envelope-plus:before{content:""}.bi-envelope-slash-fill:before{content:""}.bi-envelope-slash:before{content:""}.bi-envelope-x-fill:before{content:""}.bi-envelope-x:before{content:""}.bi-explicit-fill:before{content:""}.bi-explicit:before{content:""}.bi-git:before{content:""}.bi-infinity:before{content:""}.bi-list-columns-reverse:before{content:""}.bi-list-columns:before{content:""}.bi-meta:before{content:""}.bi-nintendo-switch:before{content:""}.bi-pc-display-horizontal:before{content:""}.bi-pc-display:before{content:""}.bi-pc-horizontal:before{content:""}.bi-pc:before{content:""}.bi-playstation:before{content:""}.bi-plus-slash-minus:before{content:""}.bi-projector-fill:before{content:""}.bi-projector:before{content:""}.bi-qr-code-scan:before{content:""}.bi-qr-code:before{content:""}.bi-quora:before{content:""}.bi-quote:before{content:""}.bi-robot:before{content:""}.bi-send-check-fill:before{content:""}.bi-send-check:before{content:""}.bi-send-dash-fill:before{content:""}.bi-send-dash:before{content:""}.bi-send-exclamation-fill:before{content:""}.bi-send-exclamation:before{content:""}.bi-send-fill:before{content:""}.bi-send-plus-fill:before{content:""}.bi-send-plus:before{content:""}.bi-send-slash-fill:before{content:""}.bi-send-slash:before{content:""}.bi-send-x-fill:before{content:""}.bi-send-x:before{content:""}.bi-send:before{content:""}.bi-steam:before{content:""}.bi-terminal-dash:before{content:""}.bi-terminal-plus:before{content:""}.bi-terminal-split:before{content:""}.bi-ticket-detailed-fill:before{content:""}.bi-ticket-detailed:before{content:""}.bi-ticket-fill:before{content:""}.bi-ticket-perforated-fill:before{content:""}.bi-ticket-perforated:before{content:""}.bi-ticket:before{content:""}.bi-tiktok:before{content:""}.bi-window-dash:before{content:""}.bi-window-desktop:before{content:""}.bi-window-fullscreen:before{content:""}.bi-window-plus:before{content:""}.bi-window-split:before{content:""}.bi-window-stack:before{content:""}.bi-window-x:before{content:""}.bi-xbox:before{content:""}.bi-ethernet:before{content:""}.bi-hdmi-fill:before{content:""}.bi-hdmi:before{content:""}.bi-usb-c-fill:before{content:""}.bi-usb-c:before{content:""}.bi-usb-fill:before{content:""}.bi-usb-plug-fill:before{content:""}.bi-usb-plug:before{content:""}.bi-usb-symbol:before{content:""}.bi-usb:before{content:""}.bi-boombox-fill:before{content:""}.bi-displayport:before{content:""}.bi-gpu-card:before{content:""}.bi-memory:before{content:""}.bi-modem-fill:before{content:""}.bi-modem:before{content:""}.bi-motherboard-fill:before{content:""}.bi-motherboard:before{content:""}.bi-optical-audio-fill:before{content:""}.bi-optical-audio:before{content:""}.bi-pci-card:before{content:""}.bi-router-fill:before{content:""}.bi-router:before{content:""}.bi-thunderbolt-fill:before{content:""}.bi-thunderbolt:before{content:""}.bi-usb-drive-fill:before{content:""}.bi-usb-drive:before{content:""}.bi-usb-micro-fill:before{content:""}.bi-usb-micro:before{content:""}.bi-usb-mini-fill:before{content:""}.bi-usb-mini:before{content:""}.bi-cloud-haze2:before{content:""}.bi-device-hdd-fill:before{content:""}.bi-device-hdd:before{content:""}.bi-device-ssd-fill:before{content:""}.bi-device-ssd:before{content:""}.bi-displayport-fill:before{content:""}.bi-mortarboard-fill:before{content:""}.bi-mortarboard:before{content:""}.bi-terminal-x:before{content:""}.bi-arrow-through-heart-fill:before{content:""}.bi-arrow-through-heart:before{content:""}.bi-badge-sd-fill:before{content:""}.bi-badge-sd:before{content:""}.bi-bag-heart-fill:before{content:""}.bi-bag-heart:before{content:""}.bi-balloon-fill:before{content:""}.bi-balloon-heart-fill:before{content:""}.bi-balloon-heart:before{content:""}.bi-balloon:before{content:""}.bi-box2-fill:before{content:""}.bi-box2-heart-fill:before{content:""}.bi-box2-heart:before{content:""}.bi-box2:before{content:""}.bi-braces-asterisk:before{content:""}.bi-calendar-heart-fill:before{content:""}.bi-calendar-heart:before{content:""}.bi-calendar2-heart-fill:before{content:""}.bi-calendar2-heart:before{content:""}.bi-chat-heart-fill:before{content:""}.bi-chat-heart:before{content:""}.bi-chat-left-heart-fill:before{content:""}.bi-chat-left-heart:before{content:""}.bi-chat-right-heart-fill:before{content:""}.bi-chat-right-heart:before{content:""}.bi-chat-square-heart-fill:before{content:""}.bi-chat-square-heart:before{content:""}.bi-clipboard-check-fill:before{content:""}.bi-clipboard-data-fill:before{content:""}.bi-clipboard-fill:before{content:""}.bi-clipboard-heart-fill:before{content:""}.bi-clipboard-heart:before{content:""}.bi-clipboard-minus-fill:before{content:""}.bi-clipboard-plus-fill:before{content:""}.bi-clipboard-pulse:before{content:""}.bi-clipboard-x-fill:before{content:""}.bi-clipboard2-check-fill:before{content:""}.bi-clipboard2-check:before{content:""}.bi-clipboard2-data-fill:before{content:""}.bi-clipboard2-data:before{content:""}.bi-clipboard2-fill:before{content:""}.bi-clipboard2-heart-fill:before{content:""}.bi-clipboard2-heart:before{content:""}.bi-clipboard2-minus-fill:before{content:""}.bi-clipboard2-minus:before{content:""}.bi-clipboard2-plus-fill:before{content:""}.bi-clipboard2-plus:before{content:""}.bi-clipboard2-pulse-fill:before{content:""}.bi-clipboard2-pulse:before{content:""}.bi-clipboard2-x-fill:before{content:""}.bi-clipboard2-x:before{content:""}.bi-clipboard2:before{content:""}.bi-emoji-kiss-fill:before{content:""}.bi-emoji-kiss:before{content:""}.bi-envelope-heart-fill:before{content:""}.bi-envelope-heart:before{content:""}.bi-envelope-open-heart-fill:before{content:""}.bi-envelope-open-heart:before{content:""}.bi-envelope-paper-fill:before{content:""}.bi-envelope-paper-heart-fill:before{content:""}.bi-envelope-paper-heart:before{content:""}.bi-envelope-paper:before{content:""}.bi-filetype-aac:before{content:""}.bi-filetype-ai:before{content:""}.bi-filetype-bmp:before{content:""}.bi-filetype-cs:before{content:""}.bi-filetype-css:before{content:""}.bi-filetype-csv:before{content:""}.bi-filetype-doc:before{content:""}.bi-filetype-docx:before{content:""}.bi-filetype-exe:before{content:""}.bi-filetype-gif:before{content:""}.bi-filetype-heic:before{content:""}.bi-filetype-html:before{content:""}.bi-filetype-java:before{content:""}.bi-filetype-jpg:before{content:""}.bi-filetype-js:before{content:""}.bi-filetype-jsx:before{content:""}.bi-filetype-key:before{content:""}.bi-filetype-m4p:before{content:""}.bi-filetype-md:before{content:""}.bi-filetype-mdx:before{content:""}.bi-filetype-mov:before{content:""}.bi-filetype-mp3:before{content:""}.bi-filetype-mp4:before{content:""}.bi-filetype-otf:before{content:""}.bi-filetype-pdf:before{content:""}.bi-filetype-php:before{content:""}.bi-filetype-png:before{content:""}.bi-filetype-ppt:before{content:""}.bi-filetype-psd:before{content:""}.bi-filetype-py:before{content:""}.bi-filetype-raw:before{content:""}.bi-filetype-rb:before{content:""}.bi-filetype-sass:before{content:""}.bi-filetype-scss:before{content:""}.bi-filetype-sh:before{content:""}.bi-filetype-svg:before{content:""}.bi-filetype-tiff:before{content:""}.bi-filetype-tsx:before{content:""}.bi-filetype-ttf:before{content:""}.bi-filetype-txt:before{content:""}.bi-filetype-wav:before{content:""}.bi-filetype-woff:before{content:""}.bi-filetype-xls:before{content:""}.bi-filetype-xml:before{content:""}.bi-filetype-yml:before{content:""}.bi-heart-arrow:before{content:""}.bi-heart-pulse-fill:before{content:""}.bi-heart-pulse:before{content:""}.bi-heartbreak-fill:before{content:""}.bi-heartbreak:before{content:""}.bi-hearts:before{content:""}.bi-hospital-fill:before{content:""}.bi-hospital:before{content:""}.bi-house-heart-fill:before{content:""}.bi-house-heart:before{content:""}.bi-incognito:before{content:""}.bi-magnet-fill:before{content:""}.bi-magnet:before{content:""}.bi-person-heart:before{content:""}.bi-person-hearts:before{content:""}.bi-phone-flip:before{content:""}.bi-plugin:before{content:""}.bi-postage-fill:before{content:""}.bi-postage-heart-fill:before{content:""}.bi-postage-heart:before{content:""}.bi-postage:before{content:""}.bi-postcard-fill:before{content:""}.bi-postcard-heart-fill:before{content:""}.bi-postcard-heart:before{content:""}.bi-postcard:before{content:""}.bi-search-heart-fill:before{content:""}.bi-search-heart:before{content:""}.bi-sliders2-vertical:before{content:""}.bi-sliders2:before{content:""}.bi-trash3-fill:before{content:""}.bi-trash3:before{content:""}.bi-valentine:before{content:""}.bi-valentine2:before{content:""}.bi-wrench-adjustable-circle-fill:before{content:""}.bi-wrench-adjustable-circle:before{content:""}.bi-wrench-adjustable:before{content:""}.bi-filetype-json:before{content:""}.bi-filetype-pptx:before{content:""}.bi-filetype-xlsx:before{content:""}.bi-1-circle-fill:before{content:""}.bi-1-circle:before{content:""}.bi-1-square-fill:before{content:""}.bi-1-square:before{content:""}.bi-2-circle-fill:before{content:""}.bi-2-circle:before{content:""}.bi-2-square-fill:before{content:""}.bi-2-square:before{content:""}.bi-3-circle-fill:before{content:""}.bi-3-circle:before{content:""}.bi-3-square-fill:before{content:""}.bi-3-square:before{content:""}.bi-4-circle-fill:before{content:""}.bi-4-circle:before{content:""}.bi-4-square-fill:before{content:""}.bi-4-square:before{content:""}.bi-5-circle-fill:before{content:""}.bi-5-circle:before{content:""}.bi-5-square-fill:before{content:""}.bi-5-square:before{content:""}.bi-6-circle-fill:before{content:""}.bi-6-circle:before{content:""}.bi-6-square-fill:before{content:""}.bi-6-square:before{content:""}.bi-7-circle-fill:before{content:""}.bi-7-circle:before{content:""}.bi-7-square-fill:before{content:""}.bi-7-square:before{content:""}.bi-8-circle-fill:before{content:""}.bi-8-circle:before{content:""}.bi-8-square-fill:before{content:""}.bi-8-square:before{content:""}.bi-9-circle-fill:before{content:""}.bi-9-circle:before{content:""}.bi-9-square-fill:before{content:""}.bi-9-square:before{content:""}.bi-airplane-engines-fill:before{content:""}.bi-airplane-engines:before{content:""}.bi-airplane-fill:before{content:""}.bi-airplane:before{content:""}.bi-alexa:before{content:""}.bi-alipay:before{content:""}.bi-android:before{content:""}.bi-android2:before{content:""}.bi-box-fill:before{content:""}.bi-box-seam-fill:before{content:""}.bi-browser-chrome:before{content:""}.bi-browser-edge:before{content:""}.bi-browser-firefox:before{content:""}.bi-browser-safari:before{content:""}.bi-c-circle-fill:before{content:""}.bi-c-circle:before{content:""}.bi-c-square-fill:before{content:""}.bi-c-square:before{content:""}.bi-capsule-pill:before{content:""}.bi-capsule:before{content:""}.bi-car-front-fill:before{content:""}.bi-car-front:before{content:""}.bi-cassette-fill:before{content:""}.bi-cassette:before{content:""}.bi-cc-circle-fill:before{content:""}.bi-cc-circle:before{content:""}.bi-cc-square-fill:before{content:""}.bi-cc-square:before{content:""}.bi-cup-hot-fill:before{content:""}.bi-cup-hot:before{content:""}.bi-currency-rupee:before{content:""}.bi-dropbox:before{content:""}.bi-escape:before{content:""}.bi-fast-forward-btn-fill:before{content:""}.bi-fast-forward-btn:before{content:""}.bi-fast-forward-circle-fill:before{content:""}.bi-fast-forward-circle:before{content:""}.bi-fast-forward-fill:before{content:""}.bi-fast-forward:before{content:""}.bi-filetype-sql:before{content:""}.bi-fire:before{content:""}.bi-google-play:before{content:""}.bi-h-circle-fill:before{content:""}.bi-h-circle:before{content:""}.bi-h-square-fill:before{content:""}.bi-h-square:before{content:""}.bi-indent:before{content:""}.bi-lungs-fill:before{content:""}.bi-lungs:before{content:""}.bi-microsoft-teams:before{content:""}.bi-p-circle-fill:before{content:""}.bi-p-circle:before{content:""}.bi-p-square-fill:before{content:""}.bi-p-square:before{content:""}.bi-pass-fill:before{content:""}.bi-pass:before{content:""}.bi-prescription:before{content:""}.bi-prescription2:before{content:""}.bi-r-circle-fill:before{content:""}.bi-r-circle:before{content:""}.bi-r-square-fill:before{content:""}.bi-r-square:before{content:""}.bi-repeat-1:before{content:""}.bi-repeat:before{content:""}.bi-rewind-btn-fill:before{content:""}.bi-rewind-btn:before{content:""}.bi-rewind-circle-fill:before{content:""}.bi-rewind-circle:before{content:""}.bi-rewind-fill:before{content:""}.bi-rewind:before{content:""}.bi-train-freight-front-fill:before{content:""}.bi-train-freight-front:before{content:""}.bi-train-front-fill:before{content:""}.bi-train-front:before{content:""}.bi-train-lightrail-front-fill:before{content:""}.bi-train-lightrail-front:before{content:""}.bi-truck-front-fill:before{content:""}.bi-truck-front:before{content:""}.bi-ubuntu:before{content:""}.bi-unindent:before{content:""}.bi-unity:before{content:""}.bi-universal-access-circle:before{content:""}.bi-universal-access:before{content:""}.bi-virus:before{content:""}.bi-virus2:before{content:""}.bi-wechat:before{content:""}.bi-yelp:before{content:""}.bi-sign-stop-fill:before{content:""}.bi-sign-stop-lights-fill:before{content:""}.bi-sign-stop-lights:before{content:""}.bi-sign-stop:before{content:""}.bi-sign-turn-left-fill:before{content:""}.bi-sign-turn-left:before{content:""}.bi-sign-turn-right-fill:before{content:""}.bi-sign-turn-right:before{content:""}.bi-sign-turn-slight-left-fill:before{content:""}.bi-sign-turn-slight-left:before{content:""}.bi-sign-turn-slight-right-fill:before{content:""}.bi-sign-turn-slight-right:before{content:""}.bi-sign-yield-fill:before{content:""}.bi-sign-yield:before{content:""}.bi-ev-station-fill:before{content:""}.bi-ev-station:before{content:""}.bi-fuel-pump-diesel-fill:before{content:""}.bi-fuel-pump-diesel:before{content:""}.bi-fuel-pump-fill:before{content:""}.bi-fuel-pump:before{content:""}.bi-0-circle-fill:before{content:""}.bi-0-circle:before{content:""}.bi-0-square-fill:before{content:""}.bi-0-square:before{content:""}.bi-rocket-fill:before{content:""}.bi-rocket-takeoff-fill:before{content:""}.bi-rocket-takeoff:before{content:""}.bi-rocket:before{content:""}.bi-stripe:before{content:""}.bi-subscript:before{content:""}.bi-superscript:before{content:""}.bi-trello:before{content:""}.bi-envelope-at-fill:before{content:""}.bi-envelope-at:before{content:""}.bi-regex:before{content:""}.bi-text-wrap:before{content:""}.bi-sign-dead-end-fill:before{content:""}.bi-sign-dead-end:before{content:""}.bi-sign-do-not-enter-fill:before{content:""}.bi-sign-do-not-enter:before{content:""}.bi-sign-intersection-fill:before{content:""}.bi-sign-intersection-side-fill:before{content:""}.bi-sign-intersection-side:before{content:""}.bi-sign-intersection-t-fill:before{content:""}.bi-sign-intersection-t:before{content:""}.bi-sign-intersection-y-fill:before{content:""}.bi-sign-intersection-y:before{content:""}.bi-sign-intersection:before{content:""}.bi-sign-merge-left-fill:before{content:""}.bi-sign-merge-left:before{content:""}.bi-sign-merge-right-fill:before{content:""}.bi-sign-merge-right:before{content:""}.bi-sign-no-left-turn-fill:before{content:""}.bi-sign-no-left-turn:before{content:""}.bi-sign-no-parking-fill:before{content:""}.bi-sign-no-parking:before{content:""}.bi-sign-no-right-turn-fill:before{content:""}.bi-sign-no-right-turn:before{content:""}.bi-sign-railroad-fill:before{content:""}.bi-sign-railroad:before{content:""}.bi-building-add:before{content:""}.bi-building-check:before{content:""}.bi-building-dash:before{content:""}.bi-building-down:before{content:""}.bi-building-exclamation:before{content:""}.bi-building-fill-add:before{content:""}.bi-building-fill-check:before{content:""}.bi-building-fill-dash:before{content:""}.bi-building-fill-down:before{content:""}.bi-building-fill-exclamation:before{content:""}.bi-building-fill-gear:before{content:""}.bi-building-fill-lock:before{content:""}.bi-building-fill-slash:before{content:""}.bi-building-fill-up:before{content:""}.bi-building-fill-x:before{content:""}.bi-building-fill:before{content:""}.bi-building-gear:before{content:""}.bi-building-lock:before{content:""}.bi-building-slash:before{content:""}.bi-building-up:before{content:""}.bi-building-x:before{content:""}.bi-buildings-fill:before{content:""}.bi-buildings:before{content:""}.bi-bus-front-fill:before{content:""}.bi-bus-front:before{content:""}.bi-ev-front-fill:before{content:""}.bi-ev-front:before{content:""}.bi-globe-americas:before{content:""}.bi-globe-asia-australia:before{content:""}.bi-globe-central-south-asia:before{content:""}.bi-globe-europe-africa:before{content:""}.bi-house-add-fill:before{content:""}.bi-house-add:before{content:""}.bi-house-check-fill:before{content:""}.bi-house-check:before{content:""}.bi-house-dash-fill:before{content:""}.bi-house-dash:before{content:""}.bi-house-down-fill:before{content:""}.bi-house-down:before{content:""}.bi-house-exclamation-fill:before{content:""}.bi-house-exclamation:before{content:""}.bi-house-gear-fill:before{content:""}.bi-house-gear:before{content:""}.bi-house-lock-fill:before{content:""}.bi-house-lock:before{content:""}.bi-house-slash-fill:before{content:""}.bi-house-slash:before{content:""}.bi-house-up-fill:before{content:""}.bi-house-up:before{content:""}.bi-house-x-fill:before{content:""}.bi-house-x:before{content:""}.bi-person-add:before{content:""}.bi-person-down:before{content:""}.bi-person-exclamation:before{content:""}.bi-person-fill-add:before{content:""}.bi-person-fill-check:before{content:""}.bi-person-fill-dash:before{content:""}.bi-person-fill-down:before{content:""}.bi-person-fill-exclamation:before{content:""}.bi-person-fill-gear:before{content:""}.bi-person-fill-lock:before{content:""}.bi-person-fill-slash:before{content:""}.bi-person-fill-up:before{content:""}.bi-person-fill-x:before{content:""}.bi-person-gear:before{content:""}.bi-person-lock:before{content:""}.bi-person-slash:before{content:""}.bi-person-up:before{content:""}.bi-scooter:before{content:""}.bi-taxi-front-fill:before{content:""}.bi-taxi-front:before{content:""}.bi-amd:before{content:""}.bi-database-add:before{content:""}.bi-database-check:before{content:""}.bi-database-dash:before{content:""}.bi-database-down:before{content:""}.bi-database-exclamation:before{content:""}.bi-database-fill-add:before{content:""}.bi-database-fill-check:before{content:""}.bi-database-fill-dash:before{content:""}.bi-database-fill-down:before{content:""}.bi-database-fill-exclamation:before{content:""}.bi-database-fill-gear:before{content:""}.bi-database-fill-lock:before{content:""}.bi-database-fill-slash:before{content:""}.bi-database-fill-up:before{content:""}.bi-database-fill-x:before{content:""}.bi-database-fill:before{content:""}.bi-database-gear:before{content:""}.bi-database-lock:before{content:""}.bi-database-slash:before{content:""}.bi-database-up:before{content:""}.bi-database-x:before{content:""}.bi-database:before{content:""}.bi-houses-fill:before{content:""}.bi-houses:before{content:""}.bi-nvidia:before{content:""}.bi-person-vcard-fill:before{content:""}.bi-person-vcard:before{content:""}.bi-sina-weibo:before{content:""}.bi-tencent-qq:before{content:""}.bi-wikipedia:before{content:""}.bi-alphabet-uppercase:before{content:""}.bi-alphabet:before{content:""}.bi-amazon:before{content:""}.bi-arrows-collapse-vertical:before{content:""}.bi-arrows-expand-vertical:before{content:""}.bi-arrows-vertical:before{content:""}.bi-arrows:before{content:""}.bi-ban-fill:before{content:""}.bi-ban:before{content:""}.bi-bing:before{content:""}.bi-cake:before{content:""}.bi-cake2:before{content:""}.bi-cookie:before{content:""}.bi-copy:before{content:""}.bi-crosshair:before{content:""}.bi-crosshair2:before{content:""}.bi-emoji-astonished-fill:before{content:""}.bi-emoji-astonished:before{content:""}.bi-emoji-grimace-fill:before{content:""}.bi-emoji-grimace:before{content:""}.bi-emoji-grin-fill:before{content:""}.bi-emoji-grin:before{content:""}.bi-emoji-surprise-fill:before{content:""}.bi-emoji-surprise:before{content:""}.bi-emoji-tear-fill:before{content:""}.bi-emoji-tear:before{content:""}.bi-envelope-arrow-down-fill:before{content:""}.bi-envelope-arrow-down:before{content:""}.bi-envelope-arrow-up-fill:before{content:""}.bi-envelope-arrow-up:before{content:""}.bi-feather:before{content:""}.bi-feather2:before{content:""}.bi-floppy-fill:before{content:""}.bi-floppy:before{content:""}.bi-floppy2-fill:before{content:""}.bi-floppy2:before{content:""}.bi-gitlab:before{content:""}.bi-highlighter:before{content:""}.bi-marker-tip:before{content:""}.bi-nvme-fill:before{content:""}.bi-nvme:before{content:""}.bi-opencollective:before{content:""}.bi-pci-card-network:before{content:""}.bi-pci-card-sound:before{content:""}.bi-radar:before{content:""}.bi-send-arrow-down-fill:before{content:""}.bi-send-arrow-down:before{content:""}.bi-send-arrow-up-fill:before{content:""}.bi-send-arrow-up:before{content:""}.bi-sim-slash-fill:before{content:""}.bi-sim-slash:before{content:""}.bi-sourceforge:before{content:""}.bi-substack:before{content:""}.bi-threads-fill:before{content:""}.bi-threads:before{content:""}.bi-transparency:before{content:""}.bi-twitter-x:before{content:""}.bi-type-h4:before{content:""}.bi-type-h5:before{content:""}.bi-type-h6:before{content:""}.bi-backpack-fill:before{content:""}.bi-backpack:before{content:""}.bi-backpack2-fill:before{content:""}.bi-backpack2:before{content:""}.bi-backpack3-fill:before{content:""}.bi-backpack3:before{content:""}.bi-backpack4-fill:before{content:""}.bi-backpack4:before{content:""}.bi-brilliance:before{content:""}.bi-cake-fill:before{content:""}.bi-cake2-fill:before{content:""}.bi-duffle-fill:before{content:""}.bi-duffle:before{content:""}.bi-exposure:before{content:""}.bi-gender-neuter:before{content:""}.bi-highlights:before{content:""}.bi-luggage-fill:before{content:""}.bi-luggage:before{content:""}.bi-mailbox-flag:before{content:""}.bi-mailbox2-flag:before{content:""}.bi-noise-reduction:before{content:""}.bi-passport-fill:before{content:""}.bi-passport:before{content:""}.bi-person-arms-up:before{content:""}.bi-person-raised-hand:before{content:""}.bi-person-standing-dress:before{content:""}.bi-person-standing:before{content:""}.bi-person-walking:before{content:""}.bi-person-wheelchair:before{content:""}.bi-shadows:before{content:""}.bi-suitcase-fill:before{content:""}.bi-suitcase-lg-fill:before{content:""}.bi-suitcase-lg:before{content:""}.bi-suitcase:before{content:"豈"}.bi-suitcase2-fill:before{content:"更"}.bi-suitcase2:before{content:"車"}.bi-vignette:before{content:"賈"}/*! +*/@font-face{font-display:block;font-family:bootstrap-icons;src:url(/static/app/dist/assets/bootstrap-icons.woff2?7141511ac37f13e1a387fb9fc6646256) format("woff2"),url(/static/app/dist/assets/bootstrap-icons.woff?7141511ac37f13e1a387fb9fc6646256) format("woff")}.bi:before,[class^=bi-]:before,[class*=" bi-"]:before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-123:before{content:""}.bi-alarm-fill:before{content:""}.bi-alarm:before{content:""}.bi-align-bottom:before{content:""}.bi-align-center:before{content:""}.bi-align-end:before{content:""}.bi-align-middle:before{content:""}.bi-align-start:before{content:""}.bi-align-top:before{content:""}.bi-alt:before{content:""}.bi-app-indicator:before{content:""}.bi-app:before{content:""}.bi-archive-fill:before{content:""}.bi-archive:before{content:""}.bi-arrow-90deg-down:before{content:""}.bi-arrow-90deg-left:before{content:""}.bi-arrow-90deg-right:before{content:""}.bi-arrow-90deg-up:before{content:""}.bi-arrow-bar-down:before{content:""}.bi-arrow-bar-left:before{content:""}.bi-arrow-bar-right:before{content:""}.bi-arrow-bar-up:before{content:""}.bi-arrow-clockwise:before{content:""}.bi-arrow-counterclockwise:before{content:""}.bi-arrow-down-circle-fill:before{content:""}.bi-arrow-down-circle:before{content:""}.bi-arrow-down-left-circle-fill:before{content:""}.bi-arrow-down-left-circle:before{content:""}.bi-arrow-down-left-square-fill:before{content:""}.bi-arrow-down-left-square:before{content:""}.bi-arrow-down-left:before{content:""}.bi-arrow-down-right-circle-fill:before{content:""}.bi-arrow-down-right-circle:before{content:""}.bi-arrow-down-right-square-fill:before{content:""}.bi-arrow-down-right-square:before{content:""}.bi-arrow-down-right:before{content:""}.bi-arrow-down-short:before{content:""}.bi-arrow-down-square-fill:before{content:""}.bi-arrow-down-square:before{content:""}.bi-arrow-down-up:before{content:""}.bi-arrow-down:before{content:""}.bi-arrow-left-circle-fill:before{content:""}.bi-arrow-left-circle:before{content:""}.bi-arrow-left-right:before{content:""}.bi-arrow-left-short:before{content:""}.bi-arrow-left-square-fill:before{content:""}.bi-arrow-left-square:before{content:""}.bi-arrow-left:before{content:""}.bi-arrow-repeat:before{content:""}.bi-arrow-return-left:before{content:""}.bi-arrow-return-right:before{content:""}.bi-arrow-right-circle-fill:before{content:""}.bi-arrow-right-circle:before{content:""}.bi-arrow-right-short:before{content:""}.bi-arrow-right-square-fill:before{content:""}.bi-arrow-right-square:before{content:""}.bi-arrow-right:before{content:""}.bi-arrow-up-circle-fill:before{content:""}.bi-arrow-up-circle:before{content:""}.bi-arrow-up-left-circle-fill:before{content:""}.bi-arrow-up-left-circle:before{content:""}.bi-arrow-up-left-square-fill:before{content:""}.bi-arrow-up-left-square:before{content:""}.bi-arrow-up-left:before{content:""}.bi-arrow-up-right-circle-fill:before{content:""}.bi-arrow-up-right-circle:before{content:""}.bi-arrow-up-right-square-fill:before{content:""}.bi-arrow-up-right-square:before{content:""}.bi-arrow-up-right:before{content:""}.bi-arrow-up-short:before{content:""}.bi-arrow-up-square-fill:before{content:""}.bi-arrow-up-square:before{content:""}.bi-arrow-up:before{content:""}.bi-arrows-angle-contract:before{content:""}.bi-arrows-angle-expand:before{content:""}.bi-arrows-collapse:before{content:""}.bi-arrows-expand:before{content:""}.bi-arrows-fullscreen:before{content:""}.bi-arrows-move:before{content:""}.bi-aspect-ratio-fill:before{content:""}.bi-aspect-ratio:before{content:""}.bi-asterisk:before{content:""}.bi-at:before{content:""}.bi-award-fill:before{content:""}.bi-award:before{content:""}.bi-back:before{content:""}.bi-backspace-fill:before{content:""}.bi-backspace-reverse-fill:before{content:""}.bi-backspace-reverse:before{content:""}.bi-backspace:before{content:""}.bi-badge-3d-fill:before{content:""}.bi-badge-3d:before{content:""}.bi-badge-4k-fill:before{content:""}.bi-badge-4k:before{content:""}.bi-badge-8k-fill:before{content:""}.bi-badge-8k:before{content:""}.bi-badge-ad-fill:before{content:""}.bi-badge-ad:before{content:""}.bi-badge-ar-fill:before{content:""}.bi-badge-ar:before{content:""}.bi-badge-cc-fill:before{content:""}.bi-badge-cc:before{content:""}.bi-badge-hd-fill:before{content:""}.bi-badge-hd:before{content:""}.bi-badge-tm-fill:before{content:""}.bi-badge-tm:before{content:""}.bi-badge-vo-fill:before{content:""}.bi-badge-vo:before{content:""}.bi-badge-vr-fill:before{content:""}.bi-badge-vr:before{content:""}.bi-badge-wc-fill:before{content:""}.bi-badge-wc:before{content:""}.bi-bag-check-fill:before{content:""}.bi-bag-check:before{content:""}.bi-bag-dash-fill:before{content:""}.bi-bag-dash:before{content:""}.bi-bag-fill:before{content:""}.bi-bag-plus-fill:before{content:""}.bi-bag-plus:before{content:""}.bi-bag-x-fill:before{content:""}.bi-bag-x:before{content:""}.bi-bag:before{content:""}.bi-bar-chart-fill:before{content:""}.bi-bar-chart-line-fill:before{content:""}.bi-bar-chart-line:before{content:""}.bi-bar-chart-steps:before{content:""}.bi-bar-chart:before{content:""}.bi-basket-fill:before{content:""}.bi-basket:before{content:""}.bi-basket2-fill:before{content:""}.bi-basket2:before{content:""}.bi-basket3-fill:before{content:""}.bi-basket3:before{content:""}.bi-battery-charging:before{content:""}.bi-battery-full:before{content:""}.bi-battery-half:before{content:""}.bi-battery:before{content:""}.bi-bell-fill:before{content:""}.bi-bell:before{content:""}.bi-bezier:before{content:""}.bi-bezier2:before{content:""}.bi-bicycle:before{content:""}.bi-binoculars-fill:before{content:""}.bi-binoculars:before{content:""}.bi-blockquote-left:before{content:""}.bi-blockquote-right:before{content:""}.bi-book-fill:before{content:""}.bi-book-half:before{content:""}.bi-book:before{content:""}.bi-bookmark-check-fill:before{content:""}.bi-bookmark-check:before{content:""}.bi-bookmark-dash-fill:before{content:""}.bi-bookmark-dash:before{content:""}.bi-bookmark-fill:before{content:""}.bi-bookmark-heart-fill:before{content:""}.bi-bookmark-heart:before{content:""}.bi-bookmark-plus-fill:before{content:""}.bi-bookmark-plus:before{content:""}.bi-bookmark-star-fill:before{content:""}.bi-bookmark-star:before{content:""}.bi-bookmark-x-fill:before{content:""}.bi-bookmark-x:before{content:""}.bi-bookmark:before{content:""}.bi-bookmarks-fill:before{content:""}.bi-bookmarks:before{content:""}.bi-bookshelf:before{content:""}.bi-bootstrap-fill:before{content:""}.bi-bootstrap-reboot:before{content:""}.bi-bootstrap:before{content:""}.bi-border-all:before{content:""}.bi-border-bottom:before{content:""}.bi-border-center:before{content:""}.bi-border-inner:before{content:""}.bi-border-left:before{content:""}.bi-border-middle:before{content:""}.bi-border-outer:before{content:""}.bi-border-right:before{content:""}.bi-border-style:before{content:""}.bi-border-top:before{content:""}.bi-border-width:before{content:""}.bi-border:before{content:""}.bi-bounding-box-circles:before{content:""}.bi-bounding-box:before{content:""}.bi-box-arrow-down-left:before{content:""}.bi-box-arrow-down-right:before{content:""}.bi-box-arrow-down:before{content:""}.bi-box-arrow-in-down-left:before{content:""}.bi-box-arrow-in-down-right:before{content:""}.bi-box-arrow-in-down:before{content:""}.bi-box-arrow-in-left:before{content:""}.bi-box-arrow-in-right:before{content:""}.bi-box-arrow-in-up-left:before{content:""}.bi-box-arrow-in-up-right:before{content:""}.bi-box-arrow-in-up:before{content:""}.bi-box-arrow-left:before{content:""}.bi-box-arrow-right:before{content:""}.bi-box-arrow-up-left:before{content:""}.bi-box-arrow-up-right:before{content:""}.bi-box-arrow-up:before{content:""}.bi-box-seam:before{content:""}.bi-box:before{content:""}.bi-braces:before{content:""}.bi-bricks:before{content:""}.bi-briefcase-fill:before{content:""}.bi-briefcase:before{content:""}.bi-brightness-alt-high-fill:before{content:""}.bi-brightness-alt-high:before{content:""}.bi-brightness-alt-low-fill:before{content:""}.bi-brightness-alt-low:before{content:""}.bi-brightness-high-fill:before{content:""}.bi-brightness-high:before{content:""}.bi-brightness-low-fill:before{content:""}.bi-brightness-low:before{content:""}.bi-broadcast-pin:before{content:""}.bi-broadcast:before{content:""}.bi-brush-fill:before{content:""}.bi-brush:before{content:""}.bi-bucket-fill:before{content:""}.bi-bucket:before{content:""}.bi-bug-fill:before{content:""}.bi-bug:before{content:""}.bi-building:before{content:""}.bi-bullseye:before{content:""}.bi-calculator-fill:before{content:""}.bi-calculator:before{content:""}.bi-calendar-check-fill:before{content:""}.bi-calendar-check:before{content:""}.bi-calendar-date-fill:before{content:""}.bi-calendar-date:before{content:""}.bi-calendar-day-fill:before{content:""}.bi-calendar-day:before{content:""}.bi-calendar-event-fill:before{content:""}.bi-calendar-event:before{content:""}.bi-calendar-fill:before{content:""}.bi-calendar-minus-fill:before{content:""}.bi-calendar-minus:before{content:""}.bi-calendar-month-fill:before{content:""}.bi-calendar-month:before{content:""}.bi-calendar-plus-fill:before{content:""}.bi-calendar-plus:before{content:""}.bi-calendar-range-fill:before{content:""}.bi-calendar-range:before{content:""}.bi-calendar-week-fill:before{content:""}.bi-calendar-week:before{content:""}.bi-calendar-x-fill:before{content:""}.bi-calendar-x:before{content:""}.bi-calendar:before{content:""}.bi-calendar2-check-fill:before{content:""}.bi-calendar2-check:before{content:""}.bi-calendar2-date-fill:before{content:""}.bi-calendar2-date:before{content:""}.bi-calendar2-day-fill:before{content:""}.bi-calendar2-day:before{content:""}.bi-calendar2-event-fill:before{content:""}.bi-calendar2-event:before{content:""}.bi-calendar2-fill:before{content:""}.bi-calendar2-minus-fill:before{content:""}.bi-calendar2-minus:before{content:""}.bi-calendar2-month-fill:before{content:""}.bi-calendar2-month:before{content:""}.bi-calendar2-plus-fill:before{content:""}.bi-calendar2-plus:before{content:""}.bi-calendar2-range-fill:before{content:""}.bi-calendar2-range:before{content:""}.bi-calendar2-week-fill:before{content:""}.bi-calendar2-week:before{content:""}.bi-calendar2-x-fill:before{content:""}.bi-calendar2-x:before{content:""}.bi-calendar2:before{content:""}.bi-calendar3-event-fill:before{content:""}.bi-calendar3-event:before{content:""}.bi-calendar3-fill:before{content:""}.bi-calendar3-range-fill:before{content:""}.bi-calendar3-range:before{content:""}.bi-calendar3-week-fill:before{content:""}.bi-calendar3-week:before{content:""}.bi-calendar3:before{content:""}.bi-calendar4-event:before{content:""}.bi-calendar4-range:before{content:""}.bi-calendar4-week:before{content:""}.bi-calendar4:before{content:""}.bi-camera-fill:before{content:""}.bi-camera-reels-fill:before{content:""}.bi-camera-reels:before{content:""}.bi-camera-video-fill:before{content:""}.bi-camera-video-off-fill:before{content:""}.bi-camera-video-off:before{content:""}.bi-camera-video:before{content:""}.bi-camera:before{content:""}.bi-camera2:before{content:""}.bi-capslock-fill:before{content:""}.bi-capslock:before{content:""}.bi-card-checklist:before{content:""}.bi-card-heading:before{content:""}.bi-card-image:before{content:""}.bi-card-list:before{content:""}.bi-card-text:before{content:""}.bi-caret-down-fill:before{content:""}.bi-caret-down-square-fill:before{content:""}.bi-caret-down-square:before{content:""}.bi-caret-down:before{content:""}.bi-caret-left-fill:before{content:""}.bi-caret-left-square-fill:before{content:""}.bi-caret-left-square:before{content:""}.bi-caret-left:before{content:""}.bi-caret-right-fill:before{content:""}.bi-caret-right-square-fill:before{content:""}.bi-caret-right-square:before{content:""}.bi-caret-right:before{content:""}.bi-caret-up-fill:before{content:""}.bi-caret-up-square-fill:before{content:""}.bi-caret-up-square:before{content:""}.bi-caret-up:before{content:""}.bi-cart-check-fill:before{content:""}.bi-cart-check:before{content:""}.bi-cart-dash-fill:before{content:""}.bi-cart-dash:before{content:""}.bi-cart-fill:before{content:""}.bi-cart-plus-fill:before{content:""}.bi-cart-plus:before{content:""}.bi-cart-x-fill:before{content:""}.bi-cart-x:before{content:""}.bi-cart:before{content:""}.bi-cart2:before{content:""}.bi-cart3:before{content:""}.bi-cart4:before{content:""}.bi-cash-stack:before{content:""}.bi-cash:before{content:""}.bi-cast:before{content:""}.bi-chat-dots-fill:before{content:""}.bi-chat-dots:before{content:""}.bi-chat-fill:before{content:""}.bi-chat-left-dots-fill:before{content:""}.bi-chat-left-dots:before{content:""}.bi-chat-left-fill:before{content:""}.bi-chat-left-quote-fill:before{content:""}.bi-chat-left-quote:before{content:""}.bi-chat-left-text-fill:before{content:""}.bi-chat-left-text:before{content:""}.bi-chat-left:before{content:""}.bi-chat-quote-fill:before{content:""}.bi-chat-quote:before{content:""}.bi-chat-right-dots-fill:before{content:""}.bi-chat-right-dots:before{content:""}.bi-chat-right-fill:before{content:""}.bi-chat-right-quote-fill:before{content:""}.bi-chat-right-quote:before{content:""}.bi-chat-right-text-fill:before{content:""}.bi-chat-right-text:before{content:""}.bi-chat-right:before{content:""}.bi-chat-square-dots-fill:before{content:""}.bi-chat-square-dots:before{content:""}.bi-chat-square-fill:before{content:""}.bi-chat-square-quote-fill:before{content:""}.bi-chat-square-quote:before{content:""}.bi-chat-square-text-fill:before{content:""}.bi-chat-square-text:before{content:""}.bi-chat-square:before{content:""}.bi-chat-text-fill:before{content:""}.bi-chat-text:before{content:""}.bi-chat:before{content:""}.bi-check-all:before{content:""}.bi-check-circle-fill:before{content:""}.bi-check-circle:before{content:""}.bi-check-square-fill:before{content:""}.bi-check-square:before{content:""}.bi-check:before{content:""}.bi-check2-all:before{content:""}.bi-check2-circle:before{content:""}.bi-check2-square:before{content:""}.bi-check2:before{content:""}.bi-chevron-bar-contract:before{content:""}.bi-chevron-bar-down:before{content:""}.bi-chevron-bar-expand:before{content:""}.bi-chevron-bar-left:before{content:""}.bi-chevron-bar-right:before{content:""}.bi-chevron-bar-up:before{content:""}.bi-chevron-compact-down:before{content:""}.bi-chevron-compact-left:before{content:""}.bi-chevron-compact-right:before{content:""}.bi-chevron-compact-up:before{content:""}.bi-chevron-contract:before{content:""}.bi-chevron-double-down:before{content:""}.bi-chevron-double-left:before{content:""}.bi-chevron-double-right:before{content:""}.bi-chevron-double-up:before{content:""}.bi-chevron-down:before{content:""}.bi-chevron-expand:before{content:""}.bi-chevron-left:before{content:""}.bi-chevron-right:before{content:""}.bi-chevron-up:before{content:""}.bi-circle-fill:before{content:""}.bi-circle-half:before{content:""}.bi-circle-square:before{content:""}.bi-circle:before{content:""}.bi-clipboard-check:before{content:""}.bi-clipboard-data:before{content:""}.bi-clipboard-minus:before{content:""}.bi-clipboard-plus:before{content:""}.bi-clipboard-x:before{content:""}.bi-clipboard:before{content:""}.bi-clock-fill:before{content:""}.bi-clock-history:before{content:""}.bi-clock:before{content:""}.bi-cloud-arrow-down-fill:before{content:""}.bi-cloud-arrow-down:before{content:""}.bi-cloud-arrow-up-fill:before{content:""}.bi-cloud-arrow-up:before{content:""}.bi-cloud-check-fill:before{content:""}.bi-cloud-check:before{content:""}.bi-cloud-download-fill:before{content:""}.bi-cloud-download:before{content:""}.bi-cloud-drizzle-fill:before{content:""}.bi-cloud-drizzle:before{content:""}.bi-cloud-fill:before{content:""}.bi-cloud-fog-fill:before{content:""}.bi-cloud-fog:before{content:""}.bi-cloud-fog2-fill:before{content:""}.bi-cloud-fog2:before{content:""}.bi-cloud-hail-fill:before{content:""}.bi-cloud-hail:before{content:""}.bi-cloud-haze-fill:before{content:""}.bi-cloud-haze:before{content:""}.bi-cloud-haze2-fill:before{content:""}.bi-cloud-lightning-fill:before{content:""}.bi-cloud-lightning-rain-fill:before{content:""}.bi-cloud-lightning-rain:before{content:""}.bi-cloud-lightning:before{content:""}.bi-cloud-minus-fill:before{content:""}.bi-cloud-minus:before{content:""}.bi-cloud-moon-fill:before{content:""}.bi-cloud-moon:before{content:""}.bi-cloud-plus-fill:before{content:""}.bi-cloud-plus:before{content:""}.bi-cloud-rain-fill:before{content:""}.bi-cloud-rain-heavy-fill:before{content:""}.bi-cloud-rain-heavy:before{content:""}.bi-cloud-rain:before{content:""}.bi-cloud-slash-fill:before{content:""}.bi-cloud-slash:before{content:""}.bi-cloud-sleet-fill:before{content:""}.bi-cloud-sleet:before{content:""}.bi-cloud-snow-fill:before{content:""}.bi-cloud-snow:before{content:""}.bi-cloud-sun-fill:before{content:""}.bi-cloud-sun:before{content:""}.bi-cloud-upload-fill:before{content:""}.bi-cloud-upload:before{content:""}.bi-cloud:before{content:""}.bi-clouds-fill:before{content:""}.bi-clouds:before{content:""}.bi-cloudy-fill:before{content:""}.bi-cloudy:before{content:""}.bi-code-slash:before{content:""}.bi-code-square:before{content:""}.bi-code:before{content:""}.bi-collection-fill:before{content:""}.bi-collection-play-fill:before{content:""}.bi-collection-play:before{content:""}.bi-collection:before{content:""}.bi-columns-gap:before{content:""}.bi-columns:before{content:""}.bi-command:before{content:""}.bi-compass-fill:before{content:""}.bi-compass:before{content:""}.bi-cone-striped:before{content:""}.bi-cone:before{content:""}.bi-controller:before{content:""}.bi-cpu-fill:before{content:""}.bi-cpu:before{content:""}.bi-credit-card-2-back-fill:before{content:""}.bi-credit-card-2-back:before{content:""}.bi-credit-card-2-front-fill:before{content:""}.bi-credit-card-2-front:before{content:""}.bi-credit-card-fill:before{content:""}.bi-credit-card:before{content:""}.bi-crop:before{content:""}.bi-cup-fill:before{content:""}.bi-cup-straw:before{content:""}.bi-cup:before{content:""}.bi-cursor-fill:before{content:""}.bi-cursor-text:before{content:""}.bi-cursor:before{content:""}.bi-dash-circle-dotted:before{content:""}.bi-dash-circle-fill:before{content:""}.bi-dash-circle:before{content:""}.bi-dash-square-dotted:before{content:""}.bi-dash-square-fill:before{content:""}.bi-dash-square:before{content:""}.bi-dash:before{content:""}.bi-diagram-2-fill:before{content:""}.bi-diagram-2:before{content:""}.bi-diagram-3-fill:before{content:""}.bi-diagram-3:before{content:""}.bi-diamond-fill:before{content:""}.bi-diamond-half:before{content:""}.bi-diamond:before{content:""}.bi-dice-1-fill:before{content:""}.bi-dice-1:before{content:""}.bi-dice-2-fill:before{content:""}.bi-dice-2:before{content:""}.bi-dice-3-fill:before{content:""}.bi-dice-3:before{content:""}.bi-dice-4-fill:before{content:""}.bi-dice-4:before{content:""}.bi-dice-5-fill:before{content:""}.bi-dice-5:before{content:""}.bi-dice-6-fill:before{content:""}.bi-dice-6:before{content:""}.bi-disc-fill:before{content:""}.bi-disc:before{content:""}.bi-discord:before{content:""}.bi-display-fill:before{content:""}.bi-display:before{content:""}.bi-distribute-horizontal:before{content:""}.bi-distribute-vertical:before{content:""}.bi-door-closed-fill:before{content:""}.bi-door-closed:before{content:""}.bi-door-open-fill:before{content:""}.bi-door-open:before{content:""}.bi-dot:before{content:""}.bi-download:before{content:""}.bi-droplet-fill:before{content:""}.bi-droplet-half:before{content:""}.bi-droplet:before{content:""}.bi-earbuds:before{content:""}.bi-easel-fill:before{content:""}.bi-easel:before{content:""}.bi-egg-fill:before{content:""}.bi-egg-fried:before{content:""}.bi-egg:before{content:""}.bi-eject-fill:before{content:""}.bi-eject:before{content:""}.bi-emoji-angry-fill:before{content:""}.bi-emoji-angry:before{content:""}.bi-emoji-dizzy-fill:before{content:""}.bi-emoji-dizzy:before{content:""}.bi-emoji-expressionless-fill:before{content:""}.bi-emoji-expressionless:before{content:""}.bi-emoji-frown-fill:before{content:""}.bi-emoji-frown:before{content:""}.bi-emoji-heart-eyes-fill:before{content:""}.bi-emoji-heart-eyes:before{content:""}.bi-emoji-laughing-fill:before{content:""}.bi-emoji-laughing:before{content:""}.bi-emoji-neutral-fill:before{content:""}.bi-emoji-neutral:before{content:""}.bi-emoji-smile-fill:before{content:""}.bi-emoji-smile-upside-down-fill:before{content:""}.bi-emoji-smile-upside-down:before{content:""}.bi-emoji-smile:before{content:""}.bi-emoji-sunglasses-fill:before{content:""}.bi-emoji-sunglasses:before{content:""}.bi-emoji-wink-fill:before{content:""}.bi-emoji-wink:before{content:""}.bi-envelope-fill:before{content:""}.bi-envelope-open-fill:before{content:""}.bi-envelope-open:before{content:""}.bi-envelope:before{content:""}.bi-eraser-fill:before{content:""}.bi-eraser:before{content:""}.bi-exclamation-circle-fill:before{content:""}.bi-exclamation-circle:before{content:""}.bi-exclamation-diamond-fill:before{content:""}.bi-exclamation-diamond:before{content:""}.bi-exclamation-octagon-fill:before{content:""}.bi-exclamation-octagon:before{content:""}.bi-exclamation-square-fill:before{content:""}.bi-exclamation-square:before{content:""}.bi-exclamation-triangle-fill:before{content:""}.bi-exclamation-triangle:before{content:""}.bi-exclamation:before{content:""}.bi-exclude:before{content:""}.bi-eye-fill:before{content:""}.bi-eye-slash-fill:before{content:""}.bi-eye-slash:before{content:""}.bi-eye:before{content:""}.bi-eyedropper:before{content:""}.bi-eyeglasses:before{content:""}.bi-facebook:before{content:""}.bi-file-arrow-down-fill:before{content:""}.bi-file-arrow-down:before{content:""}.bi-file-arrow-up-fill:before{content:""}.bi-file-arrow-up:before{content:""}.bi-file-bar-graph-fill:before{content:""}.bi-file-bar-graph:before{content:""}.bi-file-binary-fill:before{content:""}.bi-file-binary:before{content:""}.bi-file-break-fill:before{content:""}.bi-file-break:before{content:""}.bi-file-check-fill:before{content:""}.bi-file-check:before{content:""}.bi-file-code-fill:before{content:""}.bi-file-code:before{content:""}.bi-file-diff-fill:before{content:""}.bi-file-diff:before{content:""}.bi-file-earmark-arrow-down-fill:before{content:""}.bi-file-earmark-arrow-down:before{content:""}.bi-file-earmark-arrow-up-fill:before{content:""}.bi-file-earmark-arrow-up:before{content:""}.bi-file-earmark-bar-graph-fill:before{content:""}.bi-file-earmark-bar-graph:before{content:""}.bi-file-earmark-binary-fill:before{content:""}.bi-file-earmark-binary:before{content:""}.bi-file-earmark-break-fill:before{content:""}.bi-file-earmark-break:before{content:""}.bi-file-earmark-check-fill:before{content:""}.bi-file-earmark-check:before{content:""}.bi-file-earmark-code-fill:before{content:""}.bi-file-earmark-code:before{content:""}.bi-file-earmark-diff-fill:before{content:""}.bi-file-earmark-diff:before{content:""}.bi-file-earmark-easel-fill:before{content:""}.bi-file-earmark-easel:before{content:""}.bi-file-earmark-excel-fill:before{content:""}.bi-file-earmark-excel:before{content:""}.bi-file-earmark-fill:before{content:""}.bi-file-earmark-font-fill:before{content:""}.bi-file-earmark-font:before{content:""}.bi-file-earmark-image-fill:before{content:""}.bi-file-earmark-image:before{content:""}.bi-file-earmark-lock-fill:before{content:""}.bi-file-earmark-lock:before{content:""}.bi-file-earmark-lock2-fill:before{content:""}.bi-file-earmark-lock2:before{content:""}.bi-file-earmark-medical-fill:before{content:""}.bi-file-earmark-medical:before{content:""}.bi-file-earmark-minus-fill:before{content:""}.bi-file-earmark-minus:before{content:""}.bi-file-earmark-music-fill:before{content:""}.bi-file-earmark-music:before{content:""}.bi-file-earmark-person-fill:before{content:""}.bi-file-earmark-person:before{content:""}.bi-file-earmark-play-fill:before{content:""}.bi-file-earmark-play:before{content:""}.bi-file-earmark-plus-fill:before{content:""}.bi-file-earmark-plus:before{content:""}.bi-file-earmark-post-fill:before{content:""}.bi-file-earmark-post:before{content:""}.bi-file-earmark-ppt-fill:before{content:""}.bi-file-earmark-ppt:before{content:""}.bi-file-earmark-richtext-fill:before{content:""}.bi-file-earmark-richtext:before{content:""}.bi-file-earmark-ruled-fill:before{content:""}.bi-file-earmark-ruled:before{content:""}.bi-file-earmark-slides-fill:before{content:""}.bi-file-earmark-slides:before{content:""}.bi-file-earmark-spreadsheet-fill:before{content:""}.bi-file-earmark-spreadsheet:before{content:""}.bi-file-earmark-text-fill:before{content:""}.bi-file-earmark-text:before{content:""}.bi-file-earmark-word-fill:before{content:""}.bi-file-earmark-word:before{content:""}.bi-file-earmark-x-fill:before{content:""}.bi-file-earmark-x:before{content:""}.bi-file-earmark-zip-fill:before{content:""}.bi-file-earmark-zip:before{content:""}.bi-file-earmark:before{content:""}.bi-file-easel-fill:before{content:""}.bi-file-easel:before{content:""}.bi-file-excel-fill:before{content:""}.bi-file-excel:before{content:""}.bi-file-fill:before{content:""}.bi-file-font-fill:before{content:""}.bi-file-font:before{content:""}.bi-file-image-fill:before{content:""}.bi-file-image:before{content:""}.bi-file-lock-fill:before{content:""}.bi-file-lock:before{content:""}.bi-file-lock2-fill:before{content:""}.bi-file-lock2:before{content:""}.bi-file-medical-fill:before{content:""}.bi-file-medical:before{content:""}.bi-file-minus-fill:before{content:""}.bi-file-minus:before{content:""}.bi-file-music-fill:before{content:""}.bi-file-music:before{content:""}.bi-file-person-fill:before{content:""}.bi-file-person:before{content:""}.bi-file-play-fill:before{content:""}.bi-file-play:before{content:""}.bi-file-plus-fill:before{content:""}.bi-file-plus:before{content:""}.bi-file-post-fill:before{content:""}.bi-file-post:before{content:""}.bi-file-ppt-fill:before{content:""}.bi-file-ppt:before{content:""}.bi-file-richtext-fill:before{content:""}.bi-file-richtext:before{content:""}.bi-file-ruled-fill:before{content:""}.bi-file-ruled:before{content:""}.bi-file-slides-fill:before{content:""}.bi-file-slides:before{content:""}.bi-file-spreadsheet-fill:before{content:""}.bi-file-spreadsheet:before{content:""}.bi-file-text-fill:before{content:""}.bi-file-text:before{content:""}.bi-file-word-fill:before{content:""}.bi-file-word:before{content:""}.bi-file-x-fill:before{content:""}.bi-file-x:before{content:""}.bi-file-zip-fill:before{content:""}.bi-file-zip:before{content:""}.bi-file:before{content:""}.bi-files-alt:before{content:""}.bi-files:before{content:""}.bi-film:before{content:""}.bi-filter-circle-fill:before{content:""}.bi-filter-circle:before{content:""}.bi-filter-left:before{content:""}.bi-filter-right:before{content:""}.bi-filter-square-fill:before{content:""}.bi-filter-square:before{content:""}.bi-filter:before{content:""}.bi-flag-fill:before{content:""}.bi-flag:before{content:""}.bi-flower1:before{content:""}.bi-flower2:before{content:""}.bi-flower3:before{content:""}.bi-folder-check:before{content:""}.bi-folder-fill:before{content:""}.bi-folder-minus:before{content:""}.bi-folder-plus:before{content:""}.bi-folder-symlink-fill:before{content:""}.bi-folder-symlink:before{content:""}.bi-folder-x:before{content:""}.bi-folder:before{content:""}.bi-folder2-open:before{content:""}.bi-folder2:before{content:""}.bi-fonts:before{content:""}.bi-forward-fill:before{content:""}.bi-forward:before{content:""}.bi-front:before{content:""}.bi-fullscreen-exit:before{content:""}.bi-fullscreen:before{content:""}.bi-funnel-fill:before{content:""}.bi-funnel:before{content:""}.bi-gear-fill:before{content:""}.bi-gear-wide-connected:before{content:""}.bi-gear-wide:before{content:""}.bi-gear:before{content:""}.bi-gem:before{content:""}.bi-geo-alt-fill:before{content:""}.bi-geo-alt:before{content:""}.bi-geo-fill:before{content:""}.bi-geo:before{content:""}.bi-gift-fill:before{content:""}.bi-gift:before{content:""}.bi-github:before{content:""}.bi-globe:before{content:""}.bi-globe2:before{content:""}.bi-google:before{content:""}.bi-graph-down:before{content:""}.bi-graph-up:before{content:""}.bi-grid-1x2-fill:before{content:""}.bi-grid-1x2:before{content:""}.bi-grid-3x2-gap-fill:before{content:""}.bi-grid-3x2-gap:before{content:""}.bi-grid-3x2:before{content:""}.bi-grid-3x3-gap-fill:before{content:""}.bi-grid-3x3-gap:before{content:""}.bi-grid-3x3:before{content:""}.bi-grid-fill:before{content:""}.bi-grid:before{content:""}.bi-grip-horizontal:before{content:""}.bi-grip-vertical:before{content:""}.bi-hammer:before{content:""}.bi-hand-index-fill:before{content:""}.bi-hand-index-thumb-fill:before{content:""}.bi-hand-index-thumb:before{content:""}.bi-hand-index:before{content:""}.bi-hand-thumbs-down-fill:before{content:""}.bi-hand-thumbs-down:before{content:""}.bi-hand-thumbs-up-fill:before{content:""}.bi-hand-thumbs-up:before{content:""}.bi-handbag-fill:before{content:""}.bi-handbag:before{content:""}.bi-hash:before{content:""}.bi-hdd-fill:before{content:""}.bi-hdd-network-fill:before{content:""}.bi-hdd-network:before{content:""}.bi-hdd-rack-fill:before{content:""}.bi-hdd-rack:before{content:""}.bi-hdd-stack-fill:before{content:""}.bi-hdd-stack:before{content:""}.bi-hdd:before{content:""}.bi-headphones:before{content:""}.bi-headset:before{content:""}.bi-heart-fill:before{content:""}.bi-heart-half:before{content:""}.bi-heart:before{content:""}.bi-heptagon-fill:before{content:""}.bi-heptagon-half:before{content:""}.bi-heptagon:before{content:""}.bi-hexagon-fill:before{content:""}.bi-hexagon-half:before{content:""}.bi-hexagon:before{content:""}.bi-hourglass-bottom:before{content:""}.bi-hourglass-split:before{content:""}.bi-hourglass-top:before{content:""}.bi-hourglass:before{content:""}.bi-house-door-fill:before{content:""}.bi-house-door:before{content:""}.bi-house-fill:before{content:""}.bi-house:before{content:""}.bi-hr:before{content:""}.bi-hurricane:before{content:""}.bi-image-alt:before{content:""}.bi-image-fill:before{content:""}.bi-image:before{content:""}.bi-images:before{content:""}.bi-inbox-fill:before{content:""}.bi-inbox:before{content:""}.bi-inboxes-fill:before{content:""}.bi-inboxes:before{content:""}.bi-info-circle-fill:before{content:""}.bi-info-circle:before{content:""}.bi-info-square-fill:before{content:""}.bi-info-square:before{content:""}.bi-info:before{content:""}.bi-input-cursor-text:before{content:""}.bi-input-cursor:before{content:""}.bi-instagram:before{content:""}.bi-intersect:before{content:""}.bi-journal-album:before{content:""}.bi-journal-arrow-down:before{content:""}.bi-journal-arrow-up:before{content:""}.bi-journal-bookmark-fill:before{content:""}.bi-journal-bookmark:before{content:""}.bi-journal-check:before{content:""}.bi-journal-code:before{content:""}.bi-journal-medical:before{content:""}.bi-journal-minus:before{content:""}.bi-journal-plus:before{content:""}.bi-journal-richtext:before{content:""}.bi-journal-text:before{content:""}.bi-journal-x:before{content:""}.bi-journal:before{content:""}.bi-journals:before{content:""}.bi-joystick:before{content:""}.bi-justify-left:before{content:""}.bi-justify-right:before{content:""}.bi-justify:before{content:""}.bi-kanban-fill:before{content:""}.bi-kanban:before{content:""}.bi-key-fill:before{content:""}.bi-key:before{content:""}.bi-keyboard-fill:before{content:""}.bi-keyboard:before{content:""}.bi-ladder:before{content:""}.bi-lamp-fill:before{content:""}.bi-lamp:before{content:""}.bi-laptop-fill:before{content:""}.bi-laptop:before{content:""}.bi-layer-backward:before{content:""}.bi-layer-forward:before{content:""}.bi-layers-fill:before{content:""}.bi-layers-half:before{content:""}.bi-layers:before{content:""}.bi-layout-sidebar-inset-reverse:before{content:""}.bi-layout-sidebar-inset:before{content:""}.bi-layout-sidebar-reverse:before{content:""}.bi-layout-sidebar:before{content:""}.bi-layout-split:before{content:""}.bi-layout-text-sidebar-reverse:before{content:""}.bi-layout-text-sidebar:before{content:""}.bi-layout-text-window-reverse:before{content:""}.bi-layout-text-window:before{content:""}.bi-layout-three-columns:before{content:""}.bi-layout-wtf:before{content:""}.bi-life-preserver:before{content:""}.bi-lightbulb-fill:before{content:""}.bi-lightbulb-off-fill:before{content:""}.bi-lightbulb-off:before{content:""}.bi-lightbulb:before{content:""}.bi-lightning-charge-fill:before{content:""}.bi-lightning-charge:before{content:""}.bi-lightning-fill:before{content:""}.bi-lightning:before{content:""}.bi-link-45deg:before{content:""}.bi-link:before{content:""}.bi-linkedin:before{content:""}.bi-list-check:before{content:""}.bi-list-nested:before{content:""}.bi-list-ol:before{content:""}.bi-list-stars:before{content:""}.bi-list-task:before{content:""}.bi-list-ul:before{content:""}.bi-list:before{content:""}.bi-lock-fill:before{content:""}.bi-lock:before{content:""}.bi-mailbox:before{content:""}.bi-mailbox2:before{content:""}.bi-map-fill:before{content:""}.bi-map:before{content:""}.bi-markdown-fill:before{content:""}.bi-markdown:before{content:""}.bi-mask:before{content:""}.bi-megaphone-fill:before{content:""}.bi-megaphone:before{content:""}.bi-menu-app-fill:before{content:""}.bi-menu-app:before{content:""}.bi-menu-button-fill:before{content:""}.bi-menu-button-wide-fill:before{content:""}.bi-menu-button-wide:before{content:""}.bi-menu-button:before{content:""}.bi-menu-down:before{content:""}.bi-menu-up:before{content:""}.bi-mic-fill:before{content:""}.bi-mic-mute-fill:before{content:""}.bi-mic-mute:before{content:""}.bi-mic:before{content:""}.bi-minecart-loaded:before{content:""}.bi-minecart:before{content:""}.bi-moisture:before{content:""}.bi-moon-fill:before{content:""}.bi-moon-stars-fill:before{content:""}.bi-moon-stars:before{content:""}.bi-moon:before{content:""}.bi-mouse-fill:before{content:""}.bi-mouse:before{content:""}.bi-mouse2-fill:before{content:""}.bi-mouse2:before{content:""}.bi-mouse3-fill:before{content:""}.bi-mouse3:before{content:""}.bi-music-note-beamed:before{content:""}.bi-music-note-list:before{content:""}.bi-music-note:before{content:""}.bi-music-player-fill:before{content:""}.bi-music-player:before{content:""}.bi-newspaper:before{content:""}.bi-node-minus-fill:before{content:""}.bi-node-minus:before{content:""}.bi-node-plus-fill:before{content:""}.bi-node-plus:before{content:""}.bi-nut-fill:before{content:""}.bi-nut:before{content:""}.bi-octagon-fill:before{content:""}.bi-octagon-half:before{content:""}.bi-octagon:before{content:""}.bi-option:before{content:""}.bi-outlet:before{content:""}.bi-paint-bucket:before{content:""}.bi-palette-fill:before{content:""}.bi-palette:before{content:""}.bi-palette2:before{content:""}.bi-paperclip:before{content:""}.bi-paragraph:before{content:""}.bi-patch-check-fill:before{content:""}.bi-patch-check:before{content:""}.bi-patch-exclamation-fill:before{content:""}.bi-patch-exclamation:before{content:""}.bi-patch-minus-fill:before{content:""}.bi-patch-minus:before{content:""}.bi-patch-plus-fill:before{content:""}.bi-patch-plus:before{content:""}.bi-patch-question-fill:before{content:""}.bi-patch-question:before{content:""}.bi-pause-btn-fill:before{content:""}.bi-pause-btn:before{content:""}.bi-pause-circle-fill:before{content:""}.bi-pause-circle:before{content:""}.bi-pause-fill:before{content:""}.bi-pause:before{content:""}.bi-peace-fill:before{content:""}.bi-peace:before{content:""}.bi-pen-fill:before{content:""}.bi-pen:before{content:""}.bi-pencil-fill:before{content:""}.bi-pencil-square:before{content:""}.bi-pencil:before{content:""}.bi-pentagon-fill:before{content:""}.bi-pentagon-half:before{content:""}.bi-pentagon:before{content:""}.bi-people-fill:before{content:""}.bi-people:before{content:""}.bi-percent:before{content:""}.bi-person-badge-fill:before{content:""}.bi-person-badge:before{content:""}.bi-person-bounding-box:before{content:""}.bi-person-check-fill:before{content:""}.bi-person-check:before{content:""}.bi-person-circle:before{content:""}.bi-person-dash-fill:before{content:""}.bi-person-dash:before{content:""}.bi-person-fill:before{content:""}.bi-person-lines-fill:before{content:""}.bi-person-plus-fill:before{content:""}.bi-person-plus:before{content:""}.bi-person-square:before{content:""}.bi-person-x-fill:before{content:""}.bi-person-x:before{content:""}.bi-person:before{content:""}.bi-phone-fill:before{content:""}.bi-phone-landscape-fill:before{content:""}.bi-phone-landscape:before{content:""}.bi-phone-vibrate-fill:before{content:""}.bi-phone-vibrate:before{content:""}.bi-phone:before{content:""}.bi-pie-chart-fill:before{content:""}.bi-pie-chart:before{content:""}.bi-pin-angle-fill:before{content:""}.bi-pin-angle:before{content:""}.bi-pin-fill:before{content:""}.bi-pin:before{content:""}.bi-pip-fill:before{content:""}.bi-pip:before{content:""}.bi-play-btn-fill:before{content:""}.bi-play-btn:before{content:""}.bi-play-circle-fill:before{content:""}.bi-play-circle:before{content:""}.bi-play-fill:before{content:""}.bi-play:before{content:""}.bi-plug-fill:before{content:""}.bi-plug:before{content:""}.bi-plus-circle-dotted:before{content:""}.bi-plus-circle-fill:before{content:""}.bi-plus-circle:before{content:""}.bi-plus-square-dotted:before{content:""}.bi-plus-square-fill:before{content:""}.bi-plus-square:before{content:""}.bi-plus:before{content:""}.bi-power:before{content:""}.bi-printer-fill:before{content:""}.bi-printer:before{content:""}.bi-puzzle-fill:before{content:""}.bi-puzzle:before{content:""}.bi-question-circle-fill:before{content:""}.bi-question-circle:before{content:""}.bi-question-diamond-fill:before{content:""}.bi-question-diamond:before{content:""}.bi-question-octagon-fill:before{content:""}.bi-question-octagon:before{content:""}.bi-question-square-fill:before{content:""}.bi-question-square:before{content:""}.bi-question:before{content:""}.bi-rainbow:before{content:""}.bi-receipt-cutoff:before{content:""}.bi-receipt:before{content:""}.bi-reception-0:before{content:""}.bi-reception-1:before{content:""}.bi-reception-2:before{content:""}.bi-reception-3:before{content:""}.bi-reception-4:before{content:""}.bi-record-btn-fill:before{content:""}.bi-record-btn:before{content:""}.bi-record-circle-fill:before{content:""}.bi-record-circle:before{content:""}.bi-record-fill:before{content:""}.bi-record:before{content:""}.bi-record2-fill:before{content:""}.bi-record2:before{content:""}.bi-reply-all-fill:before{content:""}.bi-reply-all:before{content:""}.bi-reply-fill:before{content:""}.bi-reply:before{content:""}.bi-rss-fill:before{content:""}.bi-rss:before{content:""}.bi-rulers:before{content:""}.bi-save-fill:before{content:""}.bi-save:before{content:""}.bi-save2-fill:before{content:""}.bi-save2:before{content:""}.bi-scissors:before{content:""}.bi-screwdriver:before{content:""}.bi-search:before{content:""}.bi-segmented-nav:before{content:""}.bi-server:before{content:""}.bi-share-fill:before{content:""}.bi-share:before{content:""}.bi-shield-check:before{content:""}.bi-shield-exclamation:before{content:""}.bi-shield-fill-check:before{content:""}.bi-shield-fill-exclamation:before{content:""}.bi-shield-fill-minus:before{content:""}.bi-shield-fill-plus:before{content:""}.bi-shield-fill-x:before{content:""}.bi-shield-fill:before{content:""}.bi-shield-lock-fill:before{content:""}.bi-shield-lock:before{content:""}.bi-shield-minus:before{content:""}.bi-shield-plus:before{content:""}.bi-shield-shaded:before{content:""}.bi-shield-slash-fill:before{content:""}.bi-shield-slash:before{content:""}.bi-shield-x:before{content:""}.bi-shield:before{content:""}.bi-shift-fill:before{content:""}.bi-shift:before{content:""}.bi-shop-window:before{content:""}.bi-shop:before{content:""}.bi-shuffle:before{content:""}.bi-signpost-2-fill:before{content:""}.bi-signpost-2:before{content:""}.bi-signpost-fill:before{content:""}.bi-signpost-split-fill:before{content:""}.bi-signpost-split:before{content:""}.bi-signpost:before{content:""}.bi-sim-fill:before{content:""}.bi-sim:before{content:""}.bi-skip-backward-btn-fill:before{content:""}.bi-skip-backward-btn:before{content:""}.bi-skip-backward-circle-fill:before{content:""}.bi-skip-backward-circle:before{content:""}.bi-skip-backward-fill:before{content:""}.bi-skip-backward:before{content:""}.bi-skip-end-btn-fill:before{content:""}.bi-skip-end-btn:before{content:""}.bi-skip-end-circle-fill:before{content:""}.bi-skip-end-circle:before{content:""}.bi-skip-end-fill:before{content:""}.bi-skip-end:before{content:""}.bi-skip-forward-btn-fill:before{content:""}.bi-skip-forward-btn:before{content:""}.bi-skip-forward-circle-fill:before{content:""}.bi-skip-forward-circle:before{content:""}.bi-skip-forward-fill:before{content:""}.bi-skip-forward:before{content:""}.bi-skip-start-btn-fill:before{content:""}.bi-skip-start-btn:before{content:""}.bi-skip-start-circle-fill:before{content:""}.bi-skip-start-circle:before{content:""}.bi-skip-start-fill:before{content:""}.bi-skip-start:before{content:""}.bi-slack:before{content:""}.bi-slash-circle-fill:before{content:""}.bi-slash-circle:before{content:""}.bi-slash-square-fill:before{content:""}.bi-slash-square:before{content:""}.bi-slash:before{content:""}.bi-sliders:before{content:""}.bi-smartwatch:before{content:""}.bi-snow:before{content:""}.bi-snow2:before{content:""}.bi-snow3:before{content:""}.bi-sort-alpha-down-alt:before{content:""}.bi-sort-alpha-down:before{content:""}.bi-sort-alpha-up-alt:before{content:""}.bi-sort-alpha-up:before{content:""}.bi-sort-down-alt:before{content:""}.bi-sort-down:before{content:""}.bi-sort-numeric-down-alt:before{content:""}.bi-sort-numeric-down:before{content:""}.bi-sort-numeric-up-alt:before{content:""}.bi-sort-numeric-up:before{content:""}.bi-sort-up-alt:before{content:""}.bi-sort-up:before{content:""}.bi-soundwave:before{content:""}.bi-speaker-fill:before{content:""}.bi-speaker:before{content:""}.bi-speedometer:before{content:""}.bi-speedometer2:before{content:""}.bi-spellcheck:before{content:""}.bi-square-fill:before{content:""}.bi-square-half:before{content:""}.bi-square:before{content:""}.bi-stack:before{content:""}.bi-star-fill:before{content:""}.bi-star-half:before{content:""}.bi-star:before{content:""}.bi-stars:before{content:""}.bi-stickies-fill:before{content:""}.bi-stickies:before{content:""}.bi-sticky-fill:before{content:""}.bi-sticky:before{content:""}.bi-stop-btn-fill:before{content:""}.bi-stop-btn:before{content:""}.bi-stop-circle-fill:before{content:""}.bi-stop-circle:before{content:""}.bi-stop-fill:before{content:""}.bi-stop:before{content:""}.bi-stoplights-fill:before{content:""}.bi-stoplights:before{content:""}.bi-stopwatch-fill:before{content:""}.bi-stopwatch:before{content:""}.bi-subtract:before{content:""}.bi-suit-club-fill:before{content:""}.bi-suit-club:before{content:""}.bi-suit-diamond-fill:before{content:""}.bi-suit-diamond:before{content:""}.bi-suit-heart-fill:before{content:""}.bi-suit-heart:before{content:""}.bi-suit-spade-fill:before{content:""}.bi-suit-spade:before{content:""}.bi-sun-fill:before{content:""}.bi-sun:before{content:""}.bi-sunglasses:before{content:""}.bi-sunrise-fill:before{content:""}.bi-sunrise:before{content:""}.bi-sunset-fill:before{content:""}.bi-sunset:before{content:""}.bi-symmetry-horizontal:before{content:""}.bi-symmetry-vertical:before{content:""}.bi-table:before{content:""}.bi-tablet-fill:before{content:""}.bi-tablet-landscape-fill:before{content:""}.bi-tablet-landscape:before{content:""}.bi-tablet:before{content:""}.bi-tag-fill:before{content:""}.bi-tag:before{content:""}.bi-tags-fill:before{content:""}.bi-tags:before{content:""}.bi-telegram:before{content:""}.bi-telephone-fill:before{content:""}.bi-telephone-forward-fill:before{content:""}.bi-telephone-forward:before{content:""}.bi-telephone-inbound-fill:before{content:""}.bi-telephone-inbound:before{content:""}.bi-telephone-minus-fill:before{content:""}.bi-telephone-minus:before{content:""}.bi-telephone-outbound-fill:before{content:""}.bi-telephone-outbound:before{content:""}.bi-telephone-plus-fill:before{content:""}.bi-telephone-plus:before{content:""}.bi-telephone-x-fill:before{content:""}.bi-telephone-x:before{content:""}.bi-telephone:before{content:""}.bi-terminal-fill:before{content:""}.bi-terminal:before{content:""}.bi-text-center:before{content:""}.bi-text-indent-left:before{content:""}.bi-text-indent-right:before{content:""}.bi-text-left:before{content:""}.bi-text-paragraph:before{content:""}.bi-text-right:before{content:""}.bi-textarea-resize:before{content:""}.bi-textarea-t:before{content:""}.bi-textarea:before{content:""}.bi-thermometer-half:before{content:""}.bi-thermometer-high:before{content:""}.bi-thermometer-low:before{content:""}.bi-thermometer-snow:before{content:""}.bi-thermometer-sun:before{content:""}.bi-thermometer:before{content:""}.bi-three-dots-vertical:before{content:""}.bi-three-dots:before{content:""}.bi-toggle-off:before{content:""}.bi-toggle-on:before{content:""}.bi-toggle2-off:before{content:""}.bi-toggle2-on:before{content:""}.bi-toggles:before{content:""}.bi-toggles2:before{content:""}.bi-tools:before{content:""}.bi-tornado:before{content:""}.bi-trash-fill:before{content:""}.bi-trash:before{content:""}.bi-trash2-fill:before{content:""}.bi-trash2:before{content:""}.bi-tree-fill:before{content:""}.bi-tree:before{content:""}.bi-triangle-fill:before{content:""}.bi-triangle-half:before{content:""}.bi-triangle:before{content:""}.bi-trophy-fill:before{content:""}.bi-trophy:before{content:""}.bi-tropical-storm:before{content:""}.bi-truck-flatbed:before{content:""}.bi-truck:before{content:""}.bi-tsunami:before{content:""}.bi-tv-fill:before{content:""}.bi-tv:before{content:""}.bi-twitch:before{content:""}.bi-twitter:before{content:""}.bi-type-bold:before{content:""}.bi-type-h1:before{content:""}.bi-type-h2:before{content:""}.bi-type-h3:before{content:""}.bi-type-italic:before{content:""}.bi-type-strikethrough:before{content:""}.bi-type-underline:before{content:""}.bi-type:before{content:""}.bi-ui-checks-grid:before{content:""}.bi-ui-checks:before{content:""}.bi-ui-radios-grid:before{content:""}.bi-ui-radios:before{content:""}.bi-umbrella-fill:before{content:""}.bi-umbrella:before{content:""}.bi-union:before{content:""}.bi-unlock-fill:before{content:""}.bi-unlock:before{content:""}.bi-upc-scan:before{content:""}.bi-upc:before{content:""}.bi-upload:before{content:""}.bi-vector-pen:before{content:""}.bi-view-list:before{content:""}.bi-view-stacked:before{content:""}.bi-vinyl-fill:before{content:""}.bi-vinyl:before{content:""}.bi-voicemail:before{content:""}.bi-volume-down-fill:before{content:""}.bi-volume-down:before{content:""}.bi-volume-mute-fill:before{content:""}.bi-volume-mute:before{content:""}.bi-volume-off-fill:before{content:""}.bi-volume-off:before{content:""}.bi-volume-up-fill:before{content:""}.bi-volume-up:before{content:""}.bi-vr:before{content:""}.bi-wallet-fill:before{content:""}.bi-wallet:before{content:""}.bi-wallet2:before{content:""}.bi-watch:before{content:""}.bi-water:before{content:""}.bi-whatsapp:before{content:""}.bi-wifi-1:before{content:""}.bi-wifi-2:before{content:""}.bi-wifi-off:before{content:""}.bi-wifi:before{content:""}.bi-wind:before{content:""}.bi-window-dock:before{content:""}.bi-window-sidebar:before{content:""}.bi-window:before{content:""}.bi-wrench:before{content:""}.bi-x-circle-fill:before{content:""}.bi-x-circle:before{content:""}.bi-x-diamond-fill:before{content:""}.bi-x-diamond:before{content:""}.bi-x-octagon-fill:before{content:""}.bi-x-octagon:before{content:""}.bi-x-square-fill:before{content:""}.bi-x-square:before{content:""}.bi-x:before{content:""}.bi-youtube:before{content:""}.bi-zoom-in:before{content:""}.bi-zoom-out:before{content:""}.bi-bank:before{content:""}.bi-bank2:before{content:""}.bi-bell-slash-fill:before{content:""}.bi-bell-slash:before{content:""}.bi-cash-coin:before{content:""}.bi-check-lg:before{content:""}.bi-coin:before{content:""}.bi-currency-bitcoin:before{content:""}.bi-currency-dollar:before{content:""}.bi-currency-euro:before{content:""}.bi-currency-exchange:before{content:""}.bi-currency-pound:before{content:""}.bi-currency-yen:before{content:""}.bi-dash-lg:before{content:""}.bi-exclamation-lg:before{content:""}.bi-file-earmark-pdf-fill:before{content:""}.bi-file-earmark-pdf:before{content:""}.bi-file-pdf-fill:before{content:""}.bi-file-pdf:before{content:""}.bi-gender-ambiguous:before{content:""}.bi-gender-female:before{content:""}.bi-gender-male:before{content:""}.bi-gender-trans:before{content:""}.bi-headset-vr:before{content:""}.bi-info-lg:before{content:""}.bi-mastodon:before{content:""}.bi-messenger:before{content:""}.bi-piggy-bank-fill:before{content:""}.bi-piggy-bank:before{content:""}.bi-pin-map-fill:before{content:""}.bi-pin-map:before{content:""}.bi-plus-lg:before{content:""}.bi-question-lg:before{content:""}.bi-recycle:before{content:""}.bi-reddit:before{content:""}.bi-safe-fill:before{content:""}.bi-safe2-fill:before{content:""}.bi-safe2:before{content:""}.bi-sd-card-fill:before{content:""}.bi-sd-card:before{content:""}.bi-skype:before{content:""}.bi-slash-lg:before{content:""}.bi-translate:before{content:""}.bi-x-lg:before{content:""}.bi-safe:before{content:""}.bi-apple:before{content:""}.bi-microsoft:before{content:""}.bi-windows:before{content:""}.bi-behance:before{content:""}.bi-dribbble:before{content:""}.bi-line:before{content:""}.bi-medium:before{content:""}.bi-paypal:before{content:""}.bi-pinterest:before{content:""}.bi-signal:before{content:""}.bi-snapchat:before{content:""}.bi-spotify:before{content:""}.bi-stack-overflow:before{content:""}.bi-strava:before{content:""}.bi-wordpress:before{content:""}.bi-vimeo:before{content:""}.bi-activity:before{content:""}.bi-easel2-fill:before{content:""}.bi-easel2:before{content:""}.bi-easel3-fill:before{content:""}.bi-easel3:before{content:""}.bi-fan:before{content:""}.bi-fingerprint:before{content:""}.bi-graph-down-arrow:before{content:""}.bi-graph-up-arrow:before{content:""}.bi-hypnotize:before{content:""}.bi-magic:before{content:""}.bi-person-rolodex:before{content:""}.bi-person-video:before{content:""}.bi-person-video2:before{content:""}.bi-person-video3:before{content:""}.bi-person-workspace:before{content:""}.bi-radioactive:before{content:""}.bi-webcam-fill:before{content:""}.bi-webcam:before{content:""}.bi-yin-yang:before{content:""}.bi-bandaid-fill:before{content:""}.bi-bandaid:before{content:""}.bi-bluetooth:before{content:""}.bi-body-text:before{content:""}.bi-boombox:before{content:""}.bi-boxes:before{content:""}.bi-dpad-fill:before{content:""}.bi-dpad:before{content:""}.bi-ear-fill:before{content:""}.bi-ear:before{content:""}.bi-envelope-check-fill:before{content:""}.bi-envelope-check:before{content:""}.bi-envelope-dash-fill:before{content:""}.bi-envelope-dash:before{content:""}.bi-envelope-exclamation-fill:before{content:""}.bi-envelope-exclamation:before{content:""}.bi-envelope-plus-fill:before{content:""}.bi-envelope-plus:before{content:""}.bi-envelope-slash-fill:before{content:""}.bi-envelope-slash:before{content:""}.bi-envelope-x-fill:before{content:""}.bi-envelope-x:before{content:""}.bi-explicit-fill:before{content:""}.bi-explicit:before{content:""}.bi-git:before{content:""}.bi-infinity:before{content:""}.bi-list-columns-reverse:before{content:""}.bi-list-columns:before{content:""}.bi-meta:before{content:""}.bi-nintendo-switch:before{content:""}.bi-pc-display-horizontal:before{content:""}.bi-pc-display:before{content:""}.bi-pc-horizontal:before{content:""}.bi-pc:before{content:""}.bi-playstation:before{content:""}.bi-plus-slash-minus:before{content:""}.bi-projector-fill:before{content:""}.bi-projector:before{content:""}.bi-qr-code-scan:before{content:""}.bi-qr-code:before{content:""}.bi-quora:before{content:""}.bi-quote:before{content:""}.bi-robot:before{content:""}.bi-send-check-fill:before{content:""}.bi-send-check:before{content:""}.bi-send-dash-fill:before{content:""}.bi-send-dash:before{content:""}.bi-send-exclamation-fill:before{content:""}.bi-send-exclamation:before{content:""}.bi-send-fill:before{content:""}.bi-send-plus-fill:before{content:""}.bi-send-plus:before{content:""}.bi-send-slash-fill:before{content:""}.bi-send-slash:before{content:""}.bi-send-x-fill:before{content:""}.bi-send-x:before{content:""}.bi-send:before{content:""}.bi-steam:before{content:""}.bi-terminal-dash:before{content:""}.bi-terminal-plus:before{content:""}.bi-terminal-split:before{content:""}.bi-ticket-detailed-fill:before{content:""}.bi-ticket-detailed:before{content:""}.bi-ticket-fill:before{content:""}.bi-ticket-perforated-fill:before{content:""}.bi-ticket-perforated:before{content:""}.bi-ticket:before{content:""}.bi-tiktok:before{content:""}.bi-window-dash:before{content:""}.bi-window-desktop:before{content:""}.bi-window-fullscreen:before{content:""}.bi-window-plus:before{content:""}.bi-window-split:before{content:""}.bi-window-stack:before{content:""}.bi-window-x:before{content:""}.bi-xbox:before{content:""}.bi-ethernet:before{content:""}.bi-hdmi-fill:before{content:""}.bi-hdmi:before{content:""}.bi-usb-c-fill:before{content:""}.bi-usb-c:before{content:""}.bi-usb-fill:before{content:""}.bi-usb-plug-fill:before{content:""}.bi-usb-plug:before{content:""}.bi-usb-symbol:before{content:""}.bi-usb:before{content:""}.bi-boombox-fill:before{content:""}.bi-displayport:before{content:""}.bi-gpu-card:before{content:""}.bi-memory:before{content:""}.bi-modem-fill:before{content:""}.bi-modem:before{content:""}.bi-motherboard-fill:before{content:""}.bi-motherboard:before{content:""}.bi-optical-audio-fill:before{content:""}.bi-optical-audio:before{content:""}.bi-pci-card:before{content:""}.bi-router-fill:before{content:""}.bi-router:before{content:""}.bi-thunderbolt-fill:before{content:""}.bi-thunderbolt:before{content:""}.bi-usb-drive-fill:before{content:""}.bi-usb-drive:before{content:""}.bi-usb-micro-fill:before{content:""}.bi-usb-micro:before{content:""}.bi-usb-mini-fill:before{content:""}.bi-usb-mini:before{content:""}.bi-cloud-haze2:before{content:""}.bi-device-hdd-fill:before{content:""}.bi-device-hdd:before{content:""}.bi-device-ssd-fill:before{content:""}.bi-device-ssd:before{content:""}.bi-displayport-fill:before{content:""}.bi-mortarboard-fill:before{content:""}.bi-mortarboard:before{content:""}.bi-terminal-x:before{content:""}.bi-arrow-through-heart-fill:before{content:""}.bi-arrow-through-heart:before{content:""}.bi-badge-sd-fill:before{content:""}.bi-badge-sd:before{content:""}.bi-bag-heart-fill:before{content:""}.bi-bag-heart:before{content:""}.bi-balloon-fill:before{content:""}.bi-balloon-heart-fill:before{content:""}.bi-balloon-heart:before{content:""}.bi-balloon:before{content:""}.bi-box2-fill:before{content:""}.bi-box2-heart-fill:before{content:""}.bi-box2-heart:before{content:""}.bi-box2:before{content:""}.bi-braces-asterisk:before{content:""}.bi-calendar-heart-fill:before{content:""}.bi-calendar-heart:before{content:""}.bi-calendar2-heart-fill:before{content:""}.bi-calendar2-heart:before{content:""}.bi-chat-heart-fill:before{content:""}.bi-chat-heart:before{content:""}.bi-chat-left-heart-fill:before{content:""}.bi-chat-left-heart:before{content:""}.bi-chat-right-heart-fill:before{content:""}.bi-chat-right-heart:before{content:""}.bi-chat-square-heart-fill:before{content:""}.bi-chat-square-heart:before{content:""}.bi-clipboard-check-fill:before{content:""}.bi-clipboard-data-fill:before{content:""}.bi-clipboard-fill:before{content:""}.bi-clipboard-heart-fill:before{content:""}.bi-clipboard-heart:before{content:""}.bi-clipboard-minus-fill:before{content:""}.bi-clipboard-plus-fill:before{content:""}.bi-clipboard-pulse:before{content:""}.bi-clipboard-x-fill:before{content:""}.bi-clipboard2-check-fill:before{content:""}.bi-clipboard2-check:before{content:""}.bi-clipboard2-data-fill:before{content:""}.bi-clipboard2-data:before{content:""}.bi-clipboard2-fill:before{content:""}.bi-clipboard2-heart-fill:before{content:""}.bi-clipboard2-heart:before{content:""}.bi-clipboard2-minus-fill:before{content:""}.bi-clipboard2-minus:before{content:""}.bi-clipboard2-plus-fill:before{content:""}.bi-clipboard2-plus:before{content:""}.bi-clipboard2-pulse-fill:before{content:""}.bi-clipboard2-pulse:before{content:""}.bi-clipboard2-x-fill:before{content:""}.bi-clipboard2-x:before{content:""}.bi-clipboard2:before{content:""}.bi-emoji-kiss-fill:before{content:""}.bi-emoji-kiss:before{content:""}.bi-envelope-heart-fill:before{content:""}.bi-envelope-heart:before{content:""}.bi-envelope-open-heart-fill:before{content:""}.bi-envelope-open-heart:before{content:""}.bi-envelope-paper-fill:before{content:""}.bi-envelope-paper-heart-fill:before{content:""}.bi-envelope-paper-heart:before{content:""}.bi-envelope-paper:before{content:""}.bi-filetype-aac:before{content:""}.bi-filetype-ai:before{content:""}.bi-filetype-bmp:before{content:""}.bi-filetype-cs:before{content:""}.bi-filetype-css:before{content:""}.bi-filetype-csv:before{content:""}.bi-filetype-doc:before{content:""}.bi-filetype-docx:before{content:""}.bi-filetype-exe:before{content:""}.bi-filetype-gif:before{content:""}.bi-filetype-heic:before{content:""}.bi-filetype-html:before{content:""}.bi-filetype-java:before{content:""}.bi-filetype-jpg:before{content:""}.bi-filetype-js:before{content:""}.bi-filetype-jsx:before{content:""}.bi-filetype-key:before{content:""}.bi-filetype-m4p:before{content:""}.bi-filetype-md:before{content:""}.bi-filetype-mdx:before{content:""}.bi-filetype-mov:before{content:""}.bi-filetype-mp3:before{content:""}.bi-filetype-mp4:before{content:""}.bi-filetype-otf:before{content:""}.bi-filetype-pdf:before{content:""}.bi-filetype-php:before{content:""}.bi-filetype-png:before{content:""}.bi-filetype-ppt:before{content:""}.bi-filetype-psd:before{content:""}.bi-filetype-py:before{content:""}.bi-filetype-raw:before{content:""}.bi-filetype-rb:before{content:""}.bi-filetype-sass:before{content:""}.bi-filetype-scss:before{content:""}.bi-filetype-sh:before{content:""}.bi-filetype-svg:before{content:""}.bi-filetype-tiff:before{content:""}.bi-filetype-tsx:before{content:""}.bi-filetype-ttf:before{content:""}.bi-filetype-txt:before{content:""}.bi-filetype-wav:before{content:""}.bi-filetype-woff:before{content:""}.bi-filetype-xls:before{content:""}.bi-filetype-xml:before{content:""}.bi-filetype-yml:before{content:""}.bi-heart-arrow:before{content:""}.bi-heart-pulse-fill:before{content:""}.bi-heart-pulse:before{content:""}.bi-heartbreak-fill:before{content:""}.bi-heartbreak:before{content:""}.bi-hearts:before{content:""}.bi-hospital-fill:before{content:""}.bi-hospital:before{content:""}.bi-house-heart-fill:before{content:""}.bi-house-heart:before{content:""}.bi-incognito:before{content:""}.bi-magnet-fill:before{content:""}.bi-magnet:before{content:""}.bi-person-heart:before{content:""}.bi-person-hearts:before{content:""}.bi-phone-flip:before{content:""}.bi-plugin:before{content:""}.bi-postage-fill:before{content:""}.bi-postage-heart-fill:before{content:""}.bi-postage-heart:before{content:""}.bi-postage:before{content:""}.bi-postcard-fill:before{content:""}.bi-postcard-heart-fill:before{content:""}.bi-postcard-heart:before{content:""}.bi-postcard:before{content:""}.bi-search-heart-fill:before{content:""}.bi-search-heart:before{content:""}.bi-sliders2-vertical:before{content:""}.bi-sliders2:before{content:""}.bi-trash3-fill:before{content:""}.bi-trash3:before{content:""}.bi-valentine:before{content:""}.bi-valentine2:before{content:""}.bi-wrench-adjustable-circle-fill:before{content:""}.bi-wrench-adjustable-circle:before{content:""}.bi-wrench-adjustable:before{content:""}.bi-filetype-json:before{content:""}.bi-filetype-pptx:before{content:""}.bi-filetype-xlsx:before{content:""}.bi-1-circle-fill:before{content:""}.bi-1-circle:before{content:""}.bi-1-square-fill:before{content:""}.bi-1-square:before{content:""}.bi-2-circle-fill:before{content:""}.bi-2-circle:before{content:""}.bi-2-square-fill:before{content:""}.bi-2-square:before{content:""}.bi-3-circle-fill:before{content:""}.bi-3-circle:before{content:""}.bi-3-square-fill:before{content:""}.bi-3-square:before{content:""}.bi-4-circle-fill:before{content:""}.bi-4-circle:before{content:""}.bi-4-square-fill:before{content:""}.bi-4-square:before{content:""}.bi-5-circle-fill:before{content:""}.bi-5-circle:before{content:""}.bi-5-square-fill:before{content:""}.bi-5-square:before{content:""}.bi-6-circle-fill:before{content:""}.bi-6-circle:before{content:""}.bi-6-square-fill:before{content:""}.bi-6-square:before{content:""}.bi-7-circle-fill:before{content:""}.bi-7-circle:before{content:""}.bi-7-square-fill:before{content:""}.bi-7-square:before{content:""}.bi-8-circle-fill:before{content:""}.bi-8-circle:before{content:""}.bi-8-square-fill:before{content:""}.bi-8-square:before{content:""}.bi-9-circle-fill:before{content:""}.bi-9-circle:before{content:""}.bi-9-square-fill:before{content:""}.bi-9-square:before{content:""}.bi-airplane-engines-fill:before{content:""}.bi-airplane-engines:before{content:""}.bi-airplane-fill:before{content:""}.bi-airplane:before{content:""}.bi-alexa:before{content:""}.bi-alipay:before{content:""}.bi-android:before{content:""}.bi-android2:before{content:""}.bi-box-fill:before{content:""}.bi-box-seam-fill:before{content:""}.bi-browser-chrome:before{content:""}.bi-browser-edge:before{content:""}.bi-browser-firefox:before{content:""}.bi-browser-safari:before{content:""}.bi-c-circle-fill:before{content:""}.bi-c-circle:before{content:""}.bi-c-square-fill:before{content:""}.bi-c-square:before{content:""}.bi-capsule-pill:before{content:""}.bi-capsule:before{content:""}.bi-car-front-fill:before{content:""}.bi-car-front:before{content:""}.bi-cassette-fill:before{content:""}.bi-cassette:before{content:""}.bi-cc-circle-fill:before{content:""}.bi-cc-circle:before{content:""}.bi-cc-square-fill:before{content:""}.bi-cc-square:before{content:""}.bi-cup-hot-fill:before{content:""}.bi-cup-hot:before{content:""}.bi-currency-rupee:before{content:""}.bi-dropbox:before{content:""}.bi-escape:before{content:""}.bi-fast-forward-btn-fill:before{content:""}.bi-fast-forward-btn:before{content:""}.bi-fast-forward-circle-fill:before{content:""}.bi-fast-forward-circle:before{content:""}.bi-fast-forward-fill:before{content:""}.bi-fast-forward:before{content:""}.bi-filetype-sql:before{content:""}.bi-fire:before{content:""}.bi-google-play:before{content:""}.bi-h-circle-fill:before{content:""}.bi-h-circle:before{content:""}.bi-h-square-fill:before{content:""}.bi-h-square:before{content:""}.bi-indent:before{content:""}.bi-lungs-fill:before{content:""}.bi-lungs:before{content:""}.bi-microsoft-teams:before{content:""}.bi-p-circle-fill:before{content:""}.bi-p-circle:before{content:""}.bi-p-square-fill:before{content:""}.bi-p-square:before{content:""}.bi-pass-fill:before{content:""}.bi-pass:before{content:""}.bi-prescription:before{content:""}.bi-prescription2:before{content:""}.bi-r-circle-fill:before{content:""}.bi-r-circle:before{content:""}.bi-r-square-fill:before{content:""}.bi-r-square:before{content:""}.bi-repeat-1:before{content:""}.bi-repeat:before{content:""}.bi-rewind-btn-fill:before{content:""}.bi-rewind-btn:before{content:""}.bi-rewind-circle-fill:before{content:""}.bi-rewind-circle:before{content:""}.bi-rewind-fill:before{content:""}.bi-rewind:before{content:""}.bi-train-freight-front-fill:before{content:""}.bi-train-freight-front:before{content:""}.bi-train-front-fill:before{content:""}.bi-train-front:before{content:""}.bi-train-lightrail-front-fill:before{content:""}.bi-train-lightrail-front:before{content:""}.bi-truck-front-fill:before{content:""}.bi-truck-front:before{content:""}.bi-ubuntu:before{content:""}.bi-unindent:before{content:""}.bi-unity:before{content:""}.bi-universal-access-circle:before{content:""}.bi-universal-access:before{content:""}.bi-virus:before{content:""}.bi-virus2:before{content:""}.bi-wechat:before{content:""}.bi-yelp:before{content:""}.bi-sign-stop-fill:before{content:""}.bi-sign-stop-lights-fill:before{content:""}.bi-sign-stop-lights:before{content:""}.bi-sign-stop:before{content:""}.bi-sign-turn-left-fill:before{content:""}.bi-sign-turn-left:before{content:""}.bi-sign-turn-right-fill:before{content:""}.bi-sign-turn-right:before{content:""}.bi-sign-turn-slight-left-fill:before{content:""}.bi-sign-turn-slight-left:before{content:""}.bi-sign-turn-slight-right-fill:before{content:""}.bi-sign-turn-slight-right:before{content:""}.bi-sign-yield-fill:before{content:""}.bi-sign-yield:before{content:""}.bi-ev-station-fill:before{content:""}.bi-ev-station:before{content:""}.bi-fuel-pump-diesel-fill:before{content:""}.bi-fuel-pump-diesel:before{content:""}.bi-fuel-pump-fill:before{content:""}.bi-fuel-pump:before{content:""}.bi-0-circle-fill:before{content:""}.bi-0-circle:before{content:""}.bi-0-square-fill:before{content:""}.bi-0-square:before{content:""}.bi-rocket-fill:before{content:""}.bi-rocket-takeoff-fill:before{content:""}.bi-rocket-takeoff:before{content:""}.bi-rocket:before{content:""}.bi-stripe:before{content:""}.bi-subscript:before{content:""}.bi-superscript:before{content:""}.bi-trello:before{content:""}.bi-envelope-at-fill:before{content:""}.bi-envelope-at:before{content:""}.bi-regex:before{content:""}.bi-text-wrap:before{content:""}.bi-sign-dead-end-fill:before{content:""}.bi-sign-dead-end:before{content:""}.bi-sign-do-not-enter-fill:before{content:""}.bi-sign-do-not-enter:before{content:""}.bi-sign-intersection-fill:before{content:""}.bi-sign-intersection-side-fill:before{content:""}.bi-sign-intersection-side:before{content:""}.bi-sign-intersection-t-fill:before{content:""}.bi-sign-intersection-t:before{content:""}.bi-sign-intersection-y-fill:before{content:""}.bi-sign-intersection-y:before{content:""}.bi-sign-intersection:before{content:""}.bi-sign-merge-left-fill:before{content:""}.bi-sign-merge-left:before{content:""}.bi-sign-merge-right-fill:before{content:""}.bi-sign-merge-right:before{content:""}.bi-sign-no-left-turn-fill:before{content:""}.bi-sign-no-left-turn:before{content:""}.bi-sign-no-parking-fill:before{content:""}.bi-sign-no-parking:before{content:""}.bi-sign-no-right-turn-fill:before{content:""}.bi-sign-no-right-turn:before{content:""}.bi-sign-railroad-fill:before{content:""}.bi-sign-railroad:before{content:""}.bi-building-add:before{content:""}.bi-building-check:before{content:""}.bi-building-dash:before{content:""}.bi-building-down:before{content:""}.bi-building-exclamation:before{content:""}.bi-building-fill-add:before{content:""}.bi-building-fill-check:before{content:""}.bi-building-fill-dash:before{content:""}.bi-building-fill-down:before{content:""}.bi-building-fill-exclamation:before{content:""}.bi-building-fill-gear:before{content:""}.bi-building-fill-lock:before{content:""}.bi-building-fill-slash:before{content:""}.bi-building-fill-up:before{content:""}.bi-building-fill-x:before{content:""}.bi-building-fill:before{content:""}.bi-building-gear:before{content:""}.bi-building-lock:before{content:""}.bi-building-slash:before{content:""}.bi-building-up:before{content:""}.bi-building-x:before{content:""}.bi-buildings-fill:before{content:""}.bi-buildings:before{content:""}.bi-bus-front-fill:before{content:""}.bi-bus-front:before{content:""}.bi-ev-front-fill:before{content:""}.bi-ev-front:before{content:""}.bi-globe-americas:before{content:""}.bi-globe-asia-australia:before{content:""}.bi-globe-central-south-asia:before{content:""}.bi-globe-europe-africa:before{content:""}.bi-house-add-fill:before{content:""}.bi-house-add:before{content:""}.bi-house-check-fill:before{content:""}.bi-house-check:before{content:""}.bi-house-dash-fill:before{content:""}.bi-house-dash:before{content:""}.bi-house-down-fill:before{content:""}.bi-house-down:before{content:""}.bi-house-exclamation-fill:before{content:""}.bi-house-exclamation:before{content:""}.bi-house-gear-fill:before{content:""}.bi-house-gear:before{content:""}.bi-house-lock-fill:before{content:""}.bi-house-lock:before{content:""}.bi-house-slash-fill:before{content:""}.bi-house-slash:before{content:""}.bi-house-up-fill:before{content:""}.bi-house-up:before{content:""}.bi-house-x-fill:before{content:""}.bi-house-x:before{content:""}.bi-person-add:before{content:""}.bi-person-down:before{content:""}.bi-person-exclamation:before{content:""}.bi-person-fill-add:before{content:""}.bi-person-fill-check:before{content:""}.bi-person-fill-dash:before{content:""}.bi-person-fill-down:before{content:""}.bi-person-fill-exclamation:before{content:""}.bi-person-fill-gear:before{content:""}.bi-person-fill-lock:before{content:""}.bi-person-fill-slash:before{content:""}.bi-person-fill-up:before{content:""}.bi-person-fill-x:before{content:""}.bi-person-gear:before{content:""}.bi-person-lock:before{content:""}.bi-person-slash:before{content:""}.bi-person-up:before{content:""}.bi-scooter:before{content:""}.bi-taxi-front-fill:before{content:""}.bi-taxi-front:before{content:""}.bi-amd:before{content:""}.bi-database-add:before{content:""}.bi-database-check:before{content:""}.bi-database-dash:before{content:""}.bi-database-down:before{content:""}.bi-database-exclamation:before{content:""}.bi-database-fill-add:before{content:""}.bi-database-fill-check:before{content:""}.bi-database-fill-dash:before{content:""}.bi-database-fill-down:before{content:""}.bi-database-fill-exclamation:before{content:""}.bi-database-fill-gear:before{content:""}.bi-database-fill-lock:before{content:""}.bi-database-fill-slash:before{content:""}.bi-database-fill-up:before{content:""}.bi-database-fill-x:before{content:""}.bi-database-fill:before{content:""}.bi-database-gear:before{content:""}.bi-database-lock:before{content:""}.bi-database-slash:before{content:""}.bi-database-up:before{content:""}.bi-database-x:before{content:""}.bi-database:before{content:""}.bi-houses-fill:before{content:""}.bi-houses:before{content:""}.bi-nvidia:before{content:""}.bi-person-vcard-fill:before{content:""}.bi-person-vcard:before{content:""}.bi-sina-weibo:before{content:""}.bi-tencent-qq:before{content:""}.bi-wikipedia:before{content:""}.bi-alphabet-uppercase:before{content:""}.bi-alphabet:before{content:""}.bi-amazon:before{content:""}.bi-arrows-collapse-vertical:before{content:""}.bi-arrows-expand-vertical:before{content:""}.bi-arrows-vertical:before{content:""}.bi-arrows:before{content:""}.bi-ban-fill:before{content:""}.bi-ban:before{content:""}.bi-bing:before{content:""}.bi-cake:before{content:""}.bi-cake2:before{content:""}.bi-cookie:before{content:""}.bi-copy:before{content:""}.bi-crosshair:before{content:""}.bi-crosshair2:before{content:""}.bi-emoji-astonished-fill:before{content:""}.bi-emoji-astonished:before{content:""}.bi-emoji-grimace-fill:before{content:""}.bi-emoji-grimace:before{content:""}.bi-emoji-grin-fill:before{content:""}.bi-emoji-grin:before{content:""}.bi-emoji-surprise-fill:before{content:""}.bi-emoji-surprise:before{content:""}.bi-emoji-tear-fill:before{content:""}.bi-emoji-tear:before{content:""}.bi-envelope-arrow-down-fill:before{content:""}.bi-envelope-arrow-down:before{content:""}.bi-envelope-arrow-up-fill:before{content:""}.bi-envelope-arrow-up:before{content:""}.bi-feather:before{content:""}.bi-feather2:before{content:""}.bi-floppy-fill:before{content:""}.bi-floppy:before{content:""}.bi-floppy2-fill:before{content:""}.bi-floppy2:before{content:""}.bi-gitlab:before{content:""}.bi-highlighter:before{content:""}.bi-marker-tip:before{content:""}.bi-nvme-fill:before{content:""}.bi-nvme:before{content:""}.bi-opencollective:before{content:""}.bi-pci-card-network:before{content:""}.bi-pci-card-sound:before{content:""}.bi-radar:before{content:""}.bi-send-arrow-down-fill:before{content:""}.bi-send-arrow-down:before{content:""}.bi-send-arrow-up-fill:before{content:""}.bi-send-arrow-up:before{content:""}.bi-sim-slash-fill:before{content:""}.bi-sim-slash:before{content:""}.bi-sourceforge:before{content:""}.bi-substack:before{content:""}.bi-threads-fill:before{content:""}.bi-threads:before{content:""}.bi-transparency:before{content:""}.bi-twitter-x:before{content:""}.bi-type-h4:before{content:""}.bi-type-h5:before{content:""}.bi-type-h6:before{content:""}.bi-backpack-fill:before{content:""}.bi-backpack:before{content:""}.bi-backpack2-fill:before{content:""}.bi-backpack2:before{content:""}.bi-backpack3-fill:before{content:""}.bi-backpack3:before{content:""}.bi-backpack4-fill:before{content:""}.bi-backpack4:before{content:""}.bi-brilliance:before{content:""}.bi-cake-fill:before{content:""}.bi-cake2-fill:before{content:""}.bi-duffle-fill:before{content:""}.bi-duffle:before{content:""}.bi-exposure:before{content:""}.bi-gender-neuter:before{content:""}.bi-highlights:before{content:""}.bi-luggage-fill:before{content:""}.bi-luggage:before{content:""}.bi-mailbox-flag:before{content:""}.bi-mailbox2-flag:before{content:""}.bi-noise-reduction:before{content:""}.bi-passport-fill:before{content:""}.bi-passport:before{content:""}.bi-person-arms-up:before{content:""}.bi-person-raised-hand:before{content:""}.bi-person-standing-dress:before{content:""}.bi-person-standing:before{content:""}.bi-person-walking:before{content:""}.bi-person-wheelchair:before{content:""}.bi-shadows:before{content:""}.bi-suitcase-fill:before{content:""}.bi-suitcase-lg-fill:before{content:""}.bi-suitcase-lg:before{content:""}.bi-suitcase:before{content:"豈"}.bi-suitcase2-fill:before{content:"更"}.bi-suitcase2:before{content:"車"}.bi-vignette:before{content:"賈"}:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}.headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}.heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}.lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.messageCentre[data-v-54755a4a]{top:calc(50px + 1rem);right:1rem}.toggleShowKey[data-v-658dbebe]{position:absolute;top:35px;right:12px}/*! * animate.css - https://animate.style/ * Version - 4.1.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT * * Copyright (c) 2020 Animate.css - */:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.messageCentre[data-v-54755a4a]{top:calc(50px + 1rem);right:1rem}.dropdown-menu[data-v-3a072aae]{right:1rem}.slide-fade-leave-active[data-v-315acdc2],.slide-fade-enter-active[data-v-315acdc2]{transition:all .2s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-315acdc2],.slide-fade-leave-to[data-v-315acdc2]{transform:translateY(20px);opacity:0}.subMenuBtn.active[data-v-315acdc2]{background-color:#ffffff20}.peerSettingContainer[data-v-6fc123c2]{background-color:#00000060;z-index:1000}.toggleShowKey[data-v-6fc123c2]{position:absolute;top:35px;right:12px}.peerSettingContainer[data-v-0f1cea80]{background-color:#00000060;z-index:1000}.list-move[data-v-f2538e55],.list-enter-active[data-v-f2538e55],.list-leave-active[data-v-f2538e55]{transition:all .3s ease}.list-enter-from[data-v-f2538e55],.list-leave-to[data-v-f2538e55]{opacity:0;transform:translateY(10px)}.list-leave-active[data-v-f2538e55]{position:absolute}.peerSettingContainer[data-v-cbe62677]{background-color:#00000060;z-index:9998}div[data-v-cbe62677]{transition:.2s ease-in-out}.inactiveField[data-v-cbe62677]{opacity:.4}.card[data-v-cbe62677]{max-height:100%}.peerNav .nav-link[data-v-b59a7de8].active[data-v-b59a7de8]{//background: linear-gradient(var(--degree),var(--brandColor1) var(--distance2),var(--brandColor2) 100%);//color: white;background-color:#efefef}.list-move[data-v-b59a7de8],.list-enter-active[data-v-b59a7de8],.list-leave-active[data-v-b59a7de8]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.list-enter-from[data-v-b59a7de8],.list-leave-to[data-v-b59a7de8]{opacity:0;transform:translateY(30px)}.list-leave-active[data-v-b59a7de8]{position:absolute} + */:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 2);animation-iteration-count:calc(var(--animate-repeat) * 2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 3);animation-iteration-count:calc(var(--animate-repeat) * 3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay) * 2);animation-delay:calc(var(--animate-delay) * 2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay) * 3);animation-delay:calc(var(--animate-delay) * 3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay) * 4);animation-delay:calc(var(--animate-delay) * 4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay) * 5);animation-delay:calc(var(--animate-delay) * 5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration) / 2);animation-duration:calc(var(--animate-duration) / 2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration) * .8);animation-duration:calc(var(--animate-duration) * .8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration) * 3);animation-duration:calc(var(--animate-duration) * 3)}@media print,(prefers-reduced-motion: reduce){.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration) * 1.3);animation-duration:calc(var(--animate-duration) * 1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.dropdown-menu[data-v-efcc2294]{right:1rem;min-width:200px}.dropdown-item.disabled[data-v-efcc2294],.dropdown-item[data-v-efcc2294]:disabled{opacity:.7}.slide-fade-leave-active[data-v-7be8a1d5],.slide-fade-enter-active[data-v-7be8a1d5]{transition:all .2s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-7be8a1d5],.slide-fade-leave-to[data-v-7be8a1d5]{transform:translateY(20px);opacity:0}.subMenuBtn.active[data-v-7be8a1d5]{background-color:#ffffff20}.peerSettingContainer[data-v-0f1cea80]{background-color:#00000060;z-index:1000}.list-move[data-v-99ae26e7],.list-enter-active[data-v-99ae26e7],.list-leave-active[data-v-99ae26e7]{transition:all .3s ease}.list-enter-from[data-v-99ae26e7],.list-leave-to[data-v-99ae26e7]{opacity:0;transform:translateY(10px)}.list-leave-active[data-v-99ae26e7]{position:absolute}.peerSettingContainer[data-v-1938be91]{background-color:#00000060;z-index:9998}div[data-v-1938be91]{transition:.2s ease-in-out}.inactiveField[data-v-1938be91]{opacity:.4}.card[data-v-1938be91]{max-height:100%}.peerNav .nav-link[data-v-b60a7b13].active[data-v-b60a7b13]{//background: linear-gradient(var(--degree),var(--brandColor1) var(--distance2),var(--brandColor2) 100%);//color: white;background-color:#efefef}.pingPlaceholder[data-v-875f5a3c]{width:100%;height:79.98px}.ping-move[data-v-875f5a3c],.ping-enter-active[data-v-875f5a3c],.ping-leave-active[data-v-875f5a3c]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.ping-enter-from[data-v-875f5a3c],.ping-leave-to[data-v-875f5a3c]{opacity:0;//transform: scale(.9)}.ping-leave-active[data-v-875f5a3c]{position:absolute}.pingPlaceholder[data-v-dda37ccf]{width:100%;height:40px}.ping-move[data-v-dda37ccf],.ping-enter-active[data-v-dda37ccf],.ping-leave-active[data-v-dda37ccf]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.ping-enter-from[data-v-dda37ccf],.ping-leave-to[data-v-dda37ccf]{opacity:0;//transform: scale(.9)}.ping-leave-active[data-v-dda37ccf]{position:absolute}table th[data-v-dda37ccf],table td[data-v-dda37ccf]{padding:.9rem}table tbody[data-v-dda37ccf]{border-top:1em solid transparent}.table[data-v-dda37ccf]>:not(caption)>*>*{background-color:transparent!important} diff --git a/src/static/app/dist/assets/index.js b/src/static/app/dist/assets/index.js index 447494b..b4223a0 100644 --- a/src/static/app/dist/assets/index.js +++ b/src/static/app/dist/assets/index.js @@ -1,51 +1,68 @@ -var cx=Object.defineProperty;var ux=(e,t,n)=>t in e?cx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var it=(e,t,n)=>(ux(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Kp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hx(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),n}var fx={exports:{}},_e="top",De="bottom",Ie="right",be="left",Fa="auto",Qi=[_e,De,Ie,be],qs="start",ki="end",Yp="clippingParents",qc="viewport",_i="popper",qp="reference",rc=Qi.reduce(function(e,t){return e.concat([t+"-"+qs,t+"-"+ki])},[]),Gc=[].concat(Qi,[Fa]).reduce(function(e,t){return e.concat([t,t+"-"+qs,t+"-"+ki])},[]),Gp="beforeRead",Xp="read",Qp="afterRead",Jp="beforeMain",Zp="main",tg="afterMain",eg="beforeWrite",ng="write",sg="afterWrite",ig=[Gp,Xp,Qp,Jp,Zp,tg,eg,ng,sg];function pn(e){return e?(e.nodeName||"").toLowerCase():null}function Le(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gs(e){var t=Le(e).Element;return e instanceof t||e instanceof Element}function Ye(e){var t=Le(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xc(e){if(typeof ShadowRoot>"u")return!1;var t=Le(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function px(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ye(o)||!pn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(r){var a=i[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function gx(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var i=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),a=r.reduce(function(l,c){return l[c]="",l},{});!Ye(i)||!pn(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Qc={name:"applyStyles",enabled:!0,phase:"write",fn:px,effect:gx,requires:["computeStyles"]};function dn(e){return e.split("-")[0]}var Hs=Math.max,fa=Math.min,$i=Math.round;function ac(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function og(){return!/^((?!chrome|android).)*safari/i.test(ac())}function Mi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),i=1,o=1;t&&Ye(e)&&(i=e.offsetWidth>0&&$i(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$i(s.height)/e.offsetHeight||1);var r=Gs(e)?Le(e):window,a=r.visualViewport,l=!og()&&n,c=(s.left+(l&&a?a.offsetLeft:0))/i,u=(s.top+(l&&a?a.offsetTop:0))/o,d=s.width/i,f=s.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Jc(e){var t=Mi(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function rg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xc(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function In(e){return Le(e).getComputedStyle(e)}function mx(e){return["table","td","th"].indexOf(pn(e))>=0}function gs(e){return((Gs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ba(e){return pn(e)==="html"?e:e.assignedSlot||e.parentNode||(Xc(e)?e.host:null)||gs(e)}function Jd(e){return!Ye(e)||In(e).position==="fixed"?null:e.offsetParent}function _x(e){var t=/firefox/i.test(ac()),n=/Trident/i.test(ac());if(n&&Ye(e)){var s=In(e);if(s.position==="fixed")return null}var i=Ba(e);for(Xc(i)&&(i=i.host);Ye(i)&&["html","body"].indexOf(pn(i))<0;){var o=In(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function sr(e){for(var t=Le(e),n=Jd(e);n&&mx(n)&&In(n).position==="static";)n=Jd(n);return n&&(pn(n)==="html"||pn(n)==="body"&&In(n).position==="static")?t:n||_x(e)||t}function Zc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Eo(e,t,n){return Hs(e,fa(t,n))}function bx(e,t,n){var s=Eo(e,t,n);return s>n?n:s}function ag(){return{top:0,right:0,bottom:0,left:0}}function lg(e){return Object.assign({},ag(),e)}function cg(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var vx=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lg(typeof t!="number"?t:cg(t,Qi))};function yx(e){var t,n=e.state,s=e.name,i=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=dn(n.placement),l=Zc(a),c=[be,Ie].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!r)){var d=vx(i.padding,n),f=Jc(o),p=l==="y"?_e:be,m=l==="y"?De:Ie,_=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],v=r[l]-n.rects.reference[l],x=sr(o),S=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,P=_/2-v/2,A=d[p],y=S-f[u]-d[m],E=S/2-f[u]/2+P,C=Eo(A,E,y),w=l;n.modifiersData[s]=(t={},t[w]=C,t.centerOffset=C-E,t)}}function xx(e){var t=e.state,n=e.options,s=n.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||rg(t.elements.popper,i)&&(t.elements.arrow=i))}const ug={name:"arrow",enabled:!0,phase:"main",fn:yx,effect:xx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var wx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ex(e,t){var n=e.x,s=e.y,i=t.devicePixelRatio||1;return{x:$i(n*i)/i||0,y:$i(s*i)/i||0}}function Zd(e){var t,n=e.popper,s=e.popperRect,i=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=r.x,p=f===void 0?0:f,m=r.y,_=m===void 0?0:m,v=typeof u=="function"?u({x:p,y:_}):{x:p,y:_};p=v.x,_=v.y;var x=r.hasOwnProperty("x"),S=r.hasOwnProperty("y"),P=be,A=_e,y=window;if(c){var E=sr(n),C="clientHeight",w="clientWidth";if(E===Le(n)&&(E=gs(n),In(E).position!=="static"&&a==="absolute"&&(C="scrollHeight",w="scrollWidth")),E=E,i===_e||(i===be||i===Ie)&&o===ki){A=De;var $=d&&E===y&&y.visualViewport?y.visualViewport.height:E[C];_-=$-s.height,_*=l?1:-1}if(i===be||(i===_e||i===De)&&o===ki){P=Ie;var D=d&&E===y&&y.visualViewport?y.visualViewport.width:E[w];p-=D-s.width,p*=l?1:-1}}var I=Object.assign({position:a},c&&wx),N=u===!0?Ex({x:p,y:_},Le(n)):{x:p,y:_};if(p=N.x,_=N.y,l){var Q;return Object.assign({},I,(Q={},Q[A]=S?"0":"",Q[P]=x?"0":"",Q.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+_+"px)":"translate3d("+p+"px, "+_+"px, 0)",Q))}return Object.assign({},I,(t={},t[A]=S?_+"px":"",t[P]=x?p+"px":"",t.transform="",t))}function Sx(e){var t=e.state,n=e.options,s=n.gpuAcceleration,i=s===void 0?!0:s,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:dn(t.placement),variation:Oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Zd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Sx,data:{}};var $r={passive:!0};function Ax(e){var t=e.state,n=e.instance,s=e.options,i=s.scroll,o=i===void 0?!0:i,r=s.resize,a=r===void 0?!0:r,l=Le(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,$r)}),a&&l.addEventListener("resize",n.update,$r),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,$r)}),a&&l.removeEventListener("resize",n.update,$r)}}const eu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ax,data:{}};var Cx={left:"right",right:"left",bottom:"top",top:"bottom"};function sa(e){return e.replace(/left|right|bottom|top/g,function(t){return Cx[t]})}var Tx={start:"end",end:"start"};function th(e){return e.replace(/start|end/g,function(t){return Tx[t]})}function nu(e){var t=Le(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function su(e){return Mi(gs(e)).left+nu(e).scrollLeft}function Px(e,t){var n=Le(e),s=gs(e),i=n.visualViewport,o=s.clientWidth,r=s.clientHeight,a=0,l=0;if(i){o=i.width,r=i.height;var c=og();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:r,x:a+su(e),y:l}}function kx(e){var t,n=gs(e),s=nu(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Hs(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Hs(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+su(e),l=-s.scrollTop;return In(i||n).direction==="rtl"&&(a+=Hs(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function iu(e){var t=In(e),n=t.overflow,s=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+s)}function dg(e){return["html","body","#document"].indexOf(pn(e))>=0?e.ownerDocument.body:Ye(e)&&iu(e)?e:dg(Ba(e))}function So(e,t){var n;t===void 0&&(t=[]);var s=dg(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Le(s),r=i?[o].concat(o.visualViewport||[],iu(s)?s:[]):s,a=t.concat(r);return i?a:a.concat(So(Ba(r)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $x(e,t){var n=Mi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function eh(e,t,n){return t===qc?lc(Px(e,n)):Gs(t)?$x(t,n):lc(kx(gs(e)))}function Mx(e){var t=So(Ba(e)),n=["absolute","fixed"].indexOf(In(e).position)>=0,s=n&&Ye(e)?sr(e):e;return Gs(s)?t.filter(function(i){return Gs(i)&&rg(i,s)&&pn(i)!=="body"}):[]}function Ox(e,t,n,s){var i=t==="clippingParents"?Mx(e):[].concat(t),o=[].concat(i,[n]),r=o[0],a=o.reduce(function(l,c){var u=eh(e,c,s);return l.top=Hs(u.top,l.top),l.right=fa(u.right,l.right),l.bottom=fa(u.bottom,l.bottom),l.left=Hs(u.left,l.left),l},eh(e,r,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function hg(e){var t=e.reference,n=e.element,s=e.placement,i=s?dn(s):null,o=s?Oi(s):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case _e:l={x:r,y:t.y-n.height};break;case De:l={x:r,y:t.y+t.height};break;case Ie:l={x:t.x+t.width,y:a};break;case be:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?Zc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case qs:l[c]=l[c]-(t[u]/2-n[u]/2);break;case ki:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Di(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=s===void 0?e.placement:s,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?Yp:a,c=n.rootBoundary,u=c===void 0?qc:c,d=n.elementContext,f=d===void 0?_i:d,p=n.altBoundary,m=p===void 0?!1:p,_=n.padding,v=_===void 0?0:_,x=lg(typeof v!="number"?v:cg(v,Qi)),S=f===_i?qp:_i,P=e.rects.popper,A=e.elements[m?S:f],y=Ox(Gs(A)?A:A.contextElement||gs(e.elements.popper),l,u,r),E=Mi(e.elements.reference),C=hg({reference:E,element:P,strategy:"absolute",placement:i}),w=lc(Object.assign({},P,C)),$=f===_i?w:E,D={top:y.top-$.top+x.top,bottom:$.bottom-y.bottom+x.bottom,left:y.left-$.left+x.left,right:$.right-y.right+x.right},I=e.modifiersData.offset;if(f===_i&&I){var N=I[i];Object.keys(D).forEach(function(Q){var Y=[Ie,De].indexOf(Q)>=0?1:-1,H=[_e,De].indexOf(Q)>=0?"y":"x";D[Q]+=N[H]*Y})}return D}function Dx(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Gc:l,u=Oi(s),d=u?a?rc:rc.filter(function(m){return Oi(m)===u}):Qi,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,_){return m[_]=Di(e,{placement:_,boundary:i,rootBoundary:o,padding:r})[dn(_)],m},{});return Object.keys(p).sort(function(m,_){return p[m]-p[_]})}function Ix(e){if(dn(e)===Fa)return[];var t=sa(e);return[th(e),t,th(t)]}function Lx(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,_=n.allowedAutoPlacements,v=t.options.placement,x=dn(v),S=x===v,P=l||(S||!m?[sa(v)]:Ix(v)),A=[v].concat(P).reduce(function(At,Mt){return At.concat(dn(Mt)===Fa?Dx(t,{placement:Mt,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:_}):Mt)},[]),y=t.rects.reference,E=t.rects.popper,C=new Map,w=!0,$=A[0],D=0;D=0,H=Y?"width":"height",R=Di(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),W=Y?Q?Ie:be:Q?De:_e;y[H]>E[H]&&(W=sa(W));var U=sa(W),rt=[];if(o&&rt.push(R[N]<=0),a&&rt.push(R[W]<=0,R[U]<=0),rt.every(function(At){return At})){$=I,w=!1;break}C.set(I,rt)}if(w)for(var ct=m?3:1,mt=function(Mt){var Ct=A.find(function(j){var nt=C.get(j);if(nt)return nt.slice(0,Mt).every(function(Z){return Z})});if(Ct)return $=Ct,"break"},pt=ct;pt>0;pt--){var Pt=mt(pt);if(Pt==="break")break}t.placement!==$&&(t.modifiersData[s]._skip=!0,t.placement=$,t.reset=!0)}}const fg={name:"flip",enabled:!0,phase:"main",fn:Lx,requiresIfExists:["offset"],data:{_skip:!1}};function nh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sh(e){return[_e,Ie,De,be].some(function(t){return e[t]>=0})}function Rx(e){var t=e.state,n=e.name,s=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,r=Di(t,{elementContext:"reference"}),a=Di(t,{altBoundary:!0}),l=nh(r,s),c=nh(a,i,o),u=sh(l),d=sh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const pg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rx};function Nx(e,t,n){var s=dn(e),i=[be,_e].indexOf(s)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*i,[be,Ie].indexOf(s)>=0?{x:a,y:r}:{x:r,y:a}}function Fx(e){var t=e.state,n=e.options,s=e.name,i=n.offset,o=i===void 0?[0,0]:i,r=Gc.reduce(function(u,d){return u[d]=Nx(d,t.rects,o),u},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}const gg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fx};function Bx(e){var t=e.state,n=e.name;t.modifiersData[n]=hg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ou={name:"popperOffsets",enabled:!0,phase:"read",fn:Bx,data:{}};function Vx(e){return e==="x"?"y":"x"}function Hx(e){var t=e.state,n=e.options,s=e.name,i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,_=m===void 0?0:m,v=Di(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=dn(t.placement),S=Oi(t.placement),P=!S,A=Zc(x),y=Vx(A),E=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,$=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(o){var Q,Y=A==="y"?_e:be,H=A==="y"?De:Ie,R=A==="y"?"height":"width",W=E[A],U=W+v[Y],rt=W-v[H],ct=p?-w[R]/2:0,mt=S===qs?C[R]:w[R],pt=S===qs?-w[R]:-C[R],Pt=t.elements.arrow,At=p&&Pt?Jc(Pt):{width:0,height:0},Mt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ag(),Ct=Mt[Y],j=Mt[H],nt=Eo(0,C[R],At[R]),Z=P?C[R]/2-ct-nt-Ct-D.mainAxis:mt-nt-Ct-D.mainAxis,at=P?-C[R]/2+ct+nt+j+D.mainAxis:pt+nt+j+D.mainAxis,F=t.elements.arrow&&sr(t.elements.arrow),T=F?A==="y"?F.clientTop||0:F.clientLeft||0:0,O=(Q=I==null?void 0:I[A])!=null?Q:0,L=W+Z-O-T,V=W+at-O,K=Eo(p?fa(U,L):U,W,p?Hs(rt,V):rt);E[A]=K,N[A]=K-W}if(a){var G,tt=A==="x"?_e:be,J=A==="x"?De:Ie,B=E[y],q=y==="y"?"height":"width",lt=B+v[tt],ft=B-v[J],ut=[_e,be].indexOf(x)!==-1,_t=(G=I==null?void 0:I[y])!=null?G:0,St=ut?lt:B-C[q]-w[q]-_t+D.altAxis,Dt=ut?B+C[q]+w[q]-_t-D.altAxis:ft,Nt=p&&ut?bx(St,B,Dt):Eo(p?St:lt,B,p?Dt:ft);E[y]=Nt,N[y]=Nt-B}t.modifiersData[s]=N}}const mg={name:"preventOverflow",enabled:!0,phase:"main",fn:Hx,requiresIfExists:["offset"]};function jx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wx(e){return e===Le(e)||!Ye(e)?nu(e):jx(e)}function zx(e){var t=e.getBoundingClientRect(),n=$i(t.width)/e.offsetWidth||1,s=$i(t.height)/e.offsetHeight||1;return n!==1||s!==1}function Ux(e,t,n){n===void 0&&(n=!1);var s=Ye(t),i=Ye(t)&&zx(t),o=gs(t),r=Mi(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((pn(t)!=="body"||iu(o))&&(a=Wx(t)),Ye(t)?(l=Mi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=su(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Kx(e){var t=new Map,n=new Set,s=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),s.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),s}function Yx(e){var t=Kx(e);return ig.reduce(function(n,s){return n.concat(t.filter(function(i){return i.phase===s}))},[])}function qx(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gx(e){var t=e.reduce(function(n,s){var i=n[s.name];return n[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var ih={placement:"bottom",modifiers:[],strategy:"absolute"};function oh(){for(var e=arguments.length,t=new Array(e),n=0;nt in e?f1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var it=(e,t,s)=>(p1(e,typeof t!="symbol"?t+"":t,s),s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();var Jp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function g1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var s=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(s,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),s}var _1={exports:{}},Se="top",Re="bottom",Ne="right",Ae="left",Na="auto",Yi=[Se,Re,Ne,Ae],Jn="start",Ci="end",Qp="clippingParents",td="viewport",_i="popper",Zp="reference",lc=Yi.reduce(function(e,t){return e.concat([t+"-"+Jn,t+"-"+Ci])},[]),ed=[].concat(Yi,[Na]).reduce(function(e,t){return e.concat([t,t+"-"+Jn,t+"-"+Ci])},[]),tg="beforeRead",eg="read",sg="afterRead",ng="beforeMain",ig="main",og="afterMain",rg="beforeWrite",ag="write",lg="afterWrite",cg=[tg,eg,sg,ng,ig,og,rg,ag,lg];function bs(e){return e?(e.nodeName||"").toLowerCase():null}function Fe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qn(e){var t=Fe(e).Element;return e instanceof t||e instanceof Element}function Xe(e){var t=Fe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sd(e){if(typeof ShadowRoot>"u")return!1;var t=Fe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function b1(e){var t=e.state;Object.keys(t.elements).forEach(function(s){var n=t.styles[s]||{},i=t.attributes[s]||{},o=t.elements[s];!Xe(o)||!bs(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(r){var a=i[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function v1(e){var t=e.state,s={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,s.popper),t.styles=s,t.elements.arrow&&Object.assign(t.elements.arrow.style,s.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},r=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:s[n]),a=r.reduce(function(l,c){return l[c]="",l},{});!Xe(i)||!bs(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const nd={name:"applyStyles",enabled:!0,phase:"write",fn:b1,effect:v1,requires:["computeStyles"]};function gs(e){return e.split("-")[0]}var zn=Math.max,ma=Math.min,$i=Math.round;function cc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function dg(){return!/^((?!chrome|android).)*safari/i.test(cc())}function Pi(e,t,s){t===void 0&&(t=!1),s===void 0&&(s=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Xe(e)&&(i=e.offsetWidth>0&&$i(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$i(n.height)/e.offsetHeight||1);var r=Qn(e)?Fe(e):window,a=r.visualViewport,l=!dg()&&s,c=(n.left+(l&&a?a.offsetLeft:0))/i,d=(n.top+(l&&a?a.offsetTop:0))/o,u=n.width/i,f=n.height/o;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function id(e){var t=Pi(e),s=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-s)<=1&&(s=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:s,height:n}}function ug(e,t){var s=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(s&&sd(s)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rs(e){return Fe(e).getComputedStyle(e)}function y1(e){return["table","td","th"].indexOf(bs(e))>=0}function vn(e){return((Qn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fa(e){return bs(e)==="html"?e:e.assignedSlot||e.parentNode||(sd(e)?e.host:null)||vn(e)}function th(e){return!Xe(e)||Rs(e).position==="fixed"?null:e.offsetParent}function x1(e){var t=/firefox/i.test(cc()),s=/Trident/i.test(cc());if(s&&Xe(e)){var n=Rs(e);if(n.position==="fixed")return null}var i=Fa(e);for(sd(i)&&(i=i.host);Xe(i)&&["html","body"].indexOf(bs(i))<0;){var o=Rs(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Zo(e){for(var t=Fe(e),s=th(e);s&&y1(s)&&Rs(s).position==="static";)s=th(s);return s&&(bs(s)==="html"||bs(s)==="body"&&Rs(s).position==="static")?t:s||x1(e)||t}function od(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wo(e,t,s){return zn(e,ma(t,s))}function w1(e,t,s){var n=wo(e,t,s);return n>s?s:n}function hg(){return{top:0,right:0,bottom:0,left:0}}function fg(e){return Object.assign({},hg(),e)}function pg(e,t){return t.reduce(function(s,n){return s[n]=e,s},{})}var E1=function(t,s){return t=typeof t=="function"?t(Object.assign({},s.rects,{placement:s.placement})):t,fg(typeof t!="number"?t:pg(t,Yi))};function S1(e){var t,s=e.state,n=e.name,i=e.options,o=s.elements.arrow,r=s.modifiersData.popperOffsets,a=gs(s.placement),l=od(a),c=[Ae,Ne].indexOf(a)>=0,d=c?"height":"width";if(!(!o||!r)){var u=E1(i.padding,s),f=id(o),g=l==="y"?Se:Ae,m=l==="y"?Re:Ne,b=s.rects.reference[d]+s.rects.reference[l]-r[l]-s.rects.popper[d],v=r[l]-s.rects.reference[l],w=Zo(o),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,$=b/2-v/2,T=u[g],y=E-f[d]-u[m],x=E/2-f[d]/2+$,C=wo(T,x,y),S=l;s.modifiersData[n]=(t={},t[S]=C,t.centerOffset=C-x,t)}}function A1(e){var t=e.state,s=e.options,n=s.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||ug(t.elements.popper,i)&&(t.elements.arrow=i))}const gg={name:"arrow",enabled:!0,phase:"main",fn:S1,effect:A1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ki(e){return e.split("-")[1]}var C1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $1(e,t){var s=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:$i(s*i)/i||0,y:$i(n*i)/i||0}}function eh(e){var t,s=e.popper,n=e.popperRect,i=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,f=r.x,g=f===void 0?0:f,m=r.y,b=m===void 0?0:m,v=typeof d=="function"?d({x:g,y:b}):{x:g,y:b};g=v.x,b=v.y;var w=r.hasOwnProperty("x"),E=r.hasOwnProperty("y"),$=Ae,T=Se,y=window;if(c){var x=Zo(s),C="clientHeight",S="clientWidth";if(x===Fe(s)&&(x=vn(s),Rs(x).position!=="static"&&a==="absolute"&&(C="scrollHeight",S="scrollWidth")),x=x,i===Se||(i===Ae||i===Ne)&&o===Ci){T=Re;var P=u&&x===y&&y.visualViewport?y.visualViewport.height:x[C];b-=P-n.height,b*=l?1:-1}if(i===Ae||(i===Se||i===Re)&&o===Ci){$=Ne;var M=u&&x===y&&y.visualViewport?y.visualViewport.width:x[S];g-=M-n.width,g*=l?1:-1}}var I=Object.assign({position:a},c&&C1),N=d===!0?$1({x:g,y:b},Fe(s)):{x:g,y:b};if(g=N.x,b=N.y,l){var Q;return Object.assign({},I,(Q={},Q[T]=E?"0":"",Q[$]=w?"0":"",Q.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",Q))}return Object.assign({},I,(t={},t[T]=E?b+"px":"",t[$]=w?g+"px":"",t.transform="",t))}function P1(e){var t=e.state,s=e.options,n=s.gpuAcceleration,i=n===void 0?!0:n,o=s.adaptive,r=o===void 0?!0:o,a=s.roundOffsets,l=a===void 0?!0:a,c={placement:gs(t.placement),variation:ki(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,eh(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,eh(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:P1,data:{}};var Cr={passive:!0};function k1(e){var t=e.state,s=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,r=n.resize,a=r===void 0?!0:r,l=Fe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",s.update,Cr)}),a&&l.addEventListener("resize",s.update,Cr),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",s.update,Cr)}),a&&l.removeEventListener("resize",s.update,Cr)}}const ad={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k1,data:{}};var T1={left:"right",right:"left",bottom:"top",top:"bottom"};function Zr(e){return e.replace(/left|right|bottom|top/g,function(t){return T1[t]})}var M1={start:"end",end:"start"};function sh(e){return e.replace(/start|end/g,function(t){return M1[t]})}function ld(e){var t=Fe(e),s=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:s,scrollTop:n}}function cd(e){return Pi(vn(e)).left+ld(e).scrollLeft}function O1(e,t){var s=Fe(e),n=vn(e),i=s.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(i){o=i.width,r=i.height;var c=dg();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:r,x:a+cd(e),y:l}}function D1(e){var t,s=vn(e),n=ld(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=zn(s.scrollWidth,s.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=zn(s.scrollHeight,s.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+cd(e),l=-n.scrollTop;return Rs(i||s).direction==="rtl"&&(a+=zn(s.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function dd(e){var t=Rs(e),s=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(s+i+n)}function mg(e){return["html","body","#document"].indexOf(bs(e))>=0?e.ownerDocument.body:Xe(e)&&dd(e)?e:mg(Fa(e))}function Eo(e,t){var s;t===void 0&&(t=[]);var n=mg(e),i=n===((s=e.ownerDocument)==null?void 0:s.body),o=Fe(n),r=i?[o].concat(o.visualViewport||[],dd(n)?n:[]):n,a=t.concat(r);return i?a:a.concat(Eo(Fa(r)))}function dc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I1(e,t){var s=Pi(e,!1,t==="fixed");return s.top=s.top+e.clientTop,s.left=s.left+e.clientLeft,s.bottom=s.top+e.clientHeight,s.right=s.left+e.clientWidth,s.width=e.clientWidth,s.height=e.clientHeight,s.x=s.left,s.y=s.top,s}function nh(e,t,s){return t===td?dc(O1(e,s)):Qn(t)?I1(t,s):dc(D1(vn(e)))}function L1(e){var t=Eo(Fa(e)),s=["absolute","fixed"].indexOf(Rs(e).position)>=0,n=s&&Xe(e)?Zo(e):e;return Qn(n)?t.filter(function(i){return Qn(i)&&ug(i,n)&&bs(i)!=="body"}):[]}function R1(e,t,s,n){var i=t==="clippingParents"?L1(e):[].concat(t),o=[].concat(i,[s]),r=o[0],a=o.reduce(function(l,c){var d=nh(e,c,n);return l.top=zn(d.top,l.top),l.right=ma(d.right,l.right),l.bottom=ma(d.bottom,l.bottom),l.left=zn(d.left,l.left),l},nh(e,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _g(e){var t=e.reference,s=e.element,n=e.placement,i=n?gs(n):null,o=n?ki(n):null,r=t.x+t.width/2-s.width/2,a=t.y+t.height/2-s.height/2,l;switch(i){case Se:l={x:r,y:t.y-s.height};break;case Re:l={x:r,y:t.y+t.height};break;case Ne:l={x:t.x+t.width,y:a};break;case Ae:l={x:t.x-s.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?od(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case Jn:l[c]=l[c]-(t[d]/2-s[d]/2);break;case Ci:l[c]=l[c]+(t[d]/2-s[d]/2);break}}return l}function Ti(e,t){t===void 0&&(t={});var s=t,n=s.placement,i=n===void 0?e.placement:n,o=s.strategy,r=o===void 0?e.strategy:o,a=s.boundary,l=a===void 0?Qp:a,c=s.rootBoundary,d=c===void 0?td:c,u=s.elementContext,f=u===void 0?_i:u,g=s.altBoundary,m=g===void 0?!1:g,b=s.padding,v=b===void 0?0:b,w=fg(typeof v!="number"?v:pg(v,Yi)),E=f===_i?Zp:_i,$=e.rects.popper,T=e.elements[m?E:f],y=R1(Qn(T)?T:T.contextElement||vn(e.elements.popper),l,d,r),x=Pi(e.elements.reference),C=_g({reference:x,element:$,strategy:"absolute",placement:i}),S=dc(Object.assign({},$,C)),P=f===_i?S:x,M={top:y.top-P.top+w.top,bottom:P.bottom-y.bottom+w.bottom,left:y.left-P.left+w.left,right:P.right-y.right+w.right},I=e.modifiersData.offset;if(f===_i&&I){var N=I[i];Object.keys(M).forEach(function(Q){var G=[Ne,Re].indexOf(Q)>=0?1:-1,V=[Se,Re].indexOf(Q)>=0?"y":"x";M[Q]+=N[V]*G})}return M}function N1(e,t){t===void 0&&(t={});var s=t,n=s.placement,i=s.boundary,o=s.rootBoundary,r=s.padding,a=s.flipVariations,l=s.allowedAutoPlacements,c=l===void 0?ed:l,d=ki(n),u=d?a?lc:lc.filter(function(m){return ki(m)===d}):Yi,f=u.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=u);var g=f.reduce(function(m,b){return m[b]=Ti(e,{placement:b,boundary:i,rootBoundary:o,padding:r})[gs(b)],m},{});return Object.keys(g).sort(function(m,b){return g[m]-g[b]})}function F1(e){if(gs(e)===Na)return[];var t=Zr(e);return[sh(e),t,sh(t)]}function B1(e){var t=e.state,s=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=s.mainAxis,o=i===void 0?!0:i,r=s.altAxis,a=r===void 0?!0:r,l=s.fallbackPlacements,c=s.padding,d=s.boundary,u=s.rootBoundary,f=s.altBoundary,g=s.flipVariations,m=g===void 0?!0:g,b=s.allowedAutoPlacements,v=t.options.placement,w=gs(v),E=w===v,$=l||(E||!m?[Zr(v)]:F1(v)),T=[v].concat($).reduce(function(At,Lt){return At.concat(gs(Lt)===Na?N1(t,{placement:Lt,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:b}):Lt)},[]),y=t.rects.reference,x=t.rects.popper,C=new Map,S=!0,P=T[0],M=0;M=0,V=G?"width":"height",L=Ti(t,{placement:I,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),W=G?Q?Ne:Ae:Q?Re:Se;y[V]>x[V]&&(W=Zr(W));var K=Zr(W),ot=[];if(o&&ot.push(L[N]<=0),a&&ot.push(L[W]<=0,L[K]<=0),ot.every(function(At){return At})){P=I,S=!1;break}C.set(I,ot)}if(S)for(var ut=m?3:1,bt=function(Lt){var Ct=T.find(function(j){var st=C.get(j);if(st)return st.slice(0,Lt).every(function(tt){return tt})});if(Ct)return P=Ct,"break"},_t=ut;_t>0;_t--){var Pt=bt(_t);if(Pt==="break")break}t.placement!==P&&(t.modifiersData[n]._skip=!0,t.placement=P,t.reset=!0)}}const bg={name:"flip",enabled:!0,phase:"main",fn:B1,requiresIfExists:["offset"],data:{_skip:!1}};function ih(e,t,s){return s===void 0&&(s={x:0,y:0}),{top:e.top-t.height-s.y,right:e.right-t.width+s.x,bottom:e.bottom-t.height+s.y,left:e.left-t.width-s.x}}function oh(e){return[Se,Ne,Re,Ae].some(function(t){return e[t]>=0})}function V1(e){var t=e.state,s=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,r=Ti(t,{elementContext:"reference"}),a=Ti(t,{altBoundary:!0}),l=ih(r,n),c=ih(a,i,o),d=oh(l),u=oh(c);t.modifiersData[s]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}const vg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V1};function H1(e,t,s){var n=gs(e),i=[Ae,Se].indexOf(n)>=0?-1:1,o=typeof s=="function"?s(Object.assign({},t,{placement:e})):s,r=o[0],a=o[1];return r=r||0,a=(a||0)*i,[Ae,Ne].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}function j1(e){var t=e.state,s=e.options,n=e.name,i=s.offset,o=i===void 0?[0,0]:i,r=ed.reduce(function(d,u){return d[u]=H1(u,t.rects,o),d},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}const yg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j1};function W1(e){var t=e.state,s=e.name;t.modifiersData[s]=_g({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ud={name:"popperOffsets",enabled:!0,phase:"read",fn:W1,data:{}};function z1(e){return e==="x"?"y":"x"}function U1(e){var t=e.state,s=e.options,n=e.name,i=s.mainAxis,o=i===void 0?!0:i,r=s.altAxis,a=r===void 0?!1:r,l=s.boundary,c=s.rootBoundary,d=s.altBoundary,u=s.padding,f=s.tether,g=f===void 0?!0:f,m=s.tetherOffset,b=m===void 0?0:m,v=Ti(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),w=gs(t.placement),E=ki(t.placement),$=!E,T=od(w),y=z1(T),x=t.modifiersData.popperOffsets,C=t.rects.reference,S=t.rects.popper,P=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,M=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(x){if(o){var Q,G=T==="y"?Se:Ae,V=T==="y"?Re:Ne,L=T==="y"?"height":"width",W=x[T],K=W+v[G],ot=W-v[V],ut=g?-S[L]/2:0,bt=E===Jn?C[L]:S[L],_t=E===Jn?-S[L]:-C[L],Pt=t.elements.arrow,At=g&&Pt?id(Pt):{width:0,height:0},Lt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hg(),Ct=Lt[G],j=Lt[V],st=wo(0,C[L],At[L]),tt=$?C[L]/2-ut-st-Ct-M.mainAxis:bt-st-Ct-M.mainAxis,at=$?-C[L]/2+ut+st+j+M.mainAxis:_t+st+j+M.mainAxis,B=t.elements.arrow&&Zo(t.elements.arrow),Mt=B?T==="y"?B.clientTop||0:B.clientLeft||0:0,A=(Q=I==null?void 0:I[T])!=null?Q:0,D=W+tt-A-Mt,R=W+at-A,Y=wo(g?ma(K,D):K,W,g?zn(ot,R):ot);x[T]=Y,N[T]=Y-W}if(a){var z,J=T==="x"?Se:Ae,rt=T==="x"?Re:Ne,F=x[y],Z=y==="y"?"height":"width",X=F+v[J],ct=F-v[rt],pt=[Se,Ae].indexOf(w)!==-1,ft=(z=I==null?void 0:I[y])!=null?z:0,vt=pt?X:F-C[Z]-S[Z]-ft+M.altAxis,Et=pt?F+C[Z]+S[Z]-ft-M.altAxis:ct,jt=g&&pt?w1(vt,F,Et):wo(g?vt:X,F,g?Et:ct);x[y]=jt,N[y]=jt-F}t.modifiersData[n]=N}}const xg={name:"preventOverflow",enabled:!0,phase:"main",fn:U1,requiresIfExists:["offset"]};function K1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Y1(e){return e===Fe(e)||!Xe(e)?ld(e):K1(e)}function q1(e){var t=e.getBoundingClientRect(),s=$i(t.width)/e.offsetWidth||1,n=$i(t.height)/e.offsetHeight||1;return s!==1||n!==1}function G1(e,t,s){s===void 0&&(s=!1);var n=Xe(t),i=Xe(t)&&q1(t),o=vn(t),r=Pi(e,i,s),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!s)&&((bs(t)!=="body"||dd(o))&&(a=Y1(t)),Xe(t)?(l=Pi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=cd(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function X1(e){var t=new Map,s=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){s.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!s.has(a)){var l=t.get(a);l&&i(l)}}),n.push(o)}return e.forEach(function(o){s.has(o.name)||i(o)}),n}function J1(e){var t=X1(e);return cg.reduce(function(s,n){return s.concat(t.filter(function(i){return i.phase===n}))},[])}function Q1(e){var t;return function(){return t||(t=new Promise(function(s){Promise.resolve().then(function(){t=void 0,s(e())})})),t}}function Z1(e){var t=e.reduce(function(s,n){var i=s[n.name];return s[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,s},{});return Object.keys(t).map(function(s){return t[s]})}var rh={placement:"bottom",modifiers:[],strategy:"absolute"};function ah(){for(var e=arguments.length,t=new Array(e),s=0;sk[b]})}}return h.default=k,Object.freeze(h)}const i=s(n),o=new Map,r={set(k,h,b){o.has(k)||o.set(k,new Map);const M=o.get(k);if(!M.has(h)&&M.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(M.keys())[0]}.`);return}M.set(h,b)},get(k,h){return o.has(k)&&o.get(k).get(h)||null},remove(k,h){if(!o.has(k))return;const b=o.get(k);b.delete(h),b.size===0&&o.delete(k)}},a=1e6,l=1e3,c="transitionend",u=k=>(k&&window.CSS&&window.CSS.escape&&(k=k.replace(/#([^\s"#']+)/g,(h,b)=>`#${CSS.escape(b)}`)),k),d=k=>k==null?`${k}`:Object.prototype.toString.call(k).match(/\s([a-z]+)/i)[1].toLowerCase(),f=k=>{do k+=Math.floor(Math.random()*a);while(document.getElementById(k));return k},p=k=>{if(!k)return 0;let{transitionDuration:h,transitionDelay:b}=window.getComputedStyle(k);const M=Number.parseFloat(h),z=Number.parseFloat(b);return!M&&!z?0:(h=h.split(",")[0],b=b.split(",")[0],(Number.parseFloat(h)+Number.parseFloat(b))*l)},m=k=>{k.dispatchEvent(new Event(c))},_=k=>!k||typeof k!="object"?!1:(typeof k.jquery<"u"&&(k=k[0]),typeof k.nodeType<"u"),v=k=>_(k)?k.jquery?k[0]:k:typeof k=="string"&&k.length>0?document.querySelector(u(k)):null,x=k=>{if(!_(k)||k.getClientRects().length===0)return!1;const h=getComputedStyle(k).getPropertyValue("visibility")==="visible",b=k.closest("details:not([open])");if(!b)return h;if(b!==k){const M=k.closest("summary");if(M&&M.parentNode!==b||M===null)return!1}return h},S=k=>!k||k.nodeType!==Node.ELEMENT_NODE||k.classList.contains("disabled")?!0:typeof k.disabled<"u"?k.disabled:k.hasAttribute("disabled")&&k.getAttribute("disabled")!=="false",P=k=>{if(!document.documentElement.attachShadow)return null;if(typeof k.getRootNode=="function"){const h=k.getRootNode();return h instanceof ShadowRoot?h:null}return k instanceof ShadowRoot?k:k.parentNode?P(k.parentNode):null},A=()=>{},y=k=>{k.offsetHeight},E=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,C=[],w=k=>{document.readyState==="loading"?(C.length||document.addEventListener("DOMContentLoaded",()=>{for(const h of C)h()}),C.push(k)):k()},$=()=>document.documentElement.dir==="rtl",D=k=>{w(()=>{const h=E();if(h){const b=k.NAME,M=h.fn[b];h.fn[b]=k.jQueryInterface,h.fn[b].Constructor=k,h.fn[b].noConflict=()=>(h.fn[b]=M,k.jQueryInterface)}})},I=(k,h=[],b=k)=>typeof k=="function"?k(...h):b,N=(k,h,b=!0)=>{if(!b){I(k);return}const z=p(h)+5;let st=!1;const et=({target:Tt})=>{Tt===h&&(st=!0,h.removeEventListener(c,et),I(k))};h.addEventListener(c,et),setTimeout(()=>{st||m(h)},z)},Q=(k,h,b,M)=>{const z=k.length;let st=k.indexOf(h);return st===-1?!b&&M?k[z-1]:k[0]:(st+=b?1:-1,M&&(st=(st+z)%z),k[Math.max(0,Math.min(st,z-1))])},Y=/[^.]*(?=\..*)\.|.*/,H=/\..*/,R=/::\d+$/,W={};let U=1;const rt={mouseenter:"mouseover",mouseleave:"mouseout"},ct=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 mt(k,h){return h&&`${h}::${U++}`||k.uidEvent||U++}function pt(k){const h=mt(k);return k.uidEvent=h,W[h]=W[h]||{},W[h]}function Pt(k,h){return function b(M){return T(M,{delegateTarget:k}),b.oneOff&&F.off(k,M.type,h),h.apply(k,[M])}}function At(k,h,b){return function M(z){const st=k.querySelectorAll(h);for(let{target:et}=z;et&&et!==this;et=et.parentNode)for(const Tt of st)if(Tt===et)return T(z,{delegateTarget:et}),M.oneOff&&F.off(k,z.type,h,b),b.apply(et,[z])}}function Mt(k,h,b=null){return Object.values(k).find(M=>M.callable===h&&M.delegationSelector===b)}function Ct(k,h,b){const M=typeof h=="string",z=M?b:h||b;let st=at(k);return ct.has(st)||(st=k),[M,z,st]}function j(k,h,b,M,z){if(typeof h!="string"||!k)return;let[st,et,Tt]=Ct(h,b,M);h in rt&&(et=(lx=>function(hi){if(!hi.relatedTarget||hi.relatedTarget!==hi.delegateTarget&&!hi.delegateTarget.contains(hi.relatedTarget))return lx.call(this,hi)})(et));const ye=pt(k),Ve=ye[Tt]||(ye[Tt]={}),ae=Mt(Ve,et,st?b:null);if(ae){ae.oneOff=ae.oneOff&&z;return}const sn=mt(et,h.replace(Y,"")),Qe=st?At(k,b,et):Pt(k,et);Qe.delegationSelector=st?b:null,Qe.callable=et,Qe.oneOff=z,Qe.uidEvent=sn,Ve[sn]=Qe,k.addEventListener(Tt,Qe,st)}function nt(k,h,b,M,z){const st=Mt(h[b],M,z);st&&(k.removeEventListener(b,st,!!z),delete h[b][st.uidEvent])}function Z(k,h,b,M){const z=h[b]||{};for(const[st,et]of Object.entries(z))st.includes(M)&&nt(k,h,b,et.callable,et.delegationSelector)}function at(k){return k=k.replace(H,""),rt[k]||k}const F={on(k,h,b,M){j(k,h,b,M,!1)},one(k,h,b,M){j(k,h,b,M,!0)},off(k,h,b,M){if(typeof h!="string"||!k)return;const[z,st,et]=Ct(h,b,M),Tt=et!==h,ye=pt(k),Ve=ye[et]||{},ae=h.startsWith(".");if(typeof st<"u"){if(!Object.keys(Ve).length)return;nt(k,ye,et,st,z?b:null);return}if(ae)for(const sn of Object.keys(ye))Z(k,ye,sn,h.slice(1));for(const[sn,Qe]of Object.entries(Ve)){const kr=sn.replace(R,"");(!Tt||h.includes(kr))&&nt(k,ye,et,Qe.callable,Qe.delegationSelector)}},trigger(k,h,b){if(typeof h!="string"||!k)return null;const M=E(),z=at(h),st=h!==z;let et=null,Tt=!0,ye=!0,Ve=!1;st&&M&&(et=M.Event(h,b),M(k).trigger(et),Tt=!et.isPropagationStopped(),ye=!et.isImmediatePropagationStopped(),Ve=et.isDefaultPrevented());const ae=T(new Event(h,{bubbles:Tt,cancelable:!0}),b);return Ve&&ae.preventDefault(),ye&&k.dispatchEvent(ae),ae.defaultPrevented&&et&&et.preventDefault(),ae}};function T(k,h={}){for(const[b,M]of Object.entries(h))try{k[b]=M}catch{Object.defineProperty(k,b,{configurable:!0,get(){return M}})}return k}function O(k){if(k==="true")return!0;if(k==="false")return!1;if(k===Number(k).toString())return Number(k);if(k===""||k==="null")return null;if(typeof k!="string")return k;try{return JSON.parse(decodeURIComponent(k))}catch{return k}}function L(k){return k.replace(/[A-Z]/g,h=>`-${h.toLowerCase()}`)}const V={setDataAttribute(k,h,b){k.setAttribute(`data-bs-${L(h)}`,b)},removeDataAttribute(k,h){k.removeAttribute(`data-bs-${L(h)}`)},getDataAttributes(k){if(!k)return{};const h={},b=Object.keys(k.dataset).filter(M=>M.startsWith("bs")&&!M.startsWith("bsConfig"));for(const M of b){let z=M.replace(/^bs/,"");z=z.charAt(0).toLowerCase()+z.slice(1,z.length),h[z]=O(k.dataset[M])}return h},getDataAttribute(k,h){return O(k.getAttribute(`data-bs-${L(h)}`))}};class K{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(h){return h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h}_mergeConfigObj(h,b){const M=_(b)?V.getDataAttribute(b,"config"):{};return{...this.constructor.Default,...typeof M=="object"?M:{},..._(b)?V.getDataAttributes(b):{},...typeof h=="object"?h:{}}}_typeCheckConfig(h,b=this.constructor.DefaultType){for(const[M,z]of Object.entries(b)){const st=h[M],et=_(st)?"element":d(st);if(!new RegExp(z).test(et))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${M}" provided type "${et}" but expected type "${z}".`)}}}const G="5.3.2";class tt extends K{constructor(h,b){super(),h=v(h),h&&(this._element=h,this._config=this._getConfig(b),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),F.off(this._element,this.constructor.EVENT_KEY);for(const h of Object.getOwnPropertyNames(this))this[h]=null}_queueCallback(h,b,M=!0){N(h,b,M)}_getConfig(h){return h=this._mergeConfigObj(h,this._element),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}static getInstance(h){return r.get(v(h),this.DATA_KEY)}static getOrCreateInstance(h,b={}){return this.getInstance(h)||new this(h,typeof b=="object"?b:null)}static get VERSION(){return G}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(h){return`${h}${this.EVENT_KEY}`}}const J=k=>{let h=k.getAttribute("data-bs-target");if(!h||h==="#"){let b=k.getAttribute("href");if(!b||!b.includes("#")&&!b.startsWith("."))return null;b.includes("#")&&!b.startsWith("#")&&(b=`#${b.split("#")[1]}`),h=b&&b!=="#"?u(b.trim()):null}return h},B={find(k,h=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(h,k))},findOne(k,h=document.documentElement){return Element.prototype.querySelector.call(h,k)},children(k,h){return[].concat(...k.children).filter(b=>b.matches(h))},parents(k,h){const b=[];let M=k.parentNode.closest(h);for(;M;)b.push(M),M=M.parentNode.closest(h);return b},prev(k,h){let b=k.previousElementSibling;for(;b;){if(b.matches(h))return[b];b=b.previousElementSibling}return[]},next(k,h){let b=k.nextElementSibling;for(;b;){if(b.matches(h))return[b];b=b.nextElementSibling}return[]},focusableChildren(k){const h=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(b=>`${b}:not([tabindex^="-"])`).join(",");return this.find(h,k).filter(b=>!S(b)&&x(b))},getSelectorFromElement(k){const h=J(k);return h&&B.findOne(h)?h:null},getElementFromSelector(k){const h=J(k);return h?B.findOne(h):null},getMultipleElementsFromSelector(k){const h=J(k);return h?B.find(h):[]}},q=(k,h="hide")=>{const b=`click.dismiss${k.EVENT_KEY}`,M=k.NAME;F.on(document,b,`[data-bs-dismiss="${M}"]`,function(z){if(["A","AREA"].includes(this.tagName)&&z.preventDefault(),S(this))return;const st=B.getElementFromSelector(this)||this.closest(`.${M}`);k.getOrCreateInstance(st)[h]()})},lt="alert",ut=".bs.alert",_t=`close${ut}`,St=`closed${ut}`,Dt="fade",Nt="show";class Gt extends tt{static get NAME(){return lt}close(){if(F.trigger(this._element,_t).defaultPrevented)return;this._element.classList.remove(Nt);const b=this._element.classList.contains(Dt);this._queueCallback(()=>this._destroyElement(),this._element,b)}_destroyElement(){this._element.remove(),F.trigger(this._element,St),this.dispose()}static jQueryInterface(h){return this.each(function(){const b=Gt.getOrCreateInstance(this);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}q(Gt,"close"),D(Gt);const Te="button",mr=".bs.button",xs=".data-api",_r="active",he='[data-bs-toggle="button"]',Fe=`click${mr}${xs}`;class Bn extends tt{static get NAME(){return Te}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(_r))}static jQueryInterface(h){return this.each(function(){const b=Bn.getOrCreateInstance(this);h==="toggle"&&b[h]()})}}F.on(document,Fe,he,k=>{k.preventDefault();const h=k.target.closest(he);Bn.getOrCreateInstance(h).toggle()}),D(Bn);const Ob="swipe",ii=".bs.swipe",Db=`touchstart${ii}`,Ib=`touchmove${ii}`,Lb=`touchend${ii}`,Rb=`pointerdown${ii}`,Nb=`pointerup${ii}`,Fb="touch",Bb="pen",Vb="pointer-event",Hb=40,jb={endCallback:null,leftCallback:null,rightCallback:null},Wb={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class br extends K{constructor(h,b){super(),this._element=h,!(!h||!br.isSupported())&&(this._config=this._getConfig(b),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return jb}static get DefaultType(){return Wb}static get NAME(){return Ob}dispose(){F.off(this._element,ii)}_start(h){if(!this._supportPointerEvents){this._deltaX=h.touches[0].clientX;return}this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX)}_end(h){this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX-this._deltaX),this._handleSwipe(),I(this._config.endCallback)}_move(h){this._deltaX=h.touches&&h.touches.length>1?0:h.touches[0].clientX-this._deltaX}_handleSwipe(){const h=Math.abs(this._deltaX);if(h<=Hb)return;const b=h/this._deltaX;this._deltaX=0,b&&I(b>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(F.on(this._element,Rb,h=>this._start(h)),F.on(this._element,Nb,h=>this._end(h)),this._element.classList.add(Vb)):(F.on(this._element,Db,h=>this._start(h)),F.on(this._element,Ib,h=>this._move(h)),F.on(this._element,Lb,h=>this._end(h)))}_eventIsPointerPenTouch(h){return this._supportPointerEvents&&(h.pointerType===Bb||h.pointerType===Fb)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const zb="carousel",Vn=".bs.carousel",dd=".data-api",Ub="ArrowLeft",Kb="ArrowRight",Yb=500,io="next",oi="prev",ri="left",vr="right",qb=`slide${Vn}`,gl=`slid${Vn}`,Gb=`keydown${Vn}`,Xb=`mouseenter${Vn}`,Qb=`mouseleave${Vn}`,Jb=`dragstart${Vn}`,Zb=`load${Vn}${dd}`,tv=`click${Vn}${dd}`,hd="carousel",yr="active",ev="slide",nv="carousel-item-end",sv="carousel-item-start",iv="carousel-item-next",ov="carousel-item-prev",fd=".active",pd=".carousel-item",rv=fd+pd,av=".carousel-item img",lv=".carousel-indicators",cv="[data-bs-slide], [data-bs-slide-to]",uv='[data-bs-ride="carousel"]',dv={[Ub]:vr,[Kb]:ri},hv={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},fv={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ai extends tt{constructor(h,b){super(h,b),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=B.findOne(lv,this._element),this._addEventListeners(),this._config.ride===hd&&this.cycle()}static get Default(){return hv}static get DefaultType(){return fv}static get NAME(){return zb}next(){this._slide(io)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(oi)}pause(){this._isSliding&&m(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){F.one(this._element,gl,()=>this.cycle());return}this.cycle()}}to(h){const b=this._getItems();if(h>b.length-1||h<0)return;if(this._isSliding){F.one(this._element,gl,()=>this.to(h));return}const M=this._getItemIndex(this._getActive());if(M===h)return;const z=h>M?io:oi;this._slide(z,b[h])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(h){return h.defaultInterval=h.interval,h}_addEventListeners(){this._config.keyboard&&F.on(this._element,Gb,h=>this._keydown(h)),this._config.pause==="hover"&&(F.on(this._element,Xb,()=>this.pause()),F.on(this._element,Qb,()=>this._maybeEnableCycle())),this._config.touch&&br.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const M of B.find(av,this._element))F.on(M,Jb,z=>z.preventDefault());const b={leftCallback:()=>this._slide(this._directionToOrder(ri)),rightCallback:()=>this._slide(this._directionToOrder(vr)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Yb+this._config.interval))}};this._swipeHelper=new br(this._element,b)}_keydown(h){if(/input|textarea/i.test(h.target.tagName))return;const b=dv[h.key];b&&(h.preventDefault(),this._slide(this._directionToOrder(b)))}_getItemIndex(h){return this._getItems().indexOf(h)}_setActiveIndicatorElement(h){if(!this._indicatorsElement)return;const b=B.findOne(fd,this._indicatorsElement);b.classList.remove(yr),b.removeAttribute("aria-current");const M=B.findOne(`[data-bs-slide-to="${h}"]`,this._indicatorsElement);M&&(M.classList.add(yr),M.setAttribute("aria-current","true"))}_updateInterval(){const h=this._activeElement||this._getActive();if(!h)return;const b=Number.parseInt(h.getAttribute("data-bs-interval"),10);this._config.interval=b||this._config.defaultInterval}_slide(h,b=null){if(this._isSliding)return;const M=this._getActive(),z=h===io,st=b||Q(this._getItems(),M,z,this._config.wrap);if(st===M)return;const et=this._getItemIndex(st),Tt=kr=>F.trigger(this._element,kr,{relatedTarget:st,direction:this._orderToDirection(h),from:this._getItemIndex(M),to:et});if(Tt(qb).defaultPrevented||!M||!st)return;const Ve=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(et),this._activeElement=st;const ae=z?sv:nv,sn=z?iv:ov;st.classList.add(sn),y(st),M.classList.add(ae),st.classList.add(ae);const Qe=()=>{st.classList.remove(ae,sn),st.classList.add(yr),M.classList.remove(yr,sn,ae),this._isSliding=!1,Tt(gl)};this._queueCallback(Qe,M,this._isAnimated()),Ve&&this.cycle()}_isAnimated(){return this._element.classList.contains(ev)}_getActive(){return B.findOne(rv,this._element)}_getItems(){return B.find(pd,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(h){return $()?h===ri?oi:io:h===ri?io:oi}_orderToDirection(h){return $()?h===oi?ri:vr:h===oi?vr:ri}static jQueryInterface(h){return this.each(function(){const b=ai.getOrCreateInstance(this,h);if(typeof h=="number"){b.to(h);return}if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(document,tv,cv,function(k){const h=B.getElementFromSelector(this);if(!h||!h.classList.contains(hd))return;k.preventDefault();const b=ai.getOrCreateInstance(h),M=this.getAttribute("data-bs-slide-to");if(M){b.to(M),b._maybeEnableCycle();return}if(V.getDataAttribute(this,"slide")==="next"){b.next(),b._maybeEnableCycle();return}b.prev(),b._maybeEnableCycle()}),F.on(window,Zb,()=>{const k=B.find(uv);for(const h of k)ai.getOrCreateInstance(h)}),D(ai);const pv="collapse",oo=".bs.collapse",gv=".data-api",mv=`show${oo}`,_v=`shown${oo}`,bv=`hide${oo}`,vv=`hidden${oo}`,yv=`click${oo}${gv}`,ml="show",li="collapse",xr="collapsing",xv="collapsed",wv=`:scope .${li} .${li}`,Ev="collapse-horizontal",Sv="width",Av="height",Cv=".collapse.show, .collapse.collapsing",_l='[data-bs-toggle="collapse"]',Tv={parent:null,toggle:!0},Pv={parent:"(null|element)",toggle:"boolean"};class ci extends tt{constructor(h,b){super(h,b),this._isTransitioning=!1,this._triggerArray=[];const M=B.find(_l);for(const z of M){const st=B.getSelectorFromElement(z),et=B.find(st).filter(Tt=>Tt===this._element);st!==null&&et.length&&this._triggerArray.push(z)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Tv}static get DefaultType(){return Pv}static get NAME(){return pv}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let h=[];if(this._config.parent&&(h=this._getFirstLevelChildren(Cv).filter(Tt=>Tt!==this._element).map(Tt=>ci.getOrCreateInstance(Tt,{toggle:!1}))),h.length&&h[0]._isTransitioning||F.trigger(this._element,mv).defaultPrevented)return;for(const Tt of h)Tt.hide();const M=this._getDimension();this._element.classList.remove(li),this._element.classList.add(xr),this._element.style[M]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const z=()=>{this._isTransitioning=!1,this._element.classList.remove(xr),this._element.classList.add(li,ml),this._element.style[M]="",F.trigger(this._element,_v)},et=`scroll${M[0].toUpperCase()+M.slice(1)}`;this._queueCallback(z,this._element,!0),this._element.style[M]=`${this._element[et]}px`}hide(){if(this._isTransitioning||!this._isShown()||F.trigger(this._element,bv).defaultPrevented)return;const b=this._getDimension();this._element.style[b]=`${this._element.getBoundingClientRect()[b]}px`,y(this._element),this._element.classList.add(xr),this._element.classList.remove(li,ml);for(const z of this._triggerArray){const st=B.getElementFromSelector(z);st&&!this._isShown(st)&&this._addAriaAndCollapsedClass([z],!1)}this._isTransitioning=!0;const M=()=>{this._isTransitioning=!1,this._element.classList.remove(xr),this._element.classList.add(li),F.trigger(this._element,vv)};this._element.style[b]="",this._queueCallback(M,this._element,!0)}_isShown(h=this._element){return h.classList.contains(ml)}_configAfterMerge(h){return h.toggle=!!h.toggle,h.parent=v(h.parent),h}_getDimension(){return this._element.classList.contains(Ev)?Sv:Av}_initializeChildren(){if(!this._config.parent)return;const h=this._getFirstLevelChildren(_l);for(const b of h){const M=B.getElementFromSelector(b);M&&this._addAriaAndCollapsedClass([b],this._isShown(M))}}_getFirstLevelChildren(h){const b=B.find(wv,this._config.parent);return B.find(h,this._config.parent).filter(M=>!b.includes(M))}_addAriaAndCollapsedClass(h,b){if(h.length)for(const M of h)M.classList.toggle(xv,!b),M.setAttribute("aria-expanded",b)}static jQueryInterface(h){const b={};return typeof h=="string"&&/show|hide/.test(h)&&(b.toggle=!1),this.each(function(){const M=ci.getOrCreateInstance(this,b);if(typeof h=="string"){if(typeof M[h]>"u")throw new TypeError(`No method named "${h}"`);M[h]()}})}}F.on(document,yv,_l,function(k){(k.target.tagName==="A"||k.delegateTarget&&k.delegateTarget.tagName==="A")&&k.preventDefault();for(const h of B.getMultipleElementsFromSelector(this))ci.getOrCreateInstance(h,{toggle:!1}).toggle()}),D(ci);const gd="dropdown",ws=".bs.dropdown",bl=".data-api",kv="Escape",md="Tab",$v="ArrowUp",_d="ArrowDown",Mv=2,Ov=`hide${ws}`,Dv=`hidden${ws}`,Iv=`show${ws}`,Lv=`shown${ws}`,bd=`click${ws}${bl}`,vd=`keydown${ws}${bl}`,Rv=`keyup${ws}${bl}`,ui="show",Nv="dropup",Fv="dropend",Bv="dropstart",Vv="dropup-center",Hv="dropdown-center",Es='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',jv=`${Es}.${ui}`,wr=".dropdown-menu",Wv=".navbar",zv=".navbar-nav",Uv=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Kv=$()?"top-end":"top-start",Yv=$()?"top-start":"top-end",qv=$()?"bottom-end":"bottom-start",Gv=$()?"bottom-start":"bottom-end",Xv=$()?"left-start":"right-start",Qv=$()?"right-start":"left-start",Jv="top",Zv="bottom",ty={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ey={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xe extends tt{constructor(h,b){super(h,b),this._popper=null,this._parent=this._element.parentNode,this._menu=B.next(this._element,wr)[0]||B.prev(this._element,wr)[0]||B.findOne(wr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ty}static get DefaultType(){return ey}static get NAME(){return gd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(S(this._element)||this._isShown())return;const h={relatedTarget:this._element};if(!F.trigger(this._element,Iv,h).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(zv))for(const M of[].concat(...document.body.children))F.on(M,"mouseover",A);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ui),this._element.classList.add(ui),F.trigger(this._element,Lv,h)}}hide(){if(S(this._element)||!this._isShown())return;const h={relatedTarget:this._element};this._completeHide(h)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(h){if(!F.trigger(this._element,Ov,h).defaultPrevented){if("ontouchstart"in document.documentElement)for(const M of[].concat(...document.body.children))F.off(M,"mouseover",A);this._popper&&this._popper.destroy(),this._menu.classList.remove(ui),this._element.classList.remove(ui),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),F.trigger(this._element,Dv,h)}}_getConfig(h){if(h=super._getConfig(h),typeof h.reference=="object"&&!_(h.reference)&&typeof h.reference.getBoundingClientRect!="function")throw new TypeError(`${gd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return h}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let h=this._element;this._config.reference==="parent"?h=this._parent:_(this._config.reference)?h=v(this._config.reference):typeof this._config.reference=="object"&&(h=this._config.reference);const b=this._getPopperConfig();this._popper=i.createPopper(h,this._menu,b)}_isShown(){return this._menu.classList.contains(ui)}_getPlacement(){const h=this._parent;if(h.classList.contains(Fv))return Xv;if(h.classList.contains(Bv))return Qv;if(h.classList.contains(Vv))return Jv;if(h.classList.contains(Hv))return Zv;const b=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return h.classList.contains(Nv)?b?Yv:Kv:b?Gv:qv}_detectNavbar(){return this._element.closest(Wv)!==null}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(b=>Number.parseInt(b,10)):typeof h=="function"?b=>h(b,this._element):h}_getPopperConfig(){const h={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(V.setDataAttribute(this._menu,"popper","static"),h.modifiers=[{name:"applyStyles",enabled:!1}]),{...h,...I(this._config.popperConfig,[h])}}_selectMenuItem({key:h,target:b}){const M=B.find(Uv,this._menu).filter(z=>x(z));M.length&&Q(M,b,h===_d,!M.includes(b)).focus()}static jQueryInterface(h){return this.each(function(){const b=Xe.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}static clearMenus(h){if(h.button===Mv||h.type==="keyup"&&h.key!==md)return;const b=B.find(jv);for(const M of b){const z=Xe.getInstance(M);if(!z||z._config.autoClose===!1)continue;const st=h.composedPath(),et=st.includes(z._menu);if(st.includes(z._element)||z._config.autoClose==="inside"&&!et||z._config.autoClose==="outside"&&et||z._menu.contains(h.target)&&(h.type==="keyup"&&h.key===md||/input|select|option|textarea|form/i.test(h.target.tagName)))continue;const Tt={relatedTarget:z._element};h.type==="click"&&(Tt.clickEvent=h),z._completeHide(Tt)}}static dataApiKeydownHandler(h){const b=/input|textarea/i.test(h.target.tagName),M=h.key===kv,z=[$v,_d].includes(h.key);if(!z&&!M||b&&!M)return;h.preventDefault();const st=this.matches(Es)?this:B.prev(this,Es)[0]||B.next(this,Es)[0]||B.findOne(Es,h.delegateTarget.parentNode),et=Xe.getOrCreateInstance(st);if(z){h.stopPropagation(),et.show(),et._selectMenuItem(h);return}et._isShown()&&(h.stopPropagation(),et.hide(),st.focus())}}F.on(document,vd,Es,Xe.dataApiKeydownHandler),F.on(document,vd,wr,Xe.dataApiKeydownHandler),F.on(document,bd,Xe.clearMenus),F.on(document,Rv,Xe.clearMenus),F.on(document,bd,Es,function(k){k.preventDefault(),Xe.getOrCreateInstance(this).toggle()}),D(Xe);const yd="backdrop",ny="fade",xd="show",wd=`mousedown.bs.${yd}`,sy={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},iy={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ed extends K{constructor(h){super(),this._config=this._getConfig(h),this._isAppended=!1,this._element=null}static get Default(){return sy}static get DefaultType(){return iy}static get NAME(){return yd}show(h){if(!this._config.isVisible){I(h);return}this._append();const b=this._getElement();this._config.isAnimated&&y(b),b.classList.add(xd),this._emulateAnimation(()=>{I(h)})}hide(h){if(!this._config.isVisible){I(h);return}this._getElement().classList.remove(xd),this._emulateAnimation(()=>{this.dispose(),I(h)})}dispose(){this._isAppended&&(F.off(this._element,wd),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const h=document.createElement("div");h.className=this._config.className,this._config.isAnimated&&h.classList.add(ny),this._element=h}return this._element}_configAfterMerge(h){return h.rootElement=v(h.rootElement),h}_append(){if(this._isAppended)return;const h=this._getElement();this._config.rootElement.append(h),F.on(h,wd,()=>{I(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(h){N(h,this._getElement(),this._config.isAnimated)}}const oy="focustrap",Er=".bs.focustrap",ry=`focusin${Er}`,ay=`keydown.tab${Er}`,ly="Tab",cy="forward",Sd="backward",uy={autofocus:!0,trapElement:null},dy={autofocus:"boolean",trapElement:"element"};class Ad extends K{constructor(h){super(),this._config=this._getConfig(h),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return uy}static get DefaultType(){return dy}static get NAME(){return oy}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),F.off(document,Er),F.on(document,ry,h=>this._handleFocusin(h)),F.on(document,ay,h=>this._handleKeydown(h)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,F.off(document,Er))}_handleFocusin(h){const{trapElement:b}=this._config;if(h.target===document||h.target===b||b.contains(h.target))return;const M=B.focusableChildren(b);M.length===0?b.focus():this._lastTabNavDirection===Sd?M[M.length-1].focus():M[0].focus()}_handleKeydown(h){h.key===ly&&(this._lastTabNavDirection=h.shiftKey?Sd:cy)}}const Cd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Td=".sticky-top",Sr="padding-right",Pd="margin-right";class vl{constructor(){this._element=document.body}getWidth(){const h=document.documentElement.clientWidth;return Math.abs(window.innerWidth-h)}hide(){const h=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Sr,b=>b+h),this._setElementAttributes(Cd,Sr,b=>b+h),this._setElementAttributes(Td,Pd,b=>b-h)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Sr),this._resetElementAttributes(Cd,Sr),this._resetElementAttributes(Td,Pd)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(h,b,M){const z=this.getWidth(),st=et=>{if(et!==this._element&&window.innerWidth>et.clientWidth+z)return;this._saveInitialAttribute(et,b);const Tt=window.getComputedStyle(et).getPropertyValue(b);et.style.setProperty(b,`${M(Number.parseFloat(Tt))}px`)};this._applyManipulationCallback(h,st)}_saveInitialAttribute(h,b){const M=h.style.getPropertyValue(b);M&&V.setDataAttribute(h,b,M)}_resetElementAttributes(h,b){const M=z=>{const st=V.getDataAttribute(z,b);if(st===null){z.style.removeProperty(b);return}V.removeDataAttribute(z,b),z.style.setProperty(b,st)};this._applyManipulationCallback(h,M)}_applyManipulationCallback(h,b){if(_(h)){b(h);return}for(const M of B.find(h,this._element))b(M)}}const hy="modal",Be=".bs.modal",fy=".data-api",py="Escape",gy=`hide${Be}`,my=`hidePrevented${Be}`,kd=`hidden${Be}`,$d=`show${Be}`,_y=`shown${Be}`,by=`resize${Be}`,vy=`click.dismiss${Be}`,yy=`mousedown.dismiss${Be}`,xy=`keydown.dismiss${Be}`,wy=`click${Be}${fy}`,Md="modal-open",Ey="fade",Od="show",yl="modal-static",Sy=".modal.show",Ay=".modal-dialog",Cy=".modal-body",Ty='[data-bs-toggle="modal"]',Py={backdrop:!0,focus:!0,keyboard:!0},ky={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ss extends tt{constructor(h,b){super(h,b),this._dialog=B.findOne(Ay,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new vl,this._addEventListeners()}static get Default(){return Py}static get DefaultType(){return ky}static get NAME(){return hy}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){this._isShown||this._isTransitioning||F.trigger(this._element,$d,{relatedTarget:h}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Md),this._adjustDialog(),this._backdrop.show(()=>this._showElement(h)))}hide(){!this._isShown||this._isTransitioning||F.trigger(this._element,gy).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Od),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){F.off(window,Be),F.off(this._dialog,Be),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ed({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ad({trapElement:this._element})}_showElement(h){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 b=B.findOne(Cy,this._dialog);b&&(b.scrollTop=0),y(this._element),this._element.classList.add(Od);const M=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,F.trigger(this._element,_y,{relatedTarget:h})};this._queueCallback(M,this._dialog,this._isAnimated())}_addEventListeners(){F.on(this._element,xy,h=>{if(h.key===py){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),F.on(window,by,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),F.on(this._element,yy,h=>{F.one(this._element,vy,b=>{if(!(this._element!==h.target||this._element!==b.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(Md),this._resetAdjustments(),this._scrollBar.reset(),F.trigger(this._element,kd)})}_isAnimated(){return this._element.classList.contains(Ey)}_triggerBackdropTransition(){if(F.trigger(this._element,my).defaultPrevented)return;const b=this._element.scrollHeight>document.documentElement.clientHeight,M=this._element.style.overflowY;M==="hidden"||this._element.classList.contains(yl)||(b||(this._element.style.overflowY="hidden"),this._element.classList.add(yl),this._queueCallback(()=>{this._element.classList.remove(yl),this._queueCallback(()=>{this._element.style.overflowY=M},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const h=this._element.scrollHeight>document.documentElement.clientHeight,b=this._scrollBar.getWidth(),M=b>0;if(M&&!h){const z=$()?"paddingLeft":"paddingRight";this._element.style[z]=`${b}px`}if(!M&&h){const z=$()?"paddingRight":"paddingLeft";this._element.style[z]=`${b}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(h,b){return this.each(function(){const M=Ss.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof M[h]>"u")throw new TypeError(`No method named "${h}"`);M[h](b)}})}}F.on(document,wy,Ty,function(k){const h=B.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&k.preventDefault(),F.one(h,$d,z=>{z.defaultPrevented||F.one(h,kd,()=>{x(this)&&this.focus()})});const b=B.findOne(Sy);b&&Ss.getInstance(b).hide(),Ss.getOrCreateInstance(h).toggle(this)}),q(Ss),D(Ss);const $y="offcanvas",bn=".bs.offcanvas",Dd=".data-api",My=`load${bn}${Dd}`,Oy="Escape",Id="show",Ld="showing",Rd="hiding",Dy="offcanvas-backdrop",Nd=".offcanvas.show",Iy=`show${bn}`,Ly=`shown${bn}`,Ry=`hide${bn}`,Fd=`hidePrevented${bn}`,Bd=`hidden${bn}`,Ny=`resize${bn}`,Fy=`click${bn}${Dd}`,By=`keydown.dismiss${bn}`,Vy='[data-bs-toggle="offcanvas"]',Hy={backdrop:!0,keyboard:!0,scroll:!1},jy={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class vn extends tt{constructor(h,b){super(h,b),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Hy}static get DefaultType(){return jy}static get NAME(){return $y}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){if(this._isShown||F.trigger(this._element,Iy,{relatedTarget:h}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new vl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ld);const M=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Id),this._element.classList.remove(Ld),F.trigger(this._element,Ly,{relatedTarget:h})};this._queueCallback(M,this._element,!0)}hide(){if(!this._isShown||F.trigger(this._element,Ry).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Rd),this._backdrop.hide();const b=()=>{this._element.classList.remove(Id,Rd),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new vl().reset(),F.trigger(this._element,Bd)};this._queueCallback(b,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const h=()=>{if(this._config.backdrop==="static"){F.trigger(this._element,Fd);return}this.hide()},b=!!this._config.backdrop;return new Ed({className:Dy,isVisible:b,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:b?h:null})}_initializeFocusTrap(){return new Ad({trapElement:this._element})}_addEventListeners(){F.on(this._element,By,h=>{if(h.key===Oy){if(this._config.keyboard){this.hide();return}F.trigger(this._element,Fd)}})}static jQueryInterface(h){return this.each(function(){const b=vn.getOrCreateInstance(this,h);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}F.on(document,Fy,Vy,function(k){const h=B.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&k.preventDefault(),S(this))return;F.one(h,Bd,()=>{x(this)&&this.focus()});const b=B.findOne(Nd);b&&b!==h&&vn.getInstance(b).hide(),vn.getOrCreateInstance(h).toggle(this)}),F.on(window,My,()=>{for(const k of B.find(Nd))vn.getOrCreateInstance(k).show()}),F.on(window,Ny,()=>{for(const k of B.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(k).position!=="fixed"&&vn.getOrCreateInstance(k).hide()}),q(vn),D(vn);const Vd={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},Wy=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),zy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Uy=(k,h)=>{const b=k.nodeName.toLowerCase();return h.includes(b)?Wy.has(b)?!!zy.test(k.nodeValue):!0:h.filter(M=>M instanceof RegExp).some(M=>M.test(b))};function Ky(k,h,b){if(!k.length)return k;if(b&&typeof b=="function")return b(k);const z=new window.DOMParser().parseFromString(k,"text/html"),st=[].concat(...z.body.querySelectorAll("*"));for(const et of st){const Tt=et.nodeName.toLowerCase();if(!Object.keys(h).includes(Tt)){et.remove();continue}const ye=[].concat(...et.attributes),Ve=[].concat(h["*"]||[],h[Tt]||[]);for(const ae of ye)Uy(ae,Ve)||et.removeAttribute(ae.nodeName)}return z.body.innerHTML}const Yy="TemplateFactory",qy={allowList:Vd,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Gy={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Xy={entry:"(string|element|function|null)",selector:"(string|element)"};class Qy extends K{constructor(h){super(),this._config=this._getConfig(h)}static get Default(){return qy}static get DefaultType(){return Gy}static get NAME(){return Yy}getContent(){return Object.values(this._config.content).map(h=>this._resolvePossibleFunction(h)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(h){return this._checkContent(h),this._config.content={...this._config.content,...h},this}toHtml(){const h=document.createElement("div");h.innerHTML=this._maybeSanitize(this._config.template);for(const[z,st]of Object.entries(this._config.content))this._setContent(h,st,z);const b=h.children[0],M=this._resolvePossibleFunction(this._config.extraClass);return M&&b.classList.add(...M.split(" ")),b}_typeCheckConfig(h){super._typeCheckConfig(h),this._checkContent(h.content)}_checkContent(h){for(const[b,M]of Object.entries(h))super._typeCheckConfig({selector:b,entry:M},Xy)}_setContent(h,b,M){const z=B.findOne(M,h);if(z){if(b=this._resolvePossibleFunction(b),!b){z.remove();return}if(_(b)){this._putElementInTemplate(v(b),z);return}if(this._config.html){z.innerHTML=this._maybeSanitize(b);return}z.textContent=b}}_maybeSanitize(h){return this._config.sanitize?Ky(h,this._config.allowList,this._config.sanitizeFn):h}_resolvePossibleFunction(h){return I(h,[this])}_putElementInTemplate(h,b){if(this._config.html){b.innerHTML="",b.append(h);return}b.textContent=h.textContent}}const Jy="tooltip",Zy=new Set(["sanitize","allowList","sanitizeFn"]),xl="fade",t0="modal",Ar="show",e0=".tooltip-inner",Hd=`.${t0}`,jd="hide.bs.modal",ro="hover",wl="focus",n0="click",s0="manual",i0="hide",o0="hidden",r0="show",a0="shown",l0="inserted",c0="click",u0="focusin",d0="focusout",h0="mouseenter",f0="mouseleave",p0={AUTO:"auto",TOP:"top",RIGHT:$()?"left":"right",BOTTOM:"bottom",LEFT:$()?"right":"left"},g0={allowList:Vd,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"},m0={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 As extends tt{constructor(h,b){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(h,b),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 g0}static get DefaultType(){return m0}static get NAME(){return Jy}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),F.off(this._element.closest(Hd),jd,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 h=F.trigger(this._element,this.constructor.eventName(r0)),M=(P(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(h.defaultPrevented||!M)return;this._disposePopper();const z=this._getTipElement();this._element.setAttribute("aria-describedby",z.getAttribute("id"));const{container:st}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(st.append(z),F.trigger(this._element,this.constructor.eventName(l0))),this._popper=this._createPopper(z),z.classList.add(Ar),"ontouchstart"in document.documentElement)for(const Tt of[].concat(...document.body.children))F.on(Tt,"mouseover",A);const et=()=>{F.trigger(this._element,this.constructor.eventName(a0)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(et,this.tip,this._isAnimated())}hide(){if(!this._isShown()||F.trigger(this._element,this.constructor.eventName(i0)).defaultPrevented)return;if(this._getTipElement().classList.remove(Ar),"ontouchstart"in document.documentElement)for(const z of[].concat(...document.body.children))F.off(z,"mouseover",A);this._activeTrigger[n0]=!1,this._activeTrigger[wl]=!1,this._activeTrigger[ro]=!1,this._isHovered=null;const M=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),F.trigger(this._element,this.constructor.eventName(o0)))};this._queueCallback(M,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(h){const b=this._getTemplateFactory(h).toHtml();if(!b)return null;b.classList.remove(xl,Ar),b.classList.add(`bs-${this.constructor.NAME}-auto`);const M=f(this.constructor.NAME).toString();return b.setAttribute("id",M),this._isAnimated()&&b.classList.add(xl),b}setContent(h){this._newContent=h,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(h){return this._templateFactory?this._templateFactory.changeContent(h):this._templateFactory=new Qy({...this._config,content:h,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[e0]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(h){return this.constructor.getOrCreateInstance(h.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(xl)}_isShown(){return this.tip&&this.tip.classList.contains(Ar)}_createPopper(h){const b=I(this._config.placement,[this,h,this._element]),M=p0[b.toUpperCase()];return i.createPopper(this._element,h,this._getPopperConfig(M))}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(b=>Number.parseInt(b,10)):typeof h=="function"?b=>h(b,this._element):h}_resolvePossibleFunction(h){return I(h,[this._element])}_getPopperConfig(h){const b={placement:h,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:M=>{this._getTipElement().setAttribute("data-popper-placement",M.state.placement)}}]};return{...b,...I(this._config.popperConfig,[b])}}_setListeners(){const h=this._config.trigger.split(" ");for(const b of h)if(b==="click")F.on(this._element,this.constructor.eventName(c0),this._config.selector,M=>{this._initializeOnDelegatedTarget(M).toggle()});else if(b!==s0){const M=b===ro?this.constructor.eventName(h0):this.constructor.eventName(u0),z=b===ro?this.constructor.eventName(f0):this.constructor.eventName(d0);F.on(this._element,M,this._config.selector,st=>{const et=this._initializeOnDelegatedTarget(st);et._activeTrigger[st.type==="focusin"?wl:ro]=!0,et._enter()}),F.on(this._element,z,this._config.selector,st=>{const et=this._initializeOnDelegatedTarget(st);et._activeTrigger[st.type==="focusout"?wl:ro]=et._element.contains(st.relatedTarget),et._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},F.on(this._element.closest(Hd),jd,this._hideModalHandler)}_fixTitle(){const h=this._element.getAttribute("title");h&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",h),this._element.setAttribute("data-bs-original-title",h),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(h,b){clearTimeout(this._timeout),this._timeout=setTimeout(h,b)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(h){const b=V.getDataAttributes(this._element);for(const M of Object.keys(b))Zy.has(M)&&delete b[M];return h={...b,...typeof h=="object"&&h?h:{}},h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h.container=h.container===!1?document.body:v(h.container),typeof h.delay=="number"&&(h.delay={show:h.delay,hide:h.delay}),typeof h.title=="number"&&(h.title=h.title.toString()),typeof h.content=="number"&&(h.content=h.content.toString()),h}_getDelegateConfig(){const h={};for(const[b,M]of Object.entries(this._config))this.constructor.Default[b]!==M&&(h[b]=M);return h.selector=!1,h.trigger="manual",h}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(h){return this.each(function(){const b=As.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}}D(As);const _0="popover",b0=".popover-header",v0=".popover-body",y0={...As.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},x0={...As.DefaultType,content:"(null|string|element|function)"};class Cr extends As{static get Default(){return y0}static get DefaultType(){return x0}static get NAME(){return _0}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[b0]:this._getTitle(),[v0]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(h){return this.each(function(){const b=Cr.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}}D(Cr);const w0="scrollspy",El=".bs.scrollspy",E0=".data-api",S0=`activate${El}`,Wd=`click${El}`,A0=`load${El}${E0}`,C0="dropdown-item",di="active",T0='[data-bs-spy="scroll"]',Sl="[href]",P0=".nav, .list-group",zd=".nav-link",k0=`${zd}, .nav-item > ${zd}, .list-group-item`,$0=".dropdown",M0=".dropdown-toggle",O0={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},D0={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ao extends tt{constructor(h,b){super(h,b),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 O0}static get DefaultType(){return D0}static get NAME(){return w0}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const h of this._observableSections.values())this._observer.observe(h)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(h){return h.target=v(h.target)||document.body,h.rootMargin=h.offset?`${h.offset}px 0px -30%`:h.rootMargin,typeof h.threshold=="string"&&(h.threshold=h.threshold.split(",").map(b=>Number.parseFloat(b))),h}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(F.off(this._config.target,Wd),F.on(this._config.target,Wd,Sl,h=>{const b=this._observableSections.get(h.target.hash);if(b){h.preventDefault();const M=this._rootElement||window,z=b.offsetTop-this._element.offsetTop;if(M.scrollTo){M.scrollTo({top:z,behavior:"smooth"});return}M.scrollTop=z}}))}_getNewObserver(){const h={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(b=>this._observerCallback(b),h)}_observerCallback(h){const b=et=>this._targetLinks.get(`#${et.target.id}`),M=et=>{this._previousScrollData.visibleEntryTop=et.target.offsetTop,this._process(b(et))},z=(this._rootElement||document.documentElement).scrollTop,st=z>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=z;for(const et of h){if(!et.isIntersecting){this._activeTarget=null,this._clearActiveClass(b(et));continue}const Tt=et.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(st&&Tt){if(M(et),!z)return;continue}!st&&!Tt&&M(et)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const h=B.find(Sl,this._config.target);for(const b of h){if(!b.hash||S(b))continue;const M=B.findOne(decodeURI(b.hash),this._element);x(M)&&(this._targetLinks.set(decodeURI(b.hash),b),this._observableSections.set(b.hash,M))}}_process(h){this._activeTarget!==h&&(this._clearActiveClass(this._config.target),this._activeTarget=h,h.classList.add(di),this._activateParents(h),F.trigger(this._element,S0,{relatedTarget:h}))}_activateParents(h){if(h.classList.contains(C0)){B.findOne(M0,h.closest($0)).classList.add(di);return}for(const b of B.parents(h,P0))for(const M of B.prev(b,k0))M.classList.add(di)}_clearActiveClass(h){h.classList.remove(di);const b=B.find(`${Sl}.${di}`,h);for(const M of b)M.classList.remove(di)}static jQueryInterface(h){return this.each(function(){const b=ao.getOrCreateInstance(this,h);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(window,A0,()=>{for(const k of B.find(T0))ao.getOrCreateInstance(k)}),D(ao);const I0="tab",Cs=".bs.tab",L0=`hide${Cs}`,R0=`hidden${Cs}`,N0=`show${Cs}`,F0=`shown${Cs}`,B0=`click${Cs}`,V0=`keydown${Cs}`,H0=`load${Cs}`,j0="ArrowLeft",Ud="ArrowRight",W0="ArrowUp",Kd="ArrowDown",Al="Home",Yd="End",Ts="active",qd="fade",Cl="show",z0="dropdown",Gd=".dropdown-toggle",U0=".dropdown-menu",Tl=`:not(${Gd})`,K0='.list-group, .nav, [role="tablist"]',Y0=".nav-item, .list-group-item",q0=`.nav-link${Tl}, .list-group-item${Tl}, [role="tab"]${Tl}`,Xd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Pl=`${q0}, ${Xd}`,G0=`.${Ts}[data-bs-toggle="tab"], .${Ts}[data-bs-toggle="pill"], .${Ts}[data-bs-toggle="list"]`;class Ps extends tt{constructor(h){super(h),this._parent=this._element.closest(K0),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),F.on(this._element,V0,b=>this._keydown(b)))}static get NAME(){return I0}show(){const h=this._element;if(this._elemIsActive(h))return;const b=this._getActiveElem(),M=b?F.trigger(b,L0,{relatedTarget:h}):null;F.trigger(h,N0,{relatedTarget:b}).defaultPrevented||M&&M.defaultPrevented||(this._deactivate(b,h),this._activate(h,b))}_activate(h,b){if(!h)return;h.classList.add(Ts),this._activate(B.getElementFromSelector(h));const M=()=>{if(h.getAttribute("role")!=="tab"){h.classList.add(Cl);return}h.removeAttribute("tabindex"),h.setAttribute("aria-selected",!0),this._toggleDropDown(h,!0),F.trigger(h,F0,{relatedTarget:b})};this._queueCallback(M,h,h.classList.contains(qd))}_deactivate(h,b){if(!h)return;h.classList.remove(Ts),h.blur(),this._deactivate(B.getElementFromSelector(h));const M=()=>{if(h.getAttribute("role")!=="tab"){h.classList.remove(Cl);return}h.setAttribute("aria-selected",!1),h.setAttribute("tabindex","-1"),this._toggleDropDown(h,!1),F.trigger(h,R0,{relatedTarget:b})};this._queueCallback(M,h,h.classList.contains(qd))}_keydown(h){if(![j0,Ud,W0,Kd,Al,Yd].includes(h.key))return;h.stopPropagation(),h.preventDefault();const b=this._getChildren().filter(z=>!S(z));let M;if([Al,Yd].includes(h.key))M=b[h.key===Al?0:b.length-1];else{const z=[Ud,Kd].includes(h.key);M=Q(b,h.target,z,!0)}M&&(M.focus({preventScroll:!0}),Ps.getOrCreateInstance(M).show())}_getChildren(){return B.find(Pl,this._parent)}_getActiveElem(){return this._getChildren().find(h=>this._elemIsActive(h))||null}_setInitialAttributes(h,b){this._setAttributeIfNotExists(h,"role","tablist");for(const M of b)this._setInitialAttributesOnChild(M)}_setInitialAttributesOnChild(h){h=this._getInnerElement(h);const b=this._elemIsActive(h),M=this._getOuterElement(h);h.setAttribute("aria-selected",b),M!==h&&this._setAttributeIfNotExists(M,"role","presentation"),b||h.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(h,"role","tab"),this._setInitialAttributesOnTargetPanel(h)}_setInitialAttributesOnTargetPanel(h){const b=B.getElementFromSelector(h);b&&(this._setAttributeIfNotExists(b,"role","tabpanel"),h.id&&this._setAttributeIfNotExists(b,"aria-labelledby",`${h.id}`))}_toggleDropDown(h,b){const M=this._getOuterElement(h);if(!M.classList.contains(z0))return;const z=(st,et)=>{const Tt=B.findOne(st,M);Tt&&Tt.classList.toggle(et,b)};z(Gd,Ts),z(U0,Cl),M.setAttribute("aria-expanded",b)}_setAttributeIfNotExists(h,b,M){h.hasAttribute(b)||h.setAttribute(b,M)}_elemIsActive(h){return h.classList.contains(Ts)}_getInnerElement(h){return h.matches(Pl)?h:B.findOne(Pl,h)}_getOuterElement(h){return h.closest(Y0)||h}static jQueryInterface(h){return this.each(function(){const b=Ps.getOrCreateInstance(this);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(document,B0,Xd,function(k){["A","AREA"].includes(this.tagName)&&k.preventDefault(),!S(this)&&Ps.getOrCreateInstance(this).show()}),F.on(window,H0,()=>{for(const k of B.find(G0))Ps.getOrCreateInstance(k)}),D(Ps);const X0="toast",Hn=".bs.toast",Q0=`mouseover${Hn}`,J0=`mouseout${Hn}`,Z0=`focusin${Hn}`,tx=`focusout${Hn}`,ex=`hide${Hn}`,nx=`hidden${Hn}`,sx=`show${Hn}`,ix=`shown${Hn}`,ox="fade",Qd="hide",Tr="show",Pr="showing",rx={animation:"boolean",autohide:"boolean",delay:"number"},ax={animation:!0,autohide:!0,delay:5e3};class lo extends tt{constructor(h,b){super(h,b),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ax}static get DefaultType(){return rx}static get NAME(){return X0}show(){if(F.trigger(this._element,sx).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ox);const b=()=>{this._element.classList.remove(Pr),F.trigger(this._element,ix),this._maybeScheduleHide()};this._element.classList.remove(Qd),y(this._element),this._element.classList.add(Tr,Pr),this._queueCallback(b,this._element,this._config.animation)}hide(){if(!this.isShown()||F.trigger(this._element,ex).defaultPrevented)return;const b=()=>{this._element.classList.add(Qd),this._element.classList.remove(Pr,Tr),F.trigger(this._element,nx)};this._element.classList.add(Pr),this._queueCallback(b,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Tr),super.dispose()}isShown(){return this._element.classList.contains(Tr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(h,b){switch(h.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=b;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=b;break}}if(b){this._clearTimeout();return}const M=h.relatedTarget;this._element===M||this._element.contains(M)||this._maybeScheduleHide()}_setListeners(){F.on(this._element,Q0,h=>this._onInteraction(h,!0)),F.on(this._element,J0,h=>this._onInteraction(h,!1)),F.on(this._element,Z0,h=>this._onInteraction(h,!0)),F.on(this._element,tx,h=>this._onInteraction(h,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(h){return this.each(function(){const b=lo.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}return q(lo),D(lo),{Alert:Gt,Button:Bn,Carousel:ai,Collapse:ci,Dropdown:Xe,Modal:Ss,Offcanvas:vn,Popover:Cr,ScrollSpy:ao,Tab:Ps,Toast:lo,Tooltip:As}})})(fx);function ru(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Wt={},wi=[],ze=()=>{},s1=()=>!1,Ha=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),au=e=>e.startsWith("onUpdate:"),se=Object.assign,lu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i1=Object.prototype.hasOwnProperty,It=(e,t)=>i1.call(e,t),ht=Array.isArray,Ei=e=>ir(e)==="[object Map]",Ji=e=>ir(e)==="[object Set]",rh=e=>ir(e)==="[object Date]",xt=e=>typeof e=="function",ee=e=>typeof e=="string",ls=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",_g=e=>(Vt(e)||xt(e))&&xt(e.then)&&xt(e.catch),bg=Object.prototype.toString,ir=e=>bg.call(e),o1=e=>ir(e).slice(8,-1),vg=e=>ir(e)==="[object Object]",cu=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ia=ru(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ja=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},r1=/-(\w)/g,gn=ja(e=>e.replace(r1,(t,n)=>n?n.toUpperCase():"")),a1=/\B([A-Z])/g,Zi=ja(e=>e.replace(a1,"-$1").toLowerCase()),Wa=ja(e=>e.charAt(0).toUpperCase()+e.slice(1)),kl=ja(e=>e?`on${Wa(e)}`:""),cs=(e,t)=>!Object.is(e,t),oa=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ga=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yg=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let ah;const xg=()=>ah||(ah=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function uu(e){if(ht(e)){const t={};for(let n=0;n{if(n){const s=n.split(c1);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function jt(e){let t="";if(ee(e))t=e;else if(ht(e))for(let n=0;nXs(n,t))}const wt=e=>ee(e)?e:e==null?"":ht(e)||Vt(e)&&(e.toString===bg||!xt(e.toString))?JSON.stringify(e,Eg,2):String(e),Eg=(e,t)=>t&&t.__v_isRef?Eg(e,t.value):Ei(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[$l(s,o)+" =>"]=i,n),{})}:Ji(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$l(n))}:ls(t)?$l(t):Vt(t)&&!ht(t)&&!vg(t)?String(t):t,$l=(e,t="")=>{var n;return ls(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ke;class Sg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ke,!t&&ke&&(this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ke;try{return ke=this,t()}finally{ke=n}}}on(){ke=this}off(){ke=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break;ti(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ss,n=js;try{return ss=!0,js=this,this._runnings++,lh(this),this.fn()}finally{ch(this),this._runnings--,js=n,ss=t}}stop(){var t;this.active&&(lh(this),ch(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function m1(e){return e.value}function lh(e){e._trackId++,e._depsLength=0}function ch(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},ma=new WeakMap,Ws=Symbol(""),dc=Symbol("");function Ae(e,t,n){if(ss&&js){let s=ma.get(e);s||ma.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Mg(()=>s.delete(n))),kg(js,i)}}function Dn(e,t,n,s,i,o){const r=ma.get(e);if(!r)return;let a=[];if(t==="clear")a=[...r.values()];else if(n==="length"&&ht(e)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!ls(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":ht(e)?cu(n)&&a.push(r.get("length")):(a.push(r.get(Ws)),Ei(e)&&a.push(r.get(dc)));break;case"delete":ht(e)||(a.push(r.get(Ws)),Ei(e)&&a.push(r.get(dc)));break;case"set":Ei(e)&&a.push(r.get(Ws));break}pu();for(const l of a)l&&$g(l,3);gu()}function _1(e,t){var n;return(n=ma.get(e))==null?void 0:n.get(t)}const b1=ru("__proto__,__v_isRef,__isVue"),Og=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ls)),uh=v1();function v1(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=kt(this);for(let o=0,r=this.length;o{e[t]=function(...n){Zs(),pu();const s=kt(this)[t].apply(this,n);return gu(),ti(),s}}),e}function y1(e){const t=kt(this);return Ae(t,"has",e),t.hasOwnProperty(e)}class Dg{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const i=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?D1:Ng:o?Rg:Lg).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ht(t);if(!i){if(r&&It(uh,n))return Reflect.get(uh,n,s);if(n==="hasOwnProperty")return y1}const a=Reflect.get(t,n,s);return(ls(n)?Og.has(n):b1(n))||(i||Ae(t,"get",n),o)?a:re(a)?r&&cu(n)?a:a.value:Vt(a)?i?Bg(a):or(a):a}}class Ig extends Dg{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];if(!this._shallow){const l=Ii(o);if(!vi(s)&&!Ii(s)&&(o=kt(o),s=kt(s)),!ht(t)&&re(o)&&!re(s))return l?!1:(o.value=s,!0)}const r=ht(t)&&cu(n)?Number(n)e,za=e=>Reflect.getPrototypeOf(e);function Mr(e,t,n=!1,s=!1){e=e.__v_raw;const i=kt(e),o=kt(t);n||(cs(t,o)&&Ae(i,"get",t),Ae(i,"get",o));const{has:r}=za(i),a=s?mu:n?vu:Ho;if(r.call(i,t))return a(e.get(t));if(r.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Or(e,t=!1){const n=this.__v_raw,s=kt(n),i=kt(e);return t||(cs(e,i)&&Ae(s,"has",e),Ae(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Dr(e,t=!1){return e=e.__v_raw,!t&&Ae(kt(e),"iterate",Ws),Reflect.get(e,"size",e)}function dh(e){e=kt(e);const t=kt(this);return za(t).has.call(t,e)||(t.add(e),Dn(t,"add",e,e)),this}function hh(e,t){t=kt(t);const n=kt(this),{has:s,get:i}=za(n);let o=s.call(n,e);o||(e=kt(e),o=s.call(n,e));const r=i.call(n,e);return n.set(e,t),o?cs(t,r)&&Dn(n,"set",e,t):Dn(n,"add",e,t),this}function fh(e){const t=kt(this),{has:n,get:s}=za(t);let i=n.call(t,e);i||(e=kt(e),i=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return i&&Dn(t,"delete",e,void 0),o}function ph(){const e=kt(this),t=e.size!==0,n=e.clear();return t&&Dn(e,"clear",void 0,void 0),n}function Ir(e,t){return function(s,i){const o=this,r=o.__v_raw,a=kt(r),l=t?mu:e?vu:Ho;return!e&&Ae(a,"iterate",Ws),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function Lr(e,t,n){return function(...s){const i=this.__v_raw,o=kt(i),r=Ei(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...s),u=n?mu:t?vu:Ho;return!t&&Ae(o,"iterate",l?dc:Ws),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function A1(){const e={get(o){return Mr(this,o)},get size(){return Dr(this)},has:Or,add:dh,set:hh,delete:fh,clear:ph,forEach:Ir(!1,!1)},t={get(o){return Mr(this,o,!1,!0)},get size(){return Dr(this)},has:Or,add:dh,set:hh,delete:fh,clear:ph,forEach:Ir(!1,!0)},n={get(o){return Mr(this,o,!0)},get size(){return Dr(this,!0)},has(o){return Or.call(this,o,!0)},add:jn("add"),set:jn("set"),delete:jn("delete"),clear:jn("clear"),forEach:Ir(!0,!1)},s={get(o){return Mr(this,o,!0,!0)},get size(){return Dr(this,!0)},has(o){return Or.call(this,o,!0)},add:jn("add"),set:jn("set"),delete:jn("delete"),clear:jn("clear"),forEach:Ir(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Lr(o,!1,!1),n[o]=Lr(o,!0,!1),t[o]=Lr(o,!1,!0),s[o]=Lr(o,!0,!0)}),[e,n,t,s]}const[C1,T1,P1,k1]=A1();function _u(e,t){const n=t?e?k1:P1:e?T1:C1;return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(It(n,i)&&i in s?n:s,i,o)}const $1={get:_u(!1,!1)},M1={get:_u(!1,!0)},O1={get:_u(!0,!1)},Lg=new WeakMap,Rg=new WeakMap,Ng=new WeakMap,D1=new WeakMap;function I1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function L1(e){return e.__v_skip||!Object.isExtensible(e)?0:I1(o1(e))}function or(e){return Ii(e)?e:bu(e,!1,w1,$1,Lg)}function Fg(e){return bu(e,!1,S1,M1,Rg)}function Bg(e){return bu(e,!0,E1,O1,Ng)}function bu(e,t,n,s,i){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=L1(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return i.set(e,a),a}function is(e){return Ii(e)?is(e.__v_raw):!!(e&&e.__v_isReactive)}function Ii(e){return!!(e&&e.__v_isReadonly)}function vi(e){return!!(e&&e.__v_isShallow)}function Ua(e){return is(e)||Ii(e)}function kt(e){const t=e&&e.__v_raw;return t?kt(t):e}function rr(e){return pa(e,"__v_skip",!0),e}const Ho=e=>Vt(e)?or(e):e,vu=e=>Vt(e)?Bg(e):e;class Vg{constructor(t,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new fu(()=>t(this._value),()=>hc(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=kt(this);return Hg(t),(!t._cacheable||t.effect.dirty)&&cs(t._value,t._value=t.effect.run())&&hc(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function R1(e,t,n=!1){let s,i;const o=xt(e);return o?(s=e,i=ze):(s=e.get,i=e.set),new Vg(s,i,o||!i,n)}function Hg(e){ss&&js&&(e=kt(e),kg(js,e.dep||(e.dep=Mg(()=>e.dep=void 0,e instanceof Vg?e:void 0))))}function hc(e,t=3,n){e=kt(e);const s=e.dep;s&&$g(s,t)}function re(e){return!!(e&&e.__v_isRef===!0)}function Li(e){return jg(e,!1)}function yu(e){return jg(e,!0)}function jg(e,t){return re(e)?e:new N1(e,t)}class N1{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:kt(t),this._value=n?t:Ho(t)}get value(){return Hg(this),this._value}set value(t){const n=this.__v_isShallow||vi(t)||Ii(t);t=n?t:kt(t),cs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ho(t),hc(this,3))}}function os(e){return re(e)?e.value:e}const F1={get:(e,t,n)=>os(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return re(i)&&!re(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function Wg(e){return is(e)?e:new Proxy(e,F1)}function B1(e){const t=ht(e)?new Array(e.length):{};for(const n in e)t[n]=H1(e,n);return t}class V1{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return _1(kt(this._object),this._key)}}function H1(e,t,n){const s=e[t];return re(s)?s:new V1(e,t,n)}function rs(e,t,n,s){let i;try{i=s?e(...s):e()}catch(o){ar(o,t,n)}return i}function qe(e,t,n,s){if(xt(e)){const o=rs(e,t,n,s);return o&&_g(o)&&o.catch(r=>{ar(r,t,n)}),o}const i=[];for(let o=0;o>>1,i=pe[s],o=Wo(i);oln&&pe.splice(t,1)}function pc(e){ht(e)?Si.push(...e):(!An||!An.includes(e,e.allowRecurse?Fs+1:Fs))&&Si.push(e),Ug()}function gh(e,t,n=jo?ln+1:0){for(;nWo(n)-Wo(s)),Fs=0;Fse.id==null?1/0:e.id,U1=(e,t)=>{const n=Wo(e)-Wo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Yg(e){fc=!1,jo=!0,pe.sort(U1);try{for(ln=0;lnee(p)?p.trim():p)),d&&(i=n.map(ga))}let a,l=s[a=kl(t)]||s[a=kl(gn(t))];!l&&o&&(l=s[a=kl(Zi(t))]),l&&qe(l,e,6,i);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(c,e,6,i)}}function qg(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!xt(e)){const l=c=>{const u=qg(c,t,!0);u&&(a=!0,se(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Vt(e)&&s.set(e,null),null):(ht(o)?o.forEach(l=>r[l]=null):se(r,o),Vt(e)&&s.set(e,r),r)}function Ya(e,t){return!e||!Ha(t)?!1:(t=t.slice(2).replace(/Once$/,""),It(e,t[0].toLowerCase()+t.slice(1))||It(e,Zi(t))||It(e,t))}let Se=null,qa=null;function _a(e){const t=Se;return Se=e,qa=e&&e.type.__scopeId||null,t}function ei(e){qa=e}function ni(){qa=null}function Ut(e,t=Se,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&kh(-1);const o=_a(t);let r;try{r=e(...i)}finally{_a(o),s._d&&kh(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Ml(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:o,propsOptions:[r],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:m,inheritAttrs:_}=e;let v,x;const S=_a(e);try{if(n.shapeFlag&4){const A=i||s,y=A;v=Ze(u.call(y,A,d,o,p,f,m)),x=l}else{const A=t;v=Ze(A.length>1?A(o,{attrs:l,slots:a,emit:c}):A(o,null)),x=t.props?l:q1(l)}}catch(A){Co.length=0,ar(A,e,1),v=dt(Oe)}let P=v;if(x&&_!==!1){const A=Object.keys(x),{shapeFlag:y}=P;A.length&&y&7&&(r&&A.some(au)&&(x=G1(x,r)),P=ds(P,x))}return n.dirs&&(P=ds(P),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(P.transition=n.transition),v=P,_a(S),v}function Y1(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Ha(n))&&((t||(t={}))[n]=e[n]);return t},G1=(e,t)=>{const n={};for(const s in e)(!au(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function X1(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?mh(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;let bh=0;const J1={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,a,l,c){e==null?Z1(t,n,s,i,o,r,a,l,c):tw(e,t,n,s,i,r,a,l,c)},hydrate:ew,create:Tu,normalize:nw},Cu=J1;function zo(e,t){const n=e.props&&e.props[t];xt(n)&&n()}function Z1(e,t,n,s,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=Tu(e,i,s,t,d,n,o,r,a,l);c(null,f.pendingBranch=e.ssContent,d,null,s,f,o,r),f.deps>0?(zo(e,"onPending"),zo(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,r),Ai(f,e.ssFallback)):f.resolve(!1,!0)}function tw(e,t,n,s,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:_,isInFallback:v,isHydrating:x}=d;if(_)d.pendingBranch=f,cn(f,_)?(l(_,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():v&&(x||(l(m,p,n,s,i,null,o,r,a),Ai(d,p)))):(d.pendingId=bh++,x?(d.isHydrating=!1,d.activeBranch=_):c(_,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(m,p,n,s,i,null,o,r,a),Ai(d,p))):m&&cn(f,m)?(l(m,f,n,s,i,d,o,r,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(m&&cn(f,m))l(m,f,n,s,i,d,o,r,a),Ai(d,f);else if(zo(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=bh++,l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:P}=d;S>0?setTimeout(()=>{d.pendingId===P&&d.fallback(p)},S):S===0&&d.fallback(p)}}function Tu(e,t,n,s,i,o,r,a,l,c,u=!1){const{p:d,m:f,um:p,n:m,o:{parentNode:_,remove:v}}=c;let x;const S=iw(e);S&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const P=e.props?yg(e.props.timeout):void 0,A={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(y=!1,E=!1){const{vnode:C,activeBranch:w,pendingBranch:$,pendingId:D,effects:I,parentComponent:N,container:Q}=A;let Y=!1;if(A.isHydrating)A.isHydrating=!1;else if(!y){Y=w&&$.transition&&$.transition.mode==="out-in",Y&&(w.transition.afterLeave=()=>{D===A.pendingId&&(f($,Q,m(w),0),pc(I))});let{anchor:W}=A;w&&(W=m(w),p(w,N,A,!0)),Y||f($,Q,W,0)}Ai(A,$),A.pendingBranch=null,A.isInFallback=!1;let H=A.parent,R=!1;for(;H;){if(H.pendingBranch){H.effects.push(...I),R=!0;break}H=H.parent}!R&&!Y&&pc(I),A.effects=[],S&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),zo(C,"onResolve")},fallback(y){if(!A.pendingBranch)return;const{vnode:E,activeBranch:C,parentComponent:w,container:$,namespace:D}=A;zo(E,"onFallback");const I=m(C),N=()=>{A.isInFallback&&(d(null,y,$,I,w,null,D,a,l),Ai(A,y))},Q=y.transition&&y.transition.mode==="out-in";Q&&(C.transition.afterLeave=N),A.isInFallback=!0,p(C,w,null,!0),Q||N()},move(y,E,C){A.activeBranch&&f(A.activeBranch,y,E,C),A.container=y},next(){return A.activeBranch&&m(A.activeBranch)},registerDep(y,E){const C=!!A.pendingBranch;C&&A.deps++;const w=y.vnode.el;y.asyncDep.catch($=>{ar($,y,0)}).then($=>{if(y.isUnmounted||A.isUnmounted||A.pendingId!==y.suspenseId)return;y.asyncResolved=!0;const{vnode:D}=y;xc(y,$,!1),w&&(D.el=w);const I=!w&&y.subTree.el;E(y,D,_(w||y.subTree.el),w?null:m(y.subTree),A,r,l),I&&v(I),Eu(y,D.el),C&&--A.deps===0&&A.resolve()})},unmount(y,E){A.isUnmounted=!0,A.activeBranch&&p(A.activeBranch,n,y,E),A.pendingBranch&&p(A.pendingBranch,n,y,E)}};return A}function ew(e,t,n,s,i,o,r,a,l){const c=t.suspense=Tu(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function nw(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=vh(s?n.default:n),e.ssFallback=s?vh(n.fallback):dt(Oe)}function vh(e){let t;if(xt(e)){const n=Ri&&e._c;n&&(e._d=!1,X()),e=e(),n&&(e._d=!0,t=Ue,pm())}return ht(e)&&(e=Y1(e)),e=Ze(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function sw(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):pc(e)}function Ai(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,i=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=i,Eu(s,i))}function iw(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const ow=Symbol.for("v-scx"),rw=()=>hn(ow),Rr={};function zs(e,t,n){return Qg(e,t,n)}function Qg(e,t,{immediate:n,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=Wt){var l;if(t&&o){const y=t;t=(...E)=>{y(...E),A()}}const c=hu()===((l=ie)==null?void 0:l.scope)?ie:null;let u,d=!1,f=!1;if(re(e)?(u=()=>e.value,d=vi(e)):is(e)?(u=vi(e)||s===!1?()=>Pn(e,1):()=>Pn(e),d=!0):ht(e)?(f=!0,d=e.some(y=>is(y)||vi(y)),u=()=>e.map(y=>{if(re(y))return y.value;if(is(y))return Pn(y,vi(y)||s===!1?1:void 0);if(xt(y))return rs(y,c,2)})):xt(e)?t?u=()=>rs(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return p&&p(),qe(e,c,3,[m])}:u=ze,t&&s){const y=u;u=()=>Pn(y())}let p,m=y=>{p=P.onStop=()=>{rs(y,c,4),p=P.onStop=void 0}},_;if(tl)if(m=ze,t?n&&qe(t,c,3,[u(),f?[]:void 0,m]):u(),i==="sync"){const y=rw();_=y.__watcherHandles||(y.__watcherHandles=[])}else return ze;let v=f?new Array(e.length).fill(Rr):Rr;const x=()=>{if(!(!P.active||!P.dirty))if(t){const y=P.run();(s||d||(f?y.some((E,C)=>cs(E,v[C])):cs(y,v)))&&(p&&p(),qe(t,c,3,[y,v===Rr?void 0:f&&v[0]===Rr?[]:v,m]),v=y)}else P.run()};x.allowRecurse=!!t;let S;i==="sync"?S=x:i==="post"?S=()=>we(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),S=()=>wu(x));const P=new fu(u,ze,S),A=()=>{P.stop(),c&&c.scope&&lu(c.scope.effects,P)};return t?n?x():v=P.run():i==="post"?we(P.run.bind(P),c&&c.suspense):P.run(),_&&_.push(A),A}function aw(e,t,n){const s=this.proxy,i=ee(e)?e.includes(".")?Jg(s,e):()=>s[e]:e.bind(s,s);let o;xt(t)?o=t:(o=t.handler,n=t);const r=ie;Ni(this);const a=Qg(i,o.bind(s),n);return r?Ni(r):Us(),a}function Jg(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),re(e))Pn(e.value,t,n,s);else if(ht(e))for(let i=0;i{Pn(i,t,n,s)});else if(vg(e))for(const i in e)Pn(e[i],t,n,s);return e}function bt(e,t){const n=Se;if(n===null)return e;const s=el(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),$u(()=>{e.isUnmounting=!0}),e}const He=[Function,Array],tm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:He,onEnter:He,onAfterEnter:He,onEnterCancelled:He,onBeforeLeave:He,onLeave:He,onAfterLeave:He,onLeaveCancelled:He,onBeforeAppear:He,onAppear:He,onAfterAppear:He,onAppearCancelled:He},lw={name:"BaseTransition",props:tm,setup(e,{slots:t}){const n=_m(),s=Zg();let i;return()=>{const o=t.default&&Pu(t.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){for(const _ of o)if(_.type!==Oe){r=_;break}}const a=kt(e),{mode:l}=a;if(s.isLeaving)return Ol(r);const c=yh(r);if(!c)return Ol(r);const u=Uo(c,a,s,n);Ko(c,u);const d=n.subTree,f=d&&yh(d);let p=!1;const{getTransitionKey:m}=c.type;if(m){const _=m();i===void 0?i=_:_!==i&&(i=_,p=!0)}if(f&&f.type!==Oe&&(!cn(c,f)||p)){const _=Uo(f,a,s,n);if(Ko(f,_),l==="out-in")return s.isLeaving=!0,_.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ol(r);l==="in-out"&&c.type!==Oe&&(_.delayLeave=(v,x,S)=>{const P=em(s,f);P[String(f.key)]=f,v[qn]=()=>{x(),v[qn]=void 0,delete u.delayedLeave},u.delayedLeave=S})}return r}}},cw=lw;function em(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Uo(e,t,n,s){const{appear:i,mode:o,persisted:r=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:_,onAppear:v,onAfterAppear:x,onAppearCancelled:S}=t,P=String(e.key),A=em(n,e),y=(w,$)=>{w&&qe(w,s,9,$)},E=(w,$)=>{const D=$[1];y(w,$),ht(w)?w.every(I=>I.length<=1)&&D():w.length<=1&&D()},C={mode:o,persisted:r,beforeEnter(w){let $=a;if(!n.isMounted)if(i)$=_||a;else return;w[qn]&&w[qn](!0);const D=A[P];D&&cn(e,D)&&D.el[qn]&&D.el[qn](),y($,[w])},enter(w){let $=l,D=c,I=u;if(!n.isMounted)if(i)$=v||l,D=x||c,I=S||u;else return;let N=!1;const Q=w[Nr]=Y=>{N||(N=!0,Y?y(I,[w]):y(D,[w]),C.delayedLeave&&C.delayedLeave(),w[Nr]=void 0)};$?E($,[w,Q]):Q()},leave(w,$){const D=String(e.key);if(w[Nr]&&w[Nr](!0),n.isUnmounting)return $();y(d,[w]);let I=!1;const N=w[qn]=Q=>{I||(I=!0,$(),Q?y(m,[w]):y(p,[w]),w[qn]=void 0,A[D]===e&&delete A[D])};A[D]=e,f?E(f,[w,N]):N()},clone(w){return Uo(w,t,n,s)}};return C}function Ol(e){if(Xa(e))return e=ds(e),e.children=null,e}function yh(e){return Xa(e)?e.children?e.children[0]:void 0:e}function Ko(e,t){e.shapeFlag&6&&e.component?Ko(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pu(e,t=!1,n){let s=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,Xa=e=>e.type.__isKeepAlive;function uw(e,t){nm(e,"a",t)}function dw(e,t){nm(e,"da",t)}function nm(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qa(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Xa(i.parent.vnode)&&hw(s,t,n,i),i=i.parent}}function hw(e,t,n,s){const i=Qa(t,e,s,!0);im(()=>{lu(s[t],i)},n)}function Qa(e,t,n=ie,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Zs(),Ni(n);const a=qe(t,n,e,r);return Us(),ti(),a});return s?i.unshift(o):i.push(o),o}}const Nn=e=>(t,n=ie)=>(!tl||e==="sp")&&Qa(e,(...s)=>t(...s),n),fw=Nn("bm"),ku=Nn("m"),pw=Nn("bu"),sm=Nn("u"),$u=Nn("bum"),im=Nn("um"),gw=Nn("sp"),mw=Nn("rtg"),_w=Nn("rtc");function bw(e,t=ie){Qa("ec",e,t)}function us(e,t,n,s){let i;const o=n&&n[s];if(ht(e)||ee(e)){i=new Array(e.length);for(let r=0,a=e.length;rt(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,l=r.length;ae?bm(e)?el(e)||e.proxy:gc(e.parent):null,Ao=se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gc(e.parent),$root:e=>gc(e.root),$emit:e=>e.emit,$options:e=>Mu(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,wu(e.update)}),$nextTick:e=>e.n||(e.n=Ka.bind(e.proxy)),$watch:e=>aw.bind(e)}),Dl=(e,t)=>e!==Wt&&!e.__isScriptSetup&&It(e,t),vw={get({_:e},t){const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=r[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Dl(s,t))return r[t]=1,s[t];if(i!==Wt&&It(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&It(c,t))return r[t]=3,o[t];if(n!==Wt&&It(n,t))return r[t]=4,n[t];mc&&(r[t]=0)}}const u=Ao[t];let d,f;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Wt&&It(n,t))return r[t]=4,n[t];if(f=l.config.globalProperties,It(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return Dl(i,t)?(i[t]=n,!0):s!==Wt&&It(s,t)?(s[t]=n,!0):It(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!n[r]||e!==Wt&&It(e,r)||Dl(t,r)||(a=o[0])&&It(a,r)||It(s,r)||It(Ao,r)||It(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:It(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xh(e){return ht(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let mc=!0;function yw(e){const t=Mu(e),n=e.proxy,s=e.ctx;mc=!1,t.beforeCreate&&wh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:_,deactivated:v,beforeDestroy:x,beforeUnmount:S,destroyed:P,unmounted:A,render:y,renderTracked:E,renderTriggered:C,errorCaptured:w,serverPrefetch:$,expose:D,inheritAttrs:I,components:N,directives:Q,filters:Y}=t;if(c&&xw(c,s,null),r)for(const W in r){const U=r[W];xt(U)&&(s[W]=U.bind(n))}if(i){const W=i.call(n,n);Vt(W)&&(e.data=or(W))}if(mc=!0,o)for(const W in o){const U=o[W],rt=xt(U)?U.bind(n,n):xt(U.get)?U.get.bind(n,n):ze,ct=!xt(U)&&xt(U.set)?U.set.bind(n):ze,mt=We({get:rt,set:ct});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>mt.value,set:pt=>mt.value=pt})}if(a)for(const W in a)om(a[W],s,n,W);if(l){const W=xt(l)?l.call(n):l;Reflect.ownKeys(W).forEach(U=>{aa(U,W[U])})}u&&wh(u,e,"c");function R(W,U){ht(U)?U.forEach(rt=>W(rt.bind(n))):U&&W(U.bind(n))}if(R(fw,d),R(ku,f),R(pw,p),R(sm,m),R(uw,_),R(dw,v),R(bw,w),R(_w,E),R(mw,C),R($u,S),R(im,A),R(gw,$),ht(D))if(D.length){const W=e.exposed||(e.exposed={});D.forEach(U=>{Object.defineProperty(W,U,{get:()=>n[U],set:rt=>n[U]=rt})})}else e.exposed||(e.exposed={});y&&e.render===ze&&(e.render=y),I!=null&&(e.inheritAttrs=I),N&&(e.components=N),Q&&(e.directives=Q)}function xw(e,t,n=ze){ht(e)&&(e=_c(e));for(const s in e){const i=e[s];let o;Vt(i)?"default"in i?o=hn(i.from||s,i.default,!0):o=hn(i.from||s):o=hn(i),re(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function wh(e,t,n){qe(ht(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function om(e,t,n,s){const i=s.includes(".")?Jg(n,s):()=>n[s];if(ee(e)){const o=t[e];xt(o)&&zs(i,o)}else if(xt(e))zs(i,e.bind(n));else if(Vt(e))if(ht(e))e.forEach(o=>om(o,t,n,s));else{const o=xt(e.handler)?e.handler.bind(n):t[e.handler];xt(o)&&zs(i,o,e)}}function Mu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(c=>ba(l,c,r,!0)),ba(l,t,r)),Vt(t)&&o.set(t,l),l}function ba(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&ba(e,o,n,!0),i&&i.forEach(r=>ba(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=ww[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const ww={data:Eh,props:Sh,emits:Sh,methods:_o,computed:_o,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:_o,directives:_o,watch:Sw,provide:Eh,inject:Ew};function Eh(e,t){return t?e?function(){return se(xt(e)?e.call(this,this):e,xt(t)?t.call(this,this):t)}:t:e}function Ew(e,t){return _o(_c(e),_c(t))}function _c(e){if(ht(e)){const t={};for(let n=0;n1)return n&&xt(t)?t.call(s&&s.proxy):t}}function Tw(){return!!(ie||Se||Yo)}function Pw(e,t,n,s=!1){const i={},o={};pa(o,Za,1),e.propsDefaults=Object.create(null),am(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:Fg(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function kw(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=kt(i),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=lm(d,t,!0);se(r,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Vt(e)&&s.set(e,wi),wi;if(ht(o))for(let u=0;u-1,p[1]=_<0||m<_,(m>-1||It(p,"default"))&&a.push(d)}}}const c=[r,a];return Vt(e)&&s.set(e,c),c}function Ah(e){return e[0]!=="$"}function Ch(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Th(e,t){return Ch(e)===Ch(t)}function Ph(e,t){return ht(t)?t.findIndex(n=>Th(n,e)):xt(t)&&Th(t,e)?0:-1}const cm=e=>e[0]==="_"||e==="$stable",Ou=e=>ht(e)?e.map(Ze):[Ze(e)],$w=(e,t,n)=>{if(t._n)return t;const s=Ut((...i)=>Ou(t(...i)),n);return s._c=!1,s},um=(e,t,n)=>{const s=e._ctx;for(const i in e){if(cm(i))continue;const o=e[i];if(xt(o))t[i]=$w(i,o,s);else if(o!=null){const r=Ou(o);t[i]=()=>r}}},dm=(e,t)=>{const n=Ou(t);e.slots.default=()=>n},Mw=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=kt(t),pa(t,"_",n)):um(t,e.slots={})}else e.slots={},t&&dm(e,t);pa(e.slots,Za,1)},Ow=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=Wt;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(se(i,t),!n&&a===1&&delete i._):(o=!t.$stable,um(t,i)),r=t}else t&&(dm(e,t),r={default:1});if(o)for(const a in i)!cm(a)&&r[a]==null&&delete i[a]};function vc(e,t,n,s,i=!1){if(ht(e)){e.forEach((f,p)=>vc(f,t&&(ht(t)?t[p]:t),n,s,i));return}if(ra(s)&&!i)return;const o=s.shapeFlag&4?el(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Wt?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(ee(c)?(u[c]=null,It(d,c)&&(d[c]=null)):re(c)&&(c.value=null)),xt(l))rs(l,a,12,[r,u]);else{const f=ee(l),p=re(l);if(f||p){const m=()=>{if(e.f){const _=f?It(d,l)?d[l]:u[l]:l.value;i?ht(_)&&lu(_,o):ht(_)?_.includes(o)||_.push(o):f?(u[l]=[o],It(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else f?(u[l]=r,It(d,l)&&(d[l]=r)):p&&(l.value=r,e.k&&(u[e.k]=r))};r?(m.id=-1,we(m,n)):m()}}}const we=sw;function Dw(e){return Iw(e)}function Iw(e,t){const n=xg();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=ze,insertStaticContent:m}=e,_=(T,O,L,V=null,K=null,G=null,tt=void 0,J=null,B=!!O.dynamicChildren)=>{if(T===O)return;T&&!cn(T,O)&&(V=j(T),pt(T,K,G,!0),T=null),O.patchFlag===-2&&(B=!1,O.dynamicChildren=null);const{type:q,ref:lt,shapeFlag:ft}=O;switch(q){case Ja:v(T,O,L,V);break;case Oe:x(T,O,L,V);break;case la:T==null&&S(O,L,V,tt);break;case Qt:N(T,O,L,V,K,G,tt,J,B);break;default:ft&1?y(T,O,L,V,K,G,tt,J,B):ft&6?Q(T,O,L,V,K,G,tt,J,B):(ft&64||ft&128)&&q.process(T,O,L,V,K,G,tt,J,B,Z)}lt!=null&&K&&vc(lt,T&&T.ref,G,O||T,!O)},v=(T,O,L,V)=>{if(T==null)s(O.el=a(O.children),L,V);else{const K=O.el=T.el;O.children!==T.children&&c(K,O.children)}},x=(T,O,L,V)=>{T==null?s(O.el=l(O.children||""),L,V):O.el=T.el},S=(T,O,L,V)=>{[T.el,T.anchor]=m(T.children,O,L,V,T.el,T.anchor)},P=({el:T,anchor:O},L,V)=>{let K;for(;T&&T!==O;)K=f(T),s(T,L,V),T=K;s(O,L,V)},A=({el:T,anchor:O})=>{let L;for(;T&&T!==O;)L=f(T),i(T),T=L;i(O)},y=(T,O,L,V,K,G,tt,J,B)=>{O.type==="svg"?tt="svg":O.type==="math"&&(tt="mathml"),T==null?E(O,L,V,K,G,tt,J,B):$(T,O,K,G,tt,J,B)},E=(T,O,L,V,K,G,tt,J)=>{let B,q;const{props:lt,shapeFlag:ft,transition:ut,dirs:_t}=T;if(B=T.el=r(T.type,G,lt&<.is,lt),ft&8?u(B,T.children):ft&16&&w(T.children,B,null,V,K,Il(T,G),tt,J),_t&&ks(T,null,V,"created"),C(B,T,T.scopeId,tt,V),lt){for(const Dt in lt)Dt!=="value"&&!ia(Dt)&&o(B,Dt,null,lt[Dt],G,T.children,V,K,Ct);"value"in lt&&o(B,"value",null,lt.value,G),(q=lt.onVnodeBeforeMount)&&on(q,V,T)}_t&&ks(T,null,V,"beforeMount");const St=Lw(K,ut);St&&ut.beforeEnter(B),s(B,O,L),((q=lt&<.onVnodeMounted)||St||_t)&&we(()=>{q&&on(q,V,T),St&&ut.enter(B),_t&&ks(T,null,V,"mounted")},K)},C=(T,O,L,V,K)=>{if(L&&p(T,L),V)for(let G=0;G{for(let q=B;q{const J=O.el=T.el;let{patchFlag:B,dynamicChildren:q,dirs:lt}=O;B|=T.patchFlag&16;const ft=T.props||Wt,ut=O.props||Wt;let _t;if(L&&$s(L,!1),(_t=ut.onVnodeBeforeUpdate)&&on(_t,L,O,T),lt&&ks(O,T,L,"beforeUpdate"),L&&$s(L,!0),q?D(T.dynamicChildren,q,J,L,V,Il(O,K),G):tt||U(T,O,J,null,L,V,Il(O,K),G,!1),B>0){if(B&16)I(J,O,ft,ut,L,V,K);else if(B&2&&ft.class!==ut.class&&o(J,"class",null,ut.class,K),B&4&&o(J,"style",ft.style,ut.style,K),B&8){const St=O.dynamicProps;for(let Dt=0;Dt{_t&&on(_t,L,O,T),lt&&ks(O,T,L,"updated")},V)},D=(T,O,L,V,K,G,tt)=>{for(let J=0;J{if(L!==V){if(L!==Wt)for(const J in L)!ia(J)&&!(J in V)&&o(T,J,L[J],null,tt,O.children,K,G,Ct);for(const J in V){if(ia(J))continue;const B=V[J],q=L[J];B!==q&&J!=="value"&&o(T,J,q,B,tt,O.children,K,G,Ct)}"value"in V&&o(T,"value",L.value,V.value,tt)}},N=(T,O,L,V,K,G,tt,J,B)=>{const q=O.el=T?T.el:a(""),lt=O.anchor=T?T.anchor:a("");let{patchFlag:ft,dynamicChildren:ut,slotScopeIds:_t}=O;_t&&(J=J?J.concat(_t):_t),T==null?(s(q,L,V),s(lt,L,V),w(O.children,L,lt,K,G,tt,J,B)):ft>0&&ft&64&&ut&&T.dynamicChildren?(D(T.dynamicChildren,ut,L,K,G,tt,J),(O.key!=null||K&&O===K.subTree)&&hm(T,O,!0)):U(T,O,L,lt,K,G,tt,J,B)},Q=(T,O,L,V,K,G,tt,J,B)=>{O.slotScopeIds=J,T==null?O.shapeFlag&512?K.ctx.activate(O,L,V,tt,B):Y(O,L,V,K,G,tt,B):H(T,O,B)},Y=(T,O,L,V,K,G,tt)=>{const J=T.component=zw(T,V,K);if(Xa(T)&&(J.ctx.renderer=Z),Uw(J),J.asyncDep){if(K&&K.registerDep(J,R),!T.el){const B=J.subTree=dt(Oe);x(null,B,O,L)}}else R(J,T,O,L,K,G,tt)},H=(T,O,L)=>{const V=O.component=T.component;if(X1(T,O,L))if(V.asyncDep&&!V.asyncResolved){W(V,O,L);return}else V.next=O,z1(V.update),V.effect.dirty=!0,V.update();else O.el=T.el,V.vnode=O},R=(T,O,L,V,K,G,tt)=>{const J=()=>{if(T.isMounted){let{next:lt,bu:ft,u:ut,parent:_t,vnode:St}=T;{const ys=fm(T);if(ys){lt&&(lt.el=St.el,W(T,lt,tt)),ys.asyncDep.then(()=>{T.isUnmounted||J()});return}}let Dt=lt,Nt;$s(T,!1),lt?(lt.el=St.el,W(T,lt,tt)):lt=St,ft&&oa(ft),(Nt=lt.props&<.props.onVnodeBeforeUpdate)&&on(Nt,_t,lt,St),$s(T,!0);const Gt=Ml(T),Te=T.subTree;T.subTree=Gt,_(Te,Gt,d(Te.el),j(Te),T,K,G),lt.el=Gt.el,Dt===null&&Eu(T,Gt.el),ut&&we(ut,K),(Nt=lt.props&<.props.onVnodeUpdated)&&we(()=>on(Nt,_t,lt,St),K)}else{let lt;const{el:ft,props:ut}=O,{bm:_t,m:St,parent:Dt}=T,Nt=ra(O);if($s(T,!1),_t&&oa(_t),!Nt&&(lt=ut&&ut.onVnodeBeforeMount)&&on(lt,Dt,O),$s(T,!0),ft&&F){const Gt=()=>{T.subTree=Ml(T),F(ft,T.subTree,T,K,null)};Nt?O.type.__asyncLoader().then(()=>!T.isUnmounted&&Gt()):Gt()}else{const Gt=T.subTree=Ml(T);_(null,Gt,L,V,T,K,G),O.el=Gt.el}if(St&&we(St,K),!Nt&&(lt=ut&&ut.onVnodeMounted)){const Gt=O;we(()=>on(lt,Dt,Gt),K)}(O.shapeFlag&256||Dt&&ra(Dt.vnode)&&Dt.vnode.shapeFlag&256)&&T.a&&we(T.a,K),T.isMounted=!0,O=L=V=null}},B=T.effect=new fu(J,ze,()=>wu(q),T.scope),q=T.update=()=>{B.dirty&&B.run()};q.id=T.uid,$s(T,!0),q()},W=(T,O,L)=>{O.component=T;const V=T.vnode.props;T.vnode=O,T.next=null,kw(T,O.props,V,L),Ow(T,O.children,L),Zs(),gh(T),ti()},U=(T,O,L,V,K,G,tt,J,B=!1)=>{const q=T&&T.children,lt=T?T.shapeFlag:0,ft=O.children,{patchFlag:ut,shapeFlag:_t}=O;if(ut>0){if(ut&128){ct(q,ft,L,V,K,G,tt,J,B);return}else if(ut&256){rt(q,ft,L,V,K,G,tt,J,B);return}}_t&8?(lt&16&&Ct(q,K,G),ft!==q&&u(L,ft)):lt&16?_t&16?ct(q,ft,L,V,K,G,tt,J,B):Ct(q,K,G,!0):(lt&8&&u(L,""),_t&16&&w(ft,L,V,K,G,tt,J,B))},rt=(T,O,L,V,K,G,tt,J,B)=>{T=T||wi,O=O||wi;const q=T.length,lt=O.length,ft=Math.min(q,lt);let ut;for(ut=0;utlt?Ct(T,K,G,!0,!1,ft):w(O,L,V,K,G,tt,J,B,ft)},ct=(T,O,L,V,K,G,tt,J,B)=>{let q=0;const lt=O.length;let ft=T.length-1,ut=lt-1;for(;q<=ft&&q<=ut;){const _t=T[q],St=O[q]=B?Gn(O[q]):Ze(O[q]);if(cn(_t,St))_(_t,St,L,null,K,G,tt,J,B);else break;q++}for(;q<=ft&&q<=ut;){const _t=T[ft],St=O[ut]=B?Gn(O[ut]):Ze(O[ut]);if(cn(_t,St))_(_t,St,L,null,K,G,tt,J,B);else break;ft--,ut--}if(q>ft){if(q<=ut){const _t=ut+1,St=_tut)for(;q<=ft;)pt(T[q],K,G,!0),q++;else{const _t=q,St=q,Dt=new Map;for(q=St;q<=ut;q++){const he=O[q]=B?Gn(O[q]):Ze(O[q]);he.key!=null&&Dt.set(he.key,q)}let Nt,Gt=0;const Te=ut-St+1;let ys=!1,mr=0;const xs=new Array(Te);for(q=0;q=Te){pt(he,K,G,!0);continue}let Fe;if(he.key!=null)Fe=Dt.get(he.key);else for(Nt=St;Nt<=ut;Nt++)if(xs[Nt-St]===0&&cn(he,O[Nt])){Fe=Nt;break}Fe===void 0?pt(he,K,G,!0):(xs[Fe-St]=q+1,Fe>=mr?mr=Fe:ys=!0,_(he,O[Fe],L,null,K,G,tt,J,B),Gt++)}const _r=ys?Rw(xs):wi;for(Nt=_r.length-1,q=Te-1;q>=0;q--){const he=St+q,Fe=O[he],Bn=he+1{const{el:G,type:tt,transition:J,children:B,shapeFlag:q}=T;if(q&6){mt(T.component.subTree,O,L,V);return}if(q&128){T.suspense.move(O,L,V);return}if(q&64){tt.move(T,O,L,Z);return}if(tt===Qt){s(G,O,L);for(let ft=0;ftJ.enter(G),K);else{const{leave:ft,delayLeave:ut,afterLeave:_t}=J,St=()=>s(G,O,L),Dt=()=>{ft(G,()=>{St(),_t&&_t()})};ut?ut(G,St,Dt):Dt()}else s(G,O,L)},pt=(T,O,L,V=!1,K=!1)=>{const{type:G,props:tt,ref:J,children:B,dynamicChildren:q,shapeFlag:lt,patchFlag:ft,dirs:ut}=T;if(J!=null&&vc(J,null,L,T,!0),lt&256){O.ctx.deactivate(T);return}const _t=lt&1&&ut,St=!ra(T);let Dt;if(St&&(Dt=tt&&tt.onVnodeBeforeUnmount)&&on(Dt,O,T),lt&6)Mt(T.component,L,V);else{if(lt&128){T.suspense.unmount(L,V);return}_t&&ks(T,null,O,"beforeUnmount"),lt&64?T.type.remove(T,O,L,K,Z,V):q&&(G!==Qt||ft>0&&ft&64)?Ct(q,O,L,!1,!0):(G===Qt&&ft&384||!K&<&16)&&Ct(B,O,L),V&&Pt(T)}(St&&(Dt=tt&&tt.onVnodeUnmounted)||_t)&&we(()=>{Dt&&on(Dt,O,T),_t&&ks(T,null,O,"unmounted")},L)},Pt=T=>{const{type:O,el:L,anchor:V,transition:K}=T;if(O===Qt){At(L,V);return}if(O===la){A(T);return}const G=()=>{i(L),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(T.shapeFlag&1&&K&&!K.persisted){const{leave:tt,delayLeave:J}=K,B=()=>tt(L,G);J?J(T.el,G,B):B()}else G()},At=(T,O)=>{let L;for(;T!==O;)L=f(T),i(T),T=L;i(O)},Mt=(T,O,L)=>{const{bum:V,scope:K,update:G,subTree:tt,um:J}=T;V&&oa(V),K.stop(),G&&(G.active=!1,pt(tt,T,O,L)),J&&we(J,O),we(()=>{T.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},Ct=(T,O,L,V=!1,K=!1,G=0)=>{for(let tt=G;ttT.shapeFlag&6?j(T.component.subTree):T.shapeFlag&128?T.suspense.next():f(T.anchor||T.el),nt=(T,O,L)=>{T==null?O._vnode&&pt(O._vnode,null,null,!0):_(O._vnode||null,T,O,null,null,null,L),gh(),Kg(),O._vnode=T},Z={p:_,um:pt,m:mt,r:Pt,mt:Y,mc:w,pc:U,pbc:D,n:j,o:e};let at,F;return t&&([at,F]=t(Z)),{render:nt,hydrate:at,createApp:Cw(nt,at)}}function Il({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $s({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Lw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hm(e,t,n=!1){const s=e.children,i=t.children;if(ht(s)&&ht(i))for(let o=0;o>1,e[n[a]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function fm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fm(t)}const Nw=e=>e.__isTeleport,Qt=Symbol.for("v-fgt"),Ja=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),la=Symbol.for("v-stc"),Co=[];let Ue=null;function X(e=!1){Co.push(Ue=e?null:[])}function pm(){Co.pop(),Ue=Co[Co.length-1]||null}let Ri=1;function kh(e){Ri+=e}function gm(e){return e.dynamicChildren=Ri>0?Ue||wi:null,pm(),Ri>0&&Ue&&Ue.push(e),e}function ot(e,t,n,s,i,o){return gm(g(e,t,n,s,i,o,!0))}function de(e,t,n,s,i){return gm(dt(e,t,n,s,i,!0))}function va(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const Za="__vInternal",mm=({key:e})=>e??null,ca=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||re(e)||xt(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,s=0,i=null,o=e===Qt?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mm(t),ref:t&&ca(t),scopeId:qa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Se};return a?(Du(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ee(n)?8:16),Ri>0&&!r&&Ue&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ue.push(l),l}const dt=Fw;function Fw(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Gg)&&(e=Oe),va(e)){const a=ds(e,t,!0);return n&&Du(a,n),Ri>0&&!o&&Ue&&(a.shapeFlag&6?Ue[Ue.indexOf(e)]=a:Ue.push(a)),a.patchFlag|=-2,a}if(Xw(e)&&(e=e.__vccOpts),t){t=Bw(t);let{class:a,style:l}=t;a&&!ee(a)&&(t.class=jt(a)),Vt(l)&&(Ua(l)&&!ht(l)&&(l=se({},l)),t.style=uu(l))}const r=ee(e)?1:Q1(e)?128:Nw(e)?64:Vt(e)?4:xt(e)?2:0;return g(e,t,n,s,i,r,o,!0)}function Bw(e){return e?Ua(e)||Za in e?se({},e):e:null}function ds(e,t,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=e,a=t?Hw(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&mm(a),ref:t&&t.ref?n&&i?ht(i)?i.concat(ca(t)):[i,ca(t)]:ca(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ds(e.ssContent),ssFallback:e.ssFallback&&ds(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function gt(e=" ",t=0){return dt(Ja,null,e,t)}function Vw(e,t){const n=dt(la,null,e);return n.staticCount=t,n}function Kt(e="",t=!1){return t?(X(),de(Oe,null,e)):dt(Oe,null,e)}function Ze(e){return e==null||typeof e=="boolean"?dt(Oe):ht(e)?dt(Qt,null,e.slice()):typeof e=="object"?Gn(e):dt(Ja,null,String(e))}function Gn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ds(e)}function Du(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ht(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Du(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Za in t)?t._ctx=Se:i===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xt(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),s&64?(n=16,t=[gt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Hw(...e){const t={};for(let n=0;nie||Se;let Iu,yc;{const e=xg(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Iu=t("__VUE_INSTANCE_SETTERS__",n=>ie=n),yc=t("__VUE_SSR_SETTERS__",n=>tl=n)}const Ni=e=>{Iu(e),e.scope.on()},Us=()=>{ie&&ie.scope.off(),Iu(null)};function bm(e){return e.vnode.shapeFlag&4}let tl=!1;function Uw(e,t=!1){t&&yc(t);const{props:n,children:s}=e.vnode,i=bm(e);Pw(e,n,i,t),Mw(e,s);const o=i?Kw(e,t):void 0;return t&&yc(!1),o}function Kw(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rr(new Proxy(e.ctx,vw));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?qw(e):null;Ni(e),Zs();const o=rs(s,e,0,[e.props,i]);if(ti(),Us(),_g(o)){if(o.then(Us,Us),t)return o.then(r=>{xc(e,r,t)}).catch(r=>{ar(r,e,0)});e.asyncDep=o}else xc(e,o,t)}else vm(e,t)}function xc(e,t,n){xt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=Wg(t)),vm(e,n)}let $h;function vm(e,t,n){const s=e.type;if(!e.render){if(!t&&$h&&!s.render){const i=s.template||Mu(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=se(se({isCustomElement:o,delimiters:a},r),l);s.render=$h(i,c)}}e.render=s.render||ze}{Ni(e),Zs();try{yw(e)}finally{ti(),Us()}}}function Yw(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function qw(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Yw(e)},slots:e.slots,emit:e.emit,expose:t}}function el(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Wg(rr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ao)return Ao[n](e)},has(t,n){return n in t||n in Ao}}))}function Gw(e,t=!0){return xt(e)?e.displayName||e.name:e.name||t&&e.__name}function Xw(e){return xt(e)&&"__vccOpts"in e}const We=(e,t)=>R1(e,t,tl);function Fi(e,t,n){const s=arguments.length;return s===2?Vt(t)&&!ht(t)?va(t)?dt(e,null,[t]):dt(e,t):dt(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&va(n)&&(n=[n]),dt(e,t,n))}const ym="3.4.3",Qw="http://www.w3.org/2000/svg",Jw="http://www.w3.org/1998/Math/MathML",Xn=typeof document<"u"?document:null,Mh=Xn&&Xn.createElement("template"),Zw={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?Xn.createElementNS(Qw,e):t==="mathml"?Xn.createElementNS(Jw,e):Xn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Xn.createTextNode(e),createComment:e=>Xn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Mh.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const a=Mh.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Wn="transition",co="animation",Bi=Symbol("_vtc"),Ln=(e,{slots:t})=>Fi(cw,wm(e),t);Ln.displayName="Transition";const xm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},tE=Ln.props=se({},tm,xm),Ms=(e,t=[])=>{ht(e)?e.forEach(n=>n(...t)):e&&e(...t)},Oh=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function wm(e){const t={};for(const N in e)N in xm||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=eE(i),_=m&&m[0],v=m&&m[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:P,onLeave:A,onLeaveCancelled:y,onBeforeAppear:E=x,onAppear:C=S,onAppearCancelled:w=P}=t,$=(N,Q,Y)=>{Kn(N,Q?u:a),Kn(N,Q?c:r),Y&&Y()},D=(N,Q)=>{N._isLeaving=!1,Kn(N,d),Kn(N,p),Kn(N,f),Q&&Q()},I=N=>(Q,Y)=>{const H=N?C:S,R=()=>$(Q,N,Y);Ms(H,[Q,R]),Dh(()=>{Kn(Q,N?l:o),wn(Q,N?u:a),Oh(H)||Ih(Q,s,_,R)})};return se(t,{onBeforeEnter(N){Ms(x,[N]),wn(N,o),wn(N,r)},onBeforeAppear(N){Ms(E,[N]),wn(N,l),wn(N,c)},onEnter:I(!1),onAppear:I(!0),onLeave(N,Q){N._isLeaving=!0;const Y=()=>D(N,Q);wn(N,d),Sm(),wn(N,f),Dh(()=>{N._isLeaving&&(Kn(N,d),wn(N,p),Oh(A)||Ih(N,s,v,Y))}),Ms(A,[N,Y])},onEnterCancelled(N){$(N,!1),Ms(P,[N])},onAppearCancelled(N){$(N,!0),Ms(w,[N])},onLeaveCancelled(N){D(N),Ms(y,[N])}})}function eE(e){if(e==null)return null;if(Vt(e))return[Ll(e.enter),Ll(e.leave)];{const t=Ll(e);return[t,t]}}function Ll(e){return yg(e)}function wn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bi]||(e[Bi]=new Set)).add(t)}function Kn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Bi];n&&(n.delete(t),n.size||(e[Bi]=void 0))}function Dh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nE=0;function Ih(e,t,n,s){const i=e._endId=++nE,o=()=>{i===e._endId&&s()};if(n)return setTimeout(o,n);const{type:r,timeout:a,propCount:l}=Em(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[m]||"").split(", "),i=s(`${Wn}Delay`),o=s(`${Wn}Duration`),r=Lh(i,o),a=s(`${co}Delay`),l=s(`${co}Duration`),c=Lh(a,l);let u=null,d=0,f=0;t===Wn?r>0&&(u=Wn,d=r,f=o.length):t===co?c>0&&(u=co,d=c,f=l.length):(d=Math.max(r,c),u=d>0?r>c?Wn:co:null,f=u?u===Wn?o.length:l.length:0);const p=u===Wn&&/\b(transform|all)(,|$)/.test(s(`${Wn}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Lh(e,t){for(;e.lengthRh(n)+Rh(e[s])))}function Rh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sm(){return document.body.offsetHeight}function sE(e,t,n){const s=e[Bi];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const iE=Symbol("_vod"),oE=Symbol("");function rE(e,t,n){const s=e.style,i=ee(n);if(n&&!i){if(t&&!ee(t))for(const o in t)n[o]==null&&wc(s,o,"");for(const o in n)wc(s,o,n[o])}else{const o=s.display;if(i){if(t!==n){const r=s[oE];r&&(n+=";"+r),s.cssText=n}}else t&&e.removeAttribute("style");iE in e&&(s.display=o)}}const Nh=/\s*!important$/;function wc(e,t,n){if(ht(n))n.forEach(s=>wc(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=aE(e,t);Nh.test(n)?e.setProperty(Zi(s),n.replace(Nh,""),"important"):e[s]=n}}const Fh=["Webkit","Moz","ms"],Rl={};function aE(e,t){const n=Rl[t];if(n)return n;let s=gn(t);if(s!=="filter"&&s in e)return Rl[t]=s;s=Wa(s);for(let i=0;iNl||(fE.then(()=>Nl=0),Nl=Date.now());function gE(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(mE(s,n.value),t,5,[s])};return n.value=e,n.attached=pE(),n}function mE(e,t){if(ht(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const jh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_E=(e,t,n,s,i,o,r,a,l)=>{const c=i==="svg";t==="class"?sE(e,s,c):t==="style"?rE(e,n,s):Ha(t)?au(t)||dE(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bE(e,t,s,c))?cE(e,t,s,o,r,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),lE(e,t,s,c))};function bE(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&jh(t)&&xt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return jh(t)&&ee(n)?!1:t in e}const Am=new WeakMap,Cm=new WeakMap,ya=Symbol("_moveCb"),Wh=Symbol("_enterCb"),Tm={name:"TransitionGroup",props:se({},tE,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_m(),s=Zg();let i,o;return sm(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!EE(i[0].el,n.vnode.el,r))return;i.forEach(yE),i.forEach(xE);const a=i.filter(wE);Sm(),a.forEach(l=>{const c=l.el,u=c.style;wn(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[ya]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[ya]=null,Kn(c,r))};c.addEventListener("transitionend",d)})}),()=>{const r=kt(e),a=wm(r);let l=r.tag||Qt;i=o,o=t.default?Pu(t.default()):[];for(let c=0;cdelete e.mode;Tm.props;const Lu=Tm;function yE(e){const t=e.el;t[ya]&&t[ya](),t[Wh]&&t[Wh]()}function xE(e){Cm.set(e,e.el.getBoundingClientRect())}function wE(e){const t=Am.get(e),n=Cm.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${i}px)`,o.transitionDuration="0s",e}}function EE(e,t,n){const s=e.cloneNode(),i=e[Bi];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=Em(s);return o.removeChild(s),r}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ht(t)?n=>oa(t,n):t};function SE(e){e.target.composing=!0}function zh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ge=Symbol("_assign"),vt={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Ge]=hs(i);const o=s||i.props&&i.props.type==="number";Tn(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=ga(a)),e[Ge](a)}),n&&Tn(e,"change",()=>{e.value=e.value.trim()}),t||(Tn(e,"compositionstart",SE),Tn(e,"compositionend",zh),Tn(e,"change",zh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},o){if(e[Ge]=hs(o),e.composing)return;const r=i||e.type==="number"?ga(e.value):e.value,a=t??"";r!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},lr={deep:!0,created(e,t,n){e[Ge]=hs(n),Tn(e,"change",()=>{const s=e._modelValue,i=Vi(e),o=e.checked,r=e[Ge];if(ht(s)){const a=du(s,i),l=a!==-1;if(o&&!l)r(s.concat(i));else if(!o&&l){const c=[...s];c.splice(a,1),r(c)}}else if(Ji(s)){const a=new Set(s);o?a.add(i):a.delete(i),r(a)}else r(Pm(e,o))})},mounted:Uh,beforeUpdate(e,t,n){e[Ge]=hs(n),Uh(e,t,n)}};function Uh(e,{value:t,oldValue:n},s){e._modelValue=t,ht(t)?e.checked=du(t,s.props.value)>-1:Ji(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Xs(t,Pm(e,!0)))}const AE={created(e,{value:t},n){e.checked=Xs(t,n.props.value),e[Ge]=hs(n),Tn(e,"change",()=>{e[Ge](Vi(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ge]=hs(s),t!==n&&(e.checked=Xs(t,s.props.value))}},CE={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=Ji(t);Tn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?ga(Vi(r)):Vi(r));e[Ge](e.multiple?i?new Set(o):o:o[0])}),e[Ge]=hs(s)},mounted(e,{value:t}){Kh(e,t)},beforeUpdate(e,t,n){e[Ge]=hs(n)},updated(e,{value:t}){Kh(e,t)}};function Kh(e,t){const n=e.multiple;if(!(n&&!ht(t)&&!Ji(t))){for(let s=0,i=e.options.length;s-1:o.selected=t.has(r);else if(Xs(Vi(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vi(e){return"_value"in e?e._value:e.value}function Pm(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const TE={created(e,t,n){Fr(e,t,n,null,"created")},mounted(e,t,n){Fr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Fr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Fr(e,t,n,s,"updated")}};function PE(e,t){switch(e){case"SELECT":return CE;case"TEXTAREA":return vt;default:switch(t){case"checkbox":return lr;case"radio":return AE;default:return vt}}}function Fr(e,t,n,s,i){const r=PE(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,s)}const kE=se({patchProp:_E},Zw);let Yh;function $E(){return Yh||(Yh=Dw(kE))}const ME=(...e)=>{const t=$E().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=DE(s);if(!i)return;const o=t._component;!xt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,OE(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function OE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function DE(e){return ee(e)?document.querySelector(e):e}var IE=!1;/*! + */(function(e,t){(function(s,n){e.exports=n(rx)})(Jp,function(s){function n(k){const h=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(k){for(const _ in k)if(_!=="default"){const O=Object.getOwnPropertyDescriptor(k,_);Object.defineProperty(h,_,O.get?O:{enumerable:!0,get:()=>k[_]})}}return h.default=k,Object.freeze(h)}const i=n(s),o=new Map,r={set(k,h,_){o.has(k)||o.set(k,new Map);const O=o.get(k);if(!O.has(h)&&O.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(O.keys())[0]}.`);return}O.set(h,_)},get(k,h){return o.has(k)&&o.get(k).get(h)||null},remove(k,h){if(!o.has(k))return;const _=o.get(k);_.delete(h),_.size===0&&o.delete(k)}},a=1e6,l=1e3,c="transitionend",d=k=>(k&&window.CSS&&window.CSS.escape&&(k=k.replace(/#([^\s"#']+)/g,(h,_)=>`#${CSS.escape(_)}`)),k),u=k=>k==null?`${k}`:Object.prototype.toString.call(k).match(/\s([a-z]+)/i)[1].toLowerCase(),f=k=>{do k+=Math.floor(Math.random()*a);while(document.getElementById(k));return k},g=k=>{if(!k)return 0;let{transitionDuration:h,transitionDelay:_}=window.getComputedStyle(k);const O=Number.parseFloat(h),U=Number.parseFloat(_);return!O&&!U?0:(h=h.split(",")[0],_=_.split(",")[0],(Number.parseFloat(h)+Number.parseFloat(_))*l)},m=k=>{k.dispatchEvent(new Event(c))},b=k=>!k||typeof k!="object"?!1:(typeof k.jquery<"u"&&(k=k[0]),typeof k.nodeType<"u"),v=k=>b(k)?k.jquery?k[0]:k:typeof k=="string"&&k.length>0?document.querySelector(d(k)):null,w=k=>{if(!b(k)||k.getClientRects().length===0)return!1;const h=getComputedStyle(k).getPropertyValue("visibility")==="visible",_=k.closest("details:not([open])");if(!_)return h;if(_!==k){const O=k.closest("summary");if(O&&O.parentNode!==_||O===null)return!1}return h},E=k=>!k||k.nodeType!==Node.ELEMENT_NODE||k.classList.contains("disabled")?!0:typeof k.disabled<"u"?k.disabled:k.hasAttribute("disabled")&&k.getAttribute("disabled")!=="false",$=k=>{if(!document.documentElement.attachShadow)return null;if(typeof k.getRootNode=="function"){const h=k.getRootNode();return h instanceof ShadowRoot?h:null}return k instanceof ShadowRoot?k:k.parentNode?$(k.parentNode):null},T=()=>{},y=k=>{k.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,C=[],S=k=>{document.readyState==="loading"?(C.length||document.addEventListener("DOMContentLoaded",()=>{for(const h of C)h()}),C.push(k)):k()},P=()=>document.documentElement.dir==="rtl",M=k=>{S(()=>{const h=x();if(h){const _=k.NAME,O=h.fn[_];h.fn[_]=k.jQueryInterface,h.fn[_].Constructor=k,h.fn[_].noConflict=()=>(h.fn[_]=O,k.jQueryInterface)}})},I=(k,h=[],_=k)=>typeof k=="function"?k(...h):_,N=(k,h,_=!0)=>{if(!_){I(k);return}const U=g(h)+5;let nt=!1;const et=({target:$t})=>{$t===h&&(nt=!0,h.removeEventListener(c,et),I(k))};h.addEventListener(c,et),setTimeout(()=>{nt||m(h)},U)},Q=(k,h,_,O)=>{const U=k.length;let nt=k.indexOf(h);return nt===-1?!_&&O?k[U-1]:k[0]:(nt+=_?1:-1,O&&(nt=(nt+U)%U),k[Math.max(0,Math.min(nt,U-1))])},G=/[^.]*(?=\..*)\.|.*/,V=/\..*/,L=/::\d+$/,W={};let K=1;const ot={mouseenter:"mouseover",mouseleave:"mouseout"},ut=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 bt(k,h){return h&&`${h}::${K++}`||k.uidEvent||K++}function _t(k){const h=bt(k);return k.uidEvent=h,W[h]=W[h]||{},W[h]}function Pt(k,h){return function _(O){return Mt(O,{delegateTarget:k}),_.oneOff&&B.off(k,O.type,h),h.apply(k,[O])}}function At(k,h,_){return function O(U){const nt=k.querySelectorAll(h);for(let{target:et}=U;et&&et!==this;et=et.parentNode)for(const $t of nt)if($t===et)return Mt(U,{delegateTarget:et}),O.oneOff&&B.off(k,U.type,h,_),_.apply(et,[U])}}function Lt(k,h,_=null){return Object.values(k).find(O=>O.callable===h&&O.delegationSelector===_)}function Ct(k,h,_){const O=typeof h=="string",U=O?_:h||_;let nt=at(k);return ut.has(nt)||(nt=k),[O,U,nt]}function j(k,h,_,O,U){if(typeof h!="string"||!k)return;let[nt,et,$t]=Ct(h,_,O);h in ot&&(et=(h1=>function(hi){if(!hi.relatedTarget||hi.relatedTarget!==hi.delegateTarget&&!hi.delegateTarget.contains(hi.relatedTarget))return h1.call(this,hi)})(et));const $e=_t(k),We=$e[$t]||($e[$t]={}),le=Lt(We,et,nt?_:null);if(le){le.oneOff=le.oneOff&&U;return}const ls=bt(et,h.replace(G,"")),ts=nt?At(k,_,et):Pt(k,et);ts.delegationSelector=nt?_:null,ts.callable=et,ts.oneOff=U,ts.uidEvent=ls,We[ls]=ts,k.addEventListener($t,ts,nt)}function st(k,h,_,O,U){const nt=Lt(h[_],O,U);nt&&(k.removeEventListener(_,nt,!!U),delete h[_][nt.uidEvent])}function tt(k,h,_,O){const U=h[_]||{};for(const[nt,et]of Object.entries(U))nt.includes(O)&&st(k,h,_,et.callable,et.delegationSelector)}function at(k){return k=k.replace(V,""),ot[k]||k}const B={on(k,h,_,O){j(k,h,_,O,!1)},one(k,h,_,O){j(k,h,_,O,!0)},off(k,h,_,O){if(typeof h!="string"||!k)return;const[U,nt,et]=Ct(h,_,O),$t=et!==h,$e=_t(k),We=$e[et]||{},le=h.startsWith(".");if(typeof nt<"u"){if(!Object.keys(We).length)return;st(k,$e,et,nt,U?_:null);return}if(le)for(const ls of Object.keys($e))tt(k,$e,ls,h.slice(1));for(const[ls,ts]of Object.entries(We)){const Ar=ls.replace(L,"");(!$t||h.includes(Ar))&&st(k,$e,et,ts.callable,ts.delegationSelector)}},trigger(k,h,_){if(typeof h!="string"||!k)return null;const O=x(),U=at(h),nt=h!==U;let et=null,$t=!0,$e=!0,We=!1;nt&&O&&(et=O.Event(h,_),O(k).trigger(et),$t=!et.isPropagationStopped(),$e=!et.isImmediatePropagationStopped(),We=et.isDefaultPrevented());const le=Mt(new Event(h,{bubbles:$t,cancelable:!0}),_);return We&&le.preventDefault(),$e&&k.dispatchEvent(le),le.defaultPrevented&&et&&et.preventDefault(),le}};function Mt(k,h={}){for(const[_,O]of Object.entries(h))try{k[_]=O}catch{Object.defineProperty(k,_,{configurable:!0,get(){return O}})}return k}function A(k){if(k==="true")return!0;if(k==="false")return!1;if(k===Number(k).toString())return Number(k);if(k===""||k==="null")return null;if(typeof k!="string")return k;try{return JSON.parse(decodeURIComponent(k))}catch{return k}}function D(k){return k.replace(/[A-Z]/g,h=>`-${h.toLowerCase()}`)}const R={setDataAttribute(k,h,_){k.setAttribute(`data-bs-${D(h)}`,_)},removeDataAttribute(k,h){k.removeAttribute(`data-bs-${D(h)}`)},getDataAttributes(k){if(!k)return{};const h={},_=Object.keys(k.dataset).filter(O=>O.startsWith("bs")&&!O.startsWith("bsConfig"));for(const O of _){let U=O.replace(/^bs/,"");U=U.charAt(0).toLowerCase()+U.slice(1,U.length),h[U]=A(k.dataset[O])}return h},getDataAttribute(k,h){return A(k.getAttribute(`data-bs-${D(h)}`))}};class Y{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(h){return h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h}_mergeConfigObj(h,_){const O=b(_)?R.getDataAttribute(_,"config"):{};return{...this.constructor.Default,...typeof O=="object"?O:{},...b(_)?R.getDataAttributes(_):{},...typeof h=="object"?h:{}}}_typeCheckConfig(h,_=this.constructor.DefaultType){for(const[O,U]of Object.entries(_)){const nt=h[O],et=b(nt)?"element":u(nt);if(!new RegExp(U).test(et))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${O}" provided type "${et}" but expected type "${U}".`)}}}const z="5.3.2";class J extends Y{constructor(h,_){super(),h=v(h),h&&(this._element=h,this._config=this._getConfig(_),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),B.off(this._element,this.constructor.EVENT_KEY);for(const h of Object.getOwnPropertyNames(this))this[h]=null}_queueCallback(h,_,O=!0){N(h,_,O)}_getConfig(h){return h=this._mergeConfigObj(h,this._element),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}static getInstance(h){return r.get(v(h),this.DATA_KEY)}static getOrCreateInstance(h,_={}){return this.getInstance(h)||new this(h,typeof _=="object"?_:null)}static get VERSION(){return z}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(h){return`${h}${this.EVENT_KEY}`}}const rt=k=>{let h=k.getAttribute("data-bs-target");if(!h||h==="#"){let _=k.getAttribute("href");if(!_||!_.includes("#")&&!_.startsWith("."))return null;_.includes("#")&&!_.startsWith("#")&&(_=`#${_.split("#")[1]}`),h=_&&_!=="#"?d(_.trim()):null}return h},F={find(k,h=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(h,k))},findOne(k,h=document.documentElement){return Element.prototype.querySelector.call(h,k)},children(k,h){return[].concat(...k.children).filter(_=>_.matches(h))},parents(k,h){const _=[];let O=k.parentNode.closest(h);for(;O;)_.push(O),O=O.parentNode.closest(h);return _},prev(k,h){let _=k.previousElementSibling;for(;_;){if(_.matches(h))return[_];_=_.previousElementSibling}return[]},next(k,h){let _=k.nextElementSibling;for(;_;){if(_.matches(h))return[_];_=_.nextElementSibling}return[]},focusableChildren(k){const h=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(_=>`${_}:not([tabindex^="-"])`).join(",");return this.find(h,k).filter(_=>!E(_)&&w(_))},getSelectorFromElement(k){const h=rt(k);return h&&F.findOne(h)?h:null},getElementFromSelector(k){const h=rt(k);return h?F.findOne(h):null},getMultipleElementsFromSelector(k){const h=rt(k);return h?F.find(h):[]}},Z=(k,h="hide")=>{const _=`click.dismiss${k.EVENT_KEY}`,O=k.NAME;B.on(document,_,`[data-bs-dismiss="${O}"]`,function(U){if(["A","AREA"].includes(this.tagName)&&U.preventDefault(),E(this))return;const nt=F.getElementFromSelector(this)||this.closest(`.${O}`);k.getOrCreateInstance(nt)[h]()})},X="alert",pt=".bs.alert",ft=`close${pt}`,vt=`closed${pt}`,Et="fade",jt="show";class Ot extends J{static get NAME(){return X}close(){if(B.trigger(this._element,ft).defaultPrevented)return;this._element.classList.remove(jt);const _=this._element.classList.contains(Et);this._queueCallback(()=>this._destroyElement(),this._element,_)}_destroyElement(){this._element.remove(),B.trigger(this._element,vt),this.dispose()}static jQueryInterface(h){return this.each(function(){const _=Ot.getOrCreateInstance(this);if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h](this)}})}}Z(Ot,"close"),M(Ot);const ne="button",Ws=".bs.button",hr=".data-api",An="active",to='[data-bs-toggle="button"]',ye=`click${Ws}${hr}`;class pe extends J{static get NAME(){return ne}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(An))}static jQueryInterface(h){return this.each(function(){const _=pe.getOrCreateInstance(this);h==="toggle"&&_[h]()})}}B.on(document,ye,to,k=>{k.preventDefault();const h=k.target.closest(to);pe.getOrCreateInstance(h).toggle()}),M(pe);const fr="swipe",ii=".bs.swipe",Nb=`touchstart${ii}`,Fb=`touchmove${ii}`,Bb=`touchend${ii}`,Vb=`pointerdown${ii}`,Hb=`pointerup${ii}`,jb="touch",Wb="pen",zb="pointer-event",Ub=40,Kb={endCallback:null,leftCallback:null,rightCallback:null},Yb={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class pr extends Y{constructor(h,_){super(),this._element=h,!(!h||!pr.isSupported())&&(this._config=this._getConfig(_),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Kb}static get DefaultType(){return Yb}static get NAME(){return fr}dispose(){B.off(this._element,ii)}_start(h){if(!this._supportPointerEvents){this._deltaX=h.touches[0].clientX;return}this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX)}_end(h){this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX-this._deltaX),this._handleSwipe(),I(this._config.endCallback)}_move(h){this._deltaX=h.touches&&h.touches.length>1?0:h.touches[0].clientX-this._deltaX}_handleSwipe(){const h=Math.abs(this._deltaX);if(h<=Ub)return;const _=h/this._deltaX;this._deltaX=0,_&&I(_>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(B.on(this._element,Vb,h=>this._start(h)),B.on(this._element,Hb,h=>this._end(h)),this._element.classList.add(zb)):(B.on(this._element,Nb,h=>this._start(h)),B.on(this._element,Fb,h=>this._move(h)),B.on(this._element,Bb,h=>this._end(h)))}_eventIsPointerPenTouch(h){return this._supportPointerEvents&&(h.pointerType===Wb||h.pointerType===jb)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const qb="carousel",zs=".bs.carousel",fu=".data-api",Gb="ArrowLeft",Xb="ArrowRight",Jb=500,eo="next",oi="prev",ri="left",gr="right",Qb=`slide${zs}`,ml=`slid${zs}`,Zb=`keydown${zs}`,tv=`mouseenter${zs}`,ev=`mouseleave${zs}`,sv=`dragstart${zs}`,nv=`load${zs}${fu}`,iv=`click${zs}${fu}`,pu="carousel",mr="active",ov="slide",rv="carousel-item-end",av="carousel-item-start",lv="carousel-item-next",cv="carousel-item-prev",gu=".active",mu=".carousel-item",dv=gu+mu,uv=".carousel-item img",hv=".carousel-indicators",fv="[data-bs-slide], [data-bs-slide-to]",pv='[data-bs-ride="carousel"]',gv={[Gb]:gr,[Xb]:ri},mv={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},_v={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ai extends J{constructor(h,_){super(h,_),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=F.findOne(hv,this._element),this._addEventListeners(),this._config.ride===pu&&this.cycle()}static get Default(){return mv}static get DefaultType(){return _v}static get NAME(){return qb}next(){this._slide(eo)}nextWhenVisible(){!document.hidden&&w(this._element)&&this.next()}prev(){this._slide(oi)}pause(){this._isSliding&&m(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){B.one(this._element,ml,()=>this.cycle());return}this.cycle()}}to(h){const _=this._getItems();if(h>_.length-1||h<0)return;if(this._isSliding){B.one(this._element,ml,()=>this.to(h));return}const O=this._getItemIndex(this._getActive());if(O===h)return;const U=h>O?eo:oi;this._slide(U,_[h])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(h){return h.defaultInterval=h.interval,h}_addEventListeners(){this._config.keyboard&&B.on(this._element,Zb,h=>this._keydown(h)),this._config.pause==="hover"&&(B.on(this._element,tv,()=>this.pause()),B.on(this._element,ev,()=>this._maybeEnableCycle())),this._config.touch&&pr.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const O of F.find(uv,this._element))B.on(O,sv,U=>U.preventDefault());const _={leftCallback:()=>this._slide(this._directionToOrder(ri)),rightCallback:()=>this._slide(this._directionToOrder(gr)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Jb+this._config.interval))}};this._swipeHelper=new pr(this._element,_)}_keydown(h){if(/input|textarea/i.test(h.target.tagName))return;const _=gv[h.key];_&&(h.preventDefault(),this._slide(this._directionToOrder(_)))}_getItemIndex(h){return this._getItems().indexOf(h)}_setActiveIndicatorElement(h){if(!this._indicatorsElement)return;const _=F.findOne(gu,this._indicatorsElement);_.classList.remove(mr),_.removeAttribute("aria-current");const O=F.findOne(`[data-bs-slide-to="${h}"]`,this._indicatorsElement);O&&(O.classList.add(mr),O.setAttribute("aria-current","true"))}_updateInterval(){const h=this._activeElement||this._getActive();if(!h)return;const _=Number.parseInt(h.getAttribute("data-bs-interval"),10);this._config.interval=_||this._config.defaultInterval}_slide(h,_=null){if(this._isSliding)return;const O=this._getActive(),U=h===eo,nt=_||Q(this._getItems(),O,U,this._config.wrap);if(nt===O)return;const et=this._getItemIndex(nt),$t=Ar=>B.trigger(this._element,Ar,{relatedTarget:nt,direction:this._orderToDirection(h),from:this._getItemIndex(O),to:et});if($t(Qb).defaultPrevented||!O||!nt)return;const We=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(et),this._activeElement=nt;const le=U?av:rv,ls=U?lv:cv;nt.classList.add(ls),y(nt),O.classList.add(le),nt.classList.add(le);const ts=()=>{nt.classList.remove(le,ls),nt.classList.add(mr),O.classList.remove(mr,ls,le),this._isSliding=!1,$t(ml)};this._queueCallback(ts,O,this._isAnimated()),We&&this.cycle()}_isAnimated(){return this._element.classList.contains(ov)}_getActive(){return F.findOne(dv,this._element)}_getItems(){return F.find(mu,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(h){return P()?h===ri?oi:eo:h===ri?eo:oi}_orderToDirection(h){return P()?h===oi?ri:gr:h===oi?gr:ri}static jQueryInterface(h){return this.each(function(){const _=ai.getOrCreateInstance(this,h);if(typeof h=="number"){_.to(h);return}if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h]()}})}}B.on(document,iv,fv,function(k){const h=F.getElementFromSelector(this);if(!h||!h.classList.contains(pu))return;k.preventDefault();const _=ai.getOrCreateInstance(h),O=this.getAttribute("data-bs-slide-to");if(O){_.to(O),_._maybeEnableCycle();return}if(R.getDataAttribute(this,"slide")==="next"){_.next(),_._maybeEnableCycle();return}_.prev(),_._maybeEnableCycle()}),B.on(window,nv,()=>{const k=F.find(pv);for(const h of k)ai.getOrCreateInstance(h)}),M(ai);const bv="collapse",so=".bs.collapse",vv=".data-api",yv=`show${so}`,xv=`shown${so}`,wv=`hide${so}`,Ev=`hidden${so}`,Sv=`click${so}${vv}`,_l="show",li="collapse",_r="collapsing",Av="collapsed",Cv=`:scope .${li} .${li}`,$v="collapse-horizontal",Pv="width",kv="height",Tv=".collapse.show, .collapse.collapsing",bl='[data-bs-toggle="collapse"]',Mv={parent:null,toggle:!0},Ov={parent:"(null|element)",toggle:"boolean"};class ci extends J{constructor(h,_){super(h,_),this._isTransitioning=!1,this._triggerArray=[];const O=F.find(bl);for(const U of O){const nt=F.getSelectorFromElement(U),et=F.find(nt).filter($t=>$t===this._element);nt!==null&&et.length&&this._triggerArray.push(U)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Mv}static get DefaultType(){return Ov}static get NAME(){return bv}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let h=[];if(this._config.parent&&(h=this._getFirstLevelChildren(Tv).filter($t=>$t!==this._element).map($t=>ci.getOrCreateInstance($t,{toggle:!1}))),h.length&&h[0]._isTransitioning||B.trigger(this._element,yv).defaultPrevented)return;for(const $t of h)$t.hide();const O=this._getDimension();this._element.classList.remove(li),this._element.classList.add(_r),this._element.style[O]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const U=()=>{this._isTransitioning=!1,this._element.classList.remove(_r),this._element.classList.add(li,_l),this._element.style[O]="",B.trigger(this._element,xv)},et=`scroll${O[0].toUpperCase()+O.slice(1)}`;this._queueCallback(U,this._element,!0),this._element.style[O]=`${this._element[et]}px`}hide(){if(this._isTransitioning||!this._isShown()||B.trigger(this._element,wv).defaultPrevented)return;const _=this._getDimension();this._element.style[_]=`${this._element.getBoundingClientRect()[_]}px`,y(this._element),this._element.classList.add(_r),this._element.classList.remove(li,_l);for(const U of this._triggerArray){const nt=F.getElementFromSelector(U);nt&&!this._isShown(nt)&&this._addAriaAndCollapsedClass([U],!1)}this._isTransitioning=!0;const O=()=>{this._isTransitioning=!1,this._element.classList.remove(_r),this._element.classList.add(li),B.trigger(this._element,Ev)};this._element.style[_]="",this._queueCallback(O,this._element,!0)}_isShown(h=this._element){return h.classList.contains(_l)}_configAfterMerge(h){return h.toggle=!!h.toggle,h.parent=v(h.parent),h}_getDimension(){return this._element.classList.contains($v)?Pv:kv}_initializeChildren(){if(!this._config.parent)return;const h=this._getFirstLevelChildren(bl);for(const _ of h){const O=F.getElementFromSelector(_);O&&this._addAriaAndCollapsedClass([_],this._isShown(O))}}_getFirstLevelChildren(h){const _=F.find(Cv,this._config.parent);return F.find(h,this._config.parent).filter(O=>!_.includes(O))}_addAriaAndCollapsedClass(h,_){if(h.length)for(const O of h)O.classList.toggle(Av,!_),O.setAttribute("aria-expanded",_)}static jQueryInterface(h){const _={};return typeof h=="string"&&/show|hide/.test(h)&&(_.toggle=!1),this.each(function(){const O=ci.getOrCreateInstance(this,_);if(typeof h=="string"){if(typeof O[h]>"u")throw new TypeError(`No method named "${h}"`);O[h]()}})}}B.on(document,Sv,bl,function(k){(k.target.tagName==="A"||k.delegateTarget&&k.delegateTarget.tagName==="A")&&k.preventDefault();for(const h of F.getMultipleElementsFromSelector(this))ci.getOrCreateInstance(h,{toggle:!1}).toggle()}),M(ci);const _u="dropdown",Cn=".bs.dropdown",vl=".data-api",Dv="Escape",bu="Tab",Iv="ArrowUp",vu="ArrowDown",Lv=2,Rv=`hide${Cn}`,Nv=`hidden${Cn}`,Fv=`show${Cn}`,Bv=`shown${Cn}`,yu=`click${Cn}${vl}`,xu=`keydown${Cn}${vl}`,Vv=`keyup${Cn}${vl}`,di="show",Hv="dropup",jv="dropend",Wv="dropstart",zv="dropup-center",Uv="dropdown-center",$n='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Kv=`${$n}.${di}`,br=".dropdown-menu",Yv=".navbar",qv=".navbar-nav",Gv=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Xv=P()?"top-end":"top-start",Jv=P()?"top-start":"top-end",Qv=P()?"bottom-end":"bottom-start",Zv=P()?"bottom-start":"bottom-end",ty=P()?"left-start":"right-start",ey=P()?"right-start":"left-start",sy="top",ny="bottom",iy={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},oy={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ze extends J{constructor(h,_){super(h,_),this._popper=null,this._parent=this._element.parentNode,this._menu=F.next(this._element,br)[0]||F.prev(this._element,br)[0]||F.findOne(br,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return iy}static get DefaultType(){return oy}static get NAME(){return _u}toggle(){return this._isShown()?this.hide():this.show()}show(){if(E(this._element)||this._isShown())return;const h={relatedTarget:this._element};if(!B.trigger(this._element,Fv,h).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(qv))for(const O of[].concat(...document.body.children))B.on(O,"mouseover",T);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(di),this._element.classList.add(di),B.trigger(this._element,Bv,h)}}hide(){if(E(this._element)||!this._isShown())return;const h={relatedTarget:this._element};this._completeHide(h)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(h){if(!B.trigger(this._element,Rv,h).defaultPrevented){if("ontouchstart"in document.documentElement)for(const O of[].concat(...document.body.children))B.off(O,"mouseover",T);this._popper&&this._popper.destroy(),this._menu.classList.remove(di),this._element.classList.remove(di),this._element.setAttribute("aria-expanded","false"),R.removeDataAttribute(this._menu,"popper"),B.trigger(this._element,Nv,h)}}_getConfig(h){if(h=super._getConfig(h),typeof h.reference=="object"&&!b(h.reference)&&typeof h.reference.getBoundingClientRect!="function")throw new TypeError(`${_u.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return h}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let h=this._element;this._config.reference==="parent"?h=this._parent:b(this._config.reference)?h=v(this._config.reference):typeof this._config.reference=="object"&&(h=this._config.reference);const _=this._getPopperConfig();this._popper=i.createPopper(h,this._menu,_)}_isShown(){return this._menu.classList.contains(di)}_getPlacement(){const h=this._parent;if(h.classList.contains(jv))return ty;if(h.classList.contains(Wv))return ey;if(h.classList.contains(zv))return sy;if(h.classList.contains(Uv))return ny;const _=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return h.classList.contains(Hv)?_?Jv:Xv:_?Zv:Qv}_detectNavbar(){return this._element.closest(Yv)!==null}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(_=>Number.parseInt(_,10)):typeof h=="function"?_=>h(_,this._element):h}_getPopperConfig(){const h={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(R.setDataAttribute(this._menu,"popper","static"),h.modifiers=[{name:"applyStyles",enabled:!1}]),{...h,...I(this._config.popperConfig,[h])}}_selectMenuItem({key:h,target:_}){const O=F.find(Gv,this._menu).filter(U=>w(U));O.length&&Q(O,_,h===vu,!O.includes(_)).focus()}static jQueryInterface(h){return this.each(function(){const _=Ze.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof _[h]>"u")throw new TypeError(`No method named "${h}"`);_[h]()}})}static clearMenus(h){if(h.button===Lv||h.type==="keyup"&&h.key!==bu)return;const _=F.find(Kv);for(const O of _){const U=Ze.getInstance(O);if(!U||U._config.autoClose===!1)continue;const nt=h.composedPath(),et=nt.includes(U._menu);if(nt.includes(U._element)||U._config.autoClose==="inside"&&!et||U._config.autoClose==="outside"&&et||U._menu.contains(h.target)&&(h.type==="keyup"&&h.key===bu||/input|select|option|textarea|form/i.test(h.target.tagName)))continue;const $t={relatedTarget:U._element};h.type==="click"&&($t.clickEvent=h),U._completeHide($t)}}static dataApiKeydownHandler(h){const _=/input|textarea/i.test(h.target.tagName),O=h.key===Dv,U=[Iv,vu].includes(h.key);if(!U&&!O||_&&!O)return;h.preventDefault();const nt=this.matches($n)?this:F.prev(this,$n)[0]||F.next(this,$n)[0]||F.findOne($n,h.delegateTarget.parentNode),et=Ze.getOrCreateInstance(nt);if(U){h.stopPropagation(),et.show(),et._selectMenuItem(h);return}et._isShown()&&(h.stopPropagation(),et.hide(),nt.focus())}}B.on(document,xu,$n,Ze.dataApiKeydownHandler),B.on(document,xu,br,Ze.dataApiKeydownHandler),B.on(document,yu,Ze.clearMenus),B.on(document,Vv,Ze.clearMenus),B.on(document,yu,$n,function(k){k.preventDefault(),Ze.getOrCreateInstance(this).toggle()}),M(Ze);const wu="backdrop",ry="fade",Eu="show",Su=`mousedown.bs.${wu}`,ay={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ly={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Au extends Y{constructor(h){super(),this._config=this._getConfig(h),this._isAppended=!1,this._element=null}static get Default(){return ay}static get DefaultType(){return ly}static get NAME(){return wu}show(h){if(!this._config.isVisible){I(h);return}this._append();const _=this._getElement();this._config.isAnimated&&y(_),_.classList.add(Eu),this._emulateAnimation(()=>{I(h)})}hide(h){if(!this._config.isVisible){I(h);return}this._getElement().classList.remove(Eu),this._emulateAnimation(()=>{this.dispose(),I(h)})}dispose(){this._isAppended&&(B.off(this._element,Su),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const h=document.createElement("div");h.className=this._config.className,this._config.isAnimated&&h.classList.add(ry),this._element=h}return this._element}_configAfterMerge(h){return h.rootElement=v(h.rootElement),h}_append(){if(this._isAppended)return;const h=this._getElement();this._config.rootElement.append(h),B.on(h,Su,()=>{I(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(h){N(h,this._getElement(),this._config.isAnimated)}}const cy="focustrap",vr=".bs.focustrap",dy=`focusin${vr}`,uy=`keydown.tab${vr}`,hy="Tab",fy="forward",Cu="backward",py={autofocus:!0,trapElement:null},gy={autofocus:"boolean",trapElement:"element"};class $u extends Y{constructor(h){super(),this._config=this._getConfig(h),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return py}static get DefaultType(){return gy}static get NAME(){return cy}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),B.off(document,vr),B.on(document,dy,h=>this._handleFocusin(h)),B.on(document,uy,h=>this._handleKeydown(h)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,B.off(document,vr))}_handleFocusin(h){const{trapElement:_}=this._config;if(h.target===document||h.target===_||_.contains(h.target))return;const O=F.focusableChildren(_);O.length===0?_.focus():this._lastTabNavDirection===Cu?O[O.length-1].focus():O[0].focus()}_handleKeydown(h){h.key===hy&&(this._lastTabNavDirection=h.shiftKey?Cu:fy)}}const Pu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ku=".sticky-top",yr="padding-right",Tu="margin-right";class yl{constructor(){this._element=document.body}getWidth(){const h=document.documentElement.clientWidth;return Math.abs(window.innerWidth-h)}hide(){const h=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,yr,_=>_+h),this._setElementAttributes(Pu,yr,_=>_+h),this._setElementAttributes(ku,Tu,_=>_-h)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,yr),this._resetElementAttributes(Pu,yr),this._resetElementAttributes(ku,Tu)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(h,_,O){const U=this.getWidth(),nt=et=>{if(et!==this._element&&window.innerWidth>et.clientWidth+U)return;this._saveInitialAttribute(et,_);const $t=window.getComputedStyle(et).getPropertyValue(_);et.style.setProperty(_,`${O(Number.parseFloat($t))}px`)};this._applyManipulationCallback(h,nt)}_saveInitialAttribute(h,_){const O=h.style.getPropertyValue(_);O&&R.setDataAttribute(h,_,O)}_resetElementAttributes(h,_){const O=U=>{const nt=R.getDataAttribute(U,_);if(nt===null){U.style.removeProperty(_);return}R.removeDataAttribute(U,_),U.style.setProperty(_,nt)};this._applyManipulationCallback(h,O)}_applyManipulationCallback(h,_){if(b(h)){_(h);return}for(const O of F.find(h,this._element))_(O)}}const my="modal",je=".bs.modal",_y=".data-api",by="Escape",vy=`hide${je}`,yy=`hidePrevented${je}`,Mu=`hidden${je}`,Ou=`show${je}`,xy=`shown${je}`,wy=`resize${je}`,Ey=`click.dismiss${je}`,Sy=`mousedown.dismiss${je}`,Ay=`keydown.dismiss${je}`,Cy=`click${je}${_y}`,Du="modal-open",$y="fade",Iu="show",xl="modal-static",Py=".modal.show",ky=".modal-dialog",Ty=".modal-body",My='[data-bs-toggle="modal"]',Oy={backdrop:!0,focus:!0,keyboard:!0},Dy={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Pn extends J{constructor(h,_){super(h,_),this._dialog=F.findOne(ky,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new yl,this._addEventListeners()}static get Default(){return Oy}static get DefaultType(){return Dy}static get NAME(){return my}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){this._isShown||this._isTransitioning||B.trigger(this._element,Ou,{relatedTarget:h}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Du),this._adjustDialog(),this._backdrop.show(()=>this._showElement(h)))}hide(){!this._isShown||this._isTransitioning||B.trigger(this._element,vy).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Iu),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){B.off(window,je),B.off(this._dialog,je),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Au({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new $u({trapElement:this._element})}_showElement(h){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 _=F.findOne(Ty,this._dialog);_&&(_.scrollTop=0),y(this._element),this._element.classList.add(Iu);const O=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,B.trigger(this._element,xy,{relatedTarget:h})};this._queueCallback(O,this._dialog,this._isAnimated())}_addEventListeners(){B.on(this._element,Ay,h=>{if(h.key===by){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),B.on(window,wy,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),B.on(this._element,Sy,h=>{B.one(this._element,Ey,_=>{if(!(this._element!==h.target||this._element!==_.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(Du),this._resetAdjustments(),this._scrollBar.reset(),B.trigger(this._element,Mu)})}_isAnimated(){return this._element.classList.contains($y)}_triggerBackdropTransition(){if(B.trigger(this._element,yy).defaultPrevented)return;const _=this._element.scrollHeight>document.documentElement.clientHeight,O=this._element.style.overflowY;O==="hidden"||this._element.classList.contains(xl)||(_||(this._element.style.overflowY="hidden"),this._element.classList.add(xl),this._queueCallback(()=>{this._element.classList.remove(xl),this._queueCallback(()=>{this._element.style.overflowY=O},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const h=this._element.scrollHeight>document.documentElement.clientHeight,_=this._scrollBar.getWidth(),O=_>0;if(O&&!h){const U=P()?"paddingLeft":"paddingRight";this._element.style[U]=`${_}px`}if(!O&&h){const U=P()?"paddingRight":"paddingLeft";this._element.style[U]=`${_}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(h,_){return this.each(function(){const O=Pn.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof O[h]>"u")throw new TypeError(`No method named "${h}"`);O[h](_)}})}}B.on(document,Cy,My,function(k){const h=F.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&k.preventDefault(),B.one(h,Ou,U=>{U.defaultPrevented||B.one(h,Mu,()=>{w(this)&&this.focus()})});const _=F.findOne(Py);_&&Pn.getInstance(_).hide(),Pn.getOrCreateInstance(h).toggle(this)}),Z(Pn),M(Pn);const Iy="offcanvas",ws=".bs.offcanvas",Lu=".data-api",Ly=`load${ws}${Lu}`,Ry="Escape",Ru="show",Nu="showing",Fu="hiding",Ny="offcanvas-backdrop",Bu=".offcanvas.show",Fy=`show${ws}`,By=`shown${ws}`,Vy=`hide${ws}`,Vu=`hidePrevented${ws}`,Hu=`hidden${ws}`,Hy=`resize${ws}`,jy=`click${ws}${Lu}`,Wy=`keydown.dismiss${ws}`,zy='[data-bs-toggle="offcanvas"]',Uy={backdrop:!0,keyboard:!0,scroll:!1},Ky={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Es extends J{constructor(h,_){super(h,_),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Uy}static get DefaultType(){return Ky}static get NAME(){return Iy}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){if(this._isShown||B.trigger(this._element,Fy,{relatedTarget:h}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new yl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Nu);const O=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ru),this._element.classList.remove(Nu),B.trigger(this._element,By,{relatedTarget:h})};this._queueCallback(O,this._element,!0)}hide(){if(!this._isShown||B.trigger(this._element,Vy).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Fu),this._backdrop.hide();const _=()=>{this._element.classList.remove(Ru,Fu),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new yl().reset(),B.trigger(this._element,Hu)};this._queueCallback(_,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const h=()=>{if(this._config.backdrop==="static"){B.trigger(this._element,Vu);return}this.hide()},_=!!this._config.backdrop;return new Au({className:Ny,isVisible:_,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:_?h:null})}_initializeFocusTrap(){return new $u({trapElement:this._element})}_addEventListeners(){B.on(this._element,Wy,h=>{if(h.key===Ry){if(this._config.keyboard){this.hide();return}B.trigger(this._element,Vu)}})}static jQueryInterface(h){return this.each(function(){const _=Es.getOrCreateInstance(this,h);if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h](this)}})}}B.on(document,jy,zy,function(k){const h=F.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&k.preventDefault(),E(this))return;B.one(h,Hu,()=>{w(this)&&this.focus()});const _=F.findOne(Bu);_&&_!==h&&Es.getInstance(_).hide(),Es.getOrCreateInstance(h).toggle(this)}),B.on(window,Ly,()=>{for(const k of F.find(Bu))Es.getOrCreateInstance(k).show()}),B.on(window,Hy,()=>{for(const k of F.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(k).position!=="fixed"&&Es.getOrCreateInstance(k).hide()}),Z(Es),M(Es);const ju={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},Yy=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),qy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Gy=(k,h)=>{const _=k.nodeName.toLowerCase();return h.includes(_)?Yy.has(_)?!!qy.test(k.nodeValue):!0:h.filter(O=>O instanceof RegExp).some(O=>O.test(_))};function Xy(k,h,_){if(!k.length)return k;if(_&&typeof _=="function")return _(k);const U=new window.DOMParser().parseFromString(k,"text/html"),nt=[].concat(...U.body.querySelectorAll("*"));for(const et of nt){const $t=et.nodeName.toLowerCase();if(!Object.keys(h).includes($t)){et.remove();continue}const $e=[].concat(...et.attributes),We=[].concat(h["*"]||[],h[$t]||[]);for(const le of $e)Gy(le,We)||et.removeAttribute(le.nodeName)}return U.body.innerHTML}const Jy="TemplateFactory",Qy={allowList:ju,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Zy={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},t0={entry:"(string|element|function|null)",selector:"(string|element)"};class e0 extends Y{constructor(h){super(),this._config=this._getConfig(h)}static get Default(){return Qy}static get DefaultType(){return Zy}static get NAME(){return Jy}getContent(){return Object.values(this._config.content).map(h=>this._resolvePossibleFunction(h)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(h){return this._checkContent(h),this._config.content={...this._config.content,...h},this}toHtml(){const h=document.createElement("div");h.innerHTML=this._maybeSanitize(this._config.template);for(const[U,nt]of Object.entries(this._config.content))this._setContent(h,nt,U);const _=h.children[0],O=this._resolvePossibleFunction(this._config.extraClass);return O&&_.classList.add(...O.split(" ")),_}_typeCheckConfig(h){super._typeCheckConfig(h),this._checkContent(h.content)}_checkContent(h){for(const[_,O]of Object.entries(h))super._typeCheckConfig({selector:_,entry:O},t0)}_setContent(h,_,O){const U=F.findOne(O,h);if(U){if(_=this._resolvePossibleFunction(_),!_){U.remove();return}if(b(_)){this._putElementInTemplate(v(_),U);return}if(this._config.html){U.innerHTML=this._maybeSanitize(_);return}U.textContent=_}}_maybeSanitize(h){return this._config.sanitize?Xy(h,this._config.allowList,this._config.sanitizeFn):h}_resolvePossibleFunction(h){return I(h,[this])}_putElementInTemplate(h,_){if(this._config.html){_.innerHTML="",_.append(h);return}_.textContent=h.textContent}}const s0="tooltip",n0=new Set(["sanitize","allowList","sanitizeFn"]),wl="fade",i0="modal",xr="show",o0=".tooltip-inner",Wu=`.${i0}`,zu="hide.bs.modal",no="hover",El="focus",r0="click",a0="manual",l0="hide",c0="hidden",d0="show",u0="shown",h0="inserted",f0="click",p0="focusin",g0="focusout",m0="mouseenter",_0="mouseleave",b0={AUTO:"auto",TOP:"top",RIGHT:P()?"left":"right",BOTTOM:"bottom",LEFT:P()?"right":"left"},v0={allowList:ju,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"},y0={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 kn extends J{constructor(h,_){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(h,_),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 v0}static get DefaultType(){return y0}static get NAME(){return s0}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),B.off(this._element.closest(Wu),zu,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 h=B.trigger(this._element,this.constructor.eventName(d0)),O=($(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(h.defaultPrevented||!O)return;this._disposePopper();const U=this._getTipElement();this._element.setAttribute("aria-describedby",U.getAttribute("id"));const{container:nt}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(nt.append(U),B.trigger(this._element,this.constructor.eventName(h0))),this._popper=this._createPopper(U),U.classList.add(xr),"ontouchstart"in document.documentElement)for(const $t of[].concat(...document.body.children))B.on($t,"mouseover",T);const et=()=>{B.trigger(this._element,this.constructor.eventName(u0)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(et,this.tip,this._isAnimated())}hide(){if(!this._isShown()||B.trigger(this._element,this.constructor.eventName(l0)).defaultPrevented)return;if(this._getTipElement().classList.remove(xr),"ontouchstart"in document.documentElement)for(const U of[].concat(...document.body.children))B.off(U,"mouseover",T);this._activeTrigger[r0]=!1,this._activeTrigger[El]=!1,this._activeTrigger[no]=!1,this._isHovered=null;const O=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),B.trigger(this._element,this.constructor.eventName(c0)))};this._queueCallback(O,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(h){const _=this._getTemplateFactory(h).toHtml();if(!_)return null;_.classList.remove(wl,xr),_.classList.add(`bs-${this.constructor.NAME}-auto`);const O=f(this.constructor.NAME).toString();return _.setAttribute("id",O),this._isAnimated()&&_.classList.add(wl),_}setContent(h){this._newContent=h,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(h){return this._templateFactory?this._templateFactory.changeContent(h):this._templateFactory=new e0({...this._config,content:h,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[o0]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(h){return this.constructor.getOrCreateInstance(h.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(wl)}_isShown(){return this.tip&&this.tip.classList.contains(xr)}_createPopper(h){const _=I(this._config.placement,[this,h,this._element]),O=b0[_.toUpperCase()];return i.createPopper(this._element,h,this._getPopperConfig(O))}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(_=>Number.parseInt(_,10)):typeof h=="function"?_=>h(_,this._element):h}_resolvePossibleFunction(h){return I(h,[this._element])}_getPopperConfig(h){const _={placement:h,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:O=>{this._getTipElement().setAttribute("data-popper-placement",O.state.placement)}}]};return{..._,...I(this._config.popperConfig,[_])}}_setListeners(){const h=this._config.trigger.split(" ");for(const _ of h)if(_==="click")B.on(this._element,this.constructor.eventName(f0),this._config.selector,O=>{this._initializeOnDelegatedTarget(O).toggle()});else if(_!==a0){const O=_===no?this.constructor.eventName(m0):this.constructor.eventName(p0),U=_===no?this.constructor.eventName(_0):this.constructor.eventName(g0);B.on(this._element,O,this._config.selector,nt=>{const et=this._initializeOnDelegatedTarget(nt);et._activeTrigger[nt.type==="focusin"?El:no]=!0,et._enter()}),B.on(this._element,U,this._config.selector,nt=>{const et=this._initializeOnDelegatedTarget(nt);et._activeTrigger[nt.type==="focusout"?El:no]=et._element.contains(nt.relatedTarget),et._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},B.on(this._element.closest(Wu),zu,this._hideModalHandler)}_fixTitle(){const h=this._element.getAttribute("title");h&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",h),this._element.setAttribute("data-bs-original-title",h),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(h,_){clearTimeout(this._timeout),this._timeout=setTimeout(h,_)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(h){const _=R.getDataAttributes(this._element);for(const O of Object.keys(_))n0.has(O)&&delete _[O];return h={..._,...typeof h=="object"&&h?h:{}},h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h.container=h.container===!1?document.body:v(h.container),typeof h.delay=="number"&&(h.delay={show:h.delay,hide:h.delay}),typeof h.title=="number"&&(h.title=h.title.toString()),typeof h.content=="number"&&(h.content=h.content.toString()),h}_getDelegateConfig(){const h={};for(const[_,O]of Object.entries(this._config))this.constructor.Default[_]!==O&&(h[_]=O);return h.selector=!1,h.trigger="manual",h}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(h){return this.each(function(){const _=kn.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof _[h]>"u")throw new TypeError(`No method named "${h}"`);_[h]()}})}}M(kn);const x0="popover",w0=".popover-header",E0=".popover-body",S0={...kn.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},A0={...kn.DefaultType,content:"(null|string|element|function)"};class wr extends kn{static get Default(){return S0}static get DefaultType(){return A0}static get NAME(){return x0}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[w0]:this._getTitle(),[E0]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(h){return this.each(function(){const _=wr.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof _[h]>"u")throw new TypeError(`No method named "${h}"`);_[h]()}})}}M(wr);const C0="scrollspy",Sl=".bs.scrollspy",$0=".data-api",P0=`activate${Sl}`,Uu=`click${Sl}`,k0=`load${Sl}${$0}`,T0="dropdown-item",ui="active",M0='[data-bs-spy="scroll"]',Al="[href]",O0=".nav, .list-group",Ku=".nav-link",D0=`${Ku}, .nav-item > ${Ku}, .list-group-item`,I0=".dropdown",L0=".dropdown-toggle",R0={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},N0={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class io extends J{constructor(h,_){super(h,_),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 R0}static get DefaultType(){return N0}static get NAME(){return C0}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const h of this._observableSections.values())this._observer.observe(h)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(h){return h.target=v(h.target)||document.body,h.rootMargin=h.offset?`${h.offset}px 0px -30%`:h.rootMargin,typeof h.threshold=="string"&&(h.threshold=h.threshold.split(",").map(_=>Number.parseFloat(_))),h}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(B.off(this._config.target,Uu),B.on(this._config.target,Uu,Al,h=>{const _=this._observableSections.get(h.target.hash);if(_){h.preventDefault();const O=this._rootElement||window,U=_.offsetTop-this._element.offsetTop;if(O.scrollTo){O.scrollTo({top:U,behavior:"smooth"});return}O.scrollTop=U}}))}_getNewObserver(){const h={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(_=>this._observerCallback(_),h)}_observerCallback(h){const _=et=>this._targetLinks.get(`#${et.target.id}`),O=et=>{this._previousScrollData.visibleEntryTop=et.target.offsetTop,this._process(_(et))},U=(this._rootElement||document.documentElement).scrollTop,nt=U>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=U;for(const et of h){if(!et.isIntersecting){this._activeTarget=null,this._clearActiveClass(_(et));continue}const $t=et.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(nt&&$t){if(O(et),!U)return;continue}!nt&&!$t&&O(et)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const h=F.find(Al,this._config.target);for(const _ of h){if(!_.hash||E(_))continue;const O=F.findOne(decodeURI(_.hash),this._element);w(O)&&(this._targetLinks.set(decodeURI(_.hash),_),this._observableSections.set(_.hash,O))}}_process(h){this._activeTarget!==h&&(this._clearActiveClass(this._config.target),this._activeTarget=h,h.classList.add(ui),this._activateParents(h),B.trigger(this._element,P0,{relatedTarget:h}))}_activateParents(h){if(h.classList.contains(T0)){F.findOne(L0,h.closest(I0)).classList.add(ui);return}for(const _ of F.parents(h,O0))for(const O of F.prev(_,D0))O.classList.add(ui)}_clearActiveClass(h){h.classList.remove(ui);const _=F.find(`${Al}.${ui}`,h);for(const O of _)O.classList.remove(ui)}static jQueryInterface(h){return this.each(function(){const _=io.getOrCreateInstance(this,h);if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h]()}})}}B.on(window,k0,()=>{for(const k of F.find(M0))io.getOrCreateInstance(k)}),M(io);const F0="tab",Tn=".bs.tab",B0=`hide${Tn}`,V0=`hidden${Tn}`,H0=`show${Tn}`,j0=`shown${Tn}`,W0=`click${Tn}`,z0=`keydown${Tn}`,U0=`load${Tn}`,K0="ArrowLeft",Yu="ArrowRight",Y0="ArrowUp",qu="ArrowDown",Cl="Home",Gu="End",Mn="active",Xu="fade",$l="show",q0="dropdown",Ju=".dropdown-toggle",G0=".dropdown-menu",Pl=`:not(${Ju})`,X0='.list-group, .nav, [role="tablist"]',J0=".nav-item, .list-group-item",Q0=`.nav-link${Pl}, .list-group-item${Pl}, [role="tab"]${Pl}`,Qu='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',kl=`${Q0}, ${Qu}`,Z0=`.${Mn}[data-bs-toggle="tab"], .${Mn}[data-bs-toggle="pill"], .${Mn}[data-bs-toggle="list"]`;class On extends J{constructor(h){super(h),this._parent=this._element.closest(X0),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),B.on(this._element,z0,_=>this._keydown(_)))}static get NAME(){return F0}show(){const h=this._element;if(this._elemIsActive(h))return;const _=this._getActiveElem(),O=_?B.trigger(_,B0,{relatedTarget:h}):null;B.trigger(h,H0,{relatedTarget:_}).defaultPrevented||O&&O.defaultPrevented||(this._deactivate(_,h),this._activate(h,_))}_activate(h,_){if(!h)return;h.classList.add(Mn),this._activate(F.getElementFromSelector(h));const O=()=>{if(h.getAttribute("role")!=="tab"){h.classList.add($l);return}h.removeAttribute("tabindex"),h.setAttribute("aria-selected",!0),this._toggleDropDown(h,!0),B.trigger(h,j0,{relatedTarget:_})};this._queueCallback(O,h,h.classList.contains(Xu))}_deactivate(h,_){if(!h)return;h.classList.remove(Mn),h.blur(),this._deactivate(F.getElementFromSelector(h));const O=()=>{if(h.getAttribute("role")!=="tab"){h.classList.remove($l);return}h.setAttribute("aria-selected",!1),h.setAttribute("tabindex","-1"),this._toggleDropDown(h,!1),B.trigger(h,V0,{relatedTarget:_})};this._queueCallback(O,h,h.classList.contains(Xu))}_keydown(h){if(![K0,Yu,Y0,qu,Cl,Gu].includes(h.key))return;h.stopPropagation(),h.preventDefault();const _=this._getChildren().filter(U=>!E(U));let O;if([Cl,Gu].includes(h.key))O=_[h.key===Cl?0:_.length-1];else{const U=[Yu,qu].includes(h.key);O=Q(_,h.target,U,!0)}O&&(O.focus({preventScroll:!0}),On.getOrCreateInstance(O).show())}_getChildren(){return F.find(kl,this._parent)}_getActiveElem(){return this._getChildren().find(h=>this._elemIsActive(h))||null}_setInitialAttributes(h,_){this._setAttributeIfNotExists(h,"role","tablist");for(const O of _)this._setInitialAttributesOnChild(O)}_setInitialAttributesOnChild(h){h=this._getInnerElement(h);const _=this._elemIsActive(h),O=this._getOuterElement(h);h.setAttribute("aria-selected",_),O!==h&&this._setAttributeIfNotExists(O,"role","presentation"),_||h.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(h,"role","tab"),this._setInitialAttributesOnTargetPanel(h)}_setInitialAttributesOnTargetPanel(h){const _=F.getElementFromSelector(h);_&&(this._setAttributeIfNotExists(_,"role","tabpanel"),h.id&&this._setAttributeIfNotExists(_,"aria-labelledby",`${h.id}`))}_toggleDropDown(h,_){const O=this._getOuterElement(h);if(!O.classList.contains(q0))return;const U=(nt,et)=>{const $t=F.findOne(nt,O);$t&&$t.classList.toggle(et,_)};U(Ju,Mn),U(G0,$l),O.setAttribute("aria-expanded",_)}_setAttributeIfNotExists(h,_,O){h.hasAttribute(_)||h.setAttribute(_,O)}_elemIsActive(h){return h.classList.contains(Mn)}_getInnerElement(h){return h.matches(kl)?h:F.findOne(kl,h)}_getOuterElement(h){return h.closest(J0)||h}static jQueryInterface(h){return this.each(function(){const _=On.getOrCreateInstance(this);if(typeof h=="string"){if(_[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);_[h]()}})}}B.on(document,W0,Qu,function(k){["A","AREA"].includes(this.tagName)&&k.preventDefault(),!E(this)&&On.getOrCreateInstance(this).show()}),B.on(window,U0,()=>{for(const k of F.find(Z0))On.getOrCreateInstance(k)}),M(On);const t1="toast",Us=".bs.toast",e1=`mouseover${Us}`,s1=`mouseout${Us}`,n1=`focusin${Us}`,i1=`focusout${Us}`,o1=`hide${Us}`,r1=`hidden${Us}`,a1=`show${Us}`,l1=`shown${Us}`,c1="fade",Zu="hide",Er="show",Sr="showing",d1={animation:"boolean",autohide:"boolean",delay:"number"},u1={animation:!0,autohide:!0,delay:5e3};class oo extends J{constructor(h,_){super(h,_),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return u1}static get DefaultType(){return d1}static get NAME(){return t1}show(){if(B.trigger(this._element,a1).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(c1);const _=()=>{this._element.classList.remove(Sr),B.trigger(this._element,l1),this._maybeScheduleHide()};this._element.classList.remove(Zu),y(this._element),this._element.classList.add(Er,Sr),this._queueCallback(_,this._element,this._config.animation)}hide(){if(!this.isShown()||B.trigger(this._element,o1).defaultPrevented)return;const _=()=>{this._element.classList.add(Zu),this._element.classList.remove(Sr,Er),B.trigger(this._element,r1)};this._element.classList.add(Sr),this._queueCallback(_,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Er),super.dispose()}isShown(){return this._element.classList.contains(Er)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(h,_){switch(h.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=_;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=_;break}}if(_){this._clearTimeout();return}const O=h.relatedTarget;this._element===O||this._element.contains(O)||this._maybeScheduleHide()}_setListeners(){B.on(this._element,e1,h=>this._onInteraction(h,!0)),B.on(this._element,s1,h=>this._onInteraction(h,!1)),B.on(this._element,n1,h=>this._onInteraction(h,!0)),B.on(this._element,i1,h=>this._onInteraction(h,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(h){return this.each(function(){const _=oo.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof _[h]>"u")throw new TypeError(`No method named "${h}"`);_[h](this)}})}}return Z(oo),M(oo),{Alert:Ot,Button:pe,Carousel:ai,Collapse:ci,Dropdown:Ze,Modal:Pn,Offcanvas:Es,Popover:wr,ScrollSpy:io,Tab:On,Toast:oo,Tooltip:kn}})})(_1);/** +* @vue/shared v3.4.29 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function hd(e,t){const s=new Set(e.split(","));return t?n=>s.has(n.toLowerCase()):n=>s.has(n)}const Yt={},yi=[],Ye=()=>{},ax=()=>!1,Va=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fd=e=>e.startsWith("onUpdate:"),ee=Object.assign,pd=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},lx=Object.prototype.hasOwnProperty,Nt=(e,t)=>lx.call(e,t),gt=Array.isArray,xi=e=>tr(e)==="[object Map]",qi=e=>tr(e)==="[object Set]",lh=e=>tr(e)==="[object Date]",wt=e=>typeof e=="function",se=e=>typeof e=="string",Ns=e=>typeof e=="symbol",Ut=e=>e!==null&&typeof e=="object",wg=e=>(Ut(e)||wt(e))&&wt(e.then)&&wt(e.catch),Eg=Object.prototype.toString,tr=e=>Eg.call(e),cx=e=>tr(e).slice(8,-1),Sg=e=>tr(e)==="[object Object]",gd=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,So=hd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ha=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},dx=/-(\w)/g,vs=Ha(e=>e.replace(dx,(t,s)=>s?s.toUpperCase():"")),ux=/\B([A-Z])/g,Gi=Ha(e=>e.replace(ux,"-$1").toLowerCase()),ja=Ha(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tl=Ha(e=>e?`on${ja(e)}`:""),pn=(e,t)=>!Object.is(e,t),ta=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},_a=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Cg=e=>{const t=se(e)?Number(e):NaN;return isNaN(t)?e:t};let ch;const $g=()=>ch||(ch=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mi(e){if(gt(e)){const t={};for(let s=0;s{if(s){const n=s.split(fx);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Rt(e){let t="";if(se(e))t=e;else if(gt(e))for(let s=0;sZn(s,t))}const lt=e=>se(e)?e:e==null?"":gt(e)||Ut(e)&&(e.toString===Eg||!wt(e.toString))?JSON.stringify(e,kg,2):String(e),kg=(e,t)=>t&&t.__v_isRef?kg(e,t.value):xi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],o)=>(s[Ml(n,o)+" =>"]=i,s),{})}:qi(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ml(s))}:Ns(t)?Ml(t):Ut(t)&&!gt(t)&&!Sg(t)?String(t):t,Ml=(e,t="")=>{var s;return Ns(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +* @vue/reactivity v3.4.29 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let De;class Tg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=De,!t&&De&&(this.index=(De.scopes||(De.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const s=De;try{return De=this,t()}finally{De=s}}}on(){De=this}off(){De=this.parent}stop(t){if(this._active){let s,n;for(s=0,n=this.effects.length;s=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),xn()}return this._dirtyLevel>=5}set dirty(t){this._dirtyLevel=t?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=dn,s=Un;try{return dn=!0,Un=this,this._runnings++,dh(this),this.fn()}finally{uh(this),this._runnings--,Un=s,dn=t}}stop(){this.active&&(dh(this),uh(this),this.onStop&&this.onStop(),this.active=!1)}}function yx(e){return e.value}function dh(e){e._trackId++,e._depsLength=0}function uh(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t0){n._dirtyLevel=2;continue}let i;n._dirtyLevel{const s=new Map;return s.cleanup=e,s.computed=t,s},ba=new WeakMap,Kn=Symbol(""),fc=Symbol("");function Me(e,t,s){if(dn&&Un){let n=ba.get(e);n||ba.set(e,n=new Map);let i=n.get(s);i||n.set(s,i=Ng(()=>n.delete(s))),Lg(Un,i)}}function Ls(e,t,s,n,i,o){const r=ba.get(e);if(!r)return;let a=[];if(t==="clear")a=[...r.values()];else if(s==="length"&>(e)){const l=Number(n);r.forEach((c,d)=>{(d==="length"||!Ns(d)&&d>=l)&&a.push(c)})}else switch(s!==void 0&&a.push(r.get(s)),t){case"add":gt(e)?gd(s)&&a.push(r.get("length")):(a.push(r.get(Kn)),xi(e)&&a.push(r.get(fc)));break;case"delete":gt(e)||(a.push(r.get(Kn)),xi(e)&&a.push(r.get(fc)));break;case"set":xi(e)&&a.push(r.get(Kn));break}vd();for(const l of a)l&&Rg(l,5);yd()}function xx(e,t){const s=ba.get(e);return s&&s.get(t)}const wx=hd("__proto__,__v_isRef,__isVue"),Fg=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ns)),hh=Ex();function Ex(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...s){const n=Tt(this);for(let o=0,r=this.length;o{e[t]=function(...s){yn(),vd();const n=Tt(this)[t].apply(this,s);return yd(),xn(),n}}),e}function Sx(e){Ns(e)||(e=String(e));const t=Tt(this);return Me(t,"has",e),t.hasOwnProperty(e)}class Bg{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?Nx:Wg:o?jg:Hg).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=gt(t);if(!i){if(r&&Nt(hh,s))return Reflect.get(hh,s,n);if(s==="hasOwnProperty")return Sx}const a=Reflect.get(t,s,n);return(Ns(s)?Fg.has(s):wx(s))||(i||Me(t,"get",s),o)?a:ae(a)?r&&gd(s)?a:a.value:Ut(a)?i?Ug(a):er(a):a}}class Vg extends Bg{constructor(t=!1){super(!1,t)}set(t,s,n,i){let o=t[s];if(!this._isShallow){const l=No(o);if(!va(n)&&!No(n)&&(o=Tt(o),n=Tt(n)),!gt(t)&&ae(o)&&!ae(n))return l?!1:(o.value=n,!0)}const r=gt(t)&&gd(s)?Number(s)e,Wa=e=>Reflect.getPrototypeOf(e);function $r(e,t,s=!1,n=!1){e=e.__v_raw;const i=Tt(e),o=Tt(t);s||(pn(t,o)&&Me(i,"get",t),Me(i,"get",o));const{has:r}=Wa(i),a=n?xd:s?Sd:Fo;if(r.call(i,t))return a(e.get(t));if(r.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Pr(e,t=!1){const s=this.__v_raw,n=Tt(s),i=Tt(e);return t||(pn(e,i)&&Me(n,"has",e),Me(n,"has",i)),e===i?s.has(e):s.has(e)||s.has(i)}function kr(e,t=!1){return e=e.__v_raw,!t&&Me(Tt(e),"iterate",Kn),Reflect.get(e,"size",e)}function fh(e){e=Tt(e);const t=Tt(this);return Wa(t).has.call(t,e)||(t.add(e),Ls(t,"add",e,e)),this}function ph(e,t){t=Tt(t);const s=Tt(this),{has:n,get:i}=Wa(s);let o=n.call(s,e);o||(e=Tt(e),o=n.call(s,e));const r=i.call(s,e);return s.set(e,t),o?pn(t,r)&&Ls(s,"set",e,t):Ls(s,"add",e,t),this}function gh(e){const t=Tt(this),{has:s,get:n}=Wa(t);let i=s.call(t,e);i||(e=Tt(e),i=s.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return i&&Ls(t,"delete",e,void 0),o}function mh(){const e=Tt(this),t=e.size!==0,s=e.clear();return t&&Ls(e,"clear",void 0,void 0),s}function Tr(e,t){return function(n,i){const o=this,r=o.__v_raw,a=Tt(r),l=t?xd:e?Sd:Fo;return!e&&Me(a,"iterate",Kn),r.forEach((c,d)=>n.call(i,l(c),l(d),o))}}function Mr(e,t,s){return function(...n){const i=this.__v_raw,o=Tt(i),r=xi(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...n),d=s?xd:t?Sd:Fo;return!t&&Me(o,"iterate",l?fc:Kn),{next(){const{value:u,done:f}=c.next();return f?{value:u,done:f}:{value:a?[d(u[0]),d(u[1])]:d(u),done:f}},[Symbol.iterator](){return this}}}}function Ks(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function kx(){const e={get(o){return $r(this,o)},get size(){return kr(this)},has:Pr,add:fh,set:ph,delete:gh,clear:mh,forEach:Tr(!1,!1)},t={get(o){return $r(this,o,!1,!0)},get size(){return kr(this)},has:Pr,add:fh,set:ph,delete:gh,clear:mh,forEach:Tr(!1,!0)},s={get(o){return $r(this,o,!0)},get size(){return kr(this,!0)},has(o){return Pr.call(this,o,!0)},add:Ks("add"),set:Ks("set"),delete:Ks("delete"),clear:Ks("clear"),forEach:Tr(!0,!1)},n={get(o){return $r(this,o,!0,!0)},get size(){return kr(this,!0)},has(o){return Pr.call(this,o,!0)},add:Ks("add"),set:Ks("set"),delete:Ks("delete"),clear:Ks("clear"),forEach:Tr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Mr(o,!1,!1),s[o]=Mr(o,!0,!1),t[o]=Mr(o,!1,!0),n[o]=Mr(o,!0,!0)}),[e,s,t,n]}const[Tx,Mx,Ox,Dx]=kx();function wd(e,t){const s=t?e?Dx:Ox:e?Mx:Tx;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Nt(s,i)&&i in n?s:n,i,o)}const Ix={get:wd(!1,!1)},Lx={get:wd(!1,!0)},Rx={get:wd(!0,!1)};const Hg=new WeakMap,jg=new WeakMap,Wg=new WeakMap,Nx=new WeakMap;function Fx(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bx(e){return e.__v_skip||!Object.isExtensible(e)?0:Fx(cx(e))}function er(e){return No(e)?e:Ed(e,!1,Cx,Ix,Hg)}function zg(e){return Ed(e,!1,Px,Lx,jg)}function Ug(e){return Ed(e,!0,$x,Rx,Wg)}function Ed(e,t,s,n,i){if(!Ut(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=Bx(e);if(r===0)return e;const a=new Proxy(e,r===2?n:s);return i.set(e,a),a}function Yn(e){return No(e)?Yn(e.__v_raw):!!(e&&e.__v_isReactive)}function No(e){return!!(e&&e.__v_isReadonly)}function va(e){return!!(e&&e.__v_isShallow)}function za(e){return e?!!e.__v_raw:!1}function Tt(e){const t=e&&e.__v_raw;return t?Tt(t):e}function Ua(e){return Object.isExtensible(e)&&Ag(e,"__v_skip",!0),e}const Fo=e=>Ut(e)?er(e):e,Sd=e=>Ut(e)?Ug(e):e;class Kg{constructor(t,s,n,i){this.getter=t,this._setter=s,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new bd(()=>t(this._value),()=>ea(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Tt(this);return(!t._cacheable||t.effect.dirty)&&pn(t._value,t._value=t.effect.run())&&ea(t,5),Yg(t),t.effect._dirtyLevel>=2&&ea(t,3),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Vx(e,t,s=!1){let n,i;const o=wt(e);return o?(n=e,i=Ye):(n=e.get,i=e.set),new Kg(n,i,o||!i,s)}function Yg(e){var t;dn&&Un&&(e=Tt(e),Lg(Un,(t=e.dep)!=null?t:e.dep=Ng(()=>e.dep=void 0,e instanceof Kg?e:void 0)))}function ea(e,t=5,s,n){e=Tt(e);const i=e.dep;i&&Rg(i,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function Oi(e){return qg(e,!1)}function Ad(e){return qg(e,!0)}function qg(e,t){return ae(e)?e:new Hx(e,t)}class Hx{constructor(t,s){this.__v_isShallow=s,this.dep=void 0,this.__v_isRef=!0,this._rawValue=s?t:Tt(t),this._value=s?t:Fo(t)}get value(){return Yg(this),this._value}set value(t){const s=this.__v_isShallow||va(t)||No(t);t=s?t:Tt(t),pn(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=s?t:Fo(t),ea(this,5))}}function un(e){return ae(e)?e.value:e}const jx={get:(e,t,s)=>un(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return ae(i)&&!ae(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Gg(e){return Yn(e)?e:new Proxy(e,jx)}function Wx(e){const t=gt(e)?new Array(e.length):{};for(const s in e)t[s]=Ux(e,s);return t}class zx{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return xx(Tt(this._object),this._key)}}function Ux(e,t,s){const n=e[t];return ae(n)?n:new zx(e,t,s)}/** +* @vue/runtime-core v3.4.29 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function hn(e,t,s,n){try{return n?e(...n):e()}catch(i){sr(i,t,s)}}function Je(e,t,s,n){if(wt(e)){const i=hn(e,t,s,n);return i&&wg(i)&&i.catch(o=>{sr(o,t,s)}),i}if(gt(e)){const i=[];for(let o=0;o>>1,i=me[n],o=Vo(i);ohs&&me.splice(t,1)}function gc(e){gt(e)?wi.push(...e):(!Qs||!Qs.includes(e,e.allowRecurse?jn+1:jn))&&wi.push(e),Jg()}function _h(e,t,s=Bo?hs+1:0){for(;sVo(s)-Vo(n));if(wi.length=0,Qs){Qs.push(...t);return}for(Qs=t,jn=0;jne.id==null?1/0:e.id,Gx=(e,t)=>{const s=Vo(e)-Vo(t);if(s===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return s};function Zg(e){pc=!1,Bo=!0,me.sort(Gx);try{for(hs=0;hsse(g)?g.trim():g)),u&&(i=s.map(_a))}let a,l=n[a=Tl(t)]||n[a=Tl(vs(t))];!l&&o&&(l=n[a=Tl(Gi(t))]),l&&Je(l,e,6,i);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Je(c,e,6,i)}}function tm(e,t,s=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!wt(e)){const l=c=>{const d=tm(c,t,!0);d&&(a=!0,ee(r,d))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Ut(e)&&n.set(e,null),null):(gt(o)?o.forEach(l=>r[l]=null):ee(r,o),Ut(e)&&n.set(e,r),r)}function Ka(e,t){return!e||!Va(t)?!1:(t=t.slice(2).replace(/Once$/,""),Nt(e,t[0].toLowerCase()+t.slice(1))||Nt(e,Gi(t))||Nt(e,t))}let Ee=null,Ya=null;function ya(e){const t=Ee;return Ee=e,Ya=e&&e.type.__scopeId||null,t}function Bs(e){Ya=e}function Vs(){Ya=null}function Bt(e,t=Ee,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&Mh(-1);const o=ya(t);let r;try{r=e(...i)}finally{ya(o),n._d&&Mh(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function Ol(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:d,props:u,data:f,setupState:g,ctx:m,inheritAttrs:b}=e,v=ya(e);let w,E;try{if(s.shapeFlag&4){const T=i||n,y=T;w=ss(c.call(y,T,d,u,g,f,m)),E=a}else{const T=t;w=ss(T.length>1?T(u,{attrs:a,slots:r,emit:l}):T(u,null)),E=t.props?a:Qx(a)}}catch(T){Co.length=0,sr(T,e,1),w=dt(we)}let $=w;if(E&&b!==!1){const T=Object.keys(E),{shapeFlag:y}=$;T.length&&y&7&&(o&&T.some(fd)&&(E=Zx(E,o)),$=gn($,E,!1,!0))}return s.dirs&&($=gn($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(s.dirs):s.dirs),s.transition&&($.transition=s.transition),w=$,ya(v),w}function Jx(e,t=!0){let s;for(let n=0;n{let t;for(const s in e)(s==="class"||s==="style"||Va(s))&&((t||(t={}))[s]=e[s]);return t},Zx=(e,t)=>{const s={};for(const n in e)(!fd(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function tw(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?bh(n,r,c):!!r;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;let mc=0;const sw={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,o,r,a,l,c){if(e==null)nw(t,s,n,i,o,r,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}iw(e,t,s,n,i,r,a,l,c)}},hydrate:ow,create:Md,normalize:rw},qa=sw;function Ho(e,t){const s=e.props&&e.props[t];wt(s)&&s()}function nw(e,t,s,n,i,o,r,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),f=e.suspense=Md(e,i,n,t,u,s,o,r,a,l);c(null,f.pendingBranch=e.ssContent,u,null,n,f,o,r),f.deps>0?(Ho(e,"onPending"),Ho(e,"onFallback"),c(null,e.ssFallback,t,s,n,null,o,r),Ei(f,e.ssFallback)):f.resolve(!1,!0)}function iw(e,t,s,n,i,o,r,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const f=t.ssContent,g=t.ssFallback,{activeBranch:m,pendingBranch:b,isInFallback:v,isHydrating:w}=u;if(b)u.pendingBranch=f,fs(f,b)?(l(b,f,u.hiddenContainer,null,i,u,o,r,a),u.deps<=0?u.resolve():v&&(w||(l(m,g,s,n,i,null,o,r,a),Ei(u,g)))):(u.pendingId=mc++,w?(u.isHydrating=!1,u.activeBranch=b):c(b,i,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),v?(l(null,f,u.hiddenContainer,null,i,u,o,r,a),u.deps<=0?u.resolve():(l(m,g,s,n,i,null,o,r,a),Ei(u,g))):m&&fs(f,m)?(l(m,f,s,n,i,u,o,r,a),u.resolve(!0)):(l(null,f,u.hiddenContainer,null,i,u,o,r,a),u.deps<=0&&u.resolve()));else if(m&&fs(f,m))l(m,f,s,n,i,u,o,r,a),Ei(u,f);else if(Ho(t,"onPending"),u.pendingBranch=f,f.shapeFlag&512?u.pendingId=f.component.suspenseId:u.pendingId=mc++,l(null,f,u.hiddenContainer,null,i,u,o,r,a),u.deps<=0)u.resolve();else{const{timeout:E,pendingId:$}=u;E>0?setTimeout(()=>{u.pendingId===$&&u.fallback(g)},E):E===0&&u.fallback(g)}}function Md(e,t,s,n,i,o,r,a,l,c,d=!1){const{p:u,m:f,um:g,n:m,o:{parentNode:b,remove:v}}=c;let w;const E=lw(e);E&&t&&t.pendingBranch&&(w=t.pendingId,t.deps++);const $=e.props?Cg(e.props.timeout):void 0,T=o,y={vnode:e,parent:t,parentComponent:s,namespace:r,container:n,hiddenContainer:i,deps:0,pendingId:mc++,timeout:typeof $=="number"?$:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(x=!1,C=!1){const{vnode:S,activeBranch:P,pendingBranch:M,pendingId:I,effects:N,parentComponent:Q,container:G}=y;let V=!1;y.isHydrating?y.isHydrating=!1:x||(V=P&&M.transition&&M.transition.mode==="out-in",V&&(P.transition.afterLeave=()=>{I===y.pendingId&&(f(M,G,o===T?m(P):o,0),gc(N))}),P&&(b(P.el)!==y.hiddenContainer&&(o=m(P)),g(P,Q,y,!0)),V||f(M,G,o,0)),Ei(y,M),y.pendingBranch=null,y.isInFallback=!1;let L=y.parent,W=!1;for(;L;){if(L.pendingBranch){L.effects.push(...N),W=!0;break}L=L.parent}!W&&!V&&gc(N),y.effects=[],E&&t&&t.pendingBranch&&w===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),Ho(S,"onResolve")},fallback(x){if(!y.pendingBranch)return;const{vnode:C,activeBranch:S,parentComponent:P,container:M,namespace:I}=y;Ho(C,"onFallback");const N=m(S),Q=()=>{y.isInFallback&&(u(null,x,M,N,P,null,I,a,l),Ei(y,x))},G=x.transition&&x.transition.mode==="out-in";G&&(S.transition.afterLeave=Q),y.isInFallback=!0,g(S,P,null,!0),G||Q()},move(x,C,S){y.activeBranch&&f(y.activeBranch,x,C,S),y.container=x},next(){return y.activeBranch&&m(y.activeBranch)},registerDep(x,C,S){const P=!!y.pendingBranch;P&&y.deps++;const M=x.vnode.el;x.asyncDep.catch(I=>{sr(I,x,0)}).then(I=>{if(x.isUnmounted||y.isUnmounted||y.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:N}=x;Ec(x,I,!1),M&&(N.el=M);const Q=!M&&x.subTree.el;C(x,N,b(M||x.subTree.el),M?null:m(x.subTree),y,r,S),Q&&v(Q),Pd(x,N.el),P&&--y.deps===0&&y.resolve()})},unmount(x,C){y.isUnmounted=!0,y.activeBranch&&g(y.activeBranch,s,x,C),y.pendingBranch&&g(y.pendingBranch,s,x,C)}};return y}function ow(e,t,s,n,i,o,r,a,l){const c=t.suspense=Md(t,n,s,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),d=l(e,c.pendingBranch=t.ssContent,s,c,o,r);return c.deps===0&&c.resolve(!1,!0),d}function rw(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=yh(n?s.default:s),e.ssFallback=n?yh(s.fallback):dt(we)}function yh(e){let t;if(wt(e)){const s=Ii&&e._c;s&&(e._d=!1,H()),e=e(),s&&(e._d=!0,t=qe,Sm())}return gt(e)&&(e=Jx(e)),e=ss(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function aw(e,t){t&&t.pendingBranch?gt(e)?t.effects.push(...e):t.effects.push(e):gc(e)}function Ei(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,Pd(n,i))}function lw(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function Ga(e,t,s=ce,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{yn();const a=ir(s),l=Je(t,s,e,r);return a(),xn(),l});return n?i.unshift(o):i.push(o),o}}const Hs=e=>(t,s=ce)=>{(!Za||e==="sp")&&Ga(e,(...n)=>t(...n),s)},cw=Hs("bm"),Od=Hs("m"),dw=Hs("bu"),nm=Hs("u"),Dd=Hs("bum"),im=Hs("um"),uw=Hs("sp"),hw=Hs("rtg"),fw=Hs("rtc");function pw(e,t=ce){Ga("ec",e,t)}function mt(e,t){if(Ee===null)return e;const s=tl(Ee),n=e.dirs||(e.dirs=[]);for(let i=0;it(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,l=r.length;a!!e.type.__asyncLoader,_c=e=>e?Pm(e)?tl(e):_c(e.parent):null,Ao=ee(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_c(e.parent),$root:e=>_c(e.root),$emit:e=>e.emit,$options:e=>Id(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,$d(e.update)}),$nextTick:e=>e.n||(e.n=nr.bind(e.proxy)),$watch:e=>Lw.bind(e)}),Dl=(e,t)=>e!==Yt&&!e.__isScriptSetup&&Nt(e,t),gw={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const g=r[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(Dl(n,t))return r[t]=1,n[t];if(i!==Yt&&Nt(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&Nt(c,t))return r[t]=3,o[t];if(s!==Yt&&Nt(s,t))return r[t]=4,s[t];bc&&(r[t]=0)}}const d=Ao[t];let u,f;if(d)return t==="$attrs"&&Me(e.attrs,"get",""),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(s!==Yt&&Nt(s,t))return r[t]=4,s[t];if(f=l.config.globalProperties,Nt(f,t))return f[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;return Dl(i,t)?(i[t]=s,!0):n!==Yt&&Nt(n,t)?(n[t]=s,!0):Nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,propsOptions:o}},r){let a;return!!s[r]||e!==Yt&&Nt(e,r)||Dl(t,r)||(a=o[0])&&Nt(a,r)||Nt(n,r)||Nt(Ao,r)||Nt(i.config.globalProperties,r)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Nt(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function xh(e){return gt(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let bc=!0;function mw(e){const t=Id(e),s=e.proxy,n=e.ctx;bc=!1,t.beforeCreate&&wh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:f,beforeUpdate:g,updated:m,activated:b,deactivated:v,beforeDestroy:w,beforeUnmount:E,destroyed:$,unmounted:T,render:y,renderTracked:x,renderTriggered:C,errorCaptured:S,serverPrefetch:P,expose:M,inheritAttrs:I,components:N,directives:Q,filters:G}=t;if(c&&_w(c,n,null),r)for(const W in r){const K=r[W];wt(K)&&(n[W]=K.bind(s))}if(i){const W=i.call(s,s);Ut(W)&&(e.data=er(W))}if(bc=!0,o)for(const W in o){const K=o[W],ot=wt(K)?K.bind(s,s):wt(K.get)?K.get.bind(s,s):Ye,ut=!wt(K)&&wt(K.set)?K.set.bind(s):Ye,bt=Ke({get:ot,set:ut});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>bt.value,set:_t=>bt.value=_t})}if(a)for(const W in a)om(a[W],n,s,W);if(l){const W=wt(l)?l.call(s):l;Reflect.ownKeys(W).forEach(K=>{na(K,W[K])})}d&&wh(d,e,"c");function L(W,K){gt(K)?K.forEach(ot=>W(ot.bind(s))):K&&W(K.bind(s))}if(L(cw,u),L(Od,f),L(dw,g),L(nm,m),L(Rw,b),L(Nw,v),L(pw,S),L(fw,x),L(hw,C),L(Dd,E),L(im,T),L(uw,P),gt(M))if(M.length){const W=e.exposed||(e.exposed={});M.forEach(K=>{Object.defineProperty(W,K,{get:()=>s[K],set:ot=>s[K]=ot})})}else e.exposed||(e.exposed={});y&&e.render===Ye&&(e.render=y),I!=null&&(e.inheritAttrs=I),N&&(e.components=N),Q&&(e.directives=Q)}function _w(e,t,s=Ye){gt(e)&&(e=vc(e));for(const n in e){const i=e[n];let o;Ut(i)?"default"in i?o=ms(i.from||n,i.default,!0):o=ms(i.from||n):o=ms(i),ae(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[n]=o}}function wh(e,t,s){Je(gt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function om(e,t,s,n){const i=n.includes(".")?bm(s,n):()=>s[n];if(se(e)){const o=t[e];wt(o)&&qn(i,o)}else if(wt(e))qn(i,e.bind(s));else if(Ut(e))if(gt(e))e.forEach(o=>om(o,t,s,n));else{const o=wt(e.handler)?e.handler.bind(s):t[e.handler];wt(o)&&qn(i,o,e)}}function Id(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!s&&!n?l=t:(l={},i.length&&i.forEach(c=>xa(l,c,r,!0)),xa(l,t,r)),Ut(t)&&o.set(t,l),l}function xa(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&xa(e,o,s,!0),i&&i.forEach(r=>xa(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const a=bw[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const bw={data:Eh,props:Sh,emits:Sh,methods:po,computed:po,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:po,directives:po,watch:yw,provide:Eh,inject:vw};function Eh(e,t){return t?e?function(){return ee(wt(e)?e.call(this,this):e,wt(t)?t.call(this,this):t)}:t:e}function vw(e,t){return po(vc(e),vc(t))}function vc(e){if(gt(e)){const t={};for(let s=0;s1)return s&&wt(t)?t.call(n&&n.proxy):t}}function Ew(){return!!(ce||Ee||Si)}const am={},lm=()=>Object.create(am),cm=e=>Object.getPrototypeOf(e)===am;function Sw(e,t,s,n=!1){const i={},o=lm();e.propsDefaults=Object.create(null),dm(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:zg(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Aw(e,t,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=Tt(i),[l]=e.propsOptions;let c=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[f,g]=um(u,t,!0);ee(r,f),g&&a.push(...g)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return Ut(e)&&n.set(e,yi),yi;if(gt(o))for(let d=0;d-1,g[1]=b<0||m-1||Nt(g,"default"))&&a.push(u)}}}const c=[r,a];return Ut(e)&&n.set(e,c),c}function Ah(e){return e[0]!=="$"&&!So(e)}function Ch(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function $h(e,t){return Ch(e)===Ch(t)}function Ph(e,t){return gt(t)?t.findIndex(s=>$h(s,e)):wt(t)&&$h(t,e)?0:-1}const hm=e=>e[0]==="_"||e==="$stable",Ld=e=>gt(e)?e.map(ss):[ss(e)],Cw=(e,t,s)=>{if(t._n)return t;const n=Bt((...i)=>Ld(t(...i)),s);return n._c=!1,n},fm=(e,t,s)=>{const n=e._ctx;for(const i in e){if(hm(i))continue;const o=e[i];if(wt(o))t[i]=Cw(i,o,n);else if(o!=null){const r=Ld(o);t[i]=()=>r}}},pm=(e,t)=>{const s=Ld(t);e.slots.default=()=>s},$w=(e,t)=>{const s=e.slots=lm();if(e.vnode.shapeFlag&32){const n=t._;n?(ee(s,t),Ag(s,"_",n,!0)):fm(t,s)}else t&&pm(e,t)},Pw=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=Yt;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:(ee(i,t),!s&&a===1&&delete i._):(o=!t.$stable,fm(t,i)),r=t}else t&&(pm(e,t),r={default:1});if(o)for(const a in i)!hm(a)&&r[a]==null&&delete i[a]};function xc(e,t,s,n,i=!1){if(gt(e)){e.forEach((f,g)=>xc(f,t&&(gt(t)?t[g]:t),s,n,i));return}if(sa(n)&&!i)return;const o=n.shapeFlag&4?tl(n.component):n.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,d=a.refs===Yt?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(se(c)?(d[c]=null,Nt(u,c)&&(u[c]=null)):ae(c)&&(c.value=null)),wt(l))hn(l,a,12,[r,d]);else{const f=se(l),g=ae(l);if(f||g){const m=()=>{if(e.f){const b=f?Nt(u,l)?u[l]:d[l]:l.value;i?gt(b)&&pd(b,o):gt(b)?b.includes(o)||b.push(o):f?(d[l]=[o],Nt(u,l)&&(u[l]=d[l])):(l.value=[o],e.k&&(d[e.k]=l.value))}else f?(d[l]=r,Nt(u,l)&&(u[l]=r)):g&&(l.value=r,e.k&&(d[e.k]=r))};r?(m.id=-1,ke(m,s)):m()}}}const ke=aw;function kw(e){return Tw(e)}function Tw(e,t){const s=$g();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:f,setScopeId:g=Ye,insertStaticContent:m}=e,b=(A,D,R,Y=null,z=null,J=null,rt=void 0,F=null,Z=!!D.dynamicChildren)=>{if(A===D)return;A&&!fs(A,D)&&(Y=j(A),_t(A,z,J,!0),A=null),D.patchFlag===-2&&(Z=!1,D.dynamicChildren=null);const{type:X,ref:ct,shapeFlag:pt}=D;switch(X){case Qa:v(A,D,R,Y);break;case we:w(A,D,R,Y);break;case Rl:A==null&&E(D,R,Y,rt);break;case Ht:N(A,D,R,Y,z,J,rt,F,Z);break;default:pt&1?y(A,D,R,Y,z,J,rt,F,Z):pt&6?Q(A,D,R,Y,z,J,rt,F,Z):(pt&64||pt&128)&&X.process(A,D,R,Y,z,J,rt,F,Z,at)}ct!=null&&z&&xc(ct,A&&A.ref,J,D||A,!D)},v=(A,D,R,Y)=>{if(A==null)n(D.el=a(D.children),R,Y);else{const z=D.el=A.el;D.children!==A.children&&c(z,D.children)}},w=(A,D,R,Y)=>{A==null?n(D.el=l(D.children||""),R,Y):D.el=A.el},E=(A,D,R,Y)=>{[A.el,A.anchor]=m(A.children,D,R,Y,A.el,A.anchor)},$=({el:A,anchor:D},R,Y)=>{let z;for(;A&&A!==D;)z=f(A),n(A,R,Y),A=z;n(D,R,Y)},T=({el:A,anchor:D})=>{let R;for(;A&&A!==D;)R=f(A),i(A),A=R;i(D)},y=(A,D,R,Y,z,J,rt,F,Z)=>{D.type==="svg"?rt="svg":D.type==="math"&&(rt="mathml"),A==null?x(D,R,Y,z,J,rt,F,Z):P(A,D,z,J,rt,F,Z)},x=(A,D,R,Y,z,J,rt,F)=>{let Z,X;const{props:ct,shapeFlag:pt,transition:ft,dirs:vt}=A;if(Z=A.el=r(A.type,J,ct&&ct.is,ct),pt&8?d(Z,A.children):pt&16&&S(A.children,Z,null,Y,z,Il(A,J),rt,F),vt&&Dn(A,null,Y,"created"),C(Z,A,A.scopeId,rt,Y),ct){for(const jt in ct)jt!=="value"&&!So(jt)&&o(Z,jt,null,ct[jt],J,A.children,Y,z,Ct);"value"in ct&&o(Z,"value",null,ct.value,J),(X=ct.onVnodeBeforeMount)&&cs(X,Y,A)}vt&&Dn(A,null,Y,"beforeMount");const Et=Mw(z,ft);Et&&ft.beforeEnter(Z),n(Z,D,R),((X=ct&&ct.onVnodeMounted)||Et||vt)&&ke(()=>{X&&cs(X,Y,A),Et&&ft.enter(Z),vt&&Dn(A,null,Y,"mounted")},z)},C=(A,D,R,Y,z)=>{if(R&&g(A,R),Y)for(let J=0;J{for(let X=Z;X{const F=D.el=A.el;let{patchFlag:Z,dynamicChildren:X,dirs:ct}=D;Z|=A.patchFlag&16;const pt=A.props||Yt,ft=D.props||Yt;let vt;if(R&&In(R,!1),(vt=ft.onVnodeBeforeUpdate)&&cs(vt,R,D,A),ct&&Dn(D,A,R,"beforeUpdate"),R&&In(R,!0),X?M(A.dynamicChildren,X,F,R,Y,Il(D,z),J):rt||K(A,D,F,null,R,Y,Il(D,z),J,!1),Z>0){if(Z&16)I(F,D,pt,ft,R,Y,z);else if(Z&2&&pt.class!==ft.class&&o(F,"class",null,ft.class,z),Z&4&&o(F,"style",pt.style,ft.style,z),Z&8){const Et=D.dynamicProps;for(let jt=0;jt{vt&&cs(vt,R,D,A),ct&&Dn(D,A,R,"updated")},Y)},M=(A,D,R,Y,z,J,rt)=>{for(let F=0;F{if(R!==Y){if(R!==Yt)for(const F in R)!So(F)&&!(F in Y)&&o(A,F,R[F],null,rt,D.children,z,J,Ct);for(const F in Y){if(So(F))continue;const Z=Y[F],X=R[F];Z!==X&&F!=="value"&&o(A,F,X,Z,rt,D.children,z,J,Ct)}"value"in Y&&o(A,"value",R.value,Y.value,rt)}},N=(A,D,R,Y,z,J,rt,F,Z)=>{const X=D.el=A?A.el:a(""),ct=D.anchor=A?A.anchor:a("");let{patchFlag:pt,dynamicChildren:ft,slotScopeIds:vt}=D;vt&&(F=F?F.concat(vt):vt),A==null?(n(X,R,Y),n(ct,R,Y),S(D.children||[],R,ct,z,J,rt,F,Z)):pt>0&&pt&64&&ft&&A.dynamicChildren?(M(A.dynamicChildren,ft,R,z,J,rt,F),(D.key!=null||z&&D===z.subTree)&&gm(A,D,!0)):K(A,D,R,ct,z,J,rt,F,Z)},Q=(A,D,R,Y,z,J,rt,F,Z)=>{D.slotScopeIds=F,A==null?D.shapeFlag&512?z.ctx.activate(D,R,Y,rt,Z):G(D,R,Y,z,J,rt,Z):V(A,D,Z)},G=(A,D,R,Y,z,J,rt)=>{const F=A.component=Yw(A,Y,z);if(Ja(A)&&(F.ctx.renderer=at),qw(F),F.asyncDep){if(z&&z.registerDep(F,L,rt),!A.el){const Z=F.subTree=dt(we);w(null,Z,D,R)}}else L(F,A,D,R,z,J,rt)},V=(A,D,R)=>{const Y=D.component=A.component;if(tw(A,D,R))if(Y.asyncDep&&!Y.asyncResolved){W(Y,D,R);return}else Y.next=D,qx(Y.update),Y.effect.dirty=!0,Y.update();else D.el=A.el,Y.vnode=D},L=(A,D,R,Y,z,J,rt)=>{const F=()=>{if(A.isMounted){let{next:ct,bu:pt,u:ft,parent:vt,vnode:Et}=A;{const Ws=mm(A);if(Ws){ct&&(ct.el=Et.el,W(A,ct,rt)),Ws.asyncDep.then(()=>{A.isUnmounted||F()});return}}let jt=ct,Ot;In(A,!1),ct?(ct.el=Et.el,W(A,ct,rt)):ct=Et,pt&&ta(pt),(Ot=ct.props&&ct.props.onVnodeBeforeUpdate)&&cs(Ot,vt,ct,Et),In(A,!0);const ne=Ol(A),He=A.subTree;A.subTree=ne,b(He,ne,u(He.el),j(He),A,z,J),ct.el=ne.el,jt===null&&Pd(A,ne.el),ft&&ke(ft,z),(Ot=ct.props&&ct.props.onVnodeUpdated)&&ke(()=>cs(Ot,vt,ct,Et),z)}else{let ct;const{el:pt,props:ft}=D,{bm:vt,m:Et,parent:jt}=A,Ot=sa(D);if(In(A,!1),vt&&ta(vt),!Ot&&(ct=ft&&ft.onVnodeBeforeMount)&&cs(ct,jt,D),In(A,!0),pt&&Mt){const ne=()=>{A.subTree=Ol(A),Mt(pt,A.subTree,A,z,null)};Ot?D.type.__asyncLoader().then(()=>!A.isUnmounted&&ne()):ne()}else{const ne=A.subTree=Ol(A);b(null,ne,R,Y,A,z,J),D.el=ne.el}if(Et&&ke(Et,z),!Ot&&(ct=ft&&ft.onVnodeMounted)){const ne=D;ke(()=>cs(ct,jt,ne),z)}(D.shapeFlag&256||jt&&sa(jt.vnode)&&jt.vnode.shapeFlag&256)&&A.a&&ke(A.a,z),A.isMounted=!0,D=R=Y=null}},Z=A.effect=new bd(F,Ye,()=>$d(X),A.scope),X=A.update=()=>{Z.dirty&&Z.run()};X.id=A.uid,In(A,!0),X()},W=(A,D,R)=>{D.component=A;const Y=A.vnode.props;A.vnode=D,A.next=null,Aw(A,D.props,Y,R),Pw(A,D.children,R),yn(),_h(A),xn()},K=(A,D,R,Y,z,J,rt,F,Z=!1)=>{const X=A&&A.children,ct=A?A.shapeFlag:0,pt=D.children,{patchFlag:ft,shapeFlag:vt}=D;if(ft>0){if(ft&128){ut(X,pt,R,Y,z,J,rt,F,Z);return}else if(ft&256){ot(X,pt,R,Y,z,J,rt,F,Z);return}}vt&8?(ct&16&&Ct(X,z,J),pt!==X&&d(R,pt)):ct&16?vt&16?ut(X,pt,R,Y,z,J,rt,F,Z):Ct(X,z,J,!0):(ct&8&&d(R,""),vt&16&&S(pt,R,Y,z,J,rt,F,Z))},ot=(A,D,R,Y,z,J,rt,F,Z)=>{A=A||yi,D=D||yi;const X=A.length,ct=D.length,pt=Math.min(X,ct);let ft;for(ft=0;ftct?Ct(A,z,J,!0,!1,pt):S(D,R,Y,z,J,rt,F,Z,pt)},ut=(A,D,R,Y,z,J,rt,F,Z)=>{let X=0;const ct=D.length;let pt=A.length-1,ft=ct-1;for(;X<=pt&&X<=ft;){const vt=A[X],Et=D[X]=Z?tn(D[X]):ss(D[X]);if(fs(vt,Et))b(vt,Et,R,null,z,J,rt,F,Z);else break;X++}for(;X<=pt&&X<=ft;){const vt=A[pt],Et=D[ft]=Z?tn(D[ft]):ss(D[ft]);if(fs(vt,Et))b(vt,Et,R,null,z,J,rt,F,Z);else break;pt--,ft--}if(X>pt){if(X<=ft){const vt=ft+1,Et=vtft)for(;X<=pt;)_t(A[X],z,J,!0),X++;else{const vt=X,Et=X,jt=new Map;for(X=Et;X<=ft;X++){const ye=D[X]=Z?tn(D[X]):ss(D[X]);ye.key!=null&&jt.set(ye.key,X)}let Ot,ne=0;const He=ft-Et+1;let Ws=!1,hr=0;const An=new Array(He);for(X=0;X=He){_t(ye,z,J,!0);continue}let pe;if(ye.key!=null)pe=jt.get(ye.key);else for(Ot=Et;Ot<=ft;Ot++)if(An[Ot-Et]===0&&fs(ye,D[Ot])){pe=Ot;break}pe===void 0?_t(ye,z,J,!0):(An[pe-Et]=X+1,pe>=hr?hr=pe:Ws=!0,b(ye,D[pe],R,null,z,J,rt,F,Z),ne++)}const to=Ws?Ow(An):yi;for(Ot=to.length-1,X=He-1;X>=0;X--){const ye=Et+X,pe=D[ye],fr=ye+1{const{el:J,type:rt,transition:F,children:Z,shapeFlag:X}=A;if(X&6){bt(A.component.subTree,D,R,Y);return}if(X&128){A.suspense.move(D,R,Y);return}if(X&64){rt.move(A,D,R,at);return}if(rt===Ht){n(J,D,R);for(let pt=0;ptF.enter(J),z);else{const{leave:pt,delayLeave:ft,afterLeave:vt}=F,Et=()=>n(J,D,R),jt=()=>{pt(J,()=>{Et(),vt&&vt()})};ft?ft(J,Et,jt):jt()}else n(J,D,R)},_t=(A,D,R,Y=!1,z=!1)=>{const{type:J,props:rt,ref:F,children:Z,dynamicChildren:X,shapeFlag:ct,patchFlag:pt,dirs:ft,memoIndex:vt}=A;if(F!=null&&xc(F,null,R,A,!0),vt!=null&&(D.renderCache[vt]=void 0),ct&256){D.ctx.deactivate(A);return}const Et=ct&1&&ft,jt=!sa(A);let Ot;if(jt&&(Ot=rt&&rt.onVnodeBeforeUnmount)&&cs(Ot,D,A),ct&6)Lt(A.component,R,Y);else{if(ct&128){A.suspense.unmount(R,Y);return}Et&&Dn(A,null,D,"beforeUnmount"),ct&64?A.type.remove(A,D,R,z,at,Y):X&&(J!==Ht||pt>0&&pt&64)?Ct(X,D,R,!1,!0):(J===Ht&&pt&384||!z&&ct&16)&&Ct(Z,D,R),Y&&Pt(A)}(jt&&(Ot=rt&&rt.onVnodeUnmounted)||Et)&&ke(()=>{Ot&&cs(Ot,D,A),Et&&Dn(A,null,D,"unmounted")},R)},Pt=A=>{const{type:D,el:R,anchor:Y,transition:z}=A;if(D===Ht){At(R,Y);return}if(D===Rl){T(A);return}const J=()=>{i(R),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(A.shapeFlag&1&&z&&!z.persisted){const{leave:rt,delayLeave:F}=z,Z=()=>rt(R,J);F?F(A.el,J,Z):Z()}else J()},At=(A,D)=>{let R;for(;A!==D;)R=f(A),i(A),A=R;i(D)},Lt=(A,D,R)=>{const{bum:Y,scope:z,update:J,subTree:rt,um:F,m:Z,a:X}=A;kh(Z),kh(X),Y&&ta(Y),z.stop(),J&&(J.active=!1,_t(rt,A,D,R)),F&&ke(F,D),ke(()=>{A.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},Ct=(A,D,R,Y=!1,z=!1,J=0)=>{for(let rt=J;rtA.shapeFlag&6?j(A.component.subTree):A.shapeFlag&128?A.suspense.next():f(A.anchor||A.el);let st=!1;const tt=(A,D,R)=>{A==null?D._vnode&&_t(D._vnode,null,null,!0):b(D._vnode||null,A,D,null,null,null,R),st||(st=!0,_h(),Qg(),st=!1),D._vnode=A},at={p:b,um:_t,m:bt,r:Pt,mt:G,mc:S,pc:K,pbc:M,n:j,o:e};let B,Mt;return t&&([B,Mt]=t(at)),{render:tt,hydrate:B,createApp:ww(tt,B)}}function Il({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function In({effect:e,update:t},s){e.allowRecurse=t.allowRecurse=s}function Mw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gm(e,t,s=!1){const n=e.children,i=t.children;if(gt(n)&>(i))for(let o=0;o>1,e[s[a]]0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function mm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mm(t)}function kh(e){if(e)for(let t=0;tms(Dw),Or={};function qn(e,t,s){return _m(e,t,s)}function _m(e,t,{immediate:s,deep:n,flush:i,once:o,onTrack:r,onTrigger:a}=Yt){if(t&&o){const x=t;t=(...C)=>{x(...C),y()}}const l=ce,c=x=>n===!0?x:sn(x,n===!1?1:void 0);let d,u=!1,f=!1;if(ae(e)?(d=()=>e.value,u=va(e)):Yn(e)?(d=()=>c(e),u=!0):gt(e)?(f=!0,u=e.some(x=>Yn(x)||va(x)),d=()=>e.map(x=>{if(ae(x))return x.value;if(Yn(x))return c(x);if(wt(x))return hn(x,l,2)})):wt(e)?t?d=()=>hn(e,l,2):d=()=>(g&&g(),Je(e,l,3,[m])):d=Ye,t&&n){const x=d;d=()=>sn(x())}let g,m=x=>{g=$.onStop=()=>{hn(x,l,4),g=$.onStop=void 0}},b;if(Za)if(m=Ye,t?s&&Je(t,l,3,[d(),f?[]:void 0,m]):d(),i==="sync"){const x=Iw();b=x.__watcherHandles||(x.__watcherHandles=[])}else return Ye;let v=f?new Array(e.length).fill(Or):Or;const w=()=>{if(!(!$.active||!$.dirty))if(t){const x=$.run();(n||u||(f?x.some((C,S)=>pn(C,v[S])):pn(x,v)))&&(g&&g(),Je(t,l,3,[x,v===Or?void 0:f&&v[0]===Or?[]:v,m]),v=x)}else $.run()};w.allowRecurse=!!t;let E;i==="sync"?E=w:i==="post"?E=()=>ke(w,l&&l.suspense):(w.pre=!0,l&&(w.id=l.uid),E=()=>$d(w));const $=new bd(d,Ye,E),T=_d(),y=()=>{$.stop(),T&&pd(T.effects,$)};return t?s?w():v=$.run():i==="post"?ke($.run.bind($),l&&l.suspense):$.run(),b&&b.push(y),y}function Lw(e,t,s){const n=this.proxy,i=se(e)?e.includes(".")?bm(n,e):()=>n[e]:e.bind(n,n);let o;wt(t)?o=t:(o=t.handler,s=t);const r=ir(this),a=_m(i,o.bind(n),s);return r(),a}function bm(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i{sn(n,t,s)});else if(Sg(e)){for(const n in e)sn(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&sn(e[n],t,s)}return e}const Ja=e=>e.type.__isKeepAlive;function Rw(e,t){vm(e,"a",t)}function Nw(e,t){vm(e,"da",t)}function vm(e,t,s=ce){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ga(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Ja(i.parent.vnode)&&Fw(n,t,s,i),i=i.parent}}function Fw(e,t,s,n){const i=Ga(t,e,n,!0);im(()=>{pd(n[t],i)},s)}const Zs=Symbol("_leaveCb"),Dr=Symbol("_enterCb");function ym(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Od(()=>{e.isMounted=!0}),Dd(()=>{e.isUnmounting=!0}),e}const ze=[Function,Array],xm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ze,onEnter:ze,onAfterEnter:ze,onEnterCancelled:ze,onBeforeLeave:ze,onLeave:ze,onAfterLeave:ze,onLeaveCancelled:ze,onBeforeAppear:ze,onAppear:ze,onAfterAppear:ze,onAppearCancelled:ze},wm=e=>{const t=e.subTree;return t.component?wm(t.component):t},Bw={name:"BaseTransition",props:xm,setup(e,{slots:t}){const s=$m(),n=ym();return()=>{const i=t.default&&Rd(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const f of i)if(f.type!==we){o=f;break}}const r=Tt(e),{mode:a}=r;if(n.isLeaving)return Ll(o);const l=Th(o);if(!l)return Ll(o);let c=jo(l,r,n,s,f=>c=f);Di(l,c);const d=s.subTree,u=d&&Th(d);if(u&&u.type!==we&&!fs(l,u)&&wm(s).type!==we){const f=jo(u,r,n,s);if(Di(u,f),a==="out-in"&&l.type!==we)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,s.update.active!==!1&&(s.effect.dirty=!0,s.update())},Ll(o);a==="in-out"&&l.type!==we&&(f.delayLeave=(g,m,b)=>{const v=Em(n,u);v[String(u.key)]=u,g[Zs]=()=>{m(),g[Zs]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return o}}},Vw=Bw;function Em(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function jo(e,t,s,n,i){const{appear:o,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:f,onLeave:g,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:v,onAppear:w,onAfterAppear:E,onAppearCancelled:$}=t,T=String(e.key),y=Em(s,e),x=(P,M)=>{P&&Je(P,n,9,M)},C=(P,M)=>{const I=M[1];x(P,M),gt(P)?P.every(N=>N.length<=1)&&I():P.length<=1&&I()},S={mode:r,persisted:a,beforeEnter(P){let M=l;if(!s.isMounted)if(o)M=v||l;else return;P[Zs]&&P[Zs](!0);const I=y[T];I&&fs(e,I)&&I.el[Zs]&&I.el[Zs](),x(M,[P])},enter(P){let M=c,I=d,N=u;if(!s.isMounted)if(o)M=w||c,I=E||d,N=$||u;else return;let Q=!1;const G=P[Dr]=V=>{Q||(Q=!0,V?x(N,[P]):x(I,[P]),S.delayedLeave&&S.delayedLeave(),P[Dr]=void 0)};M?C(M,[P,G]):G()},leave(P,M){const I=String(e.key);if(P[Dr]&&P[Dr](!0),s.isUnmounting)return M();x(f,[P]);let N=!1;const Q=P[Zs]=G=>{N||(N=!0,M(),G?x(b,[P]):x(m,[P]),P[Zs]=void 0,y[I]===e&&delete y[I])};y[I]=e,g?C(g,[P,Q]):Q()},clone(P){const M=jo(P,t,s,n,i);return i&&i(M),M}};return S}function Ll(e){if(Ja(e))return e=gn(e),e.children=null,e}function Th(e){if(!Ja(e))return e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&wt(s.default))return s.default()}}function Di(e,t){e.shapeFlag&6&&e.component?Di(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Rd(e,t=!1,s){let n=[],i=0;for(let o=0;o1)for(let o=0;oe.__isTeleport,Ht=Symbol.for("v-fgt"),Qa=Symbol.for("v-txt"),we=Symbol.for("v-cmt"),Rl=Symbol.for("v-stc"),Co=[];let qe=null;function H(e=!1){Co.push(qe=e?null:[])}function Sm(){Co.pop(),qe=Co[Co.length-1]||null}let Ii=1;function Mh(e){Ii+=e}function Am(e){return e.dynamicChildren=Ii>0?qe||yi:null,Sm(),Ii>0&&qe&&qe.push(e),e}function q(e,t,s,n,i,o){return Am(p(e,t,s,n,i,o,!0))}function oe(e,t,s,n,i){return Am(dt(e,t,s,n,i,!0))}function wa(e){return e?e.__v_isVNode===!0:!1}function fs(e,t){return e.type===t.type&&e.key===t.key}const Cm=({key:e})=>e??null,ia=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?se(e)||ae(e)||wt(e)?{i:Ee,r:e,k:t,f:!!s}:e:null);function p(e,t=null,s=null,n=0,i=null,o=e===Ht?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Cm(t),ref:t&&ia(t),scopeId:Ya,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ee};return a?(Nd(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=se(s)?8:16),Ii>0&&!r&&qe&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&qe.push(l),l}const dt=jw;function jw(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===em)&&(e=we),wa(e)){const a=gn(e,t,!0);return s&&Nd(a,s),Ii>0&&!o&&qe&&(a.shapeFlag&6?qe[qe.indexOf(e)]=a:qe.push(a)),a.patchFlag=-2,a}if(Zw(e)&&(e=e.__vccOpts),t){t=Ww(t);let{class:a,style:l}=t;a&&!se(a)&&(t.class=Rt(a)),Ut(l)&&(za(l)&&!gt(l)&&(l=ee({},l)),t.style=Mi(l))}const r=se(e)?1:ew(e)?128:Hw(e)?64:Ut(e)?4:wt(e)?2:0;return p(e,t,s,n,i,r,o,!0)}function Ww(e){return e?za(e)||cm(e)?ee({},e):e:null}function gn(e,t,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,c=t?zw(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Cm(c),ref:t&&t.ref?s&&o?gt(o)?o.concat(ia(t)):[o,ia(t)]:ia(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ht?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gn(e.ssContent),ssFallback:e.ssFallback&&gn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Di(d,l.clone(d)),d}function ht(e=" ",t=0){return dt(Qa,null,e,t)}function Vt(e="",t=!1){return t?(H(),oe(we,null,e)):dt(we,null,e)}function ss(e){return e==null||typeof e=="boolean"?dt(we):gt(e)?dt(Ht,null,e.slice()):typeof e=="object"?tn(e):dt(Qa,null,String(e))}function tn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gn(e)}function Nd(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(gt(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Nd(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!cm(t)?t._ctx=Ee:i===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else wt(t)?(t={default:t,_ctx:Ee},s=32):(t=String(t),n&64?(s=16,t=[ht(t)]):s=8);e.children=t,e.shapeFlag|=s}function zw(...e){const t={};for(let s=0;sce||Ee;let Ea,wc;{const e=$g(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Ea=t("__VUE_INSTANCE_SETTERS__",s=>ce=s),wc=t("__VUE_SSR_SETTERS__",s=>Za=s)}const ir=e=>{const t=ce;return Ea(e),e.scope.on(),()=>{e.scope.off(),Ea(t)}},Oh=()=>{ce&&ce.scope.off(),Ea(null)};function Pm(e){return e.vnode.shapeFlag&4}let Za=!1;function qw(e,t=!1){t&&wc(t);const{props:s,children:n}=e.vnode,i=Pm(e);Sw(e,s,i,t),$w(e,n);const o=i?Gw(e,t):void 0;return t&&wc(!1),o}function Gw(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gw);const{setup:n}=s;if(n){const i=e.setupContext=n.length>1?Jw(e):null,o=ir(e);yn();const r=hn(n,e,0,[e.props,i]);if(xn(),o(),wg(r)){if(r.then(Oh,Oh),t)return r.then(a=>{Ec(e,a,t)}).catch(a=>{sr(a,e,0)});e.asyncDep=r}else Ec(e,r,t)}else km(e,t)}function Ec(e,t,s){wt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ut(t)&&(e.setupState=Gg(t)),km(e,s)}let Dh;function km(e,t,s){const n=e.type;if(!e.render){if(!t&&Dh&&!n.render){const i=n.template||Id(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=ee(ee({isCustomElement:o,delimiters:a},r),l);n.render=Dh(i,c)}}e.render=n.render||Ye}{const i=ir(e);yn();try{mw(e)}finally{xn(),i()}}}const Xw={get(e,t){return Me(e,"get",""),e[t]}};function Jw(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Xw),slots:e.slots,emit:e.emit,expose:t}}function tl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gg(Ua(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ao)return Ao[s](e)},has(t,s){return s in t||s in Ao}})):e.proxy}function Qw(e,t=!0){return wt(e)?e.displayName||e.name:e.name||t&&e.__name}function Zw(e){return wt(e)&&"__vccOpts"in e}const Ke=(e,t)=>Vx(e,t,Za);function Li(e,t,s){const n=arguments.length;return n===2?Ut(t)&&!gt(t)?wa(t)?dt(e,null,[t]):dt(e,t):dt(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&wa(s)&&(s=[s]),dt(e,t,s))}const Tm="3.4.29";/** +* @vue/runtime-dom v3.4.29 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const tE="http://www.w3.org/2000/svg",eE="http://www.w3.org/1998/Math/MathML",ks=typeof document<"u"?document:null,Ih=ks&&ks.createElement("template"),sE={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?ks.createElementNS(tE,e):t==="mathml"?ks.createElementNS(eE,e):s?ks.createElement(e,{is:s}):ks.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ks.createTextNode(e),createComment:e=>ks.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ks.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,o){const r=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Ih.innerHTML=n==="svg"?`${e}`:n==="mathml"?`${e}`:e;const a=Ih.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ys="transition",ro="animation",Ri=Symbol("_vtc"),is=(e,{slots:t})=>Li(Vw,Om(e),t);is.displayName="Transition";const Mm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},nE=is.props=ee({},xm,Mm),Ln=(e,t=[])=>{gt(e)?e.forEach(s=>s(...t)):e&&e(...t)},Lh=e=>e?gt(e)?e.some(t=>t.length>1):e.length>1:!1;function Om(e){const t={};for(const N in e)N in Mm||(t[N]=e[N]);if(e.css===!1)return t;const{name:s="v",type:n,duration:i,enterFromClass:o=`${s}-enter-from`,enterActiveClass:r=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:d=a,leaveFromClass:u=`${s}-leave-from`,leaveActiveClass:f=`${s}-leave-active`,leaveToClass:g=`${s}-leave-to`}=e,m=iE(i),b=m&&m[0],v=m&&m[1],{onBeforeEnter:w,onEnter:E,onEnterCancelled:$,onLeave:T,onLeaveCancelled:y,onBeforeAppear:x=w,onAppear:C=E,onAppearCancelled:S=$}=t,P=(N,Q,G)=>{Xs(N,Q?d:a),Xs(N,Q?c:r),G&&G()},M=(N,Q)=>{N._isLeaving=!1,Xs(N,u),Xs(N,g),Xs(N,f),Q&&Q()},I=N=>(Q,G)=>{const V=N?C:E,L=()=>P(Q,N,G);Ln(V,[Q,L]),Rh(()=>{Xs(Q,N?l:o),Cs(Q,N?d:a),Lh(V)||Nh(Q,n,b,L)})};return ee(t,{onBeforeEnter(N){Ln(w,[N]),Cs(N,o),Cs(N,r)},onBeforeAppear(N){Ln(x,[N]),Cs(N,l),Cs(N,c)},onEnter:I(!1),onAppear:I(!0),onLeave(N,Q){N._isLeaving=!0;const G=()=>M(N,Q);Cs(N,u),Cs(N,f),Im(),Rh(()=>{N._isLeaving&&(Xs(N,u),Cs(N,g),Lh(T)||Nh(N,n,v,G))}),Ln(T,[N,G])},onEnterCancelled(N){P(N,!1),Ln($,[N])},onAppearCancelled(N){P(N,!0),Ln(S,[N])},onLeaveCancelled(N){M(N),Ln(y,[N])}})}function iE(e){if(e==null)return null;if(Ut(e))return[Nl(e.enter),Nl(e.leave)];{const t=Nl(e);return[t,t]}}function Nl(e){return Cg(e)}function Cs(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Ri]||(e[Ri]=new Set)).add(t)}function Xs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Ri];s&&(s.delete(t),s.size||(e[Ri]=void 0))}function Rh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let oE=0;function Nh(e,t,s,n){const i=e._endId=++oE,o=()=>{i===e._endId&&n()};if(s)return setTimeout(o,s);const{type:r,timeout:a,propCount:l}=Dm(e,t);if(!r)return n();const c=r+"end";let d=0;const u=()=>{e.removeEventListener(c,f),o()},f=g=>{g.target===e&&++d>=l&&u()};setTimeout(()=>{d(s[m]||"").split(", "),i=n(`${Ys}Delay`),o=n(`${Ys}Duration`),r=Fh(i,o),a=n(`${ro}Delay`),l=n(`${ro}Duration`),c=Fh(a,l);let d=null,u=0,f=0;t===Ys?r>0&&(d=Ys,u=r,f=o.length):t===ro?c>0&&(d=ro,u=c,f=l.length):(u=Math.max(r,c),d=u>0?r>c?Ys:ro:null,f=d?d===Ys?o.length:l.length:0);const g=d===Ys&&/\b(transform|all)(,|$)/.test(n(`${Ys}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:g}}function Fh(e,t){for(;e.lengthBh(s)+Bh(e[n])))}function Bh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Im(){return document.body.offsetHeight}function rE(e,t,s){const n=e[Ri];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Vh=Symbol("_vod"),aE=Symbol("_vsh"),lE=Symbol(""),cE=/(^|;)\s*display\s*:/;function dE(e,t,s){const n=e.style,i=se(s);let o=!1;if(s&&!i){if(t)if(se(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&oa(n,a,"")}else for(const r in t)s[r]==null&&oa(n,r,"");for(const r in s)r==="display"&&(o=!0),oa(n,r,s[r])}else if(i){if(t!==s){const r=n[lE];r&&(s+=";"+r),n.cssText=s,o=cE.test(s)}}else t&&e.removeAttribute("style");Vh in e&&(e[Vh]=o?n.display:"",e[aE]&&(n.display="none"))}const Hh=/\s*!important$/;function oa(e,t,s){if(gt(s))s.forEach(n=>oa(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=uE(e,t);Hh.test(s)?e.setProperty(Gi(n),s.replace(Hh,""),"important"):e[n]=s}}const jh=["Webkit","Moz","ms"],Fl={};function uE(e,t){const s=Fl[t];if(s)return s;let n=vs(t);if(n!=="filter"&&n in e)return Fl[t]=n;n=ja(n);for(let i=0;iBl||(mE.then(()=>Bl=0),Bl=Date.now());function bE(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Je(vE(n,s.value),t,5,[n])};return s.value=e,s.attached=_E(),s}function vE(e,t){if(gt(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Yh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yE=(e,t,s,n,i,o,r,a,l)=>{const c=i==="svg";t==="class"?rE(e,n,c):t==="style"?dE(e,s,n):Va(t)?fd(t)||pE(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xE(e,t,n,c))?(hE(e,t,n,o,r,a,l),(t==="value"||t==="checked"||t==="selected")&&zh(e,t,n,c,r,t!=="value")):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),zh(e,t,n,c))};function xE(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Yh(t)&&wt(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Yh(t)&&se(s)?!1:t in e}const Lm=new WeakMap,Rm=new WeakMap,Sa=Symbol("_moveCb"),qh=Symbol("_enterCb"),Nm={name:"TransitionGroup",props:ee({},nE,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=$m(),n=ym();let i,o;return nm(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!CE(i[0].el,s.vnode.el,r))return;i.forEach(EE),i.forEach(SE);const a=i.filter(AE);Im(),a.forEach(l=>{const c=l.el,d=c.style;Cs(c,r),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Sa]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",u),c[Sa]=null,Xs(c,r))};c.addEventListener("transitionend",u)})}),()=>{const r=Tt(e),a=Om(r);let l=r.tag||Ht;if(i=[],o)for(let c=0;cdelete e.mode;Nm.props;const or=Nm;function EE(e){const t=e.el;t[Sa]&&t[Sa](),t[qh]&&t[qh]()}function SE(e){Rm.set(e,e.el.getBoundingClientRect())}function AE(e){const t=Lm.get(e),s=Rm.get(e),n=t.left-s.left,i=t.top-s.top;if(n||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${n}px,${i}px)`,o.transitionDuration="0s",e}}function CE(e,t,s){const n=e.cloneNode(),i=e[Ri];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),s.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:r}=Dm(n);return o.removeChild(n),r}const mn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return gt(t)?s=>ta(t,s):t};function $E(e){e.target.composing=!0}function Gh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qe=Symbol("_assign"),yt={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Qe]=mn(i);const o=n||i.props&&i.props.type==="number";Ms(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;s&&(a=a.trim()),o&&(a=_a(a)),e[Qe](a)}),s&&Ms(e,"change",()=>{e.value=e.value.trim()}),t||(Ms(e,"compositionstart",$E),Ms(e,"compositionend",Gh),Ms(e,"change",Gh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:o}},r){if(e[Qe]=mn(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?_a(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===l)||(e.value=l))}},Xi={deep:!0,created(e,t,s){e[Qe]=mn(s),Ms(e,"change",()=>{const n=e._modelValue,i=Ni(e),o=e.checked,r=e[Qe];if(gt(n)){const a=md(n,i),l=a!==-1;if(o&&!l)r(n.concat(i));else if(!o&&l){const c=[...n];c.splice(a,1),r(c)}}else if(qi(n)){const a=new Set(n);o?a.add(i):a.delete(i),r(a)}else r(Fm(e,o))})},mounted:Xh,beforeUpdate(e,t,s){e[Qe]=mn(s),Xh(e,t,s)}};function Xh(e,{value:t,oldValue:s},n){e._modelValue=t,gt(t)?e.checked=md(t,n.props.value)>-1:qi(t)?e.checked=t.has(n.props.value):t!==s&&(e.checked=Zn(t,Fm(e,!0)))}const PE={created(e,{value:t},s){e.checked=Zn(t,s.props.value),e[Qe]=mn(s),Ms(e,"change",()=>{e[Qe](Ni(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Qe]=mn(n),t!==s&&(e.checked=Zn(t,n.props.value))}},ra={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=qi(t);Ms(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?_a(Ni(r)):Ni(r));e[Qe](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,nr(()=>{e._assigning=!1})}),e[Qe]=mn(n)},mounted(e,{value:t,modifiers:{number:s}}){Jh(e,t)},beforeUpdate(e,t,s){e[Qe]=mn(s)},updated(e,{value:t,modifiers:{number:s}}){e._assigning||Jh(e,t)}};function Jh(e,t,s){const n=e.multiple,i=gt(t);if(!(n&&!i&&!qi(t))){for(let o=0,r=e.options.length;oString(d)===String(l)):a.selected=md(t,l)>-1}else a.selected=t.has(l);else if(Zn(Ni(a),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ni(e){return"_value"in e?e._value:e.value}function Fm(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const kE={created(e,t,s){Ir(e,t,s,null,"created")},mounted(e,t,s){Ir(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){Ir(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){Ir(e,t,s,n,"updated")}};function TE(e,t){switch(e){case"SELECT":return ra;case"TEXTAREA":return yt;default:switch(t){case"checkbox":return Xi;case"radio":return PE;default:return yt}}}function Ir(e,t,s,n,i){const r=TE(e.tagName,s.props&&s.props.type)[i];r&&r(e,t,s,n)}const ME=ee({patchProp:yE},sE);let Qh;function OE(){return Qh||(Qh=kw(ME))}const DE=(...e)=>{const t=OE().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=LE(n);if(!i)return;const o=t._component;!wt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=s(i,!1,IE(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function IE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function LE(e){return se(e)?document.querySelector(e):e}var RE=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let km;const nl=e=>km=e,$m=Symbol();function Ec(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var To;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(To||(To={}));function LE(){const e=Ag(!0),t=e.run(()=>Li({}));let n=[],s=[];const i=rr({install(o){nl(i),i._a=o,o.provide($m,i),o.config.globalProperties.$pinia=i,s.forEach(r=>n.push(r)),s=[]},use(o){return!this._a&&!IE?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Mm=()=>{};function qh(e,t,n,s=Mm){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&hu()&&Cg(i),i}function fi(e,...t){e.slice().forEach(n=>{n(...t)})}const RE=e=>e();function Sc(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];Ec(i)&&Ec(s)&&e.hasOwnProperty(n)&&!re(s)&&!is(s)?e[n]=Sc(i,s):e[n]=s}return e}const NE=Symbol();function FE(e){return!Ec(e)||!e.hasOwnProperty(NE)}const{assign:Yn}=Object;function BE(e){return!!(re(e)&&e.effect)}function VE(e,t,n,s){const{state:i,actions:o,getters:r}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=i?i():{});const u=B1(n.state.value[e]);return Yn(u,o,Object.keys(r||{}).reduce((d,f)=>(d[f]=rr(We(()=>{nl(n);const p=n._s.get(e);return r[f].call(p,p)})),d),{}))}return l=Om(e,c,t,n,s,!0),l}function Om(e,t,n={},s,i,o){let r;const a=Yn({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],p;const m=s.state.value[e];!o&&!m&&(s.state.value[e]={}),Li({});let _;function v(w){let $;c=u=!1,typeof w=="function"?(w(s.state.value[e]),$={type:To.patchFunction,storeId:e,events:p}):(Sc(s.state.value[e],w),$={type:To.patchObject,payload:w,storeId:e,events:p});const D=_=Symbol();Ka().then(()=>{_===D&&(c=!0)}),u=!0,fi(d,$,s.state.value[e])}const x=o?function(){const{state:$}=n,D=$?$():{};this.$patch(I=>{Yn(I,D)})}:Mm;function S(){r.stop(),d=[],f=[],s._s.delete(e)}function P(w,$){return function(){nl(s);const D=Array.from(arguments),I=[],N=[];function Q(R){I.push(R)}function Y(R){N.push(R)}fi(f,{args:D,name:w,store:y,after:Q,onError:Y});let H;try{H=$.apply(this&&this.$id===e?this:y,D)}catch(R){throw fi(N,R),R}return H instanceof Promise?H.then(R=>(fi(I,R),R)).catch(R=>(fi(N,R),Promise.reject(R))):(fi(I,H),H)}}const A={_p:s,$id:e,$onAction:qh.bind(null,f),$patch:v,$reset:x,$subscribe(w,$={}){const D=qh(d,w,$.detached,()=>I()),I=r.run(()=>zs(()=>s.state.value[e],N=>{($.flush==="sync"?u:c)&&w({storeId:e,type:To.direct,events:p},N)},Yn({},l,$)));return D},$dispose:S},y=or(A);s._s.set(e,y);const C=(s._a&&s._a.runWithContext||RE)(()=>s._e.run(()=>(r=Ag()).run(t)));for(const w in C){const $=C[w];if(re($)&&!BE($)||is($))o||(m&&FE($)&&(re($)?$.value=m[w]:Sc($,m[w])),s.state.value[e][w]=$);else if(typeof $=="function"){const D=P(w,$);C[w]=D,a.actions[w]=$}}return Yn(y,C),Yn(kt(y),C),Object.defineProperty(y,"$state",{get:()=>s.state.value[e],set:w=>{v($=>{Yn($,w)})}}),s._p.forEach(w=>{Yn(y,r.run(()=>w({store:y,app:s._a,pinia:s,options:a})))}),m&&o&&n.hydrate&&n.hydrate(y.$state,m),c=!0,u=!0,y}function Ru(e,t,n){let s,i;const o=typeof t=="function";typeof e=="string"?(s=e,i=o?n:t):(i=e,s=e.id);function r(a,l){const c=Tw();return a=a||(c?hn($m,null):null),a&&nl(a),a=km,a._s.has(s)||(o?Om(s,t,i,a):VE(s,i,a)),a._s.get(s)}return r.$id=s,r}/*! + */let Bm;const el=e=>Bm=e,Vm=Symbol();function Sc(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var $o;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})($o||($o={}));function NE(){const e=Mg(!0),t=e.run(()=>Oi({}));let s=[],n=[];const i=Ua({install(o){el(i),i._a=o,o.provide(Vm,i),o.config.globalProperties.$pinia=i,n.forEach(r=>s.push(r)),n=[]},use(o){return!this._a&&!RE?n.push(o):s.push(o),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return i}const Hm=()=>{};function Zh(e,t,s,n=Hm){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),n())};return!s&&_d()&&Og(i),i}function fi(e,...t){e.slice().forEach(s=>{s(...t)})}const FE=e=>e();function Ac(e,t){e instanceof Map&&t instanceof Map&&t.forEach((s,n)=>e.set(n,s)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],i=e[s];Sc(i)&&Sc(n)&&e.hasOwnProperty(s)&&!ae(n)&&!Yn(n)?e[s]=Ac(i,n):e[s]=n}return e}const BE=Symbol();function VE(e){return!Sc(e)||!e.hasOwnProperty(BE)}const{assign:Js}=Object;function HE(e){return!!(ae(e)&&e.effect)}function jE(e,t,s,n){const{state:i,actions:o,getters:r}=t,a=s.state.value[e];let l;function c(){a||(s.state.value[e]=i?i():{});const d=Wx(s.state.value[e]);return Js(d,o,Object.keys(r||{}).reduce((u,f)=>(u[f]=Ua(Ke(()=>{el(s);const g=s._s.get(e);return r[f].call(g,g)})),u),{}))}return l=jm(e,c,t,s,n,!0),l}function jm(e,t,s={},n,i,o){let r;const a=Js({actions:{}},s),l={deep:!0};let c,d,u=[],f=[],g;const m=n.state.value[e];!o&&!m&&(n.state.value[e]={}),Oi({});let b;function v(S){let P;c=d=!1,typeof S=="function"?(S(n.state.value[e]),P={type:$o.patchFunction,storeId:e,events:g}):(Ac(n.state.value[e],S),P={type:$o.patchObject,payload:S,storeId:e,events:g});const M=b=Symbol();nr().then(()=>{b===M&&(c=!0)}),d=!0,fi(u,P,n.state.value[e])}const w=o?function(){const{state:P}=s,M=P?P():{};this.$patch(I=>{Js(I,M)})}:Hm;function E(){r.stop(),u=[],f=[],n._s.delete(e)}function $(S,P){return function(){el(n);const M=Array.from(arguments),I=[],N=[];function Q(L){I.push(L)}function G(L){N.push(L)}fi(f,{args:M,name:S,store:y,after:Q,onError:G});let V;try{V=P.apply(this&&this.$id===e?this:y,M)}catch(L){throw fi(N,L),L}return V instanceof Promise?V.then(L=>(fi(I,L),L)).catch(L=>(fi(N,L),Promise.reject(L))):(fi(I,V),V)}}const T={_p:n,$id:e,$onAction:Zh.bind(null,f),$patch:v,$reset:w,$subscribe(S,P={}){const M=Zh(u,S,P.detached,()=>I()),I=r.run(()=>qn(()=>n.state.value[e],N=>{(P.flush==="sync"?d:c)&&S({storeId:e,type:$o.direct,events:g},N)},Js({},l,P)));return M},$dispose:E},y=er(T);n._s.set(e,y);const C=(n._a&&n._a.runWithContext||FE)(()=>n._e.run(()=>(r=Mg()).run(t)));for(const S in C){const P=C[S];if(ae(P)&&!HE(P)||Yn(P))o||(m&&VE(P)&&(ae(P)?P.value=m[S]:Ac(P,m[S])),n.state.value[e][S]=P);else if(typeof P=="function"){const M=$(S,P);C[S]=M,a.actions[S]=P}}return Js(y,C),Js(Tt(y),C),Object.defineProperty(y,"$state",{get:()=>n.state.value[e],set:S=>{v(P=>{Js(P,S)})}}),n._p.forEach(S=>{Js(y,r.run(()=>S({store:y,app:n._a,pinia:n,options:a})))}),m&&o&&s.hydrate&&s.hydrate(y.$state,m),c=!0,d=!0,y}function Fd(e,t,s){let n,i;const o=typeof t=="function";typeof e=="string"?(n=e,i=o?s:t):(i=e,n=e.id);function r(a,l){const c=Ew();return a=a||(c?ms(Vm,null):null),a&&el(a),a=Bm,a._s.has(n)||(o?jm(n,t,i,a):jE(n,i,a)),a._s.get(n)}return r.$id=n,r}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const bi=typeof window<"u";function HE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ft=Object.assign;function Fl(e,t){const n={};for(const s in t){const i=t[s];n[s]=nn(i)?i.map(e):e(i)}return n}const Po=()=>{},nn=Array.isArray,jE=/\/$/,WE=e=>e.replace(jE,"");function Bl(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=YE(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:r}}function zE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Gh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function UE(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Hi(t.matched[s],n.matched[i])&&Dm(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!KE(e[n],t[n]))return!1;return!0}function KE(e,t){return nn(e)?Xh(e,t):nn(t)?Xh(t,e):e===t}function Xh(e,t){return nn(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function YE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var qo;(function(e){e.pop="pop",e.push="push"})(qo||(qo={}));var ko;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ko||(ko={}));function qE(e){if(!e)if(bi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),WE(e)}const GE=/^[^#]+#/;function XE(e,t){return e.replace(GE,"#")+t}function QE(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const sl=()=>({left:window.pageXOffset,top:window.pageYOffset});function JE(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=QE(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Qh(e,t){return(history.state?history.state.position-t:-1)+e}const Ac=new Map;function ZE(e,t){Ac.set(e,t)}function tS(e){const t=Ac.get(e);return Ac.delete(e),t}let eS=()=>location.protocol+"//"+location.host;function Im(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Gh(l,"")}return Gh(n,e)+s+i}function nS(e,t,n,s){let i=[],o=[],r=null;const a=({state:f})=>{const p=Im(e,location),m=n.value,_=t.value;let v=0;if(f){if(n.value=p,t.value=f,r&&r===m){r=null;return}v=_?f.position-_.position:0}else s(p);i.forEach(x=>{x(n.value,m,{delta:v,type:qo.pop,direction:v?v>0?ko.forward:ko.back:ko.unknown})})};function l(){r=n.value}function c(f){i.push(f);const p=()=>{const m=i.indexOf(f);m>-1&&i.splice(m,1)};return o.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Ft({},f.state,{scroll:sl()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Jh(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?sl():null}}function sS(e){const{history:t,location:n}=window,s={value:Im(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:eS()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function r(l,c){const u=Ft({},t.state,Jh(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),s.value=l}function a(l,c){const u=Ft({},i.value,t.state,{forward:l,scroll:sl()});o(u.current,u,!0);const d=Ft({},Jh(s.value,l,null),{position:u.position+1},c);o(l,d,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function iS(e){e=qE(e);const t=sS(e),n=nS(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Ft({location:"",base:e,go:s,createHref:XE.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function oS(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),iS(e)}function rS(e){return typeof e=="string"||e&&typeof e=="object"}function Lm(e){return typeof e=="string"||typeof e=="symbol"}const zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Rm=Symbol("");var Zh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zh||(Zh={}));function ji(e,t){return Ft(new Error,{type:e,[Rm]:!0},t)}function yn(e,t){return e instanceof Error&&Rm in e&&(t==null||!!(e.type&t))}const tf="[^/]+?",aS={sensitive:!1,strict:!1,start:!0,end:!0},lS=/[.+*?^${}()[\]/\\]/g;function cS(e,t){const n=Ft({},aS,t),s=[];let i=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function dS(e,t){let n=0;const s=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const hS={type:0,value:""},fS=/[a-zA-Z0-9_]/;function pS(e){if(!e)return[[]];if(e==="/")return[[hS]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{r(S)}:Po}function r(u){if(Lm(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(r),d.alias.forEach(r))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!Nm(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!sf(u)&&s.set(u.record.name,u)}function c(u,d){let f,p={},m,_;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw ji(1,{location:u});_=f.record.name,p=Ft(nf(d.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&nf(u.params,f.keys.map(S=>S.name))),m=f.stringify(p)}else if("path"in u)m=u.path,f=n.find(S=>S.re.test(m)),f&&(p=f.parse(m),_=f.record.name);else{if(f=d.name?s.get(d.name):n.find(S=>S.re.test(d.path)),!f)throw ji(1,{location:u,currentLocation:d});_=f.record.name,p=Ft({},d.params,u.params),m=f.stringify(p)}const v=[];let x=f;for(;x;)v.unshift(x.record),x=x.parent;return{name:_,path:m,params:p,matched:v,meta:vS(v)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function nf(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function _S(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:bS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function bS(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function sf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vS(e){return e.reduce((t,n)=>Ft(t,n.meta),{})}function of(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Nm(e,t){return t.children.some(n=>n===e||Nm(e,n))}const Fm=/#/g,yS=/&/g,xS=/\//g,wS=/=/g,ES=/\?/g,Bm=/\+/g,SS=/%5B/g,AS=/%5D/g,Vm=/%5E/g,CS=/%60/g,Hm=/%7B/g,TS=/%7C/g,jm=/%7D/g,PS=/%20/g;function Nu(e){return encodeURI(""+e).replace(TS,"|").replace(SS,"[").replace(AS,"]")}function kS(e){return Nu(e).replace(Hm,"{").replace(jm,"}").replace(Vm,"^")}function Cc(e){return Nu(e).replace(Bm,"%2B").replace(PS,"+").replace(Fm,"%23").replace(yS,"%26").replace(CS,"`").replace(Hm,"{").replace(jm,"}").replace(Vm,"^")}function $S(e){return Cc(e).replace(wS,"%3D")}function MS(e){return Nu(e).replace(Fm,"%23").replace(ES,"%3F")}function OS(e){return e==null?"":MS(e).replace(xS,"%2F")}function xa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function DS(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Cc(o)):[s&&Cc(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function IS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=nn(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const LS=Symbol(""),af=Symbol(""),Fu=Symbol(""),Wm=Symbol(""),Tc=Symbol("");function uo(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qn(e,t,n,s,i){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((r,a)=>{const l=d=>{d===!1?a(ji(4,{from:n,to:t})):d instanceof Error?a(d):rS(d)?a(ji(2,{from:t,to:d})):(o&&s.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),r())},c=e.call(s&&s.instances[i],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function Vl(e,t,n,s){const i=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(RS(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Qn(c,n,s,o,r))}else{let l=a();i.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const u=HE(c)?c.default:c;o.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&Qn(f,n,s,o,r)()}))}}return i}function RS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lf(e){const t=hn(Fu),n=hn(Wm),s=We(()=>t.resolve(os(e.to))),i=We(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Hi.bind(null,u));if(f>-1)return f;const p=cf(l[c-2]);return c>1&&cf(u)===p&&d[d.length-1].path!==p?d.findIndex(Hi.bind(null,l[c-2])):f}),o=We(()=>i.value>-1&&VS(n.params,s.value.params)),r=We(()=>i.value>-1&&i.value===n.matched.length-1&&Dm(n.params,s.value.params));function a(l={}){return BS(l)?t[os(e.replace)?"replace":"push"](os(e.to)).catch(Po):Promise.resolve()}return{route:s,href:We(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}const NS=Ga({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:lf,setup(e,{slots:t}){const n=or(lf(e)),{options:s}=hn(Fu),i=We(()=>({[uf(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[uf(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Fi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),FS=NS;function BS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function VS(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!nn(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function cf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uf=(e,t,n)=>e??t??n,HS=Ga({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=hn(Tc),i=We(()=>e.route||s.value),o=hn(af,0),r=We(()=>{let c=os(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=We(()=>i.value.matched[r.value]);aa(af,We(()=>r.value+1)),aa(LS,a),aa(Tc,i);const l=Li();return zs(()=>[l.value,a.value,e.name],([c,u,d],[f,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Hi(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return df(n.default,{Component:f,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,v=Fi(f,Ft({},m,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return df(n.default,{Component:v,route:c})||v}}});function df(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const zm=HS;function jS(e){const t=mS(e.routes,e),n=e.parseQuery||DS,s=e.stringifyQuery||rf,i=e.history,o=uo(),r=uo(),a=uo(),l=yu(zn);let c=zn;bi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Fl.bind(null,j=>""+j),d=Fl.bind(null,OS),f=Fl.bind(null,xa);function p(j,nt){let Z,at;return Lm(j)?(Z=t.getRecordMatcher(j),at=nt):at=j,t.addRoute(at,Z)}function m(j){const nt=t.getRecordMatcher(j);nt&&t.removeRoute(nt)}function _(){return t.getRoutes().map(j=>j.record)}function v(j){return!!t.getRecordMatcher(j)}function x(j,nt){if(nt=Ft({},nt||l.value),typeof j=="string"){const L=Bl(n,j,nt.path),V=t.resolve({path:L.path},nt),K=i.createHref(L.fullPath);return Ft(L,V,{params:f(V.params),hash:xa(L.hash),redirectedFrom:void 0,href:K})}let Z;if("path"in j)Z=Ft({},j,{path:Bl(n,j.path,nt.path).path});else{const L=Ft({},j.params);for(const V in L)L[V]==null&&delete L[V];Z=Ft({},j,{params:d(L)}),nt.params=d(nt.params)}const at=t.resolve(Z,nt),F=j.hash||"";at.params=u(f(at.params));const T=zE(s,Ft({},j,{hash:kS(F),path:at.path})),O=i.createHref(T);return Ft({fullPath:T,hash:F,query:s===rf?IS(j.query):j.query||{}},at,{redirectedFrom:void 0,href:O})}function S(j){return typeof j=="string"?Bl(n,j,l.value.path):Ft({},j)}function P(j,nt){if(c!==j)return ji(8,{from:nt,to:j})}function A(j){return C(j)}function y(j){return A(Ft(S(j),{replace:!0}))}function E(j){const nt=j.matched[j.matched.length-1];if(nt&&nt.redirect){const{redirect:Z}=nt;let at=typeof Z=="function"?Z(j):Z;return typeof at=="string"&&(at=at.includes("?")||at.includes("#")?at=S(at):{path:at},at.params={}),Ft({query:j.query,hash:j.hash,params:"path"in at?{}:j.params},at)}}function C(j,nt){const Z=c=x(j),at=l.value,F=j.state,T=j.force,O=j.replace===!0,L=E(Z);if(L)return C(Ft(S(L),{state:typeof L=="object"?Ft({},F,L.state):F,force:T,replace:O}),nt||Z);const V=Z;V.redirectedFrom=nt;let K;return!T&&UE(s,at,Z)&&(K=ji(16,{to:V,from:at}),mt(at,at,!0,!1)),(K?Promise.resolve(K):D(V,at)).catch(G=>yn(G)?yn(G,2)?G:ct(G):U(G,V,at)).then(G=>{if(G){if(yn(G,2))return C(Ft({replace:O},S(G.to),{state:typeof G.to=="object"?Ft({},F,G.to.state):F,force:T}),nt||V)}else G=N(V,at,!0,O,F);return I(V,at,G),G})}function w(j,nt){const Z=P(j,nt);return Z?Promise.reject(Z):Promise.resolve()}function $(j){const nt=At.values().next().value;return nt&&typeof nt.runWithContext=="function"?nt.runWithContext(j):j()}function D(j,nt){let Z;const[at,F,T]=WS(j,nt);Z=Vl(at.reverse(),"beforeRouteLeave",j,nt);for(const L of at)L.leaveGuards.forEach(V=>{Z.push(Qn(V,j,nt))});const O=w.bind(null,j,nt);return Z.push(O),Ct(Z).then(()=>{Z=[];for(const L of o.list())Z.push(Qn(L,j,nt));return Z.push(O),Ct(Z)}).then(()=>{Z=Vl(F,"beforeRouteUpdate",j,nt);for(const L of F)L.updateGuards.forEach(V=>{Z.push(Qn(V,j,nt))});return Z.push(O),Ct(Z)}).then(()=>{Z=[];for(const L of T)if(L.beforeEnter)if(nn(L.beforeEnter))for(const V of L.beforeEnter)Z.push(Qn(V,j,nt));else Z.push(Qn(L.beforeEnter,j,nt));return Z.push(O),Ct(Z)}).then(()=>(j.matched.forEach(L=>L.enterCallbacks={}),Z=Vl(T,"beforeRouteEnter",j,nt),Z.push(O),Ct(Z))).then(()=>{Z=[];for(const L of r.list())Z.push(Qn(L,j,nt));return Z.push(O),Ct(Z)}).catch(L=>yn(L,8)?L:Promise.reject(L))}function I(j,nt,Z){a.list().forEach(at=>$(()=>at(j,nt,Z)))}function N(j,nt,Z,at,F){const T=P(j,nt);if(T)return T;const O=nt===zn,L=bi?history.state:{};Z&&(at||O?i.replace(j.fullPath,Ft({scroll:O&&L&&L.scroll},F)):i.push(j.fullPath,F)),l.value=j,mt(j,nt,Z,O),ct()}let Q;function Y(){Q||(Q=i.listen((j,nt,Z)=>{if(!Mt.listening)return;const at=x(j),F=E(at);if(F){C(Ft(F,{replace:!0}),at).catch(Po);return}c=at;const T=l.value;bi&&ZE(Qh(T.fullPath,Z.delta),sl()),D(at,T).catch(O=>yn(O,12)?O:yn(O,2)?(C(O.to,at).then(L=>{yn(L,20)&&!Z.delta&&Z.type===qo.pop&&i.go(-1,!1)}).catch(Po),Promise.reject()):(Z.delta&&i.go(-Z.delta,!1),U(O,at,T))).then(O=>{O=O||N(at,T,!1),O&&(Z.delta&&!yn(O,8)?i.go(-Z.delta,!1):Z.type===qo.pop&&yn(O,20)&&i.go(-1,!1)),I(at,T,O)}).catch(Po)}))}let H=uo(),R=uo(),W;function U(j,nt,Z){ct(j);const at=R.list();return at.length?at.forEach(F=>F(j,nt,Z)):console.error(j),Promise.reject(j)}function rt(){return W&&l.value!==zn?Promise.resolve():new Promise((j,nt)=>{H.add([j,nt])})}function ct(j){return W||(W=!j,Y(),H.list().forEach(([nt,Z])=>j?Z(j):nt()),H.reset()),j}function mt(j,nt,Z,at){const{scrollBehavior:F}=e;if(!bi||!F)return Promise.resolve();const T=!Z&&tS(Qh(j.fullPath,0))||(at||!Z)&&history.state&&history.state.scroll||null;return Ka().then(()=>F(j,nt,T)).then(O=>O&&JE(O)).catch(O=>U(O,j,nt))}const pt=j=>i.go(j);let Pt;const At=new Set,Mt={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,hasRoute:v,getRoutes:_,resolve:x,options:e,push:A,replace:y,go:pt,back:()=>pt(-1),forward:()=>pt(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:R.add,isReady:rt,install(j){const nt=this;j.component("RouterLink",FS),j.component("RouterView",zm),j.config.globalProperties.$router=nt,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>os(l)}),bi&&!Pt&&l.value===zn&&(Pt=!0,A(i.location).catch(F=>{}));const Z={};for(const F in zn)Object.defineProperty(Z,F,{get:()=>l.value[F],enumerable:!0});j.provide(Fu,nt),j.provide(Wm,Fg(Z)),j.provide(Tc,l);const at=j.unmount;At.add(j),j.unmount=function(){At.delete(j),At.size<1&&(c=zn,Q&&Q(),Q=null,l.value=zn,Pt=!1,W=!1),at()}}};function Ct(j){return j.reduce((nt,Z)=>nt.then(()=>$(Z)),Promise.resolve())}return Mt}function WS(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rHi(c,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(c=>Hi(c,l))||i.push(l))}return[n,s,i]}const Re=async(e,t=void 0,n=void 0)=>{const s=new URLSearchParams(t);await fetch(`${e}?${s.toString()}`,{headers:{"content-type":"application/json"}}).then(i=>i.json()).then(i=>n?n(i):void 0)},Ce=async(e,t,n)=>{await fetch(`${e}`,{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(t)}).then(s=>s.json()).then(s=>n?n(s):void 0)};let Br;const zS=new Uint8Array(16);function US(){if(!Br&&(Br=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Br))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Br(zS)}const ue=[];for(let e=0;e<256;++e)ue.push((e+256).toString(16).slice(1));function KS(e,t=0){return ue[e[t+0]]+ue[e[t+1]]+ue[e[t+2]]+ue[e[t+3]]+"-"+ue[e[t+4]]+ue[e[t+5]]+"-"+ue[e[t+6]]+ue[e[t+7]]+"-"+ue[e[t+8]]+ue[e[t+9]]+"-"+ue[e[t+10]]+ue[e[t+11]]+ue[e[t+12]]+ue[e[t+13]]+ue[e[t+14]]+ue[e[t+15]]}const YS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hf={randomUUID:YS};function to(e,t,n){if(hf.randomUUID&&!t&&!e)return hf.randomUUID();e=e||{};const s=e.random||(e.rng||US)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=s[i];return t}return KS(s)}const Xt=Ru("DashboardConfigurationStore",{state:()=>({Configuration:void 0,Messages:[]}),actions:{async getConfiguration(){await Re("/api/getDashboardConfiguration",{},e=>{e.status&&(this.Configuration=e.data)})},async updateConfiguration(){await Ce("/api/updateDashboardConfiguration",{DashboardConfiguration:this.Configuration},e=>{console.log(e)})},async signOut(){await Re("/api/signout",{},e=>{this.$router.go("/signin")})},newMessage(e,t,n){this.Messages.push({id:to(),from:e,content:t,type:n,show:!0})}}}),qS=g("nav",{class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},[g("div",{class:"container-fluid"},[g("span",{class:"navbar-brand mb-0 h1"},"WGDashboard")])],-1),GS={__name:"App",setup(e){return Xt(),(t,n)=>(X(),ot(Qt,null,[qS,(X(),de(Cu,null,{default:Ut(()=>[dt(os(zm),null,{default:Ut(({Component:s})=>[dt(Ln,{name:"fade",mode:"out-in"},{default:Ut(()=>[(X(),de(Au(s)))]),_:2},1024)]),_:1})]),_:1}))],64))}},XS={getCookie(e){const n=`; ${document.cookie}`.split(`; ${e}=`);if(n.length===2)return n.pop().split(";").shift()}};Ru("WGDashboardStore",{state:()=>({WireguardConfigurations:void 0,DashboardConfiguration:void 0}),actions:{async getDashboardConfiguration(){await Re("/api/getDashboardConfiguration",{},e=>{console.log(e.status),e.status&&(this.DashboardConfiguration=e.data)})}}});const ff="[a-fA-F\\d:]",Jn=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${ff})|(?<=${ff})(?=\\s|$))`:"",Je="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ne="[a-fA-F\\d]{1,4}",il=` + */const bi=typeof window<"u";function WE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Wt=Object.assign;function Vl(e,t){const s={};for(const n in t){const i=t[n];s[n]=rs(i)?i.map(e):e(i)}return s}const Po=()=>{},rs=Array.isArray,zE=/\/$/,UE=e=>e.replace(zE,"");function Hl(e,t,s="/"){let n,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(n=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(n=n||t.slice(0,a),r=t.slice(a,t.length)),n=GE(n??t,s),{fullPath:n+(o&&"?")+o+r,path:n,query:i,hash:r}}function KE(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function tf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function YE(e,t,s){const n=t.matched.length-1,i=s.matched.length-1;return n>-1&&n===i&&Fi(t.matched[n],s.matched[i])&&Wm(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function Fi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Wm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!qE(e[s],t[s]))return!1;return!0}function qE(e,t){return rs(e)?ef(e,t):rs(t)?ef(t,e):e===t}function ef(e,t){return rs(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function GE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=s.length-1,r,a;for(r=0;r1&&o--;else break;return s.slice(0,o).join("/")+"/"+n.slice(r-(r===n.length?1:0)).join("/")}var Wo;(function(e){e.pop="pop",e.push="push"})(Wo||(Wo={}));var ko;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ko||(ko={}));function XE(e){if(!e)if(bi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),UE(e)}const JE=/^[^#]+#/;function QE(e,t){return e.replace(JE,"#")+t}function ZE(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const sl=()=>({left:window.pageXOffset,top:window.pageYOffset});function tS(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),i=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!i)return;t=ZE(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function sf(e,t){return(history.state?history.state.position-t:-1)+e}const Cc=new Map;function eS(e,t){Cc.set(e,t)}function sS(e){const t=Cc.get(e);return Cc.delete(e),t}let nS=()=>location.protocol+"//"+location.host;function zm(e,t){const{pathname:s,search:n,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),tf(l,"")}return tf(s,e)+n+i}function iS(e,t,s,n){let i=[],o=[],r=null;const a=({state:f})=>{const g=zm(e,location),m=s.value,b=t.value;let v=0;if(f){if(s.value=g,t.value=f,r&&r===m){r=null;return}v=b?f.position-b.position:0}else n(g);i.forEach(w=>{w(s.value,m,{delta:v,type:Wo.pop,direction:v?v>0?ko.forward:ko.back:ko.unknown})})};function l(){r=s.value}function c(f){i.push(f);const g=()=>{const m=i.indexOf(f);m>-1&&i.splice(m,1)};return o.push(g),g}function d(){const{history:f}=window;f.state&&f.replaceState(Wt({},f.state,{scroll:sl()}),"")}function u(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function nf(e,t,s,n=!1,i=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:i?sl():null}}function oS(e){const{history:t,location:s}=window,n={value:zm(e,s)},i={value:t.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,d){const u=e.indexOf("#"),f=u>-1?(s.host&&document.querySelector("base")?e:e.slice(u))+l:nS()+e+l;try{t[d?"replaceState":"pushState"](c,"",f),i.value=c}catch(g){console.error(g),s[d?"replace":"assign"](f)}}function r(l,c){const d=Wt({},t.state,nf(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,d,!0),n.value=l}function a(l,c){const d=Wt({},i.value,t.state,{forward:l,scroll:sl()});o(d.current,d,!0);const u=Wt({},nf(n.value,l,null),{position:d.position+1},c);o(l,u,!1),n.value=l}return{location:n,state:i,push:a,replace:r}}function rS(e){e=XE(e);const t=oS(e),s=iS(e,t.state,t.location,t.replace);function n(o,r=!0){r||s.pauseListeners(),history.go(o)}const i=Wt({location:"",base:e,go:n,createHref:QE.bind(null,e)},t,s);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function aS(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),rS(e)}function lS(e){return typeof e=="string"||e&&typeof e=="object"}function Um(e){return typeof e=="string"||typeof e=="symbol"}const qs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Km=Symbol("");var of;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(of||(of={}));function Bi(e,t){return Wt(new Error,{type:e,[Km]:!0},t)}function Ss(e,t){return e instanceof Error&&Km in e&&(t==null||!!(e.type&t))}const rf="[^/]+?",cS={sensitive:!1,strict:!1,start:!0,end:!0},dS=/[.+*?^${}()[\]/\\]/g;function uS(e,t){const s=Wt({},cS,t),n=[];let i=s.start?"^":"";const o=[];for(const c of e){const d=c.length?[]:[90];s.strict&&!c.length&&(i+="/");for(let u=0;ut.length?t.length===1&&t[0]===80?1:-1:0}function fS(e,t){let s=0;const n=e.score,i=t.score;for(;s0&&t[t.length-1]<0}const pS={type:0,value:""},gS=/[a-zA-Z0-9_]/;function mS(e){if(!e)return[[]];if(e==="/")return[[pS]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${s})/"${c}": ${g}`)}let s=0,n=s;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,c="",d="";function u(){c&&(s===0?o.push({type:0,value:c}):s===1||s===2||s===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{r(E)}:Po}function r(d){if(Um(d)){const u=n.get(d);u&&(n.delete(d),s.splice(s.indexOf(u),1),u.children.forEach(r),u.alias.forEach(r))}else{const u=s.indexOf(d);u>-1&&(s.splice(u,1),d.record.name&&n.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function a(){return s}function l(d){let u=0;for(;u=0&&(d.record.path!==s[u].record.path||!Ym(d,s[u]));)u++;s.splice(u,0,d),d.record.name&&!cf(d)&&n.set(d.record.name,d)}function c(d,u){let f,g={},m,b;if("name"in d&&d.name){if(f=n.get(d.name),!f)throw Bi(1,{location:d});b=f.record.name,g=Wt(lf(u.params,f.keys.filter(E=>!E.optional).map(E=>E.name)),d.params&&lf(d.params,f.keys.map(E=>E.name))),m=f.stringify(g)}else if("path"in d)m=d.path,f=s.find(E=>E.re.test(m)),f&&(g=f.parse(m),b=f.record.name);else{if(f=u.name?n.get(u.name):s.find(E=>E.re.test(u.path)),!f)throw Bi(1,{location:d,currentLocation:u});b=f.record.name,g=Wt({},u.params,d.params),m=f.stringify(g)}const v=[];let w=f;for(;w;)v.unshift(w.record),w=w.parent;return{name:b,path:m,params:g,matched:v,meta:xS(v)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function lf(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function vS(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:yS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function yS(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function cf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xS(e){return e.reduce((t,s)=>Wt(t,s.meta),{})}function df(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}function Ym(e,t){return t.children.some(s=>s===e||Ym(e,s))}const qm=/#/g,wS=/&/g,ES=/\//g,SS=/=/g,AS=/\?/g,Gm=/\+/g,CS=/%5B/g,$S=/%5D/g,Xm=/%5E/g,PS=/%60/g,Jm=/%7B/g,kS=/%7C/g,Qm=/%7D/g,TS=/%20/g;function Bd(e){return encodeURI(""+e).replace(kS,"|").replace(CS,"[").replace($S,"]")}function MS(e){return Bd(e).replace(Jm,"{").replace(Qm,"}").replace(Xm,"^")}function $c(e){return Bd(e).replace(Gm,"%2B").replace(TS,"+").replace(qm,"%23").replace(wS,"%26").replace(PS,"`").replace(Jm,"{").replace(Qm,"}").replace(Xm,"^")}function OS(e){return $c(e).replace(SS,"%3D")}function DS(e){return Bd(e).replace(qm,"%23").replace(AS,"%3F")}function IS(e){return e==null?"":DS(e).replace(ES,"%2F")}function Aa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function LS(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&$c(o)):[n&&$c(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function RS(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=rs(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const NS=Symbol(""),hf=Symbol(""),Vd=Symbol(""),Zm=Symbol(""),Pc=Symbol("");function ao(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function en(e,t,s,n,i){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((r,a)=>{const l=u=>{u===!1?a(Bi(4,{from:s,to:t})):u instanceof Error?a(u):lS(u)?a(Bi(2,{from:t,to:u})):(o&&n.enterCallbacks[i]===o&&typeof u=="function"&&o.push(u),r())},c=e.call(n&&n.instances[i],t,s,l);let d=Promise.resolve(c);e.length<3&&(d=d.then(l)),d.catch(u=>a(u))})}function jl(e,t,s,n){const i=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(FS(a)){const c=(a.__vccOpts||a)[t];c&&i.push(en(c,s,n,o,r))}else{let l=a();i.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const d=WE(c)?c.default:c;o.components[r]=d;const f=(d.__vccOpts||d)[t];return f&&en(f,s,n,o,r)()}))}}return i}function FS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ff(e){const t=ms(Vd),s=ms(Zm),n=Ke(()=>t.resolve(un(e.to))),i=Ke(()=>{const{matched:l}=n.value,{length:c}=l,d=l[c-1],u=s.matched;if(!d||!u.length)return-1;const f=u.findIndex(Fi.bind(null,d));if(f>-1)return f;const g=pf(l[c-2]);return c>1&&pf(d)===g&&u[u.length-1].path!==g?u.findIndex(Fi.bind(null,l[c-2])):f}),o=Ke(()=>i.value>-1&&jS(s.params,n.value.params)),r=Ke(()=>i.value>-1&&i.value===s.matched.length-1&&Wm(s.params,n.value.params));function a(l={}){return HS(l)?t[un(e.replace)?"replace":"push"](un(e.to)).catch(Po):Promise.resolve()}return{route:n,href:Ke(()=>n.value.href),isActive:o,isExactActive:r,navigate:a}}const BS=Xa({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ff,setup(e,{slots:t}){const s=er(ff(e)),{options:n}=ms(Vd),i=Ke(()=>({[gf(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[gf(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const o=t.default&&t.default(s);return e.custom?o:Li("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:i.value},o)}}}),VS=BS;function HS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function jS(e,t){for(const s in t){const n=t[s],i=e[s];if(typeof n=="string"){if(n!==i)return!1}else if(!rs(i)||i.length!==n.length||n.some((o,r)=>o!==i[r]))return!1}return!0}function pf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const gf=(e,t,s)=>e??t??s,WS=Xa({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=ms(Pc),i=Ke(()=>e.route||n.value),o=ms(hf,0),r=Ke(()=>{let c=un(o);const{matched:d}=i.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=Ke(()=>i.value.matched[r.value]);na(hf,Ke(()=>r.value+1)),na(NS,a),na(Pc,i);const l=Oi();return qn(()=>[l.value,a.value,e.name],([c,d,u],[f,g,m])=>{d&&(d.instances[u]=c,g&&g!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!Fi(d,g)||!f)&&(d.enterCallbacks[u]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=i.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return mf(s.default,{Component:f,route:c});const g=u.props[d],m=g?g===!0?c.params:typeof g=="function"?g(c):g:null,v=Li(f,Wt({},m,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return mf(s.default,{Component:v,route:c})||v}}});function mf(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const t_=WS;function zS(e){const t=bS(e.routes,e),s=e.parseQuery||LS,n=e.stringifyQuery||uf,i=e.history,o=ao(),r=ao(),a=ao(),l=Ad(qs);let c=qs;bi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Vl.bind(null,j=>""+j),u=Vl.bind(null,IS),f=Vl.bind(null,Aa);function g(j,st){let tt,at;return Um(j)?(tt=t.getRecordMatcher(j),at=st):at=j,t.addRoute(at,tt)}function m(j){const st=t.getRecordMatcher(j);st&&t.removeRoute(st)}function b(){return t.getRoutes().map(j=>j.record)}function v(j){return!!t.getRecordMatcher(j)}function w(j,st){if(st=Wt({},st||l.value),typeof j=="string"){const D=Hl(s,j,st.path),R=t.resolve({path:D.path},st),Y=i.createHref(D.fullPath);return Wt(D,R,{params:f(R.params),hash:Aa(D.hash),redirectedFrom:void 0,href:Y})}let tt;if("path"in j)tt=Wt({},j,{path:Hl(s,j.path,st.path).path});else{const D=Wt({},j.params);for(const R in D)D[R]==null&&delete D[R];tt=Wt({},j,{params:u(D)}),st.params=u(st.params)}const at=t.resolve(tt,st),B=j.hash||"";at.params=d(f(at.params));const Mt=KE(n,Wt({},j,{hash:MS(B),path:at.path})),A=i.createHref(Mt);return Wt({fullPath:Mt,hash:B,query:n===uf?RS(j.query):j.query||{}},at,{redirectedFrom:void 0,href:A})}function E(j){return typeof j=="string"?Hl(s,j,l.value.path):Wt({},j)}function $(j,st){if(c!==j)return Bi(8,{from:st,to:j})}function T(j){return C(j)}function y(j){return T(Wt(E(j),{replace:!0}))}function x(j){const st=j.matched[j.matched.length-1];if(st&&st.redirect){const{redirect:tt}=st;let at=typeof tt=="function"?tt(j):tt;return typeof at=="string"&&(at=at.includes("?")||at.includes("#")?at=E(at):{path:at},at.params={}),Wt({query:j.query,hash:j.hash,params:"path"in at?{}:j.params},at)}}function C(j,st){const tt=c=w(j),at=l.value,B=j.state,Mt=j.force,A=j.replace===!0,D=x(tt);if(D)return C(Wt(E(D),{state:typeof D=="object"?Wt({},B,D.state):B,force:Mt,replace:A}),st||tt);const R=tt;R.redirectedFrom=st;let Y;return!Mt&&YE(n,at,tt)&&(Y=Bi(16,{to:R,from:at}),bt(at,at,!0,!1)),(Y?Promise.resolve(Y):M(R,at)).catch(z=>Ss(z)?Ss(z,2)?z:ut(z):K(z,R,at)).then(z=>{if(z){if(Ss(z,2))return C(Wt({replace:A},E(z.to),{state:typeof z.to=="object"?Wt({},B,z.to.state):B,force:Mt}),st||R)}else z=N(R,at,!0,A,B);return I(R,at,z),z})}function S(j,st){const tt=$(j,st);return tt?Promise.reject(tt):Promise.resolve()}function P(j){const st=At.values().next().value;return st&&typeof st.runWithContext=="function"?st.runWithContext(j):j()}function M(j,st){let tt;const[at,B,Mt]=US(j,st);tt=jl(at.reverse(),"beforeRouteLeave",j,st);for(const D of at)D.leaveGuards.forEach(R=>{tt.push(en(R,j,st))});const A=S.bind(null,j,st);return tt.push(A),Ct(tt).then(()=>{tt=[];for(const D of o.list())tt.push(en(D,j,st));return tt.push(A),Ct(tt)}).then(()=>{tt=jl(B,"beforeRouteUpdate",j,st);for(const D of B)D.updateGuards.forEach(R=>{tt.push(en(R,j,st))});return tt.push(A),Ct(tt)}).then(()=>{tt=[];for(const D of Mt)if(D.beforeEnter)if(rs(D.beforeEnter))for(const R of D.beforeEnter)tt.push(en(R,j,st));else tt.push(en(D.beforeEnter,j,st));return tt.push(A),Ct(tt)}).then(()=>(j.matched.forEach(D=>D.enterCallbacks={}),tt=jl(Mt,"beforeRouteEnter",j,st),tt.push(A),Ct(tt))).then(()=>{tt=[];for(const D of r.list())tt.push(en(D,j,st));return tt.push(A),Ct(tt)}).catch(D=>Ss(D,8)?D:Promise.reject(D))}function I(j,st,tt){a.list().forEach(at=>P(()=>at(j,st,tt)))}function N(j,st,tt,at,B){const Mt=$(j,st);if(Mt)return Mt;const A=st===qs,D=bi?history.state:{};tt&&(at||A?i.replace(j.fullPath,Wt({scroll:A&&D&&D.scroll},B)):i.push(j.fullPath,B)),l.value=j,bt(j,st,tt,A),ut()}let Q;function G(){Q||(Q=i.listen((j,st,tt)=>{if(!Lt.listening)return;const at=w(j),B=x(at);if(B){C(Wt(B,{replace:!0}),at).catch(Po);return}c=at;const Mt=l.value;bi&&eS(sf(Mt.fullPath,tt.delta),sl()),M(at,Mt).catch(A=>Ss(A,12)?A:Ss(A,2)?(C(A.to,at).then(D=>{Ss(D,20)&&!tt.delta&&tt.type===Wo.pop&&i.go(-1,!1)}).catch(Po),Promise.reject()):(tt.delta&&i.go(-tt.delta,!1),K(A,at,Mt))).then(A=>{A=A||N(at,Mt,!1),A&&(tt.delta&&!Ss(A,8)?i.go(-tt.delta,!1):tt.type===Wo.pop&&Ss(A,20)&&i.go(-1,!1)),I(at,Mt,A)}).catch(Po)}))}let V=ao(),L=ao(),W;function K(j,st,tt){ut(j);const at=L.list();return at.length?at.forEach(B=>B(j,st,tt)):console.error(j),Promise.reject(j)}function ot(){return W&&l.value!==qs?Promise.resolve():new Promise((j,st)=>{V.add([j,st])})}function ut(j){return W||(W=!j,G(),V.list().forEach(([st,tt])=>j?tt(j):st()),V.reset()),j}function bt(j,st,tt,at){const{scrollBehavior:B}=e;if(!bi||!B)return Promise.resolve();const Mt=!tt&&sS(sf(j.fullPath,0))||(at||!tt)&&history.state&&history.state.scroll||null;return nr().then(()=>B(j,st,Mt)).then(A=>A&&tS(A)).catch(A=>K(A,j,st))}const _t=j=>i.go(j);let Pt;const At=new Set,Lt={currentRoute:l,listening:!0,addRoute:g,removeRoute:m,hasRoute:v,getRoutes:b,resolve:w,options:e,push:T,replace:y,go:_t,back:()=>_t(-1),forward:()=>_t(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:L.add,isReady:ot,install(j){const st=this;j.component("RouterLink",VS),j.component("RouterView",t_),j.config.globalProperties.$router=st,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>un(l)}),bi&&!Pt&&l.value===qs&&(Pt=!0,T(i.location).catch(B=>{}));const tt={};for(const B in qs)Object.defineProperty(tt,B,{get:()=>l.value[B],enumerable:!0});j.provide(Vd,st),j.provide(Zm,zg(tt)),j.provide(Pc,l);const at=j.unmount;At.add(j),j.unmount=function(){At.delete(j),At.size<1&&(c=qs,Q&&Q(),Q=null,l.value=qs,Pt=!1,W=!1),at()}}};function Ct(j){return j.reduce((st,tt)=>st.then(()=>P(tt)),Promise.resolve())}return Lt}function US(e,t){const s=[],n=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rFi(c,a))?n.push(a):s.push(a));const l=e.matched[r];l&&(t.matched.find(c=>Fi(c,l))||i.push(l))}return[s,n,i]}const he=async(e,t=void 0,s=void 0)=>{const n=new URLSearchParams(t);await fetch(`${e}?${n.toString()}`,{headers:{"content-type":"application/json"}}).then(i=>i.json()).then(i=>s?s(i):void 0).catch(i=>{})},ue=async(e,t,s)=>{await fetch(`${e}`,{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(t)}).then(n=>n.json()).then(n=>s?s(n):void 0)};let Lr;const KS=new Uint8Array(16);function YS(){if(!Lr&&(Lr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Lr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Lr(KS)}const fe=[];for(let e=0;e<256;++e)fe.push((e+256).toString(16).slice(1));function qS(e,t=0){return fe[e[t+0]]+fe[e[t+1]]+fe[e[t+2]]+fe[e[t+3]]+"-"+fe[e[t+4]]+fe[e[t+5]]+"-"+fe[e[t+6]]+fe[e[t+7]]+"-"+fe[e[t+8]]+fe[e[t+9]]+"-"+fe[e[t+10]]+fe[e[t+11]]+fe[e[t+12]]+fe[e[t+13]]+fe[e[t+14]]+fe[e[t+15]]}const GS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_f={randomUUID:GS};function Ji(e,t,s){if(_f.randomUUID&&!t&&!e)return _f.randomUUID();e=e||{};const n=e.random||(e.rng||YS)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){s=s||0;for(let i=0;i<16;++i)t[s+i]=n[i];return t}return qS(n)}const Jt=Fd("DashboardConfigurationStore",{state:()=>({Redirect:void 0,Configuration:void 0,Messages:[],Peers:{Selecting:!1}}),actions:{async getConfiguration(){await he("/api/getDashboardConfiguration",{},e=>{e.status&&(this.Configuration=e.data)})},async updateConfiguration(){await ue("/api/updateDashboardConfiguration",{DashboardConfiguration:this.Configuration},e=>{console.log(e)})},async signOut(){await he("/api/signout",{},e=>{this.$router.go("/signin")})},newMessage(e,t,s){this.Messages.push({id:Ji(),from:e,content:t,type:s,show:!0})}}}),XS=p("nav",{class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},[p("div",{class:"container-fluid"},[p("span",{class:"navbar-brand mb-0 h1"},"WGDashboard")])],-1),JS={__name:"App",setup(e){return Jt(),(t,s)=>(H(),q(Ht,null,[XS,(H(),oe(qa,null,{default:Bt(()=>[dt(un(t_),null,{default:Bt(({Component:n})=>[dt(is,{name:"fade",mode:"out-in"},{default:Bt(()=>[(H(),oe(Td(n)))]),_:2},1024)]),_:1})]),_:1}))],64))}},QS={getCookie(e){const s=`; ${document.cookie}`.split(`; ${e}=`);if(s.length===2)return s.pop().split(";").shift()}};Fd("WGDashboardStore",{state:()=>({WireguardConfigurations:void 0,DashboardConfiguration:void 0}),actions:{async getDashboardConfiguration(){await he("/api/getDashboardConfiguration",{},e=>{console.log(e.status),e.status&&(this.DashboardConfiguration=e.data)})}}});const bf="[a-fA-F\\d:]",nn=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${bf})|(?<=${bf})(?=\\s|$))`:"",es="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ie="[a-fA-F\\d]{1,4}",nl=` (?: -(?:${ne}:){7}(?:${ne}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 -(?:${ne}:){6}(?:${Je}|:${ne}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 -(?:${ne}:){5}(?::${Je}|(?::${ne}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 -(?:${ne}:){4}(?:(?::${ne}){0,1}:${Je}|(?::${ne}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 -(?:${ne}:){3}(?:(?::${ne}){0,2}:${Je}|(?::${ne}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 -(?:${ne}:){2}(?:(?::${ne}){0,3}:${Je}|(?::${ne}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 -(?:${ne}:){1}(?:(?::${ne}){0,4}:${Je}|(?::${ne}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 -(?::(?:(?::${ne}){0,5}:${Je}|(?::${ne}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 +(?:${ie}:){7}(?:${ie}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 +(?:${ie}:){6}(?:${es}|:${ie}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 +(?:${ie}:){5}(?::${es}|(?::${ie}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 +(?:${ie}:){4}(?:(?::${ie}){0,1}:${es}|(?::${ie}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 +(?:${ie}:){3}(?:(?::${ie}){0,2}:${es}|(?::${ie}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 +(?:${ie}:){2}(?:(?::${ie}){0,3}:${es}|(?::${ie}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 +(?:${ie}:){1}(?:(?::${ie}){0,4}:${es}|(?::${ie}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 +(?::(?:(?::${ie}){0,5}:${es}|(?::${ie}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 -`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),QS=new RegExp(`(?:^${Je}$)|(?:^${il}$)`),JS=new RegExp(`^${Je}$`),ZS=new RegExp(`^${il}$`),ol=e=>e&&e.exact?QS:new RegExp(`(?:${Jn(e)}${Je}${Jn(e)})|(?:${Jn(e)}${il}${Jn(e)})`,"g");ol.v4=e=>e&&e.exact?JS:new RegExp(`${Jn(e)}${Je}${Jn(e)}`,"g");ol.v6=e=>e&&e.exact?ZS:new RegExp(`${Jn(e)}${il}${Jn(e)}`,"g");const Um={exact:!1},Km=`${ol.v4().source}\\/(3[0-2]|[12]?[0-9])`,Ym=`${ol.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,tA=new RegExp(`^${Km}$`),eA=new RegExp(`^${Ym}$`),nA=({exact:e}=Um)=>e?tA:new RegExp(Km,"g"),sA=({exact:e}=Um)=>e?eA:new RegExp(Ym,"g"),qm=nA({exact:!0}),Gm=sA({exact:!0}),Bu=e=>qm.test(e)?4:Gm.test(e)?6:0;Bu.v4=e=>qm.test(e);Bu.v6=e=>Gm.test(e);const mn=Ru("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:""}),actions:{async getConfigurations(){await Re("/api/getWireguardConfigurations",{},e=>{e.status&&(this.Configurations=e.data)})},regexCheckIP(e){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(e)},checkCIDR(e){return Bu(e)!==0}}}),Rt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},iA={name:"navbar",setup(){const e=mn(),t=Xt();return{wireguardConfigurationsStore:e,dashboardConfigurationStore:t}}},oA={class:"col-md-3 col-lg-2 d-md-block p-3"},rA={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow"},aA={class:"sidebar-sticky pt-3"},lA={class:"nav flex-column"},cA={class:"nav-item"},uA={class:"nav-item"},dA=g("hr",null,null,-1),hA=g("h6",{class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"},[g("span",null,"Configurations")],-1),fA={class:"nav flex-column"},pA={class:"nav-item"},gA=Vw('

',4),mA={class:"nav flex-column"},_A={class:"nav-item"},bA=g("ul",{class:"nav flex-column"},[g("li",{class:"nav-item"},[g("a",{href:"https://github.com/donaldzou/WGDashboard/releases/tag/"},[g("small",{class:"nav-link text-muted"})])])],-1);function vA(e,t,n,s,i,o){const r=Ot("RouterLink");return X(),ot("div",oA,[g("nav",rA,[g("div",aA,[g("ul",lA,[g("li",cA,[dt(r,{class:"nav-link",to:"/","exact-active-class":"active"},{default:Ut(()=>[gt("Home")]),_:1})]),g("li",uA,[dt(r,{class:"nav-link",to:"/settings","exact-active-class":"active"},{default:Ut(()=>[gt("Settings")]),_:1})])]),dA,hA,g("ul",fA,[g("li",pA,[(X(!0),ot(Qt,null,us(this.wireguardConfigurationsStore.Configurations,a=>(X(),de(r,{to:"/configuration/"+a.Name+"/peers",class:"nav-link nav-conf-link"},{default:Ut(()=>[g("samp",null,wt(a.Name),1)]),_:2},1032,["to"]))),256))])]),gA,g("ul",mA,[g("li",_A,[g("a",{class:"nav-link text-danger",onClick:t[0]||(t[0]=a=>this.dashboardConfigurationStore.signOut()),role:"button",style:{"font-weight":"bold"}},"Sign Out")])]),bA])])])}const yA=Rt(iA,[["render",vA]]),xA={name:"message",props:{message:Object},mounted(){setTimeout(()=>{this.message.show=!1},5e3)}},wA=["id"],EA={class:"card-body"},SA={class:"fw-bold d-block",style:{"text-transform":"uppercase"}};function AA(e,t,n,s,i,o){return X(),ot("div",{class:jt(["card shadow rounded-3 position-relative mb-2",{"text-bg-danger":this.message.type==="danger","text-bg-success":this.message.type==="success","text-bg-warning":this.message.type==="warning"}]),id:this.message.id,style:{width:"400px"}},[g("div",EA,[g("small",SA,"FROM "+wt(this.message.from),1),gt(" "+wt(this.message.content),1)])],10,wA)}const CA=Rt(xA,[["render",AA]]),TA={name:"index",components:{Message:CA,Navbar:yA},async setup(){return{dashboardConfigurationStore:Xt()}},computed:{getMessages(){return this.dashboardConfigurationStore.Messages.filter(e=>e.show)}}},PA=["data-bs-theme"],kA={class:"row h-100"},$A={class:"col-md-9 ml-sm-auto col-lg-10 px-md-4 overflow-y-scroll mb-0",style:{height:"calc(100vh - 50px)"}},MA={class:"messageCentre text-body position-fixed"};function OA(e,t,n,s,i,o){const r=Ot("Navbar"),a=Ot("RouterView"),l=Ot("Message");return X(),ot("div",{class:"container-fluid flex-grow-1 main","data-bs-theme":this.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[g("div",kA,[dt(r),g("main",$A,[(X(),de(Cu,null,{default:Ut(()=>[dt(a,null,{default:Ut(({Component:c})=>[dt(Ln,{name:"fade2",mode:"out-in"},{default:Ut(()=>[(X(),de(Au(c)))]),_:2},1024)]),_:1})]),_:1})),g("div",MA,[dt(Lu,{name:"message",tag:"div",class:"position-relative"},{default:Ut(()=>[(X(!0),ot(Qt,null,us(o.getMessages.slice().reverse(),c=>(X(),de(l,{message:c,key:c.id},null,8,["message"]))),128))]),_:1})])])])],8,PA)}const DA=Rt(TA,[["render",OA],["__scopeId","data-v-54755a4a"]]),IA={name:"signin",async setup(){const e=Xt();let t="",n=!1;return await Re("/api/getDashboardTheme",{},s=>{t=s.data}),await Re("/api/isTotpEnabled",{},s=>{n=s.data}),{store:e,theme:t,totpEnabled:n}},data(){return{username:"",password:"",totp:"",loginError:!1,loginErrorMessage:"",loading:!1}},methods:{async auth(){this.username&&this.password&&(this.totpEnabled&&this.totp||!this.totpEnabled)?(this.loading=!0,await Ce("/api/authenticate",{username:this.username,password:this.password,totp:this.totp},e=>{e.status?(this.loginError=!1,this.$refs.signInBtn.classList.add("signedIn"),e.message?this.$router.push("/welcome"):this.$router.push("/")):(this.loginError=!0,this.loginErrorMessage=e.message,document.querySelectorAll("input[required]").forEach(t=>{t.classList.remove("is-valid"),t.classList.add("is-invalid")}),this.loading=!1)})):document.querySelectorAll("input[required]").forEach(e=>{e.value.length===0?(e.classList.remove("is-valid"),e.classList.add("is-invalid")):(e.classList.remove("is-invalid"),e.classList.add("is-valid"))})}}},LA=["data-bs-theme"],RA={class:"login-box m-auto",style:{width:"500px"}},NA=g("h4",{class:"mb-0 text-body"},"Welcome to",-1),FA=g("span",{class:"dashboardLogo display-3"},"WGDashboard",-1),BA={class:"m-auto"},VA={key:0,class:"alert alert-danger mt-2 mb-0",role:"alert"},HA={class:"form-group text-body"},jA=g("label",{for:"username",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-person-circle"})],-1),WA={class:"form-group text-body"},zA=g("label",{for:"password",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-key-fill"})],-1),UA={key:0,class:"form-group text-body"},KA=g("label",{for:"totp",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-lock-fill"})],-1),YA={class:"btn btn-lg btn-dark ms-auto mt-4 w-100 d-flex btn-brand shadow signInBtn",ref:"signInBtn"},qA={key:0,class:"d-flex w-100"},GA=g("i",{class:"ms-auto bi bi-chevron-right"},null,-1),XA={key:1,class:"d-flex w-100 align-items-center"},QA=g("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[g("span",{class:"visually-hidden"},"Loading...")],-1);function JA(e,t,n,s,i,o){return X(),ot("div",{class:"container-fluid login-container-fluid d-flex main","data-bs-theme":this.theme},[g("div",RA,[NA,FA,g("div",BA,[i.loginError?(X(),ot("div",VA,wt(this.loginErrorMessage),1)):Kt("",!0),g("form",{onSubmit:t[3]||(t[3]=r=>{r.preventDefault(),this.auth()})},[g("div",HA,[jA,bt(g("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=r=>i.username=r),class:"form-control",id:"username",name:"username",autocomplete:"on",placeholder:"Username",required:""},null,512),[[vt,i.username]])]),g("div",WA,[zA,bt(g("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=r=>i.password=r),class:"form-control",id:"password",name:"password",autocomplete:"on",placeholder:"Password",required:""},null,512),[[vt,i.password]])]),s.totpEnabled?(X(),ot("div",UA,[KA,bt(g("input",{class:"form-control totp",required:"",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code",placeholder:"OTP from your authenticator","onUpdate:modelValue":t[2]||(t[2]=r=>this.totp=r)},null,512),[[vt,this.totp]])])):Kt("",!0),g("button",YA,[this.loading?(X(),ot("span",XA,[gt(" Signing In... "),QA])):(X(),ot("span",qA,[gt(" Sign In"),GA]))],512)],32)])])],8,LA)}const ZA=Rt(IA,[["render",JA]]),tC={name:"configurationCard",props:{c:{Name:String,Status:Boolean,PublicKey:String,PrivateKey:String}},setup(){return{dashboardConfigurationStore:Xt()}},methods:{toggle(){Re("/api/toggleWireguardConfiguration/",{configurationName:this.c.Name},e=>{e.status?this.dashboardConfigurationStore.newMessage("Server",`${this.c.Name} is ${e.data?"is on":"is off"}`):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.c.Status=e.data})}}},eC={class:"card conf_card rounded-3 shadow text-decoration-none"},nC={class:"mb-0"},sC={class:"card-title mb-0"},iC=g("h6",{class:"mb-0 ms-auto"},[g("i",{class:"bi bi-chevron-right"})],-1),oC={class:"card-footer d-flex align-items-center"},rC=g("small",{class:"me-2 text-muted"},[g("strong",null,"PUBLIC KEY")],-1),aC={class:"mb-0 d-block d-lg-inline-block"},lC={style:{"line-break":"anywhere"}},cC={class:"form-check form-switch ms-auto"},uC=["for"],dC=["id"];function hC(e,t,n,s,i,o){const r=Ot("RouterLink");return X(),ot("div",eC,[dt(r,{to:"/configuration/"+n.c.Name+"/peers",class:"card-body d-flex align-items-center gap-3 flex-wrap text-decoration-none"},{default:Ut(()=>[g("h6",nC,[g("span",{class:jt(["dot",{active:n.c.Status}])},null,2)]),g("h6",sC,[g("samp",null,wt(n.c.Name),1)]),iC]),_:1},8,["to"]),g("div",oC,[rC,g("small",aC,[g("samp",lC,wt(n.c.PublicKey),1)]),g("div",cC,[g("label",{class:"form-check-label",for:"switch"+n.c.PrivateKey},wt(n.c.Status?"On":"Off"),9,uC),bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"switch"+n.c.PrivateKey,onChange:t[0]||(t[0]=a=>this.toggle()),"onUpdate:modelValue":t[1]||(t[1]=a=>n.c.Status=a)},null,40,dC),[[lr,n.c.Status]])])])])}const fC=Rt(tC,[["render",hC]]),pC={name:"configurationList",components:{ConfigurationCard:fC},async setup(){const e=mn();return await e.getConfigurations(),{wireguardConfigurationsStore:e}}},gC={class:"mt-4"},mC={class:"container"},_C={class:"d-flex mb-4"},bC=g("h3",{class:"text-body"},"WireGuard Configurations",-1),vC=g("i",{class:"bi bi-plus-circle-fill ms-2"},null,-1),yC={key:0,class:"text-muted"},xC={key:1,class:"d-flex gap-3 flex-column"};function wC(e,t,n,s,i,o){const r=Ot("RouterLink"),a=Ot("ConfigurationCard");return X(),ot("div",gC,[g("div",mC,[g("div",_C,[bC,dt(r,{to:"/new_configuration",class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto rounded-3"},{default:Ut(()=>[gt(" Configuration "),vC]),_:1})]),this.wireguardConfigurationsStore.Configurations.length===0?(X(),ot("p",yC,`You don't have any WireGuard configurations yet. Please check the configuration folder or change it in "Settings". By default the folder is "/etc/wireguard".`)):(X(),ot("div",xC,[(X(!0),ot(Qt,null,us(this.wireguardConfigurationsStore.Configurations,l=>(X(),de(a,{key:l.Name,c:l},null,8,["c"]))),128))]))])])}const EC=Rt(pC,[["render",wC]]),SC={props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Peers[this.targetData]},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Peers",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Peers[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},AC={class:"form-group mb-2"},CC=["for"],TC=["id","disabled"],PC={class:"invalid-feedback"},kC={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},$C=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),MC=["innerHTML"];function OC(e,t,n,s,i,o){return X(),ot("div",AC,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,CC),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,TC),[[vt,this.value]]),g("div",PC,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",kC,[g("small",null,[$C,g("span",{innerHTML:n.warningText},null,8,MC)])])):Kt("",!0)])}const DC=Rt(SC,[["render",OC]]),IC=e=>{},LC={name:"accountSettingsInputUsername",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Account[this.targetData]},methods:{async useValidation(){this.changed&&(this.updating=!0,await Ce("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1}))}}},RC={class:"form-group mb-2"},NC=["for"],FC=["id","disabled"],BC={class:"invalid-feedback"},VC={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},HC=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),jC=["innerHTML"];function WC(e,t,n,s,i,o){return X(),ot("div",RC,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,NC),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,FC),[[vt,this.value]]),g("div",BC,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",VC,[g("small",null,[HC,g("span",{innerHTML:n.warningText},null,8,jC)])])):Kt("",!0)])}const zC=Rt(LC,[["render",WC]]),UC={name:"accountSettingsInputPassword",props:{targetData:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:{currentPassword:"",newPassword:"",repeatNewPassword:""},invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0}},methods:{async useValidation(){Object.values(this.value).find(e=>e.length===0)===void 0?this.value.newPassword===this.value.repeatNewPassword?await Ce("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isValid=!1,this.value={currentPassword:"",newPassword:"",repeatNewPassword:""}},5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)}):(this.showInvalidFeedback=!0,this.invalidFeedback="New passwords does not match"):(this.showInvalidFeedback=!0,this.invalidFeedback="Please fill in all required fields.")}}},KC={class:"row"},YC={class:"col-sm"},qC={class:"form-group mb-2"},GC=["for"],XC=g("strong",null,[g("small",null,"Current Password")],-1),QC=[XC],JC=["id"],ZC={key:0,class:"invalid-feedback d-block"},tT={class:"col-sm"},eT={class:"form-group mb-2"},nT=["for"],sT=g("strong",null,[g("small",null,"New Password")],-1),iT=[sT],oT=["id"],rT={class:"col-sm"},aT={class:"form-group mb-2"},lT=["for"],cT=g("strong",null,[g("small",null,"Repeat New Password")],-1),uT=[cT],dT=["id"],hT=g("i",{class:"bi bi-key-fill me-2"},null,-1);function fT(e,t,n,s,i,o){return X(),ot("div",null,[g("div",KC,[g("div",YC,[g("div",qC,[g("label",{for:"currentPassword_"+this.uuid,class:"text-muted mb-1"},QC,8,GC),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.value.currentPassword=r),id:"currentPassword_"+this.uuid},null,10,JC),[[vt,this.value.currentPassword]]),i.showInvalidFeedback?(X(),ot("div",ZC,wt(this.invalidFeedback),1)):Kt("",!0)])]),g("div",tT,[g("div",eT,[g("label",{for:"newPassword_"+this.uuid,class:"text-muted mb-1"},iT,8,nT),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[1]||(t[1]=r=>this.value.newPassword=r),id:"newPassword_"+this.uuid},null,10,oT),[[vt,this.value.newPassword]])])]),g("div",rT,[g("div",aT,[g("label",{for:"repeatNewPassword_"+this.uuid,class:"text-muted mb-1"},uT,8,lT),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[2]||(t[2]=r=>this.value.repeatNewPassword=r),id:"repeatNewPassword_"+this.uuid},null,10,dT),[[vt,this.value.repeatNewPassword]])])])]),g("button",{class:"btn btn-success btn-sm fw-bold rounded-3",onClick:t[3]||(t[3]=r=>this.useValidation())},[hT,gt("Update Password ")])])}const pT=Rt(UC,[["render",fT]]),gT={name:"dashboardSettingsInputWireguardConfigurationPath",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Server[this.targetData]},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},mT={class:"form-group mb-2"},_T=["for"],bT=["id","disabled"],vT={class:"invalid-feedback"},yT={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},xT=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),wT=["innerHTML"];function ET(e,t,n,s,i,o){return X(),ot("div",mT,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,_T),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":this.showInvalidFeedback,"is-valid":this.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>this.useValidation()),disabled:this.updating},null,42,bT),[[vt,this.value]]),g("div",vT,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",yT,[g("small",null,[xT,g("span",{innerHTML:n.warningText},null,8,wT)])])):Kt("",!0)])}const ST=Rt(gT,[["render",ET]]),AT={name:"dashboardTheme",setup(){return{dashboardConfigurationStore:Xt()}},methods:{async switchTheme(e){await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_theme",value:e},t=>{t.status&&(this.dashboardConfigurationStore.Configuration.Server.dashboard_theme=e)})}}},CT={class:"card mb-4 shadow rounded-3"},TT=g("p",{class:"card-header"},"Dashboard Theme",-1),PT={class:"card-body d-flex gap-2"},kT=g("i",{class:"bi bi-sun-fill"},null,-1),$T=g("i",{class:"bi bi-moon-fill"},null,-1);function MT(e,t,n,s,i,o){return X(),ot("div",CT,[TT,g("div",PT,[g("button",{class:jt(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="light"}]),onClick:t[0]||(t[0]=r=>this.switchTheme("light"))},[kT,gt(" Light ")],2),g("button",{class:jt(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="dark"}]),onClick:t[1]||(t[1]=r=>this.switchTheme("dark"))},[$T,gt(" Dark ")],2)])])}const OT=Rt(AT,[["render",MT]]),DT={name:"dashboardSettingsInputIPAddressAndPort",props:{},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{app_ip:"",app_port:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.app_ip=this.store.Configuration.Server.app_ip,this.app_port=this.store.Configuration.Server.app_port},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)})}}},IT={class:"invalid-feedback d-block mt-0"},LT={class:"row"},RT={class:"form-group mb-2 col-sm"},NT=["for"],FT=g("strong",null,[g("small",null,"Dashboard IP Address")],-1),BT=[FT],VT=["id"],HT=g("div",{class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block"},[g("small",null,[g("i",{class:"bi bi-exclamation-triangle-fill me-2"}),g("code",null,"0.0.0.0"),gt(" means it can be access by anyone with your server IP Address.")])],-1),jT={class:"form-group col-sm"},WT=["for"],zT=g("strong",null,[g("small",null,"Dashboard Port")],-1),UT=[zT],KT=["id"],YT=g("button",{class:"btn btn-success btn-sm fw-bold rounded-3"},[g("i",{class:"bi bi-floppy-fill me-2"}),gt("Update Dashboard Settings & Restart ")],-1);function qT(e,t,n,s,i,o){return X(),ot("div",null,[g("div",IT,wt(this.invalidFeedback),1),g("div",LT,[g("div",RT,[g("label",{for:"app_ip_"+this.uuid,class:"text-muted mb-1"},BT,8,NT),bt(g("input",{type:"text",class:"form-control mb-2",id:"app_ip_"+this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.app_ip=r)},null,8,VT),[[vt,this.app_ip]]),HT]),g("div",jT,[g("label",{for:"app_port_"+this.uuid,class:"text-muted mb-1"},UT,8,WT),bt(g("input",{type:"text",class:"form-control mb-2",id:"app_port_"+this.uuid,"onUpdate:modelValue":t[1]||(t[1]=r=>this.app_port=r)},null,8,KT),[[vt,this.app_port]])])]),YT])}const GT=Rt(DT,[["render",qT]]),XT={name:"settings",methods:{ipV46RegexCheck:IC},components:{DashboardSettingsInputIPAddressAndPort:GT,DashboardTheme:OT,DashboardSettingsInputWireguardConfigurationPath:ST,AccountSettingsInputPassword:pT,AccountSettingsInputUsername:zC,PeersDefaultSettingsInput:DC},setup(){return{dashboardConfigurationStore:Xt()}},watch:{}},QT={class:"mt-4"},JT={class:"container"},ZT=g("h3",{class:"mb-3 text-body"},"Settings",-1),tP={class:"card mb-4 shadow rounded-3"},eP=g("p",{class:"card-header"},"Peers Default Settings",-1),nP={class:"card-body"},sP={class:"card mb-4 shadow rounded-3"},iP=g("p",{class:"card-header"},"WireGuard Configurations Settings",-1),oP={class:"card-body"},rP={class:"card mb-4 shadow rounded-3"},aP=g("p",{class:"card-header"},"Account Settings",-1),lP={class:"card-body"},cP=g("hr",null,null,-1);function uP(e,t,n,s,i,o){const r=Ot("DashboardTheme"),a=Ot("PeersDefaultSettingsInput"),l=Ot("DashboardSettingsInputWireguardConfigurationPath"),c=Ot("AccountSettingsInputUsername"),u=Ot("AccountSettingsInputPassword");return X(),ot("div",QT,[g("div",JT,[ZT,dt(r),g("div",tP,[eP,g("div",nP,[dt(a,{targetData:"peer_global_dns",title:"DNS"}),dt(a,{targetData:"peer_endpoint_allowed_ip",title:"Peer Endpoint Allowed IPs"}),dt(a,{targetData:"peer_mtu",title:"MTU (Max Transmission Unit)"}),dt(a,{targetData:"peer_keep_alive",title:"Persistent Keepalive"}),dt(a,{targetData:"remote_endpoint",title:"Peer Remote Endpoint",warning:!0,warningText:"This will be change globally, and will be apply to all peer's QR code and configuration file."})])]),g("div",sP,[iP,g("div",oP,[dt(l,{targetData:"wg_conf_path",title:"Configurations Directory",warning:!0,"warning-text":"Remember to remove / at the end of your path. e.g /etc/wireguard"})])]),g("div",rP,[aP,g("div",lP,[dt(c,{targetData:"username",title:"Username"}),cP,dt(u,{targetData:"password"})])])])])}const dP=Rt(XT,[["render",uP]]);var eo={},hP=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Xm={},Ne={};let Vu;const fP=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ne.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ne.getSymbolTotalCodewords=function(t){return fP[t]};Ne.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ne.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Vu=t};Ne.isKanjiModeEnabled=function(){return typeof Vu<"u"};Ne.toSJIS=function(t){return Vu(t)};var rl={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,i){if(e.isValid(s))return s;try{return t(s)}catch{return i}}})(rl);function Qm(){this.buffer=[],this.length=0}Qm.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var pP=Qm;function cr(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}cr.prototype.set=function(e,t,n,s){const i=e*this.size+t;this.data[i]=n,s&&(this.reservedBit[i]=!0)};cr.prototype.get=function(e,t){return this.data[e*this.size+t]};cr.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};cr.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var gP=cr,Jm={};(function(e){const t=Ne.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const i=Math.floor(s/7)+2,o=t(s),r=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let l=1;l=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let r=0,a=0,l=0,c=null,u=null;for(let d=0;d=5&&(r+=t.N1+(a-5)),c=p,a=1),p=i.get(f,d),p===u?l++:(l>=5&&(r+=t.N1+(l-5)),u=p,l=1)}a>=5&&(r+=t.N1+(a-5)),l>=5&&(r+=t.N1+(l-5))}return r},e.getPenaltyN2=function(i){const o=i.size;let r=0;for(let a=0;a=10&&(a===1488||a===93)&&r++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&r++}return r*t.N3},e.getPenaltyN4=function(i){let o=0;const r=i.data.length;for(let l=0;l=0;){const r=o[0];for(let l=0;l0){const o=new Uint8Array(this.degree);return o.set(s,i),o}return s};var _P=Hu,s_={},ms={},ju={};ju.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _n={};const i_="[0-9]+",bP="[A-Z $%*+\\-./:]+";let Go="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Go=Go.replace(/u/g,"\\u");const vP="(?:(?![A-Z0-9 $%*+\\-./:]|"+Go+`)(?:.|[\r -]))+`;_n.KANJI=new RegExp(Go,"g");_n.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");_n.BYTE=new RegExp(vP,"g");_n.NUMERIC=new RegExp(i_,"g");_n.ALPHANUMERIC=new RegExp(bP,"g");const yP=new RegExp("^"+Go+"$"),xP=new RegExp("^"+i_+"$"),wP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");_n.testKanji=function(t){return yP.test(t)};_n.testNumeric=function(t){return xP.test(t)};_n.testAlphanumeric=function(t){return wP.test(t)};(function(e){const t=ju,n=_n;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,r){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?o.ccBits[0]:r<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function s(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,r){if(e.isValid(o))return o;try{return s(o)}catch{return r}}})(ms);(function(e){const t=Ne,n=al,s=rl,i=ms,o=ju,r=7973,a=t.getBCHDigit(r);function l(f,p,m){for(let _=1;_<=40;_++)if(p<=e.getCapacity(_,m,f))return _}function c(f,p){return i.getCharCountIndicator(f,p)+4}function u(f,p){let m=0;return f.forEach(function(_){const v=c(_.mode,p);m+=v+_.getBitsLength()}),m}function d(f,p){for(let m=1;m<=40;m++)if(u(f,m)<=e.getCapacity(m,p,i.MIXED))return m}e.from=function(p,m){return o.isValid(p)?parseInt(p,10):m},e.getCapacity=function(p,m,_){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=i.BYTE);const v=t.getSymbolTotalCodewords(p),x=n.getTotalCodewordsCount(p,m),S=(v-x)*8;if(_===i.MIXED)return S;const P=S-c(_,p);switch(_){case i.NUMERIC:return Math.floor(P/10*3);case i.ALPHANUMERIC:return Math.floor(P/11*2);case i.KANJI:return Math.floor(P/13);case i.BYTE:default:return Math.floor(P/8)}},e.getBestVersionForData=function(p,m){let _;const v=s.from(m,s.M);if(Array.isArray(p)){if(p.length>1)return d(p,v);if(p.length===0)return 1;_=p[0]}else _=p;return l(_.mode,_.getLength(),v)},e.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let m=p<<12;for(;t.getBCHDigit(m)-a>=0;)m^=r<=0;)i^=r_<0&&(s=this.data.substr(n),i=parseInt(s,10),t.put(i,o*3+1))};var AP=Wi;const CP=ms,Hl=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function zi(e){this.mode=CP.ALPHANUMERIC,this.data=e}zi.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};zi.prototype.getLength=function(){return this.data.length};zi.prototype.getBitsLength=function(){return zi.getBitsLength(this.data.length)};zi.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let s=Hl.indexOf(this.data[n])*45;s+=Hl.indexOf(this.data[n+1]),t.put(s,11)}this.data.length%2&&t.put(Hl.indexOf(this.data[n]),6)};var TP=zi,PP=function(t){for(var n=[],s=t.length,i=0;i=55296&&o<=56319&&s>i+1){var r=t.charCodeAt(i+1);r>=56320&&r<=57343&&(o=(o-55296)*1024+r-56320+65536,i+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const kP=PP,$P=ms;function Ui(e){this.mode=$P.BYTE,typeof e=="string"&&(e=kP(e)),this.data=new Uint8Array(e)}Ui.getBitsLength=function(t){return t*8};Ui.prototype.getLength=function(){return this.data.length};Ui.prototype.getBitsLength=function(){return Ui.getBitsLength(this.data.length)};Ui.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` -Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var IP=Ki,l_={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,s,i){var o={},r={};r[s]=0;var a=t.PriorityQueue.make();a.push(s,0);for(var l,c,u,d,f,p,m,_,v;!a.empty();){l=a.pop(),c=l.value,d=l.cost,f=n[c]||{};for(u in f)f.hasOwnProperty(u)&&(p=f[u],m=d+p,_=r[u],v=typeof r[u]>"u",(v||_>m)&&(r[u]=m,a.push(u,m),o[u]=c))}if(typeof i<"u"&&typeof r[i]>"u"){var x=["Could not find a path from ",s," to ",i,"."].join("");throw new Error(x)}return o},extract_shortest_path_from_predecessor_list:function(n,s){for(var i=[],o=s;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,s,i){var o=t.single_source_shortest_paths(n,s,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var s=t.PriorityQueue,i={},o;n=n||{};for(o in s)s.hasOwnProperty(o)&&(i[o]=s[o]);return i.queue=[],i.sorter=n.sorter||s.default_sorter,i},default_sorter:function(n,s){return n.cost-s.cost},push:function(n,s){var i={value:n,cost:s};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(l_);var LP=l_.exports;(function(e){const t=ms,n=AP,s=TP,i=MP,o=IP,r=_n,a=Ne,l=LP;function c(x){return unescape(encodeURIComponent(x)).length}function u(x,S,P){const A=[];let y;for(;(y=x.exec(P))!==null;)A.push({data:y[0],index:y.index,mode:S,length:y[0].length});return A}function d(x){const S=u(r.NUMERIC,t.NUMERIC,x),P=u(r.ALPHANUMERIC,t.ALPHANUMERIC,x);let A,y;return a.isKanjiModeEnabled()?(A=u(r.BYTE,t.BYTE,x),y=u(r.KANJI,t.KANJI,x)):(A=u(r.BYTE_KANJI,t.BYTE,x),y=[]),S.concat(P,A,y).sort(function(C,w){return C.index-w.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function f(x,S){switch(S){case t.NUMERIC:return n.getBitsLength(x);case t.ALPHANUMERIC:return s.getBitsLength(x);case t.KANJI:return o.getBitsLength(x);case t.BYTE:return i.getBitsLength(x)}}function p(x){return x.reduce(function(S,P){const A=S.length-1>=0?S[S.length-1]:null;return A&&A.mode===P.mode?(S[S.length-1].data+=P.data,S):(S.push(P),S)},[])}function m(x){const S=[];for(let P=0;P=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,r+l,!0,!0):e.set(o+a,r+l,!1,!0))}}function zP(e){const t=e.size;for(let n=8;n>a&1)===1,e.set(i,o,r,!0),e.set(o,i,r,!0)}function zl(e,t,n){const s=e.size,i=HP.getEncodedBits(t,n);let o,r;for(o=0;o<15;o++)r=(i>>o&1)===1,o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(s-15+o,8,r,!0),o<8?e.set(8,s-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(s-8,8,1,!0)}function YP(e,t){const n=e.size;let s=-1,i=n-1,o=7,r=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let c=!1;r>>o&1)===1),e.set(i,a-l,c),o--,o===-1&&(r++,o=7)}if(i+=s,i<0||n<=i){i-=s,s=-s;break}}}function qP(e,t,n){const s=new RP;n.forEach(function(l){s.put(l.mode.bit,4),s.put(l.getLength(),jP.getCharCountIndicator(l.mode,e)),l.write(s)});const i=cl.getSymbolTotalCodewords(e),o=$c.getTotalCodewordsCount(e,t),r=(i-o)*8;for(s.getLengthInBits()+4<=r&&s.put(0,4);s.getLengthInBits()%8!==0;)s.putBit(0);const a=(r-s.getLengthInBits())/8;for(let l=0;le&&e.exact?ZS:new RegExp(`(?:${nn(e)}${es}${nn(e)})|(?:${nn(e)}${nl}${nn(e)})`,"g");il.v4=e=>e&&e.exact?tA:new RegExp(`${nn(e)}${es}${nn(e)}`,"g");il.v6=e=>e&&e.exact?eA:new RegExp(`${nn(e)}${nl}${nn(e)}`,"g");const e_={exact:!1},s_=`${il.v4().source}\\/(3[0-2]|[12]?[0-9])`,n_=`${il.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,sA=new RegExp(`^${s_}$`),nA=new RegExp(`^${n_}$`),iA=({exact:e}=e_)=>e?sA:new RegExp(s_,"g"),oA=({exact:e}=e_)=>e?nA:new RegExp(n_,"g"),i_=iA({exact:!0}),o_=oA({exact:!0}),Hd=e=>i_.test(e)?4:o_.test(e)?6:0;Hd.v4=e=>i_.test(e);Hd.v6=e=>o_.test(e);const as=Fd("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:""}),actions:{async getConfigurations(){await he("/api/getWireguardConfigurations",{},e=>{e.status&&(this.Configurations=e.data)})},regexCheckIP(e){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(e)},checkCIDR(e){return Hd(e)!==0}}}),kt=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},rA={name:"navbar",setup(){const e=as(),t=Jt();return{wireguardConfigurationsStore:e,dashboardConfigurationStore:t}}},aA={class:"col-md-3 col-lg-2 d-md-block p-3"},lA={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow"},cA={class:"sidebar-sticky pt-3"},dA={class:"nav flex-column"},uA={class:"nav-item"},hA={class:"nav-item"},fA=p("hr",null,null,-1),pA=p("h6",{class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"},[p("span",null,"Configurations")],-1),gA={class:"nav flex-column"},mA={class:"nav-item"},_A=p("hr",null,null,-1),bA=p("h6",{class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"},[p("span",null,"Tools")],-1),vA={class:"nav flex-column"},yA={class:"nav-item"},xA={class:"nav-item"},wA=p("hr",null,null,-1),EA={class:"nav flex-column"},SA={class:"nav-item"},AA=p("ul",{class:"nav flex-column"},[p("li",{class:"nav-item"},[p("a",{href:"https://github.com/donaldzou/WGDashboard/releases/tag/"},[p("small",{class:"nav-link text-muted"})])])],-1);function CA(e,t,s,n,i,o){const r=Dt("RouterLink");return H(),q("div",aA,[p("nav",lA,[p("div",cA,[p("ul",dA,[p("li",uA,[dt(r,{class:"nav-link",to:"/","exact-active-class":"active"},{default:Bt(()=>[ht("Home")]),_:1})]),p("li",hA,[dt(r,{class:"nav-link",to:"/settings","exact-active-class":"active"},{default:Bt(()=>[ht("Settings")]),_:1})])]),fA,pA,p("ul",gA,[p("li",mA,[(H(!0),q(Ht,null,_e(this.wireguardConfigurationsStore.Configurations,a=>(H(),oe(r,{to:"/configuration/"+a.Name+"/peers",class:"nav-link nav-conf-link","active-class":"active"},{default:Bt(()=>[p("samp",null,lt(a.Name),1)]),_:2},1032,["to"]))),256))])]),_A,bA,p("ul",vA,[p("li",yA,[dt(r,{to:"/ping",class:"nav-link","active-class":"active"},{default:Bt(()=>[ht("Ping")]),_:1})]),p("li",xA,[dt(r,{to:"/traceroute",class:"nav-link","active-class":"active"},{default:Bt(()=>[ht("Traceroute")]),_:1})])]),wA,p("ul",EA,[p("li",SA,[p("a",{class:"nav-link text-danger",onClick:t[0]||(t[0]=a=>this.dashboardConfigurationStore.signOut()),role:"button",style:{"font-weight":"bold"}},"Sign Out")])]),AA])])])}const $A=kt(rA,[["render",CA]]),PA={name:"message",props:{message:Object},mounted(){setTimeout(()=>{this.message.show=!1},5e3)}},kA=["id"],TA={class:"card-body"},MA={class:"fw-bold d-block",style:{"text-transform":"uppercase"}};function OA(e,t,s,n,i,o){return H(),q("div",{class:Rt(["card shadow rounded-3 position-relative mb-2",{"text-bg-danger":this.message.type==="danger","text-bg-success":this.message.type==="success","text-bg-warning":this.message.type==="warning"}]),id:this.message.id,style:{width:"400px"}},[p("div",TA,[p("small",MA,"FROM "+lt(this.message.from),1),ht(" "+lt(this.message.content),1)])],10,kA)}const DA=kt(PA,[["render",OA]]),IA={name:"index",components:{Message:DA,Navbar:$A},async setup(){return{dashboardConfigurationStore:Jt()}},computed:{getMessages(){return this.dashboardConfigurationStore.Messages.filter(e=>e.show)}}},LA=["data-bs-theme"],RA={class:"row h-100"},NA={class:"col-md-9 ml-sm-auto col-lg-10 px-md-4 overflow-y-scroll mb-0",style:{height:"calc(100vh - 50px)"}},FA={class:"messageCentre text-body position-fixed"};function BA(e,t,s,n,i,o){const r=Dt("Navbar"),a=Dt("RouterView"),l=Dt("Message");return H(),q("div",{class:"container-fluid flex-grow-1 main","data-bs-theme":this.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[p("div",RA,[dt(r),p("main",NA,[(H(),oe(qa,null,{default:Bt(()=>[dt(a,null,{default:Bt(({Component:c})=>[dt(is,{name:"fade2",mode:"out-in"},{default:Bt(()=>[(H(),oe(Td(c)))]),_:2},1024)]),_:1})]),_:1})),p("div",FA,[dt(or,{name:"message",tag:"div",class:"position-relative"},{default:Bt(()=>[(H(!0),q(Ht,null,_e(o.getMessages.slice().reverse(),c=>(H(),oe(l,{message:c,key:c.id},null,8,["message"]))),128))]),_:1})])])])],8,LA)}const VA=kt(IA,[["render",BA],["__scopeId","data-v-54755a4a"]]),HA={name:"signin",async setup(){const e=Jt();let t="",s=!1;return await he("/api/getDashboardTheme",{},n=>{t=n.data}),await he("/api/isTotpEnabled",{},n=>{s=n.data}),{store:e,theme:t,totpEnabled:s}},data(){return{username:"",password:"",totp:"",loginError:!1,loginErrorMessage:"",loading:!1}},methods:{async auth(){this.username&&this.password&&(this.totpEnabled&&this.totp||!this.totpEnabled)?(this.loading=!0,await ue("/api/authenticate",{username:this.username,password:this.password,totp:this.totp},e=>{e.status?(this.loginError=!1,this.$refs.signInBtn.classList.add("signedIn"),e.message?this.$router.push("/welcome"):this.store.Redirect!==void 0?this.$router.push(this.store.Redirect):this.$router.push("/")):(this.loginError=!0,this.loginErrorMessage=e.message,document.querySelectorAll("input[required]").forEach(t=>{t.classList.remove("is-valid"),t.classList.add("is-invalid")}),this.loading=!1)})):document.querySelectorAll("input[required]").forEach(e=>{e.value.length===0?(e.classList.remove("is-valid"),e.classList.add("is-invalid")):(e.classList.remove("is-invalid"),e.classList.add("is-valid"))})}}},jA=["data-bs-theme"],WA={class:"login-box m-auto",style:{width:"500px"}},zA=p("h4",{class:"mb-0 text-body"},"Welcome to",-1),UA=p("span",{class:"dashboardLogo display-3"},"WGDashboard",-1),KA={class:"m-auto"},YA={key:0,class:"alert alert-danger mt-2 mb-0",role:"alert"},qA={class:"form-group text-body"},GA=p("label",{for:"username",class:"text-left",style:{"font-size":"1rem"}},[p("i",{class:"bi bi-person-circle"})],-1),XA={class:"form-group text-body"},JA=p("label",{for:"password",class:"text-left",style:{"font-size":"1rem"}},[p("i",{class:"bi bi-key-fill"})],-1),QA={key:0,class:"form-group text-body"},ZA=p("label",{for:"totp",class:"text-left",style:{"font-size":"1rem"}},[p("i",{class:"bi bi-lock-fill"})],-1),tC={class:"btn btn-lg btn-dark ms-auto mt-4 w-100 d-flex btn-brand shadow signInBtn",ref:"signInBtn"},eC={key:0,class:"d-flex w-100"},sC=p("i",{class:"ms-auto bi bi-chevron-right"},null,-1),nC={key:1,class:"d-flex w-100 align-items-center"},iC=p("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[p("span",{class:"visually-hidden"},"Loading...")],-1),oC=p("small",{class:"text-muted pb-3 d-block w-100 text-center"},[ht(" WGDashboard v4.0 | Developed with ❤️ by "),p("a",{href:"https://github.com/donaldzou",target:"_blank"},[p("strong",null,"Donald Zou")])],-1);function rC(e,t,s,n,i,o){return H(),q("div",{class:"container-fluid login-container-fluid d-flex main flex-column","data-bs-theme":this.theme},[p("div",WA,[zA,UA,p("div",KA,[i.loginError?(H(),q("div",YA,lt(this.loginErrorMessage),1)):Vt("",!0),p("form",{onSubmit:t[3]||(t[3]=r=>{r.preventDefault(),this.auth()})},[p("div",qA,[GA,mt(p("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=r=>i.username=r),class:"form-control",id:"username",name:"username",autocomplete:"on",placeholder:"Username",required:""},null,512),[[yt,i.username]])]),p("div",XA,[JA,mt(p("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=r=>i.password=r),class:"form-control",id:"password",name:"password",autocomplete:"on",placeholder:"Password",required:""},null,512),[[yt,i.password]])]),n.totpEnabled?(H(),q("div",QA,[ZA,mt(p("input",{class:"form-control totp",required:"",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code",placeholder:"OTP from your authenticator","onUpdate:modelValue":t[2]||(t[2]=r=>this.totp=r)},null,512),[[yt,this.totp]])])):Vt("",!0),p("button",tC,[this.loading?(H(),q("span",nC,[ht(" Signing In... "),iC])):(H(),q("span",eC,[ht(" Sign In"),sC]))],512)],32)])]),oC],8,jA)}const aC=kt(HA,[["render",rC]]),lC={name:"configurationCard",props:{c:{Name:String,Status:Boolean,PublicKey:String,PrivateKey:String}},data(){return{configurationToggling:!1}},setup(){return{dashboardConfigurationStore:Jt()}},methods:{toggle(){this.configurationToggling=!0,he("/api/toggleWireguardConfiguration/",{configurationName:this.c.Name},e=>{e.status?this.dashboardConfigurationStore.newMessage("Server",`${this.c.Name} is ${e.data?"is on":"is off"}`):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.c.Status=e.data,this.configurationToggling=!1})}}},cC={class:"card conf_card rounded-3 shadow text-decoration-none"},dC={class:"mb-0"},uC={class:"card-title mb-0"},hC=p("h6",{class:"mb-0 ms-auto"},[p("i",{class:"bi bi-chevron-right"})],-1),fC={class:"card-footer d-flex align-items-center"},pC=p("small",{class:"me-2 text-muted"},[p("strong",null,"PUBLIC KEY")],-1),gC={class:"mb-0 d-block d-lg-inline-block"},mC={style:{"line-break":"anywhere"}},_C={class:"form-check form-switch ms-auto"},bC=["for"],vC={key:0,class:"spinner-border spinner-border-sm","aria-hidden":"true"},yC=["disabled","id"];function xC(e,t,s,n,i,o){const r=Dt("RouterLink");return H(),q("div",cC,[dt(r,{to:"/configuration/"+s.c.Name+"/peers",class:"card-body d-flex align-items-center gap-3 flex-wrap text-decoration-none"},{default:Bt(()=>[p("h6",dC,[p("span",{class:Rt(["dot",{active:s.c.Status}])},null,2)]),p("h6",uC,[p("samp",null,lt(s.c.Name),1)]),hC]),_:1},8,["to"]),p("div",fC,[pC,p("small",gC,[p("samp",mC,lt(s.c.PublicKey),1)]),p("div",_C,[p("label",{class:"form-check-label",style:{cursor:"pointer"},for:"switch"+s.c.PrivateKey},[ht(lt(this.configurationToggling?"Turning ":"")+" "+lt(s.c.Status?"On":"Off")+" ",1),this.configurationToggling?(H(),q("span",vC)):Vt("",!0)],8,bC),mt(p("input",{class:"form-check-input",style:{cursor:"pointer"},disabled:this.configurationToggling,type:"checkbox",role:"switch",id:"switch"+s.c.PrivateKey,onChange:t[0]||(t[0]=a=>this.toggle()),"onUpdate:modelValue":t[1]||(t[1]=a=>s.c.Status=a)},null,40,yC),[[Xi,s.c.Status]])])])])}const wC=kt(lC,[["render",xC]]),EC={name:"configurationList",components:{ConfigurationCard:wC},async setup(){return{wireguardConfigurationsStore:as()}},data(){return{configurationLoaded:!1}},async mounted(){await this.wireguardConfigurationsStore.getConfigurations(),this.configurationLoaded=!0}},SC={class:"mt-5"},AC={class:"container"},CC={class:"d-flex mb-4"},$C=p("h3",{class:"text-body"},"WireGuard Configurations",-1),PC=p("i",{class:"bi bi-plus-circle-fill me-2"},null,-1),kC={key:0},TC={key:0,class:"text-muted"},MC={key:1,class:"d-flex gap-3 flex-column"};function OC(e,t,s,n,i,o){const r=Dt("RouterLink"),a=Dt("ConfigurationCard");return H(),q("div",SC,[p("div",AC,[p("div",CC,[$C,dt(r,{to:"/new_configuration",class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto rounded-3"},{default:Bt(()=>[PC,ht(" Configuration ")]),_:1})]),dt(is,{name:"fade",mode:"out-in"},{default:Bt(()=>[this.configurationLoaded?(H(),q("div",kC,[this.wireguardConfigurationsStore.Configurations.length===0?(H(),q("p",TC,` You don't have any WireGuard configurations yet. Please check the configuration folder or change it in "Settings". By default the folder is "/etc/wireguard". `)):(H(),q("div",MC,[(H(!0),q(Ht,null,_e(this.wireguardConfigurationsStore.Configurations,l=>(H(),oe(a,{key:l.Name,c:l},null,8,["c"]))),128))]))])):Vt("",!0)]),_:1})])])}const DC=kt(EC,[["render",OC]]),IC={props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Jt(),t=`input_${Ji()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Peers[this.targetData]},methods:{async useValidation(){this.changed&&await ue("/api/updateDashboardConfigurationItem",{section:"Peers",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Peers[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},LC={class:"form-group mb-2"},RC=["for"],NC=["id","disabled"],FC={class:"invalid-feedback"},BC={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},VC=p("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),HC=["innerHTML"];function jC(e,t,s,n,i,o){return H(),q("div",LC,[p("label",{for:this.uuid,class:"text-muted mb-1"},[p("strong",null,[p("small",null,lt(this.title),1)])],8,RC),mt(p("input",{type:"text",class:Rt(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,NC),[[yt,this.value]]),p("div",FC,lt(this.invalidFeedback),1),s.warning?(H(),q("div",BC,[p("small",null,[VC,p("span",{innerHTML:s.warningText},null,8,HC)])])):Vt("",!0)])}const WC=kt(IC,[["render",jC]]),zC=e=>{},UC={name:"accountSettingsInputUsername",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Jt(),t=`input_${Ji()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Account[this.targetData]},methods:{async useValidation(){this.changed&&(this.updating=!0,await ue("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1}))}}},KC={class:"form-group mb-2"},YC=["for"],qC=["id","disabled"],GC={class:"invalid-feedback"},XC={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},JC=p("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),QC=["innerHTML"];function ZC(e,t,s,n,i,o){return H(),q("div",KC,[p("label",{for:this.uuid,class:"text-muted mb-1"},[p("strong",null,[p("small",null,lt(this.title),1)])],8,YC),mt(p("input",{type:"text",class:Rt(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,qC),[[yt,this.value]]),p("div",GC,lt(this.invalidFeedback),1),s.warning?(H(),q("div",XC,[p("small",null,[JC,p("span",{innerHTML:s.warningText},null,8,QC)])])):Vt("",!0)])}const t$=kt(UC,[["render",ZC]]),e$={name:"accountSettingsInputPassword",props:{targetData:String,warning:!1,warningText:""},setup(){const e=Jt(),t=`input_${Ji()}`;return{store:e,uuid:t}},data(){return{value:{currentPassword:"",newPassword:"",repeatNewPassword:""},invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0}},methods:{async useValidation(){Object.values(this.value).find(e=>e.length===0)===void 0?this.value.newPassword===this.value.repeatNewPassword?await ue("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isValid=!1,this.value={currentPassword:"",newPassword:"",repeatNewPassword:""}},5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)}):(this.showInvalidFeedback=!0,this.invalidFeedback="New passwords does not match"):(this.showInvalidFeedback=!0,this.invalidFeedback="Please fill in all required fields.")}}},s$={class:"row"},n$={class:"col-sm"},i$={class:"form-group mb-2"},o$=["for"],r$=p("strong",null,[p("small",null,"Current Password")],-1),a$=[r$],l$=["id"],c$={key:0,class:"invalid-feedback d-block"},d$={class:"col-sm"},u$={class:"form-group mb-2"},h$=["for"],f$=p("strong",null,[p("small",null,"New Password")],-1),p$=[f$],g$=["id"],m$={class:"col-sm"},_$={class:"form-group mb-2"},b$=["for"],v$=p("strong",null,[p("small",null,"Repeat New Password")],-1),y$=[v$],x$=["id"],w$=p("i",{class:"bi bi-key-fill me-2"},null,-1);function E$(e,t,s,n,i,o){return H(),q("div",null,[p("div",s$,[p("div",n$,[p("div",i$,[p("label",{for:"currentPassword_"+this.uuid,class:"text-muted mb-1"},a$,8,o$),mt(p("input",{type:"password",class:Rt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.value.currentPassword=r),id:"currentPassword_"+this.uuid},null,10,l$),[[yt,this.value.currentPassword]]),i.showInvalidFeedback?(H(),q("div",c$,lt(this.invalidFeedback),1)):Vt("",!0)])]),p("div",d$,[p("div",u$,[p("label",{for:"newPassword_"+this.uuid,class:"text-muted mb-1"},p$,8,h$),mt(p("input",{type:"password",class:Rt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[1]||(t[1]=r=>this.value.newPassword=r),id:"newPassword_"+this.uuid},null,10,g$),[[yt,this.value.newPassword]])])]),p("div",m$,[p("div",_$,[p("label",{for:"repeatNewPassword_"+this.uuid,class:"text-muted mb-1"},y$,8,b$),mt(p("input",{type:"password",class:Rt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[2]||(t[2]=r=>this.value.repeatNewPassword=r),id:"repeatNewPassword_"+this.uuid},null,10,x$),[[yt,this.value.repeatNewPassword]])])])]),p("button",{class:"btn btn-success btn-sm fw-bold rounded-3",onClick:t[3]||(t[3]=r=>this.useValidation())},[w$,ht("Update Password ")])])}const S$=kt(e$,[["render",E$]]),A$={name:"dashboardSettingsInputWireguardConfigurationPath",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Jt(),t=`input_${Ji()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Server[this.targetData]},methods:{async useValidation(){this.changed&&await ue("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},C$={class:"form-group mb-2"},$$=["for"],P$=["id","disabled"],k$={class:"invalid-feedback"},T$={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},M$=p("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),O$=["innerHTML"];function D$(e,t,s,n,i,o){return H(),q("div",C$,[p("label",{for:this.uuid,class:"text-muted mb-1"},[p("strong",null,[p("small",null,lt(this.title),1)])],8,$$),mt(p("input",{type:"text",class:Rt(["form-control",{"is-invalid":this.showInvalidFeedback,"is-valid":this.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>this.useValidation()),disabled:this.updating},null,42,P$),[[yt,this.value]]),p("div",k$,lt(this.invalidFeedback),1),s.warning?(H(),q("div",T$,[p("small",null,[M$,p("span",{innerHTML:s.warningText},null,8,O$)])])):Vt("",!0)])}const I$=kt(A$,[["render",D$]]),L$={name:"dashboardTheme",setup(){return{dashboardConfigurationStore:Jt()}},methods:{async switchTheme(e){await ue("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_theme",value:e},t=>{t.status&&(this.dashboardConfigurationStore.Configuration.Server.dashboard_theme=e)})}}},R$={class:"card mb-4 shadow rounded-3"},N$=p("p",{class:"card-header"},"Dashboard Theme",-1),F$={class:"card-body d-flex gap-2"},B$=p("i",{class:"bi bi-sun-fill"},null,-1),V$=p("i",{class:"bi bi-moon-fill"},null,-1);function H$(e,t,s,n,i,o){return H(),q("div",R$,[N$,p("div",F$,[p("button",{class:Rt(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="light"}]),onClick:t[0]||(t[0]=r=>this.switchTheme("light"))},[B$,ht(" Light ")],2),p("button",{class:Rt(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="dark"}]),onClick:t[1]||(t[1]=r=>this.switchTheme("dark"))},[V$,ht(" Dark ")],2)])])}const j$=kt(L$,[["render",H$]]),W$={name:"dashboardSettingsInputIPAddressAndPort",props:{},setup(){const e=Jt(),t=`input_${Ji()}`;return{store:e,uuid:t}},data(){return{app_ip:"",app_port:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.app_ip=this.store.Configuration.Server.app_ip,this.app_port=this.store.Configuration.Server.app_port},methods:{async useValidation(){this.changed&&await ue("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)})}}},z$={class:"invalid-feedback d-block mt-0"},U$={class:"row"},K$={class:"form-group mb-2 col-sm"},Y$=["for"],q$=p("strong",null,[p("small",null,"Dashboard IP Address")],-1),G$=[q$],X$=["id"],J$=p("div",{class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block"},[p("small",null,[p("i",{class:"bi bi-exclamation-triangle-fill me-2"}),p("code",null,"0.0.0.0"),ht(" means it can be access by anyone with your server IP Address.")])],-1),Q$={class:"form-group col-sm"},Z$=["for"],tP=p("strong",null,[p("small",null,"Dashboard Port")],-1),eP=[tP],sP=["id"],nP=p("button",{class:"btn btn-success btn-sm fw-bold rounded-3"},[p("i",{class:"bi bi-floppy-fill me-2"}),ht("Update Dashboard Settings & Restart ")],-1);function iP(e,t,s,n,i,o){return H(),q("div",null,[p("div",z$,lt(this.invalidFeedback),1),p("div",U$,[p("div",K$,[p("label",{for:"app_ip_"+this.uuid,class:"text-muted mb-1"},G$,8,Y$),mt(p("input",{type:"text",class:"form-control mb-2",id:"app_ip_"+this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.app_ip=r)},null,8,X$),[[yt,this.app_ip]]),J$]),p("div",Q$,[p("label",{for:"app_port_"+this.uuid,class:"text-muted mb-1"},eP,8,Z$),mt(p("input",{type:"text",class:"form-control mb-2",id:"app_port_"+this.uuid,"onUpdate:modelValue":t[1]||(t[1]=r=>this.app_port=r)},null,8,sP),[[yt,this.app_port]])])]),nP])}const oP=kt(W$,[["render",iP]]),rP={name:"settings",methods:{ipV46RegexCheck:zC},components:{DashboardSettingsInputIPAddressAndPort:oP,DashboardTheme:j$,DashboardSettingsInputWireguardConfigurationPath:I$,AccountSettingsInputPassword:S$,AccountSettingsInputUsername:t$,PeersDefaultSettingsInput:WC},setup(){return{dashboardConfigurationStore:Jt()}},watch:{}},aP={class:"mt-5"},lP={class:"container"},cP=p("h3",{class:"mb-3 text-body"},"Settings",-1),dP={class:"card mb-4 shadow rounded-3"},uP=p("p",{class:"card-header"},"Peers Default Settings",-1),hP={class:"card-body"},fP={class:"card mb-4 shadow rounded-3"},pP=p("p",{class:"card-header"},"WireGuard Configurations Settings",-1),gP={class:"card-body"},mP={class:"card mb-4 shadow rounded-3"},_P=p("p",{class:"card-header"},"Account Settings",-1),bP={class:"card-body"},vP=p("hr",null,null,-1);function yP(e,t,s,n,i,o){const r=Dt("DashboardTheme"),a=Dt("PeersDefaultSettingsInput"),l=Dt("DashboardSettingsInputWireguardConfigurationPath"),c=Dt("AccountSettingsInputUsername"),d=Dt("AccountSettingsInputPassword");return H(),q("div",aP,[p("div",lP,[cP,dt(r),p("div",dP,[uP,p("div",hP,[dt(a,{targetData:"peer_global_dns",title:"DNS"}),dt(a,{targetData:"peer_endpoint_allowed_ip",title:"Peer Endpoint Allowed IPs"}),dt(a,{targetData:"peer_mtu",title:"MTU (Max Transmission Unit)"}),dt(a,{targetData:"peer_keep_alive",title:"Persistent Keepalive"}),dt(a,{targetData:"remote_endpoint",title:"Peer Remote Endpoint",warning:!0,warningText:"This will be change globally, and will be apply to all peer's QR code and configuration file."})])]),p("div",fP,[pP,p("div",gP,[dt(l,{targetData:"wg_conf_path",title:"Configurations Directory",warning:!0,"warning-text":"Remember to remove / at the end of your path. e.g /etc/wireguard"})])]),p("div",mP,[_P,p("div",bP,[dt(c,{targetData:"username",title:"Username"}),vP,dt(d,{targetData:"password"})])])])])}const xP=kt(rP,[["render",yP]]);var Qi={},wP=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},r_={},Be={};let jd;const EP=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Be.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Be.getSymbolTotalCodewords=function(t){return EP[t]};Be.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Be.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');jd=t};Be.isKanjiModeEnabled=function(){return typeof jd<"u"};Be.toSJIS=function(t){return jd(t)};var ol={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+s)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,i){if(e.isValid(n))return n;try{return t(n)}catch{return i}}})(ol);function a_(){this.buffer=[],this.length=0}a_.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let s=0;s>>t-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var SP=a_;function rr(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}rr.prototype.set=function(e,t,s,n){const i=e*this.size+t;this.data[i]=s,n&&(this.reservedBit[i]=!0)};rr.prototype.get=function(e,t){return this.data[e*this.size+t]};rr.prototype.xor=function(e,t,s){this.data[e*this.size+t]^=s};rr.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var AP=rr,l_={};(function(e){const t=Be.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const i=Math.floor(n/7)+2,o=t(n),r=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let l=1;l=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let r=0,a=0,l=0,c=null,d=null;for(let u=0;u=5&&(r+=t.N1+(a-5)),c=g,a=1),g=i.get(f,u),g===d?l++:(l>=5&&(r+=t.N1+(l-5)),d=g,l=1)}a>=5&&(r+=t.N1+(a-5)),l>=5&&(r+=t.N1+(l-5))}return r},e.getPenaltyN2=function(i){const o=i.size;let r=0;for(let a=0;a=10&&(a===1488||a===93)&&r++,l=l<<1&2047|i.get(d,c),d>=10&&(l===1488||l===93)&&r++}return r*t.N3},e.getPenaltyN4=function(i){let o=0;const r=i.data.length;for(let l=0;l=0;){const r=o[0];for(let l=0;l0){const o=new Uint8Array(this.degree);return o.set(n,i),o}return n};var $P=Wd,f_={},wn={},zd={};zd.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var ys={};const p_="[0-9]+",PP="[A-Z $%*+\\-./:]+";let zo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";zo=zo.replace(/u/g,"\\u");const kP="(?:(?![A-Z0-9 $%*+\\-./:]|"+zo+`)(?:.|[\r +]))+`;ys.KANJI=new RegExp(zo,"g");ys.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ys.BYTE=new RegExp(kP,"g");ys.NUMERIC=new RegExp(p_,"g");ys.ALPHANUMERIC=new RegExp(PP,"g");const TP=new RegExp("^"+zo+"$"),MP=new RegExp("^"+p_+"$"),OP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ys.testKanji=function(t){return TP.test(t)};ys.testNumeric=function(t){return MP.test(t)};ys.testAlphanumeric=function(t){return OP.test(t)};(function(e){const t=zd,s=ys;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,r){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?o.ccBits[0]:r<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return s.testNumeric(o)?e.NUMERIC:s.testAlphanumeric(o)?e.ALPHANUMERIC:s.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function n(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,r){if(e.isValid(o))return o;try{return n(o)}catch{return r}}})(wn);(function(e){const t=Be,s=rl,n=ol,i=wn,o=zd,r=7973,a=t.getBCHDigit(r);function l(f,g,m){for(let b=1;b<=40;b++)if(g<=e.getCapacity(b,m,f))return b}function c(f,g){return i.getCharCountIndicator(f,g)+4}function d(f,g){let m=0;return f.forEach(function(b){const v=c(b.mode,g);m+=v+b.getBitsLength()}),m}function u(f,g){for(let m=1;m<=40;m++)if(d(f,m)<=e.getCapacity(m,g,i.MIXED))return m}e.from=function(g,m){return o.isValid(g)?parseInt(g,10):m},e.getCapacity=function(g,m,b){if(!o.isValid(g))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=i.BYTE);const v=t.getSymbolTotalCodewords(g),w=s.getTotalCodewordsCount(g,m),E=(v-w)*8;if(b===i.MIXED)return E;const $=E-c(b,g);switch(b){case i.NUMERIC:return Math.floor($/10*3);case i.ALPHANUMERIC:return Math.floor($/11*2);case i.KANJI:return Math.floor($/13);case i.BYTE:default:return Math.floor($/8)}},e.getBestVersionForData=function(g,m){let b;const v=n.from(m,n.M);if(Array.isArray(g)){if(g.length>1)return u(g,v);if(g.length===0)return 1;b=g[0]}else b=g;return l(b.mode,b.getLength(),v)},e.getEncodedBits=function(g){if(!o.isValid(g)||g<7)throw new Error("Invalid QR Code version");let m=g<<12;for(;t.getBCHDigit(m)-a>=0;)m^=r<=0;)i^=m_<0&&(n=this.data.substr(s),i=parseInt(n,10),t.put(i,o*3+1))};var LP=Vi;const RP=wn,Wl=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Hi(e){this.mode=RP.ALPHANUMERIC,this.data=e}Hi.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Hi.prototype.getLength=function(){return this.data.length};Hi.prototype.getBitsLength=function(){return Hi.getBitsLength(this.data.length)};Hi.prototype.write=function(t){let s;for(s=0;s+2<=this.data.length;s+=2){let n=Wl.indexOf(this.data[s])*45;n+=Wl.indexOf(this.data[s+1]),t.put(n,11)}this.data.length%2&&t.put(Wl.indexOf(this.data[s]),6)};var NP=Hi,FP=function(t){for(var s=[],n=t.length,i=0;i=55296&&o<=56319&&n>i+1){var r=t.charCodeAt(i+1);r>=56320&&r<=57343&&(o=(o-55296)*1024+r-56320+65536,i+=1)}if(o<128){s.push(o);continue}if(o<2048){s.push(o>>6|192),s.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){s.push(o>>12|224),s.push(o>>6&63|128),s.push(o&63|128);continue}if(o>=65536&&o<=1114111){s.push(o>>18|240),s.push(o>>12&63|128),s.push(o>>6&63|128),s.push(o&63|128);continue}s.push(239,191,189)}return new Uint8Array(s).buffer};const BP=FP,VP=wn;function ji(e){this.mode=VP.BYTE,typeof e=="string"&&(e=BP(e)),this.data=new Uint8Array(e)}ji.getBitsLength=function(t){return t*8};ji.prototype.getLength=function(){return this.data.length};ji.prototype.getBitsLength=function(){return ji.getBitsLength(this.data.length)};ji.prototype.write=function(e){for(let t=0,s=this.data.length;t=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` +Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),e.put(s,13)}};var zP=Wi,b_={exports:{}};(function(e){var t={single_source_shortest_paths:function(s,n,i){var o={},r={};r[n]=0;var a=t.PriorityQueue.make();a.push(n,0);for(var l,c,d,u,f,g,m,b,v;!a.empty();){l=a.pop(),c=l.value,u=l.cost,f=s[c]||{};for(d in f)f.hasOwnProperty(d)&&(g=f[d],m=u+g,b=r[d],v=typeof r[d]>"u",(v||b>m)&&(r[d]=m,a.push(d,m),o[d]=c))}if(typeof i<"u"&&typeof r[i]>"u"){var w=["Could not find a path from ",n," to ",i,"."].join("");throw new Error(w)}return o},extract_shortest_path_from_predecessor_list:function(s,n){for(var i=[],o=n;o;)i.push(o),s[o],o=s[o];return i.reverse(),i},find_path:function(s,n,i){var o=t.single_source_shortest_paths(s,n,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(s){var n=t.PriorityQueue,i={},o;s=s||{};for(o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);return i.queue=[],i.sorter=s.sorter||n.default_sorter,i},default_sorter:function(s,n){return s.cost-n.cost},push:function(s,n){var i={value:s,cost:n};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(b_);var UP=b_.exports;(function(e){const t=wn,s=LP,n=NP,i=HP,o=zP,r=ys,a=Be,l=UP;function c(w){return unescape(encodeURIComponent(w)).length}function d(w,E,$){const T=[];let y;for(;(y=w.exec($))!==null;)T.push({data:y[0],index:y.index,mode:E,length:y[0].length});return T}function u(w){const E=d(r.NUMERIC,t.NUMERIC,w),$=d(r.ALPHANUMERIC,t.ALPHANUMERIC,w);let T,y;return a.isKanjiModeEnabled()?(T=d(r.BYTE,t.BYTE,w),y=d(r.KANJI,t.KANJI,w)):(T=d(r.BYTE_KANJI,t.BYTE,w),y=[]),E.concat($,T,y).sort(function(C,S){return C.index-S.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function f(w,E){switch(E){case t.NUMERIC:return s.getBitsLength(w);case t.ALPHANUMERIC:return n.getBitsLength(w);case t.KANJI:return o.getBitsLength(w);case t.BYTE:return i.getBitsLength(w)}}function g(w){return w.reduce(function(E,$){const T=E.length-1>=0?E[E.length-1]:null;return T&&T.mode===$.mode?(E[E.length-1].data+=$.data,E):(E.push($),E)},[])}function m(w){const E=[];for(let $=0;$=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,r+l,!0,!0):e.set(o+a,r+l,!1,!0))}}function tk(e){const t=e.size;for(let s=8;s>a&1)===1,e.set(i,o,r,!0),e.set(o,i,r,!0)}function Kl(e,t,s){const n=e.size,i=JP.getEncodedBits(t,s);let o,r;for(o=0;o<15;o++)r=(i>>o&1)===1,o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(n-15+o,8,r,!0),o<8?e.set(8,n-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(n-8,8,1,!0)}function nk(e,t){const s=e.size;let n=-1,i=s-1,o=7,r=0;for(let a=s-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let c=!1;r>>o&1)===1),e.set(i,a-l,c),o--,o===-1&&(r++,o=7)}if(i+=n,i<0||s<=i){i-=n,n=-n;break}}}function ik(e,t,s){const n=new KP;s.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),QP.getCharCountIndicator(l.mode,e)),l.write(n)});const i=ll.getSymbolTotalCodewords(e),o=Mc.getTotalCodewordsCount(e,t),r=(i-o)*8;for(n.getLengthInBits()+4<=r&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const a=(r-n.getLengthInBits())/8;for(let l=0;l=7&&KP(l,t),YP(l,r),isNaN(s)&&(s=kc.getBestMask(l,zl.bind(null,l,n))),kc.applyMask(s,l),zl(l,n,s),{modules:l,version:t,errorCorrectionLevel:n,maskPattern:s,segments:i}}Xm.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let s=jl.M,i,o;return typeof n<"u"&&(s=jl.from(n.errorCorrectionLevel,jl.M),i=Ea.from(n.version),o=kc.from(n.maskPattern),n.toSJISFunc&&cl.setToSJISFunction(n.toSJISFunc)),XP(t,i,s,o)};var c_={},Wu={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let s=n.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+n);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(o){return[o,o]}))),s.length===6&&s.push("F","F");const i=parseInt(s.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const i=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,o=s.width&&s.width>=21?s.width:void 0,r=s.scale||4;return{width:o,scale:o?4:r,margin:i,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,i){return i.width&&i.width>=s+i.margin*2?i.width/(s+i.margin*2):i.scale},e.getImageWidth=function(s,i){const o=e.getScale(s,i);return Math.floor((s+i.margin*2)*o)},e.qrToImageData=function(s,i,o){const r=i.modules.size,a=i.modules.data,l=e.getScale(r,o),c=Math.floor((r+o.margin*2)*l),u=o.margin*l,d=[o.color.light,o.color.dark];for(let f=0;f=u&&p>=u&&f"u"&&(!r||!r.getContext)&&(l=r,r=void 0),r||(c=s()),l=t.getOptions(l);const u=t.getImageWidth(o.modules.size,l),d=c.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,o,l),n(d,c,u),d.putImageData(f,0,0),c},e.renderToDataURL=function(o,r,a){let l=a;typeof l>"u"&&(!r||!r.getContext)&&(l=r,r=void 0),l||(l={});const c=e.render(o,r,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(c_);var u_={};const QP=Wu;function mf(e,t){const n=e.a/255,s=t+'="'+e.hex+'"';return n<1?s+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':s}function Ul(e,t,n){let s=e+t;return typeof n<"u"&&(s+=" "+n),s}function JP(e,t,n){let s="",i=0,o=!1,r=0;for(let a=0;a0&&l>0&&e[a-1]||(s+=o?Ul("M",l+n,.5+c+n):Ul("m",i,0),i=0,o=!1),l+1':"",c="',u='viewBox="0 0 '+a+" "+a+'"',f=''+l+c+` -`;return typeof s=="function"&&s(null,f),f};const ZP=hP,Mc=Xm,d_=c_,tk=u_;function zu(e,t,n,s,i){const o=[].slice.call(arguments,1),r=o.length,a=typeof o[r-1]=="function";if(!a&&!ZP())throw new Error("Callback required as last argument");if(a){if(r<2)throw new Error("Too few arguments provided");r===2?(i=n,n=t,t=s=void 0):r===3&&(t.getContext&&typeof i>"u"?(i=s,s=void 0):(i=s,s=n,n=t,t=void 0))}else{if(r<1)throw new Error("Too few arguments provided");return r===1?(n=t,t=s=void 0):r===2&&!t.getContext&&(s=n,n=t,t=void 0),new Promise(function(l,c){try{const u=Mc.create(n,s);l(e(u,t,s))}catch(u){c(u)}})}try{const l=Mc.create(n,s);i(null,e(l,t,s))}catch(l){i(l)}}eo.create=Mc.create;eo.toCanvas=zu.bind(null,d_.render);eo.toDataURL=zu.bind(null,d_.renderToDataURL);eo.toString=zu.bind(null,function(e,t,n){return tk.render(e,n)});const ek={name:"totp",async setup(){let e="";return await Re("/api/Welcome_GetTotpLink",{},t=>{t.status&&(e=t.data)}),{l:e}},mounted(){this.l&&eo.toCanvas(document.getElementById("qrcode"),this.l,function(e){})},data(){return{totp:"",totpInvalidMessage:"",verified:!1}},methods:{validateTotp(){}},watch:{totp(e){const t=document.querySelector("#totp");t.classList.remove("is-invalid","is-valid"),e.length===6&&(console.log(e),/[0-9]{6}/.test(e)?Ce("/api/Welcome_VerifyTotpLink",{totp:e},n=>{n.status?(this.verified=!0,t.classList.add("is-valid"),this.$emit("verified")):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP does not match.")}):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP can only contain numbers"))}}},nk={class:"mb-3"},sk=g("p",{class:"mb-2"},[g("small",{class:"text-muted"},"1. Please scan the following QR Code to generate TOTP")],-1),ik=g("canvas",{id:"qrcode",class:"rounded-3 mb-2"},null,-1),ok={class:"p-3 bg-body-secondary rounded-3 border mb-3"},rk=g("p",{class:"text-muted mb-0"},[g("small",null,"Or you can click the link below:")],-1),ak=["href"],lk={style:{"line-break":"anywhere"}},ck=g("label",{for:"totp",class:"mb-2"},[g("small",{class:"text-muted"},"2. Enter the TOTP generated by your authenticator to verify")],-1),uk={class:"form-group"},dk=["disabled"],hk={class:"invalid-feedback"},fk=g("div",{class:"valid-feedback"}," TOTP verified! ",-1);function pk(e,t,n,s,i,o){return X(),ot("div",nk,[sk,ik,g("div",ok,[rk,g("a",{href:this.l},[g("code",lk,wt(this.l),1)],8,ak)]),ck,g("div",uk,[bt(g("input",{class:"form-control text-center totp",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code","onUpdate:modelValue":t[0]||(t[0]=r=>this.totp=r),disabled:this.verified},null,8,dk),[[vt,this.totp]]),g("div",hk,wt(this.totpInvalidMessage),1),fk])])}const gk=Rt(ek,[["render",pk]]),mk={name:"setup",components:{Totp:gk},setup(){return{store:Xt()}},data(){return{setup:{username:"",newPassword:"",repeatNewPassword:"",enable_totp:!1,verified_totp:!1},loading:!1,errorMessage:"",done:!1}},computed:{goodToSubmit(){return this.setup.username&&this.setup.newPassword.length>=8&&this.setup.repeatNewPassword.length>=8&&this.setup.newPassword===this.setup.repeatNewPassword&&(this.setup.enable_totp&&this.setup.verified_totp||!this.setup.enable_totp)}},methods:{submit(){this.loading=!0,Ce("/api/Welcome_Finish",this.setup,e=>{e.status?(this.done=!0,setTimeout(()=>{this.$router.push("/")},500)):(document.querySelectorAll("#createAccount input").forEach(t=>t.classList.add("is-invalid")),this.errorMessage=e.message,document.querySelector(".login-container-fluid").scrollTo({top:0,left:0,behavior:"smooth"})),this.loading=!1})}}},_k=["data-bs-theme"],bk={class:"mx-auto text-body",style:{width:"500px"}},vk=g("span",{class:"dashboardLogo display-4"},"Nice to meet you!",-1),yk=g("p",{class:"mb-5"},"Please fill in the following fields to finish setup 😊",-1),xk=g("h3",null,"Create an account",-1),wk={key:0,class:"alert alert-danger"},Ek={class:"d-flex flex-column gap-3"},Sk={id:"createAccount"},Ak={class:"form-group text-body"},Ck=g("label",{for:"username",class:"mb-1 text-muted"},[g("small",null,"Pick an username you like")],-1),Tk={class:"form-group text-body"},Pk=g("label",{for:"password",class:"mb-1 text-muted"},[g("small",null,"Create a password (at least 8 characters)")],-1),kk={class:"form-group text-body"},$k=g("label",{for:"confirmPassword",class:"mb-1 text-muted"},[g("small",null,"Confirm password")],-1),Mk=g("hr",null,null,-1),Ok={class:"form-check form-switch"},Dk=g("label",{class:"form-check-label",for:"enable_totp"},[gt("Enable 2 Factor Authentication? "),g("strong",null,"Strongly recommended")],-1),Ik=["disabled"],Lk={key:0,class:"d-flex align-items-center w-100"},Rk=g("i",{class:"bi bi-chevron-right ms-auto"},null,-1),Nk={key:1,class:"d-flex align-items-center w-100"},Fk={key:2,class:"d-flex align-items-center w-100"},Bk=g("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[g("span",{class:"visually-hidden"},"Loading...")],-1);function Vk(e,t,n,s,i,o){const r=Ot("Totp");return X(),ot("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[g("div",bk,[vk,yk,g("div",null,[xk,this.errorMessage?(X(),ot("div",wk,wt(this.errorMessage),1)):Kt("",!0),g("div",Ek,[g("div",Sk,[g("div",Ak,[Ck,bt(g("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>this.setup.username=a),class:"form-control",id:"username",name:"username",placeholder:"Maybe something like 'wiredragon'?",required:""},null,512),[[vt,this.setup.username]])]),g("div",Tk,[Pk,bt(g("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=a=>this.setup.newPassword=a),class:"form-control",id:"password",name:"password",placeholder:"Make sure is strong enough",required:""},null,512),[[vt,this.setup.newPassword]])]),g("div",kk,[$k,bt(g("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=a=>this.setup.repeatNewPassword=a),class:"form-control",id:"confirmPassword",name:"confirmPassword",placeholder:"and you can remember it :)",required:""},null,512),[[vt,this.setup.repeatNewPassword]])])]),Mk,g("div",Ok,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"enable_totp","onUpdate:modelValue":t[3]||(t[3]=a=>this.setup.enable_totp=a)},null,512),[[lr,this.setup.enable_totp]]),Dk]),(X(),de(Cu,null,{default:Ut(()=>[dt(Ln,{name:"fade"},{default:Ut(()=>[this.setup.enable_totp?(X(),de(r,{key:0,onVerified:t[4]||(t[4]=a=>this.setup.verified_totp=!0)})):Kt("",!0)]),_:1})]),_:1})),g("button",{class:"btn btn-dark btn-lg mb-5 d-flex btn-brand shadow align-items-center",ref:"signInBtn",disabled:!this.goodToSubmit||this.loading||this.done,onClick:t[5]||(t[5]=a=>this.submit())},[!this.loading&&!this.done?(X(),ot("span",Lk,[gt(" Finish"),Rk])):this.done?(X(),ot("span",Nk," Welcome to WGDashboard!")):(X(),ot("span",Fk,[gt(" Saving..."),Bk]))],8,Ik)])])])],8,_k)}const Hk=Rt(mk,[["render",Vk]]);function Uu(e){return e.includes(":")?6:e.includes(".")?4:0}function jk(e){const t=Uu(e);if(!t)throw new Error(`Invalid IP address: ${e}`);let n=0n,s=0n;const i=Object.create(null);if(t===4)for(const o of e.split(".").map(BigInt).reverse())n+=o*2n**s,s+=8n;else{if(e.includes(".")&&(i.ipv4mapped=!0,e=e.split(":").map(a=>{if(a.includes(".")){const[l,c,u,d]=a.split(".").map(f=>Number(f).toString(16).padStart(2,"0"));return`${l}${c}:${u}${d}`}else return a}).join(":")),e.includes("%")){let a;[,e,a]=/(.+)%(.+)/.exec(e),i.scopeid=a}const o=e.split(":"),r=o.indexOf("");if(r!==-1)for(;o.length<8;)o.splice(r,0,"");for(const a of o.map(l=>BigInt(parseInt(l||0,16))).reverse())n+=a*2n**s,s+=16n}return i.number=n,i.version=t,i}const _f={4:32,6:128},Wk=e=>e.includes("/")?Uu(e):0;function zk(e){const t=Wk(e),n=Object.create(null);if(n.single=!1,t)n.cidr=e,n.version=t;else{const d=Uu(e);if(d)n.cidr=`${e}/${_f[d]}`,n.version=d,n.single=!0;else throw new Error(`Network is not a CIDR or IP: ${e}`)}const[s,i]=n.cidr.split("/");n.prefix=i;const{number:o,version:r}=jk(s),a=_f[r],l=o.toString(2).padStart(a,"0"),c=Number(a-i),u=l.substring(0,a-c);return n.start=BigInt(`0b${u}${"0".repeat(c)}`),n.end=BigInt(`0b${u}${"1".repeat(c)}`),n}/*! SPDX-License-Identifier: GPL-2.0 +`);const r=ik(t,s,i),a=ll.getSymbolSize(t),l=new YP(a);return ZP(l,t),tk(l),ek(l,t),Kl(l,s,0),t>=7&&sk(l,t),nk(l,r),isNaN(n)&&(n=Tc.getBestMask(l,Kl.bind(null,l,s))),Tc.applyMask(n,l),Kl(l,s,n),{modules:l,version:t,errorCorrectionLevel:s,maskPattern:n,segments:i}}r_.create=function(t,s){if(typeof t>"u"||t==="")throw new Error("No input text");let n=zl.M,i,o;return typeof s<"u"&&(n=zl.from(s.errorCorrectionLevel,zl.M),i=$a.from(s.version),o=Tc.from(s.maskPattern),s.toSJISFunc&&ll.setToSJISFunction(s.toSJISFunc)),rk(t,i,n,o)};var v_={},Ud={};(function(e){function t(s){if(typeof s=="number"&&(s=s.toString()),typeof s!="string")throw new Error("Color should be defined as hex string");let n=s.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+s);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(o){return[o,o]}))),n.length===6&&n.push("F","F");const i=parseInt(n.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const i=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,o=n.width&&n.width>=21?n.width:void 0,r=n.scale||4;return{width:o,scale:o?4:r,margin:i,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,i){return i.width&&i.width>=n+i.margin*2?i.width/(n+i.margin*2):i.scale},e.getImageWidth=function(n,i){const o=e.getScale(n,i);return Math.floor((n+i.margin*2)*o)},e.qrToImageData=function(n,i,o){const r=i.modules.size,a=i.modules.data,l=e.getScale(r,o),c=Math.floor((r+o.margin*2)*l),d=o.margin*l,u=[o.color.light,o.color.dark];for(let f=0;f=d&&g>=d&&f"u"&&(!r||!r.getContext)&&(l=r,r=void 0),r||(c=n()),l=t.getOptions(l);const d=t.getImageWidth(o.modules.size,l),u=c.getContext("2d"),f=u.createImageData(d,d);return t.qrToImageData(f.data,o,l),s(u,c,d),u.putImageData(f,0,0),c},e.renderToDataURL=function(o,r,a){let l=a;typeof l>"u"&&(!r||!r.getContext)&&(l=r,r=void 0),l||(l={});const c=e.render(o,r,l),d=l.type||"image/png",u=l.rendererOpts||{};return c.toDataURL(d,u.quality)}})(v_);var y_={};const ak=Ud;function xf(e,t){const s=e.a/255,n=t+'="'+e.hex+'"';return s<1?n+" "+t+'-opacity="'+s.toFixed(2).slice(1)+'"':n}function Yl(e,t,s){let n=e+t;return typeof s<"u"&&(n+=" "+s),n}function lk(e,t,s){let n="",i=0,o=!1,r=0;for(let a=0;a0&&l>0&&e[a-1]||(n+=o?Yl("M",l+s,.5+c+s):Yl("m",i,0),i=0,o=!1),l+1':"",c="',d='viewBox="0 0 '+a+" "+a+'"',f=''+l+c+` +`;return typeof n=="function"&&n(null,f),f};const ck=wP,Oc=r_,x_=v_,dk=y_;function Kd(e,t,s,n,i){const o=[].slice.call(arguments,1),r=o.length,a=typeof o[r-1]=="function";if(!a&&!ck())throw new Error("Callback required as last argument");if(a){if(r<2)throw new Error("Too few arguments provided");r===2?(i=s,s=t,t=n=void 0):r===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=s,s=t,t=void 0))}else{if(r<1)throw new Error("Too few arguments provided");return r===1?(s=t,t=n=void 0):r===2&&!t.getContext&&(n=s,s=t,t=void 0),new Promise(function(l,c){try{const d=Oc.create(s,n);l(e(d,t,n))}catch(d){c(d)}})}try{const l=Oc.create(s,n);i(null,e(l,t,n))}catch(l){i(l)}}Qi.create=Oc.create;Qi.toCanvas=Kd.bind(null,x_.render);Qi.toDataURL=Kd.bind(null,x_.renderToDataURL);Qi.toString=Kd.bind(null,function(e,t,s){return dk.render(e,s)});const uk={name:"totp",async setup(){let e="";return await he("/api/Welcome_GetTotpLink",{},t=>{t.status&&(e=t.data)}),{l:e}},mounted(){this.l&&Qi.toCanvas(document.getElementById("qrcode"),this.l,function(e){})},data(){return{totp:"",totpInvalidMessage:"",verified:!1}},methods:{validateTotp(){}},watch:{totp(e){const t=document.querySelector("#totp");t.classList.remove("is-invalid","is-valid"),e.length===6&&(console.log(e),/[0-9]{6}/.test(e)?ue("/api/Welcome_VerifyTotpLink",{totp:e},s=>{s.status?(this.verified=!0,t.classList.add("is-valid"),this.$emit("verified")):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP does not match.")}):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP can only contain numbers"))}}},hk={class:"mb-3"},fk=p("p",{class:"mb-2"},[p("small",{class:"text-muted"},"1. Please scan the following QR Code to generate TOTP")],-1),pk=p("canvas",{id:"qrcode",class:"rounded-3 mb-2"},null,-1),gk={class:"p-3 bg-body-secondary rounded-3 border mb-3"},mk=p("p",{class:"text-muted mb-0"},[p("small",null,"Or you can click the link below:")],-1),_k=["href"],bk={style:{"line-break":"anywhere"}},vk=p("label",{for:"totp",class:"mb-2"},[p("small",{class:"text-muted"},"2. Enter the TOTP generated by your authenticator to verify")],-1),yk={class:"form-group"},xk=["disabled"],wk={class:"invalid-feedback"},Ek=p("div",{class:"valid-feedback"}," TOTP verified! ",-1);function Sk(e,t,s,n,i,o){return H(),q("div",hk,[fk,pk,p("div",gk,[mk,p("a",{href:this.l},[p("code",bk,lt(this.l),1)],8,_k)]),vk,p("div",yk,[mt(p("input",{class:"form-control text-center totp",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code","onUpdate:modelValue":t[0]||(t[0]=r=>this.totp=r),disabled:this.verified},null,8,xk),[[yt,this.totp]]),p("div",wk,lt(this.totpInvalidMessage),1),Ek])])}const Ak=kt(uk,[["render",Sk]]),Ck={name:"setup",components:{Totp:Ak},setup(){return{store:Jt()}},data(){return{setup:{username:"",newPassword:"",repeatNewPassword:"",enable_totp:!1,verified_totp:!1},loading:!1,errorMessage:"",done:!1}},computed:{goodToSubmit(){return this.setup.username&&this.setup.newPassword.length>=8&&this.setup.repeatNewPassword.length>=8&&this.setup.newPassword===this.setup.repeatNewPassword&&(this.setup.enable_totp&&this.setup.verified_totp||!this.setup.enable_totp)}},methods:{submit(){this.loading=!0,ue("/api/Welcome_Finish",this.setup,e=>{e.status?(this.done=!0,setTimeout(()=>{this.$router.push("/")},500)):(document.querySelectorAll("#createAccount input").forEach(t=>t.classList.add("is-invalid")),this.errorMessage=e.message,document.querySelector(".login-container-fluid").scrollTo({top:0,left:0,behavior:"smooth"})),this.loading=!1})}}},$k=["data-bs-theme"],Pk={class:"mx-auto text-body",style:{width:"500px"}},kk=p("span",{class:"dashboardLogo display-4"},"Nice to meet you!",-1),Tk=p("p",{class:"mb-5"},"Please fill in the following fields to finish setup 😊",-1),Mk=p("h3",null,"Create an account",-1),Ok={key:0,class:"alert alert-danger"},Dk={class:"d-flex flex-column gap-3"},Ik={id:"createAccount",class:"d-flex flex-column gap-2"},Lk={class:"form-group text-body"},Rk=p("label",{for:"username",class:"mb-1 text-muted"},[p("small",null,"Pick an username you like")],-1),Nk={class:"form-group text-body"},Fk=p("label",{for:"password",class:"mb-1 text-muted"},[p("small",null,"Create a password (at least 8 characters)")],-1),Bk={class:"form-group text-body"},Vk=p("label",{for:"confirmPassword",class:"mb-1 text-muted"},[p("small",null,"Confirm password")],-1),Hk=p("hr",null,null,-1),jk={class:"form-check form-switch"},Wk=p("label",{class:"form-check-label",for:"enable_totp"},[ht("Enable 2 Factor Authentication? "),p("strong",null,"Strongly recommended")],-1),zk=["disabled"],Uk={key:0,class:"d-flex align-items-center w-100"},Kk=p("i",{class:"bi bi-chevron-right ms-auto"},null,-1),Yk={key:1,class:"d-flex align-items-center w-100"},qk={key:2,class:"d-flex align-items-center w-100"},Gk=p("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[p("span",{class:"visually-hidden"},"Loading...")],-1);function Xk(e,t,s,n,i,o){const r=Dt("Totp");return H(),q("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[p("div",Pk,[kk,Tk,p("div",null,[Mk,this.errorMessage?(H(),q("div",Ok,lt(this.errorMessage),1)):Vt("",!0),p("div",Dk,[p("div",Ik,[p("div",Lk,[Rk,mt(p("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>this.setup.username=a),class:"form-control",id:"username",name:"username",placeholder:"Maybe something like 'wiredragon'?",required:""},null,512),[[yt,this.setup.username]])]),p("div",Nk,[Fk,mt(p("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=a=>this.setup.newPassword=a),class:"form-control",id:"password",name:"password",placeholder:"Make sure is strong enough",required:""},null,512),[[yt,this.setup.newPassword]])]),p("div",Bk,[Vk,mt(p("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=a=>this.setup.repeatNewPassword=a),class:"form-control",id:"confirmPassword",name:"confirmPassword",placeholder:"and you can remember it :)",required:""},null,512),[[yt,this.setup.repeatNewPassword]])])]),Hk,p("div",jk,[mt(p("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"enable_totp","onUpdate:modelValue":t[3]||(t[3]=a=>this.setup.enable_totp=a)},null,512),[[Xi,this.setup.enable_totp]]),Wk]),(H(),oe(qa,null,{default:Bt(()=>[dt(is,{name:"fade"},{default:Bt(()=>[this.setup.enable_totp?(H(),oe(r,{key:0,onVerified:t[4]||(t[4]=a=>this.setup.verified_totp=!0)})):Vt("",!0)]),_:1})]),_:1})),p("button",{class:"btn btn-dark btn-lg mb-5 d-flex btn-brand shadow align-items-center",ref:"signInBtn",disabled:!this.goodToSubmit||this.loading||this.done,onClick:t[5]||(t[5]=a=>this.submit())},[!this.loading&&!this.done?(H(),q("span",Uk,[ht(" Finish"),Kk])):this.done?(H(),q("span",Yk," Welcome to WGDashboard!")):(H(),q("span",qk,[ht(" Saving..."),Gk]))],8,zk)])])])],8,$k)}const Jk=kt(Ck,[["render",Xk]]);function Yd(e){return e.includes(":")?6:e.includes(".")?4:0}function Qk(e){const t=Yd(e);if(!t)throw new Error(`Invalid IP address: ${e}`);let s=0n,n=0n;const i=Object.create(null);if(t===4)for(const o of e.split(".").map(BigInt).reverse())s+=o*2n**n,n+=8n;else{if(e.includes(".")&&(i.ipv4mapped=!0,e=e.split(":").map(a=>{if(a.includes(".")){const[l,c,d,u]=a.split(".").map(f=>Number(f).toString(16).padStart(2,"0"));return`${l}${c}:${d}${u}`}else return a}).join(":")),e.includes("%")){let a;[,e,a]=/(.+)%(.+)/.exec(e),i.scopeid=a}const o=e.split(":"),r=o.indexOf("");if(r!==-1)for(;o.length<8;)o.splice(r,0,"");for(const a of o.map(l=>BigInt(parseInt(l||0,16))).reverse())s+=a*2n**n,n+=16n}return i.number=s,i.version=t,i}const wf={4:32,6:128},Zk=e=>e.includes("/")?Yd(e):0;function tT(e){const t=Zk(e),s=Object.create(null);if(s.single=!1,t)s.cidr=e,s.version=t;else{const u=Yd(e);if(u)s.cidr=`${e}/${wf[u]}`,s.version=u,s.single=!0;else throw new Error(`Network is not a CIDR or IP: ${e}`)}const[n,i]=s.cidr.split("/");s.prefix=i;const{number:o,version:r}=Qk(n),a=wf[r],l=o.toString(2).padStart(a,"0"),c=Number(a-i),d=l.substring(0,a-c);return s.start=BigInt(`0b${d}${"0".repeat(c)}`),s.end=BigInt(`0b${d}${"1".repeat(c)}`),s}/*! SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 2015-2020 Jason A. Donenfeld . All Rights Reserved. - */(function(){function e(y){var E=new Float64Array(16);if(y)for(var C=0;C>16&1),w[D-1]&=65535;w[15]=$[15]-32767-(w[14]>>16&1),C=w[15]>>16&1,w[14]&=65535,s($,w,1-C)}for(var D=0;D<16;++D)y[2*D]=$[D]&255,y[2*D+1]=$[D]>>8}function n(y){for(var E=0;E<16;++E)y[(E+1)%16]+=(E<15?1:38)*Math.floor(y[E]/65536),y[E]&=65535}function s(y,E,C){for(var w,$=~(C-1),D=0;D<16;++D)w=$&(y[D]^E[D]),y[D]^=w,E[D]^=w}function i(y,E,C){for(var w=0;w<16;++w)y[w]=E[w]+C[w]|0}function o(y,E,C){for(var w=0;w<16;++w)y[w]=E[w]-C[w]|0}function r(y,E,C){for(var w=new Float64Array(31),$=0;$<16;++$)for(var D=0;D<16;++D)w[$+D]+=E[$]*C[D];for(var $=0;$<15;++$)w[$]+=38*w[$+16];for(var $=0;$<16;++$)y[$]=w[$];n(y),n(y)}function a(y,E){for(var C=e(),w=0;w<16;++w)C[w]=E[w];for(var w=253;w>=0;--w)r(C,C,C),w!==2&&w!==4&&r(C,C,E);for(var w=0;w<16;++w)y[w]=C[w]}function l(y){y[31]=y[31]&127|64,y[0]&=248}function c(y){for(var E,C=new Uint8Array(32),w=e([1]),$=e([9]),D=e(),I=e([1]),N=e(),Q=e(),Y=e([56129,1]),H=e([9]),R=0;R<32;++R)C[R]=y[R];l(C);for(var R=254;R>=0;--R)E=C[R>>>3]>>>(R&7)&1,s(w,$,E),s(D,I,E),i(N,w,D),o(w,w,D),i(D,$,I),o($,$,I),r(I,N,N),r(Q,w,w),r(w,D,w),r(D,$,N),i(N,w,D),o(w,w,D),r($,w,w),o(D,I,Q),r(w,D,Y),i(w,w,I),r(D,D,w),r(w,I,Q),r(I,$,H),r($,N,N),s(w,$,E),s(D,I,E);return a(D,D),r(w,w,D),t(C,w),C}function u(){var y=new Uint8Array(32);return window.crypto.getRandomValues(y),y}function d(){var y=u();return l(y),y}function f(y,E){for(var C=Uint8Array.from([E[0]>>2&63,(E[0]<<4|E[1]>>4)&63,(E[1]<<2|E[2]>>6)&63,E[2]&63]),w=0;w<4;++w)y[w]=C[w]+65+(25-C[w]>>8&6)-(51-C[w]>>8&75)-(61-C[w]>>8&15)+(62-C[w]>>8&3)}function p(y){var E,C=new Uint8Array(44);for(E=0;E<32/3;++E)f(C.subarray(E*4),y.subarray(E*3));return f(C.subarray(E*4),Uint8Array.from([y[E*3+0],y[E*3+1],0])),C[43]=61,String.fromCharCode.apply(null,C)}function m(y){let E=window.atob(y),C=E.length,w=new Uint8Array(C);for(let D=0;D>>8&255,E>>>16&255,E>>>24&255)}function v(y,E){y.push(E&255,E>>>8&255)}function x(y,E){for(var C=0;C>>1:E>>>1;P.table[C]=E}}for(var $=-1,D=0;D>>8^P.table[($^y[D])&255];return($^-1)>>>0}function A(y){for(var E=[],C=[],w=0,$=0;${e.status?(this.success=!0,await this.store.getConfigurations(),setTimeout(()=>{this.$router.push("/")},1e3)):(this.error=!0,this.errorMessage=e.message,document.querySelector(`#${e.data}`).classList.remove("is-valid"),document.querySelector(`#${e.data}`).classList.add("is-invalid"))}))}},computed:{goodToSubmit(){let e=["ConfigurationName","Address","ListenPort","PrivateKey"],t=[...document.querySelectorAll("input[required]")];return e.find(n=>this.newConfiguration[n].length===0)===void 0&&t.find(n=>n.classList.contains("is-invalid"))===void 0}},watch:{"newConfiguration.Address"(e){let t=document.querySelector("#Address");t.classList.remove("is-invalid","is-valid");try{if(e.trim().split("/").filter(i=>i.length>0).length!==2)throw Error();let n=zk(e),s=n.end-n.start;this.numberOfAvailableIPs=s.toLocaleString(),t.classList.add("is-valid")}catch{this.numberOfAvailableIPs="0",t.classList.add("is-invalid")}},"newConfiguration.ListenPort"(e){let t=document.querySelector("#ListenPort");t.classList.remove("is-invalid","is-valid"),e<0||e>65353||!Number.isInteger(e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.ConfigurationName"(e){let t=document.querySelector("#ConfigurationName");t.classList.remove("is-invalid","is-valid"),!/^[a-zA-Z0-9_=+.-]{1,15}$/.test(e)||e.length===0||this.store.Configurations.find(n=>n.Name===e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.PrivateKey"(e){let t=document.querySelector("#PrivateKey");t.classList.remove("is-invalid","is-valid");try{wireguard.generatePublicKey(e),t.classList.add("is-valid")}catch{t.classList.add("is-invalid")}}}},Kk={class:"mt-4"},Yk={class:"container mb-4"},qk={class:"mb-4 d-flex align-items-center gap-4"},Gk=g("h3",{class:"mb-0 text-body"},[g("i",{class:"bi bi-chevron-left"})],-1),Xk=g("h3",{class:"text-body mb-0"},"New Configuration",-1),Qk={class:"card rounded-3 shadow"},Jk=g("div",{class:"card-header"},"Configuration Name",-1),Zk={class:"card-body"},t$=["disabled"],e$={class:"invalid-feedback"},n$={key:0},s$={key:1},i$=g("ul",{class:"mb-0"},[g("li",null,"Configuration name already exist."),g("li",null,'Configuration name can only contain 15 lower/uppercase alphabet, numbers, "_"(underscore), "="(equal), "+"(plus), "."(period/dot), "-"(dash/hyphen)')],-1),o$={class:"card rounded-3 shadow"},r$=g("div",{class:"card-header"},"Private Key / Public Key / Pre-Shared Key",-1),a$={class:"card-body",style:{"font-family":"var(--bs-font-monospace)"}},l$={class:"mb-2"},c$=g("label",{class:"text-muted fw-bold mb-1"},[g("small",null,"PRIVATE KEY")],-1),u$={class:"input-group"},d$=["disabled"],h$=g("i",{class:"bi bi-arrow-repeat"},null,-1),f$=[h$],p$=g("label",{class:"text-muted fw-bold mb-1"},[g("small",null,"PUBLIC KEY")],-1),g$={class:"card rounded-3 shadow"},m$=g("div",{class:"card-header"},"Listen Port",-1),_$={class:"card-body"},b$=["disabled"],v$={class:"invalid-feedback"},y$={key:0},x$={key:1},w$={class:"card rounded-3 shadow"},E$={class:"card-header d-flex align-items-center"},S$={class:"badge rounded-pill text-bg-success ms-auto"},A$={class:"card-body"},C$=["disabled"],T$={class:"invalid-feedback"},P$={key:0},k$={key:1},$$=g("hr",null,null,-1),M$={class:"accordion",id:"newConfigurationOptionalAccordion"},O$={class:"accordion-item"},D$=g("h2",{class:"accordion-header"},[g("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"}," Optional Settings ")],-1),I$={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},L$={class:"accordion-body d-flex flex-column gap-3"},R$={class:"card rounded-3"},N$=g("div",{class:"card-header"},"PreUp",-1),F$={class:"card-body"},B$={class:"card rounded-3"},V$=g("div",{class:"card-header"},"PreDown",-1),H$={class:"card-body"},j$={class:"card rounded-3"},W$=g("div",{class:"card-header"},"PostUp",-1),z$={class:"card-body"},U$={class:"card rounded-3"},K$=g("div",{class:"card-header"},"PostDown",-1),Y$={class:"card-body"},q$=["disabled"],G$={key:0,class:"d-flex w-100"},X$=g("i",{class:"bi bi-check-circle-fill ms-2"},null,-1),Q$={key:1,class:"d-flex w-100"},J$=g("i",{class:"bi bi-save-fill ms-2"},null,-1),Z$={key:2,class:"d-flex w-100 align-items-center"},tM=g("span",{class:"ms-2 spinner-border spinner-border-sm",role:"status"},null,-1);function eM(e,t,n,s,i,o){const r=Ot("RouterLink");return X(),ot("div",Kk,[g("div",Yk,[g("div",qk,[dt(r,{to:"/"},{default:Ut(()=>[Gk]),_:1}),Xk]),g("form",{class:"text-body d-flex flex-column gap-3",onSubmit:t[10]||(t[10]=a=>{a.preventDefault(),this.saveNewConfiguration()})},[g("div",Qk,[Jk,g("div",Zk,[bt(g("input",{type:"text",class:"form-control",placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":t[0]||(t[0]=a=>this.newConfiguration.ConfigurationName=a),disabled:this.loading,required:""},null,8,t$),[[vt,this.newConfiguration.ConfigurationName]]),g("div",e$,[this.error?(X(),ot("div",n$,wt(this.errorMessage),1)):(X(),ot("div",s$,[gt(" Configuration name is invalid. Possible reasons: "),i$]))])])]),g("div",o$,[r$,g("div",a$,[g("div",l$,[c$,g("div",u$,[bt(g("input",{type:"text",class:"form-control",id:"PrivateKey",required:"",disabled:this.loading,"onUpdate:modelValue":t[1]||(t[1]=a=>this.newConfiguration.PrivateKey=a)},null,8,d$),[[vt,this.newConfiguration.PrivateKey]]),g("button",{class:"btn btn-outline-primary",type:"button",title:"Regenerate Private Key",onClick:t[2]||(t[2]=a=>o.wireguardGenerateKeypair())},f$)])]),g("div",null,[p$,bt(g("input",{type:"text",class:"form-control",id:"PublicKey","onUpdate:modelValue":t[3]||(t[3]=a=>this.newConfiguration.PublicKey=a),disabled:""},null,512),[[vt,this.newConfiguration.PublicKey]])])])]),g("div",g$,[m$,g("div",_$,[bt(g("input",{type:"number",class:"form-control",placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":t[4]||(t[4]=a=>this.newConfiguration.ListenPort=a),disabled:this.loading,required:""},null,8,b$),[[vt,this.newConfiguration.ListenPort]]),g("div",v$,[this.error?(X(),ot("div",y$,wt(this.errorMessage),1)):(X(),ot("div",x$," Invalid port "))])])]),g("div",w$,[g("div",E$,[gt(" IP Address & Range "),g("span",S$,wt(i.numberOfAvailableIPs)+" Available IPs",1)]),g("div",A$,[bt(g("input",{type:"text",class:"form-control",placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":t[5]||(t[5]=a=>this.newConfiguration.Address=a),disabled:this.loading,required:""},null,8,C$),[[vt,this.newConfiguration.Address]]),g("div",T$,[this.error?(X(),ot("div",P$,wt(this.errorMessage),1)):(X(),ot("div",k$," IP address & range is invalid. "))])])]),$$,g("div",M$,[g("div",O$,[D$,g("div",I$,[g("div",L$,[g("div",R$,[N$,g("div",F$,[bt(g("input",{type:"text",class:"form-control",id:"preUp","onUpdate:modelValue":t[6]||(t[6]=a=>this.newConfiguration.PreUp=a)},null,512),[[vt,this.newConfiguration.PreUp]])])]),g("div",B$,[V$,g("div",H$,[bt(g("input",{type:"text",class:"form-control",id:"preDown","onUpdate:modelValue":t[7]||(t[7]=a=>this.newConfiguration.PreDown=a)},null,512),[[vt,this.newConfiguration.PreDown]])])]),g("div",j$,[W$,g("div",z$,[bt(g("input",{type:"text",class:"form-control",id:"postUp","onUpdate:modelValue":t[8]||(t[8]=a=>this.newConfiguration.PostUp=a)},null,512),[[vt,this.newConfiguration.PostUp]])])]),g("div",U$,[K$,g("div",Y$,[bt(g("input",{type:"text",class:"form-control",id:"postDown","onUpdate:modelValue":t[9]||(t[9]=a=>this.newConfiguration.PostDown=a)},null,512),[[vt,this.newConfiguration.PostDown]])])])])])])]),g("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!this.goodToSubmit},[this.success?(X(),ot("span",G$,[gt(" Success! "),X$])):this.loading?(X(),ot("span",Z$,[gt(" Saving... "),tM])):(X(),ot("span",Q$,[gt(" Save Configuration "),J$]))],8,q$)],32)])])}const nM=Rt(Uk,[["render",eM]]);function sM(e){return hu()?(Cg(e),!0):!1}function h_(e){return typeof e=="function"?e():os(e)}const f_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const iM=Object.prototype.toString,oM=e=>iM.call(e)==="[object Object]",ua=()=>{},rM=aM();function aM(){var e,t;return f_&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function bo(e){var t;const n=h_(e);return(t=n==null?void 0:n.$el)!=null?t:n}const p_=f_?window:void 0;function Kl(...e){let t,n,s,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,i]=e,t=p_):[t,n,s,i]=e,!t)return ua;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),l=zs(()=>[bo(t),h_(i)],([u,d])=>{if(r(),!u)return;const f=oM(d)?{...d}:d;o.push(...n.flatMap(p=>s.map(m=>a(u,p,m,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return sM(c),c}let bf=!1;function lM(e,t,n={}){const{window:s=p_,ignore:i=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return ua;rM&&!bf&&(bf=!0,Array.from(s.document.body.children).forEach(f=>f.addEventListener("click",ua)),s.document.documentElement.addEventListener("click",ua));let a=!0;const l=f=>i.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(m=>m===f.target||f.composedPath().includes(m));{const m=bo(p);return m&&(f.target===m||f.composedPath().includes(m))}}),u=[Kl(s,"click",f=>{const p=bo(e);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}t(f)}},{passive:!0,capture:o}),Kl(s,"pointerdown",f=>{const p=bo(e);a=!l(f)&&!!(p&&!f.composedPath().includes(p))},{passive:!0}),r&&Kl(s,"blur",f=>{setTimeout(()=>{var p;const m=bo(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const cM={name:"peerSettingsDropdown",setup(){return{dashboardStore:Xt()}},props:{Peer:Object},methods:{downloadPeer(){Re("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{if(e.status){const t=new Blob([e.data.file],{type:"text/plain"}),n=URL.createObjectURL(t),s=`${e.data.fileName}.conf`,i=document.createElement("a");i.href=n,i.download=s,i.click(),this.dashboardStore.newMessage("WGDashboard","Peer download started","success")}else this.dashboardStore.newMessage("Server",e.message,"danger")})},downloadQRCode(){Re("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{e.status?this.$emit("qrcode",e.data.file):this.dashboardStore.newMessage("Server",e.message,"danger")})}}},_s=e=>(ei("data-v-3a072aae"),e=e(),ni(),e),uM={class:"dropdown-menu mt-2 shadow-lg d-block rounded-3",style:{"max-width":"200px"}},dM=_s(()=>g("li",null,[g("small",{class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},[gt("Download & QR Code is not available due to no "),g("code",null,"private key"),gt(" set for this peer ")])],-1)),hM=_s(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),fM=_s(()=>g("i",{class:"me-auto bi bi-pen"},null,-1)),pM=_s(()=>g("i",{class:"me-auto bi bi-download"},null,-1)),gM=_s(()=>g("i",{class:"me-auto bi bi-qr-code"},null,-1)),mM=_s(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),_M=_s(()=>g("li",null,[g("a",{class:"dropdown-item d-flex text-warning",role:"button"},[g("i",{class:"me-auto bi bi-lock"}),gt(" Lock ")])],-1)),bM=_s(()=>g("li",null,[g("a",{class:"dropdown-item d-flex fw-bold text-danger",role:"button"},[g("i",{class:"me-auto bi bi-trash"}),gt(" Delete ")])],-1));function vM(e,t,n,s,i,o){return X(),ot("ul",uM,[this.Peer.private_key?Kt("",!0):(X(),ot(Qt,{key:0},[dM,hM],64)),g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[0]||(t[0]=r=>this.$emit("setting"))},[fM,gt(" Edit ")])]),this.Peer.private_key?(X(),ot(Qt,{key:1},[g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[1]||(t[1]=r=>this.downloadPeer())},[pM,gt(" Download ")])]),g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[2]||(t[2]=r=>this.downloadQRCode())},[gM,gt(" QR Code ")])])],64)):Kt("",!0),mM,_M,bM])}const yM=Rt(cM,[["render",vM],["__scopeId","data-v-3a072aae"]]),xM={name:"peer",components:{PeerSettingsDropdown:yM},props:{Peer:Object},data(){return{}},setup(){const e=Li(null),t=Li(!1);return lM(e,n=>{t.value=!1}),{target:e,subMenuOpened:t}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake}}},no=e=>(ei("data-v-315acdc2"),e=e(),ni(),e),wM={class:"card shadow-sm rounded-3"},EM={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},SM={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},AM={class:"text-primary"},CM=no(()=>g("i",{class:"bi bi-arrow-down"},null,-1)),TM={class:"text-success"},PM=no(()=>g("i",{class:"bi bi-arrow-up"},null,-1)),kM={key:0,class:"text-secondary"},$M=no(()=>g("i",{class:"bi bi-arrows-angle-contract"},null,-1)),MM={class:"card-body pt-1",style:{"font-size":"0.9rem"}},OM={class:"mb-2"},DM=no(()=>g("small",{class:"text-muted"},"Public Key",-1)),IM={class:"mb-0"},LM={class:"d-flex align-items-end"},RM=no(()=>g("small",{class:"text-muted"},"Allowed IP",-1)),NM={class:"mb-0"},FM=no(()=>g("h5",{class:"mb-0"},[g("i",{class:"bi bi-three-dots"})],-1)),BM=[FM];function VM(e,t,n,s,i,o){const r=Ot("PeerSettingsDropdown");return X(),ot("div",wM,[g("div",EM,[g("div",{class:jt(["dot ms-0",{active:n.Peer.status==="running"}])},null,2),g("div",SM,[g("span",AM,[CM,g("strong",null,wt((n.Peer.cumu_receive+n.Peer.total_receive).toFixed(4)),1),gt(" GB ")]),g("span",TM,[PM,g("strong",null,wt((n.Peer.cumu_sent+n.Peer.total_sent).toFixed(4)),1),gt(" GB ")]),n.Peer.latest_handshake!=="No Handshake"?(X(),ot("span",kM,[$M,gt(" "+wt(o.getLatestHandshake)+" ago ",1)])):Kt("",!0)])]),g("div",MM,[g("h5",null,wt(n.Peer.name?n.Peer.name:"Untitled Peer"),1),g("div",OM,[DM,g("p",IM,[g("samp",null,wt(n.Peer.id),1)])]),g("div",LM,[g("div",null,[RM,g("p",NM,[g("samp",null,wt(n.Peer.allowed_ip),1)])]),g("div",{class:jt(["ms-auto px-2 rounded-3 subMenuBtn",{active:this.subMenuOpened}])},[g("a",{role:"button",class:"text-body",onClick:t[0]||(t[0]=a=>this.subMenuOpened=!0)},BM),dt(Ln,{name:"slide-fade"},{default:Ut(()=>[this.subMenuOpened?(X(),de(r,{key:0,onQrcode:t[1]||(t[1]=a=>this.$emit("qrcode",a)),onSetting:t[2]||(t[2]=a=>this.$emit("setting")),Peer:n.Peer,ref:"target"},null,8,["Peer"])):Kt("",!0)]),_:1})],2)])])])}const HM=Rt(xM,[["render",VM],["__scopeId","data-v-315acdc2"]]);/*! + */(function(){function e(y){var x=new Float64Array(16);if(y)for(var C=0;C>16&1),S[M-1]&=65535;S[15]=P[15]-32767-(S[14]>>16&1),C=S[15]>>16&1,S[14]&=65535,n(P,S,1-C)}for(var M=0;M<16;++M)y[2*M]=P[M]&255,y[2*M+1]=P[M]>>8}function s(y){for(var x=0;x<16;++x)y[(x+1)%16]+=(x<15?1:38)*Math.floor(y[x]/65536),y[x]&=65535}function n(y,x,C){for(var S,P=~(C-1),M=0;M<16;++M)S=P&(y[M]^x[M]),y[M]^=S,x[M]^=S}function i(y,x,C){for(var S=0;S<16;++S)y[S]=x[S]+C[S]|0}function o(y,x,C){for(var S=0;S<16;++S)y[S]=x[S]-C[S]|0}function r(y,x,C){for(var S=new Float64Array(31),P=0;P<16;++P)for(var M=0;M<16;++M)S[P+M]+=x[P]*C[M];for(var P=0;P<15;++P)S[P]+=38*S[P+16];for(var P=0;P<16;++P)y[P]=S[P];s(y),s(y)}function a(y,x){for(var C=e(),S=0;S<16;++S)C[S]=x[S];for(var S=253;S>=0;--S)r(C,C,C),S!==2&&S!==4&&r(C,C,x);for(var S=0;S<16;++S)y[S]=C[S]}function l(y){y[31]=y[31]&127|64,y[0]&=248}function c(y){for(var x,C=new Uint8Array(32),S=e([1]),P=e([9]),M=e(),I=e([1]),N=e(),Q=e(),G=e([56129,1]),V=e([9]),L=0;L<32;++L)C[L]=y[L];l(C);for(var L=254;L>=0;--L)x=C[L>>>3]>>>(L&7)&1,n(S,P,x),n(M,I,x),i(N,S,M),o(S,S,M),i(M,P,I),o(P,P,I),r(I,N,N),r(Q,S,S),r(S,M,S),r(M,P,N),i(N,S,M),o(S,S,M),r(P,S,S),o(M,I,Q),r(S,M,G),i(S,S,I),r(M,M,S),r(S,I,Q),r(I,P,V),r(P,N,N),n(S,P,x),n(M,I,x);return a(M,M),r(S,S,M),t(C,S),C}function d(){var y=new Uint8Array(32);return window.crypto.getRandomValues(y),y}function u(){var y=d();return l(y),y}function f(y,x){for(var C=Uint8Array.from([x[0]>>2&63,(x[0]<<4|x[1]>>4)&63,(x[1]<<2|x[2]>>6)&63,x[2]&63]),S=0;S<4;++S)y[S]=C[S]+65+(25-C[S]>>8&6)-(51-C[S]>>8&75)-(61-C[S]>>8&15)+(62-C[S]>>8&3)}function g(y){var x,C=new Uint8Array(44);for(x=0;x<32/3;++x)f(C.subarray(x*4),y.subarray(x*3));return f(C.subarray(x*4),Uint8Array.from([y[x*3+0],y[x*3+1],0])),C[43]=61,String.fromCharCode.apply(null,C)}function m(y){let x=window.atob(y),C=x.length,S=new Uint8Array(C);for(let M=0;M>>8&255,x>>>16&255,x>>>24&255)}function v(y,x){y.push(x&255,x>>>8&255)}function w(y,x){for(var C=0;C>>1:x>>>1;$.table[C]=x}}for(var P=-1,M=0;M>>8^$.table[(P^y[M])&255];return(P^-1)>>>0}function T(y){for(var x=[],C=[],S=0,P=0;P{e.status?(this.success=!0,await this.store.getConfigurations(),setTimeout(()=>{this.$router.push("/")},1e3)):(this.error=!0,this.errorMessage=e.message,document.querySelector(`#${e.data}`).classList.remove("is-valid"),document.querySelector(`#${e.data}`).classList.add("is-invalid"))}))}},computed:{goodToSubmit(){let e=["ConfigurationName","Address","ListenPort","PrivateKey"],t=[...document.querySelectorAll("input[required]")];return e.find(s=>this.newConfiguration[s].length===0)===void 0&&t.find(s=>s.classList.contains("is-invalid"))===void 0}},watch:{"newConfiguration.Address"(e){let t=document.querySelector("#Address");t.classList.remove("is-invalid","is-valid");try{if(e.trim().split("/").filter(i=>i.length>0).length!==2)throw Error();let s=tT(e),n=s.end-s.start;this.numberOfAvailableIPs=n.toLocaleString(),t.classList.add("is-valid")}catch{this.numberOfAvailableIPs="0",t.classList.add("is-invalid")}},"newConfiguration.ListenPort"(e){let t=document.querySelector("#ListenPort");t.classList.remove("is-invalid","is-valid"),e<0||e>65353||!Number.isInteger(e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.ConfigurationName"(e){let t=document.querySelector("#ConfigurationName");t.classList.remove("is-invalid","is-valid"),!/^[a-zA-Z0-9_=+.-]{1,15}$/.test(e)||e.length===0||this.store.Configurations.find(s=>s.Name===e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.PrivateKey"(e){let t=document.querySelector("#PrivateKey");t.classList.remove("is-invalid","is-valid");try{wireguard.generatePublicKey(e),t.classList.add("is-valid")}catch{t.classList.add("is-invalid")}}}},sT={class:"mt-4"},nT={class:"container mb-4"},iT={class:"mb-4 d-flex align-items-center gap-4"},oT=p("h3",{class:"mb-0 text-body"},[p("i",{class:"bi bi-chevron-left"})],-1),rT=p("h3",{class:"text-body mb-0"},"New Configuration",-1),aT={class:"card rounded-3 shadow"},lT=p("div",{class:"card-header"},"Configuration Name",-1),cT={class:"card-body"},dT=["disabled"],uT={class:"invalid-feedback"},hT={key:0},fT={key:1},pT=p("ul",{class:"mb-0"},[p("li",null,"Configuration name already exist."),p("li",null,'Configuration name can only contain 15 lower/uppercase alphabet, numbers, "_"(underscore), "="(equal), "+"(plus), "."(period/dot), "-"(dash/hyphen)')],-1),gT={class:"card rounded-3 shadow"},mT=p("div",{class:"card-header"},"Private Key / Public Key / Pre-Shared Key",-1),_T={class:"card-body",style:{"font-family":"var(--bs-font-monospace)"}},bT={class:"mb-2"},vT=p("label",{class:"text-muted fw-bold mb-1"},[p("small",null,"PRIVATE KEY")],-1),yT={class:"input-group"},xT=["disabled"],wT=p("i",{class:"bi bi-arrow-repeat"},null,-1),ET=[wT],ST=p("label",{class:"text-muted fw-bold mb-1"},[p("small",null,"PUBLIC KEY")],-1),AT={class:"card rounded-3 shadow"},CT=p("div",{class:"card-header"},"Listen Port",-1),$T={class:"card-body"},PT=["disabled"],kT={class:"invalid-feedback"},TT={key:0},MT={key:1},OT={class:"card rounded-3 shadow"},DT={class:"card-header d-flex align-items-center"},IT={class:"badge rounded-pill text-bg-success ms-auto"},LT={class:"card-body"},RT=["disabled"],NT={class:"invalid-feedback"},FT={key:0},BT={key:1},VT=p("hr",null,null,-1),HT={class:"accordion",id:"newConfigurationOptionalAccordion"},jT={class:"accordion-item"},WT=p("h2",{class:"accordion-header"},[p("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"}," Optional Settings ")],-1),zT={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},UT={class:"accordion-body d-flex flex-column gap-3"},KT={class:"card rounded-3"},YT=p("div",{class:"card-header"},"PreUp",-1),qT={class:"card-body"},GT={class:"card rounded-3"},XT=p("div",{class:"card-header"},"PreDown",-1),JT={class:"card-body"},QT={class:"card rounded-3"},ZT=p("div",{class:"card-header"},"PostUp",-1),tM={class:"card-body"},eM={class:"card rounded-3"},sM=p("div",{class:"card-header"},"PostDown",-1),nM={class:"card-body"},iM=["disabled"],oM={key:0,class:"d-flex w-100"},rM=p("i",{class:"bi bi-check-circle-fill ms-2"},null,-1),aM={key:1,class:"d-flex w-100"},lM=p("i",{class:"bi bi-save-fill ms-2"},null,-1),cM={key:2,class:"d-flex w-100 align-items-center"},dM=p("span",{class:"ms-2 spinner-border spinner-border-sm",role:"status"},null,-1);function uM(e,t,s,n,i,o){const r=Dt("RouterLink");return H(),q("div",sT,[p("div",nT,[p("div",iT,[dt(r,{to:"/"},{default:Bt(()=>[oT]),_:1}),rT]),p("form",{class:"text-body d-flex flex-column gap-3",onSubmit:t[10]||(t[10]=a=>{a.preventDefault(),this.saveNewConfiguration()})},[p("div",aT,[lT,p("div",cT,[mt(p("input",{type:"text",class:"form-control",placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":t[0]||(t[0]=a=>this.newConfiguration.ConfigurationName=a),disabled:this.loading,required:""},null,8,dT),[[yt,this.newConfiguration.ConfigurationName]]),p("div",uT,[this.error?(H(),q("div",hT,lt(this.errorMessage),1)):(H(),q("div",fT,[ht(" Configuration name is invalid. Possible reasons: "),pT]))])])]),p("div",gT,[mT,p("div",_T,[p("div",bT,[vT,p("div",yT,[mt(p("input",{type:"text",class:"form-control",id:"PrivateKey",required:"",disabled:this.loading,"onUpdate:modelValue":t[1]||(t[1]=a=>this.newConfiguration.PrivateKey=a)},null,8,xT),[[yt,this.newConfiguration.PrivateKey]]),p("button",{class:"btn btn-outline-primary",type:"button",title:"Regenerate Private Key",onClick:t[2]||(t[2]=a=>o.wireguardGenerateKeypair())},ET)])]),p("div",null,[ST,mt(p("input",{type:"text",class:"form-control",id:"PublicKey","onUpdate:modelValue":t[3]||(t[3]=a=>this.newConfiguration.PublicKey=a),disabled:""},null,512),[[yt,this.newConfiguration.PublicKey]])])])]),p("div",AT,[CT,p("div",$T,[mt(p("input",{type:"number",class:"form-control",placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":t[4]||(t[4]=a=>this.newConfiguration.ListenPort=a),disabled:this.loading,required:""},null,8,PT),[[yt,this.newConfiguration.ListenPort]]),p("div",kT,[this.error?(H(),q("div",TT,lt(this.errorMessage),1)):(H(),q("div",MT," Invalid port "))])])]),p("div",OT,[p("div",DT,[ht(" IP Address & Range "),p("span",IT,lt(i.numberOfAvailableIPs)+" Available IPs",1)]),p("div",LT,[mt(p("input",{type:"text",class:"form-control",placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":t[5]||(t[5]=a=>this.newConfiguration.Address=a),disabled:this.loading,required:""},null,8,RT),[[yt,this.newConfiguration.Address]]),p("div",NT,[this.error?(H(),q("div",FT,lt(this.errorMessage),1)):(H(),q("div",BT," IP address & range is invalid. "))])])]),VT,p("div",HT,[p("div",jT,[WT,p("div",zT,[p("div",UT,[p("div",KT,[YT,p("div",qT,[mt(p("input",{type:"text",class:"form-control",id:"preUp","onUpdate:modelValue":t[6]||(t[6]=a=>this.newConfiguration.PreUp=a)},null,512),[[yt,this.newConfiguration.PreUp]])])]),p("div",GT,[XT,p("div",JT,[mt(p("input",{type:"text",class:"form-control",id:"preDown","onUpdate:modelValue":t[7]||(t[7]=a=>this.newConfiguration.PreDown=a)},null,512),[[yt,this.newConfiguration.PreDown]])])]),p("div",QT,[ZT,p("div",tM,[mt(p("input",{type:"text",class:"form-control",id:"postUp","onUpdate:modelValue":t[8]||(t[8]=a=>this.newConfiguration.PostUp=a)},null,512),[[yt,this.newConfiguration.PostUp]])])]),p("div",eM,[sM,p("div",nM,[mt(p("input",{type:"text",class:"form-control",id:"postDown","onUpdate:modelValue":t[9]||(t[9]=a=>this.newConfiguration.PostDown=a)},null,512),[[yt,this.newConfiguration.PostDown]])])])])])])]),p("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!this.goodToSubmit},[this.success?(H(),q("span",oM,[ht(" Success! "),rM])):this.loading?(H(),q("span",cM,[ht(" Saving... "),dM])):(H(),q("span",aM,[ht(" Save Configuration "),lM]))],8,iM)],32)])])}const hM=kt(eT,[["render",uM]]),fM={name:"configuration"},pM={class:"mt-5 text-body"};function gM(e,t,s,n,i,o){const r=Dt("RouterView");return H(),q("div",pM,[dt(r,null,{default:Bt(({Component:a,route:l})=>[dt(is,{name:"fade2",mode:"out-in"},{default:Bt(()=>[(H(),oe(qa,null,{default:Bt(()=>[(H(),oe(Td(a),{key:l.path}))]),_:2},1024))]),_:2},1024)]),_:1})])}const mM=kt(fM,[["render",gM]]),_M={name:"peerSettings",props:{selectedPeer:Object},data(){return{data:void 0,dataChanged:!1,showKey:!1,saving:!1}},setup(){return{dashboardConfigurationStore:Jt()}},methods:{reset(){this.selectedPeer&&(this.data=JSON.parse(JSON.stringify(this.selectedPeer)),this.dataChanged=!1)},savePeer(){this.saving=!0,ue(`/api/updatePeerSettings/${this.$route.params.id}`,this.data,e=>{this.saving=!1,e.status?this.dashboardConfigurationStore.newMessage("Server","Peer Updated!","success"):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.$emit("refresh")})}},beforeMount(){this.reset()},mounted(){this.$el.querySelectorAll("input").forEach(e=>{e.addEventListener("keyup",()=>{this.dataChanged=!0})})}},Ce=e=>(Bs("data-v-658dbebe"),e=e(),Vs(),e),bM={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},vM={class:"container d-flex h-100 w-100"},yM={class:"card m-auto rounded-3 shadow",style:{width:"700px"}},xM={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},wM=Ce(()=>p("h4",{class:"mb-0"},"Peer Settings",-1)),EM={key:0,class:"card-body px-4 pb-4"},SM={class:"d-flex flex-column gap-2 mb-4"},AM=Ce(()=>p("small",{class:"text-muted"},"Public Key",-1)),CM=Ce(()=>p("br",null,null,-1)),$M=Ce(()=>p("label",{for:"peer_name_textbox",class:"form-label"},[p("small",{class:"text-muted"},"Name")],-1)),PM=["disabled"],kM={class:"d-flex position-relative"},TM=Ce(()=>p("label",{for:"peer_private_key_textbox",class:"form-label"},[p("small",{class:"text-muted"},[ht("Private Key "),p("code",null,"(Required for QR Code and Download)")])],-1)),MM=["type","disabled"],OM=Ce(()=>p("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[p("small",{class:"text-muted"},[ht("Allowed IPs "),p("code",null,"(Required)")])],-1)),DM=["disabled"],IM=Ce(()=>p("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[p("small",{class:"text-muted"},[ht("Endpoint Allowed IPs "),p("code",null,"(Required)")])],-1)),LM=["disabled"],RM=Ce(()=>p("label",{for:"peer_DNS_textbox",class:"form-label"},[p("small",{class:"text-muted"},"DNS")],-1)),NM=["disabled"],FM=Ce(()=>p("hr",null,null,-1)),BM={class:"accordion mt-2",id:"peerSettingsAccordion"},VM={class:"accordion-item"},HM=Ce(()=>p("h2",{class:"accordion-header"},[p("button",{class:"accordion-button rounded-3 collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#peerSettingsAccordionOptional"}," Optional Settings ")],-1)),jM={id:"peerSettingsAccordionOptional",class:"accordion-collapse collapse","data-bs-parent":"#peerSettingsAccordion"},WM={class:"accordion-body d-flex flex-column gap-2 mb-2"},zM=Ce(()=>p("label",{for:"peer_preshared_key_textbox",class:"form-label"},[p("small",{class:"text-muted"},"Pre-Shared Key")],-1)),UM=["disabled"],KM=Ce(()=>p("label",{for:"peer_mtu",class:"form-label"},[p("small",{class:"text-muted"},"MTU")],-1)),YM=["disabled"],qM=Ce(()=>p("label",{for:"peer_keep_alive",class:"form-label"},[p("small",{class:"text-muted"},"Persistent Keepalive")],-1)),GM=["disabled"],XM={class:"d-flex align-items-center gap-2"},JM=["disabled"],QM=Ce(()=>p("i",{class:"bi bi-arrow-clockwise ms-2"},null,-1)),ZM=["disabled"],tO=Ce(()=>p("i",{class:"bi bi-save-fill ms-2"},null,-1));function eO(e,t,s,n,i,o){return H(),q("div",bM,[p("div",vM,[p("div",yM,[p("div",xM,[wM,p("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),this.data?(H(),q("div",EM,[p("div",SM,[p("div",null,[AM,CM,p("small",null,[p("samp",null,lt(this.data.id),1)])]),p("div",null,[$M,mt(p("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,PM),[[yt,this.data.name]])]),p("div",null,[p("div",kM,[TM,p("a",{role:"button",class:"ms-auto text-decoration-none toggleShowKey",onClick:t[2]||(t[2]=r=>this.showKey=!this.showKey)},[p("i",{class:Rt(["bi",[this.showKey?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)])]),mt(p("input",{type:[this.showKey?"text":"password"],class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[3]||(t[3]=r=>this.data.private_key=r),id:"peer_private_key_textbox",style:{"padding-right":"40px"}},null,8,MM),[[kE,this.data.private_key]])]),p("div",null,[OM,mt(p("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[4]||(t[4]=r=>this.data.allowed_ip=r),id:"peer_allowed_ip_textbox"},null,8,DM),[[yt,this.data.allowed_ip]])]),p("div",null,[IM,mt(p("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[5]||(t[5]=r=>this.data.endpoint_allowed_ip=r),id:"peer_endpoint_allowed_ips"},null,8,LM),[[yt,this.data.endpoint_allowed_ip]])]),p("div",null,[RM,mt(p("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[6]||(t[6]=r=>this.data.DNS=r),id:"peer_DNS_textbox"},null,8,NM),[[yt,this.data.DNS]])]),FM,p("div",BM,[p("div",VM,[HM,p("div",jM,[p("div",WM,[p("div",null,[zM,mt(p("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[7]||(t[7]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,UM),[[yt,this.data.preshared_key]])]),p("div",null,[KM,mt(p("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[8]||(t[8]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,YM),[[yt,this.data.mtu]])]),p("div",null,[qM,mt(p("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[9]||(t[9]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,GM),[[yt,this.data.keepalive]])])])])])])]),p("div",XM,[p("button",{class:"btn btn-secondary rounded-3 shadow",onClick:t[10]||(t[10]=r=>this.reset()),disabled:!this.dataChanged||this.saving},[ht(" Reset "),QM],8,JM),p("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.dataChanged||this.saving,onClick:t[11]||(t[11]=r=>this.savePeer())},[ht(" Save Peer"),tO],8,ZM)])])):Vt("",!0)])])])}const sO=kt(_M,[["render",eO],["__scopeId","data-v-658dbebe"]]),nO={name:"peerSearch",setup(){const e=Jt(),t=as();return{store:e,wireguardConfigurationStore:t}},props:{searchString:String,configuration:Object},data(){return{sort:{status:"Status",name:"Name",allowed_ip:"Allowed IP",restricted:"Restricted"},interval:{5e3:"5 Seconds",1e4:"10 Seconds",3e4:"30 Seconds",6e4:"1 Minutes"}}},methods:{updateSort(e){ue("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_sort",value:e},t=>{t.status&&this.store.getConfiguration()})},updateRefreshInterval(e){ue("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:e},t=>{t.status&&this.store.getConfiguration()})},downloadAllPeer(){he(`/api/downloadAllPeers/${this.configuration.Name}`,{},e=>{console.log(e),window.wireguard.generateZipFiles(e,this.configuration.Name)})}},mounted(){}},iO={class:"d-flex gap-2 mb-3 z-3"},oO=p("i",{class:"bi bi-plus-lg me-2"},null,-1),rO=p("i",{class:"bi bi-download me-2"},null,-1),aO={class:"dropdown ms-auto"},lO=p("button",{class:"btn btn-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[p("i",{class:"bi bi-filter-circle me-2"}),ht(" Sort ")],-1),cO={class:"dropdown-menu mt-2 shadow rounded-3"},dO=["onClick"],uO={class:"me-auto"},hO={key:0,class:"bi bi-check text-primary"},fO={class:"dropdown"},pO=p("button",{class:"btn btn-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[p("i",{class:"bi bi-arrow-repeat me-2"}),ht("Refresh Interval ")],-1),gO={class:"dropdown-menu shadow mt-2 rounded-3"},mO=["onClick"],_O={class:"me-auto"},bO={key:0,class:"bi bi-check text-primary"},vO={class:"d-flex align-items-center"};function yO(e,t,s,n,i,o){const r=Dt("RouterLink");return H(),q("div",null,[p("div",iO,[dt(r,{to:"create",class:"text-decoration-none btn btn-primary rounded-3 btn-sm"},{default:Bt(()=>[oO,ht("Peers ")]),_:1}),p("button",{class:"btn btn-sm btn-primary rounded-3",onClick:t[0]||(t[0]=a=>this.downloadAllPeer())},[rO,ht(" Download All ")]),p("div",aO,[lO,p("ul",cO,[(H(!0),q(Ht,null,_e(this.sort,(a,l)=>(H(),q("li",null,[p("a",{class:"dropdown-item d-flex",role:"button",onClick:c=>this.updateSort(l)},[p("span",uO,lt(a),1),n.store.Configuration.Server.dashboard_sort===l?(H(),q("i",hO)):Vt("",!0)],8,dO)]))),256))])]),p("div",fO,[pO,p("ul",gO,[(H(!0),q(Ht,null,_e(this.interval,(a,l)=>(H(),q("li",null,[p("a",{class:"dropdown-item d-flex",role:"button",onClick:c=>o.updateRefreshInterval(l)},[p("span",_O,lt(a),1),n.store.Configuration.Server.dashboard_refresh_interval===l?(H(),q("i",bO)):Vt("",!0)],8,mO)]))),256))])]),p("div",vO,[mt(p("input",{class:"form-control form-control-sm rounded-3",placeholder:"Search...",id:"searchPeers","onUpdate:modelValue":t[1]||(t[1]=a=>this.wireguardConfigurationStore.searchString=a)},null,512),[[yt,this.wireguardConfigurationStore.searchString]])])])])}const xO=kt(nO,[["render",yO]]);function wO(e){return _d()?(Og(e),!0):!1}function w_(e){return typeof e=="function"?e():un(e)}const E_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const EO=Object.prototype.toString,SO=e=>EO.call(e)==="[object Object]",aa=()=>{},AO=CO();function CO(){var e,t;return E_&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function go(e){var t;const s=w_(e);return(t=s==null?void 0:s.$el)!=null?t:s}const S_=E_?window:void 0;function ql(...e){let t,s,n,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([s,n,i]=e,t=S_):[t,s,n,i]=e,!t)return aa;Array.isArray(s)||(s=[s]),Array.isArray(n)||(n=[n]);const o=[],r=()=>{o.forEach(d=>d()),o.length=0},a=(d,u,f,g)=>(d.addEventListener(u,f,g),()=>d.removeEventListener(u,f,g)),l=qn(()=>[go(t),w_(i)],([d,u])=>{if(r(),!d)return;const f=SO(u)?{...u}:u;o.push(...s.flatMap(g=>n.map(m=>a(d,g,m,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return wO(c),c}let Ef=!1;function $O(e,t,s={}){const{window:n=S_,ignore:i=[],capture:o=!0,detectIframe:r=!1}=s;if(!n)return aa;AO&&!Ef&&(Ef=!0,Array.from(n.document.body.children).forEach(f=>f.addEventListener("click",aa)),n.document.documentElement.addEventListener("click",aa));let a=!0;const l=f=>i.some(g=>{if(typeof g=="string")return Array.from(n.document.querySelectorAll(g)).some(m=>m===f.target||f.composedPath().includes(m));{const m=go(g);return m&&(f.target===m||f.composedPath().includes(m))}}),d=[ql(n,"click",f=>{const g=go(e);if(!(!g||g===f.target||f.composedPath().includes(g))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}t(f)}},{passive:!0,capture:o}),ql(n,"pointerdown",f=>{const g=go(e);a=!l(f)&&!!(g&&!f.composedPath().includes(g))},{passive:!0}),r&&ql(n,"blur",f=>{setTimeout(()=>{var g;const m=go(e);((g=n.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(m!=null&&m.contains(n.document.activeElement))&&t(f)},0)})].filter(Boolean);return()=>d.forEach(f=>f())}const PO={name:"peerSettingsDropdown",setup(){return{dashboardStore:Jt()}},props:{Peer:Object},data(){return{deleteBtnDisabled:!1,restrictBtnDisabled:!1,allowAccessBtnDisabled:!1}},methods:{downloadPeer(){he("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{if(e.status){const t=new Blob([e.data.file],{type:"text/plain"}),s=URL.createObjectURL(t),n=`${e.data.fileName}.conf`,i=document.createElement("a");i.href=s,i.download=n,i.click(),this.dashboardStore.newMessage("WGDashboard","Peer download started","success")}else this.dashboardStore.newMessage("Server",e.message,"danger")})},downloadQRCode(){he("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{e.status?this.$emit("qrcode",e.data.file):this.dashboardStore.newMessage("Server",e.message,"danger")})},deletePeer(){this.deleteBtnDisabled=!0,ue(`/api/deletePeers/${this.$route.params.id}`,{peers:[this.Peer.id]},e=>{this.dashboardStore.newMessage("Server",e.message,e.status?"success":"danger"),this.$emit("refresh"),this.deleteBtnDisabled=!1})},restrictPeer(){this.restrictBtnDisabled=!0,ue(`/api/restrictPeers/${this.$route.params.id}`,{peers:[this.Peer.id]},e=>{this.dashboardStore.newMessage("Server",e.message,e.status?"success":"danger"),this.$emit("refresh"),this.restrictBtnDisabled=!1})},allowAccessPeer(){this.allowAccessBtnDisabled=!0,ue(`/api/allowAccessPeers/${this.$route.params.id}`,{peers:[this.Peer.id]},e=>{this.dashboardStore.newMessage("Server",e.message,e.status?"success":"danger"),this.$emit("refresh"),this.allowAccessBtnDisabled=!1})}}},xs=e=>(Bs("data-v-efcc2294"),e=e(),Vs(),e),kO={class:"dropdown-menu mt-2 shadow-lg d-block rounded-3",style:{"max-width":"200px"}},TO=xs(()=>p("li",null,[p("small",{class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},[ht("Download & QR Code is not available due to no "),p("code",null,"private key"),ht(" set for this peer ")])],-1)),MO=xs(()=>p("li",null,[p("hr",{class:"dropdown-divider"})],-1)),OO=xs(()=>p("i",{class:"me-auto bi bi-pen"},null,-1)),DO=xs(()=>p("i",{class:"me-auto bi bi-app-indicator"},null,-1)),IO=xs(()=>p("i",{class:"me-auto bi bi-download"},null,-1)),LO=xs(()=>p("i",{class:"me-auto bi bi-qr-code"},null,-1)),RO=xs(()=>p("li",null,[p("hr",{class:"dropdown-divider"})],-1)),NO=xs(()=>p("i",{class:"me-auto bi bi-lock"},null,-1)),FO=xs(()=>p("i",{class:"me-auto bi bi-trash"},null,-1)),BO={key:1},VO=xs(()=>p("i",{class:"me-auto bi bi-unlock"},null,-1));function HO(e,t,s,n,i,o){return H(),q("ul",kO,[this.Peer.restricted?(H(),q("li",BO,[p("a",{class:Rt(["dropdown-item d-flex text-warning",{disabled:this.restrictBtnDisabled}]),onClick:t[6]||(t[6]=r=>this.allowAccessPeer()),role:"button"},[VO,ht(" "+lt(this.allowAccessBtnDisabled?"Allowing...":"Allow Access"),1)],2)])):(H(),q(Ht,{key:0},[this.Peer.private_key?Vt("",!0):(H(),q(Ht,{key:0},[TO,MO],64)),p("li",null,[p("a",{class:"dropdown-item d-flex",role:"button",onClick:t[0]||(t[0]=r=>this.$emit("setting"))},[OO,ht(" Edit ")])]),p("li",null,[p("a",{class:"dropdown-item d-flex",role:"button",onClick:t[1]||(t[1]=r=>this.$emit("jobs"))},[DO,ht(" Schedule Jobs ")])]),this.Peer.private_key?(H(),q(Ht,{key:1},[p("li",null,[p("a",{class:"dropdown-item d-flex",role:"button",onClick:t[2]||(t[2]=r=>this.downloadPeer())},[IO,ht(" Download ")])]),p("li",null,[p("a",{class:"dropdown-item d-flex",role:"button",onClick:t[3]||(t[3]=r=>this.downloadQRCode())},[LO,ht(" QR Code ")])])],64)):Vt("",!0),RO,p("li",null,[p("a",{class:Rt(["dropdown-item d-flex text-warning",{disabled:this.restrictBtnDisabled}]),onClick:t[4]||(t[4]=r=>this.restrictPeer()),role:"button"},[NO,ht(" "+lt(this.restrictBtnDisabled?"Restricting...":"Restrict Access"),1)],2)]),p("li",null,[p("a",{class:Rt(["dropdown-item d-flex fw-bold text-danger",{disabled:this.deleteBtnDisabled}]),onClick:t[5]||(t[5]=r=>this.deletePeer()),role:"button"},[FO,ht(" "+lt(this.deleteBtnDisabled?"Deleting...":"Delete"),1)],2)])],64))])}const jO=kt(PO,[["render",HO],["__scopeId","data-v-efcc2294"]]),WO={name:"peer",components:{PeerSettingsDropdown:jO},props:{Peer:Object},data(){return{}},setup(){const e=Oi(null),t=Oi(!1);return $O(e,s=>{t.value=!1}),{target:e,subMenuOpened:t}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake}}},si=e=>(Bs("data-v-7be8a1d5"),e=e(),Vs(),e),zO={key:0,class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},UO={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},KO={class:"text-primary"},YO=si(()=>p("i",{class:"bi bi-arrow-down"},null,-1)),qO={class:"text-success"},GO=si(()=>p("i",{class:"bi bi-arrow-up"},null,-1)),XO={key:0,class:"text-secondary"},JO=si(()=>p("i",{class:"bi bi-arrows-angle-contract"},null,-1)),QO={key:1,class:"border-0 card-header bg-transparent text-warning fw-bold",style:{"font-size":"0.8rem"}},ZO=si(()=>p("i",{class:"bi-lock-fill me-2"},null,-1)),tD={class:"card-body pt-1",style:{"font-size":"0.9rem"}},eD={class:"mb-2"},sD=si(()=>p("small",{class:"text-muted"},"Public Key",-1)),nD={class:"mb-0"},iD={class:"d-flex align-items-end"},oD=si(()=>p("small",{class:"text-muted"},"Allowed IP",-1)),rD={class:"mb-0"},aD=si(()=>p("h5",{class:"mb-0"},[p("i",{class:"bi bi-three-dots"})],-1)),lD=[aD];function cD(e,t,s,n,i,o){const r=Dt("PeerSettingsDropdown");return H(),q("div",{class:Rt(["card shadow-sm rounded-3",{"border-warning":s.Peer.restricted}])},[p("div",null,[s.Peer.restricted?(H(),q("div",QO,[ZO,ht(" Access Restricted ")])):(H(),q("div",zO,[p("div",{class:Rt(["dot ms-0",{active:s.Peer.status==="running"}])},null,2),p("div",UO,[p("span",KO,[YO,p("strong",null,lt((s.Peer.cumu_receive+s.Peer.total_receive).toFixed(4)),1),ht(" GB ")]),p("span",qO,[GO,p("strong",null,lt((s.Peer.cumu_sent+s.Peer.total_sent).toFixed(4)),1),ht(" GB ")]),s.Peer.latest_handshake!=="No Handshake"?(H(),q("span",XO,[JO,ht(" "+lt(o.getLatestHandshake)+" ago ",1)])):Vt("",!0)])]))]),p("div",tD,[p("h5",null,lt(s.Peer.name?s.Peer.name:"Untitled Peer"),1),p("div",eD,[sD,p("p",nD,[p("samp",null,lt(s.Peer.id),1)])]),p("div",iD,[p("div",null,[oD,p("p",rD,[p("samp",null,lt(s.Peer.allowed_ip),1)])]),p("div",{class:Rt(["ms-auto px-2 rounded-3 subMenuBtn",{active:this.subMenuOpened}])},[p("a",{role:"button",class:"text-body",onClick:t[0]||(t[0]=a=>this.subMenuOpened=!0)},lD),dt(is,{name:"slide-fade"},{default:Bt(()=>[this.subMenuOpened?(H(),oe(r,{key:0,onQrcode:t[1]||(t[1]=a=>this.$emit("qrcode",a)),onSetting:t[2]||(t[2]=a=>this.$emit("setting")),onJobs:t[3]||(t[3]=a=>this.$emit("jobs")),onRefresh:t[4]||(t[4]=a=>this.$emit("refresh")),Peer:s.Peer,ref:"target"},null,8,["Peer"])):Vt("",!0)]),_:1})],2)])])],2)}const dD=kt(WO,[["render",cD],["__scopeId","data-v-7be8a1d5"]]);/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License - */function ur(e){return e+.5|0}const ts=(e,t,n)=>Math.max(Math.min(e,n),t);function vo(e){return ts(ur(e*2.55),0,255)}function as(e){return ts(ur(e*255),0,255)}function Cn(e){return ts(ur(e/2.55)/100,0,1)}function vf(e){return ts(ur(e*100),0,100)}const je={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Oc=[..."0123456789ABCDEF"],jM=e=>Oc[e&15],WM=e=>Oc[(e&240)>>4]+Oc[e&15],jr=e=>(e&240)>>4===(e&15),zM=e=>jr(e.r)&&jr(e.g)&&jr(e.b)&&jr(e.a);function UM(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&je[e[1]]*17,g:255&je[e[2]]*17,b:255&je[e[3]]*17,a:t===5?je[e[4]]*17:255}:(t===7||t===9)&&(n={r:je[e[1]]<<4|je[e[2]],g:je[e[3]]<<4|je[e[4]],b:je[e[5]]<<4|je[e[6]],a:t===9?je[e[7]]<<4|je[e[8]]:255})),n}const KM=(e,t)=>e<255?t(e):"";function YM(e){var t=zM(e)?jM:WM;return e?"#"+t(e.r)+t(e.g)+t(e.b)+KM(e.a,t):void 0}const qM=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g_(e,t,n){const s=t*Math.min(n,1-n),i=(o,r=(o+e/30)%12)=>n-s*Math.max(Math.min(r-3,9-r,1),-1);return[i(0),i(8),i(4)]}function GM(e,t,n){const s=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function XM(e,t,n){const s=g_(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)s[i]*=1-t-n,s[i]+=t;return s}function QM(e,t,n,s,i){return e===i?(t-n)/s+(t.5?u/(2-o-r):u/(o+r),l=QM(n,s,i,u,o),l=l*60+.5),[l|0,c||0,a]}function Yu(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(as)}function qu(e,t,n){return Yu(g_,e,t,n)}function JM(e,t,n){return Yu(XM,e,t,n)}function ZM(e,t,n){return Yu(GM,e,t,n)}function m_(e){return(e%360+360)%360}function tO(e){const t=qM.exec(e);let n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?vo(+t[5]):as(+t[5]));const i=m_(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=JM(i,o,r):t[1]==="hsv"?s=ZM(i,o,r):s=qu(i,o,r),{r:s[0],g:s[1],b:s[2],a:n}}function eO(e,t){var n=Ku(e);n[0]=m_(n[0]+t),n=qu(n),e.r=n[0],e.g=n[1],e.b=n[2]}function nO(e){if(!e)return;const t=Ku(e),n=t[0],s=vf(t[1]),i=vf(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${i}%, ${Cn(e.a)})`:`hsl(${n}, ${s}%, ${i}%)`}const yf={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},xf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function sO(){const e={},t=Object.keys(xf),n=Object.keys(yf);let s,i,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}let Wr;function iO(e){Wr||(Wr=sO(),Wr.transparent=[0,0,0,0]);const t=Wr[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const oO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rO(e){const t=oO.exec(e);let n=255,s,i,o;if(t){if(t[7]!==s){const r=+t[7];n=t[8]?vo(r):ts(r*255,0,255)}return s=+t[1],i=+t[3],o=+t[5],s=255&(t[2]?vo(s):ts(s,0,255)),i=255&(t[4]?vo(i):ts(i,0,255)),o=255&(t[6]?vo(o):ts(o,0,255)),{r:s,g:i,b:o,a:n}}}function aO(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Cn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Yl=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,pi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function lO(e,t,n){const s=pi(Cn(e.r)),i=pi(Cn(e.g)),o=pi(Cn(e.b));return{r:as(Yl(s+n*(pi(Cn(t.r))-s))),g:as(Yl(i+n*(pi(Cn(t.g))-i))),b:as(Yl(o+n*(pi(Cn(t.b))-o))),a:e.a+n*(t.a-e.a)}}function zr(e,t,n){if(e){let s=Ku(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=qu(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function __(e,t){return e&&Object.assign(t||{},e)}function wf(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=as(e[3]))):(t=__(e,{r:0,g:0,b:0,a:1}),t.a=as(t.a)),t}function cO(e){return e.charAt(0)==="r"?rO(e):tO(e)}class Xo{constructor(t){if(t instanceof Xo)return t;const n=typeof t;let s;n==="object"?s=wf(t):n==="string"&&(s=UM(t)||iO(t)||cO(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=__(this._rgb);return t&&(t.a=Cn(t.a)),t}set rgb(t){this._rgb=wf(t)}rgbString(){return this._valid?aO(this._rgb):void 0}hexString(){return this._valid?YM(this._rgb):void 0}hslString(){return this._valid?nO(this._rgb):void 0}mix(t,n){if(t){const s=this.rgb,i=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=s.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*i.r+.5,s.g=255&c*s.g+o*i.g+.5,s.b=255&c*s.b+o*i.b+.5,s.a=r*s.a+(1-r)*i.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=lO(this._rgb,t._rgb,n)),this}clone(){return new Xo(this.rgb)}alpha(t){return this._rgb.a=as(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ur(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return zr(this._rgb,2,t),this}darken(t){return zr(this._rgb,2,-t),this}saturate(t){return zr(this._rgb,1,t),this}desaturate(t){return zr(this._rgb,1,-t),this}rotate(t){return eO(this._rgb,t),this}}/*! + */function ar(e){return e+.5|0}const rn=(e,t,s)=>Math.max(Math.min(e,s),t);function mo(e){return rn(ar(e*2.55),0,255)}function fn(e){return rn(ar(e*255),0,255)}function Ts(e){return rn(ar(e/2.55)/100,0,1)}function Sf(e){return rn(ar(e*100),0,100)}const Ue={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Dc=[..."0123456789ABCDEF"],uD=e=>Dc[e&15],hD=e=>Dc[(e&240)>>4]+Dc[e&15],Fr=e=>(e&240)>>4===(e&15),fD=e=>Fr(e.r)&&Fr(e.g)&&Fr(e.b)&&Fr(e.a);function pD(e){var t=e.length,s;return e[0]==="#"&&(t===4||t===5?s={r:255&Ue[e[1]]*17,g:255&Ue[e[2]]*17,b:255&Ue[e[3]]*17,a:t===5?Ue[e[4]]*17:255}:(t===7||t===9)&&(s={r:Ue[e[1]]<<4|Ue[e[2]],g:Ue[e[3]]<<4|Ue[e[4]],b:Ue[e[5]]<<4|Ue[e[6]],a:t===9?Ue[e[7]]<<4|Ue[e[8]]:255})),s}const gD=(e,t)=>e<255?t(e):"";function mD(e){var t=fD(e)?uD:hD;return e?"#"+t(e.r)+t(e.g)+t(e.b)+gD(e.a,t):void 0}const _D=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function A_(e,t,s){const n=t*Math.min(s,1-s),i=(o,r=(o+e/30)%12)=>s-n*Math.max(Math.min(r-3,9-r,1),-1);return[i(0),i(8),i(4)]}function bD(e,t,s){const n=(i,o=(i+e/60)%6)=>s-s*t*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function vD(e,t,s){const n=A_(e,1,.5);let i;for(t+s>1&&(i=1/(t+s),t*=i,s*=i),i=0;i<3;i++)n[i]*=1-t-s,n[i]+=t;return n}function yD(e,t,s,n,i){return e===i?(t-s)/n+(t.5?d/(2-o-r):d/(o+r),l=yD(s,n,i,d,o),l=l*60+.5),[l|0,c||0,a]}function Gd(e,t,s,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,s,n)).map(fn)}function Xd(e,t,s){return Gd(A_,e,t,s)}function xD(e,t,s){return Gd(vD,e,t,s)}function wD(e,t,s){return Gd(bD,e,t,s)}function C_(e){return(e%360+360)%360}function ED(e){const t=_D.exec(e);let s=255,n;if(!t)return;t[5]!==n&&(s=t[6]?mo(+t[5]):fn(+t[5]));const i=C_(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?n=xD(i,o,r):t[1]==="hsv"?n=wD(i,o,r):n=Xd(i,o,r),{r:n[0],g:n[1],b:n[2],a:s}}function SD(e,t){var s=qd(e);s[0]=C_(s[0]+t),s=Xd(s),e.r=s[0],e.g=s[1],e.b=s[2]}function AD(e){if(!e)return;const t=qd(e),s=t[0],n=Sf(t[1]),i=Sf(t[2]);return e.a<255?`hsla(${s}, ${n}%, ${i}%, ${Ts(e.a)})`:`hsl(${s}, ${n}%, ${i}%)`}const Af={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Cf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function CD(){const e={},t=Object.keys(Cf),s=Object.keys(Af);let n,i,o,r,a;for(n=0;n>16&255,o>>8&255,o&255]}return e}let Br;function $D(e){Br||(Br=CD(),Br.transparent=[0,0,0,0]);const t=Br[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const PD=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function kD(e){const t=PD.exec(e);let s=255,n,i,o;if(t){if(t[7]!==n){const r=+t[7];s=t[8]?mo(r):rn(r*255,0,255)}return n=+t[1],i=+t[3],o=+t[5],n=255&(t[2]?mo(n):rn(n,0,255)),i=255&(t[4]?mo(i):rn(i,0,255)),o=255&(t[6]?mo(o):rn(o,0,255)),{r:n,g:i,b:o,a:s}}}function TD(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ts(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Gl=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,pi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function MD(e,t,s){const n=pi(Ts(e.r)),i=pi(Ts(e.g)),o=pi(Ts(e.b));return{r:fn(Gl(n+s*(pi(Ts(t.r))-n))),g:fn(Gl(i+s*(pi(Ts(t.g))-i))),b:fn(Gl(o+s*(pi(Ts(t.b))-o))),a:e.a+s*(t.a-e.a)}}function Vr(e,t,s){if(e){let n=qd(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*s,t===0?360:1)),n=Xd(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function $_(e,t){return e&&Object.assign(t||{},e)}function $f(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=fn(e[3]))):(t=$_(e,{r:0,g:0,b:0,a:1}),t.a=fn(t.a)),t}function OD(e){return e.charAt(0)==="r"?kD(e):ED(e)}class Uo{constructor(t){if(t instanceof Uo)return t;const s=typeof t;let n;s==="object"?n=$f(t):s==="string"&&(n=pD(t)||$D(t)||OD(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=$_(this._rgb);return t&&(t.a=Ts(t.a)),t}set rgb(t){this._rgb=$f(t)}rgbString(){return this._valid?TD(this._rgb):void 0}hexString(){return this._valid?mD(this._rgb):void 0}hslString(){return this._valid?AD(this._rgb):void 0}mix(t,s){if(t){const n=this.rgb,i=t.rgb;let o;const r=s===o?.5:s,a=2*r-1,l=n.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,n.r=255&c*n.r+o*i.r+.5,n.g=255&c*n.g+o*i.g+.5,n.b=255&c*n.b+o*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(t,s){return t&&(this._rgb=MD(this._rgb,t._rgb,s)),this}clone(){return new Uo(this.rgb)}alpha(t){return this._rgb.a=fn(t),this}clearer(t){const s=this._rgb;return s.a*=1-t,this}greyscale(){const t=this._rgb,s=ar(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=s,this}opaquer(t){const s=this._rgb;return s.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Vr(this._rgb,2,t),this}darken(t){return Vr(this._rgb,2,-t),this}saturate(t){return Vr(this._rgb,1,t),this}desaturate(t){return Vr(this._rgb,1,-t),this}rotate(t){return SD(this._rgb,t),this}}/*! * Chart.js v4.4.1 * https://www.chartjs.org * (c) 2023 Chart.js Contributors * Released under the MIT License - */function xn(){}const uO=(()=>{let e=0;return()=>e++})();function Lt(e){return e===null||typeof e>"u"}function zt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function $t(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Jt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Pe(e,t){return Jt(e)?e:t}function Et(e,t){return typeof e>"u"?t:e}const dO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,b_=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ht(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Bt(e,t,n,s){let i,o,r;if(zt(e))if(o=e.length,s)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function pO(e){const t=e.split("."),n=[];let s="";for(const i of t)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function gO(e){const t=pO(e);return n=>{for(const s of t){if(s==="")break;n=n&&n[s]}return n}}function fs(e,t){return(Ef[t]||(Ef[t]=gO(t)))(e)}function Gu(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Jo=e=>typeof e<"u",ps=e=>typeof e=="function",Sf=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function mO(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const qt=Math.PI,Yt=2*qt,_O=Yt+qt,Ca=Number.POSITIVE_INFINITY,bO=qt/180,te=qt/2,Os=qt/4,Af=qt*2/3,es=Math.log10,fn=Math.sign;function Oo(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Yi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function yO(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function y_(e,t,n){let s,i,o;for(s=0,i=e.length;sl&&c=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function Qu(e,t,n){n=n||(r=>e[r]1;)o=i+s>>1,n(o)?i=o:s=o;return{lo:i,hi:s}}const $n=(e,t,n,s)=>Qu(e,n,s?i=>{const o=e[i][t];return oe[i][t]Qu(e,n,s=>e[s][t]>=n);function SO(e,t,n){let s=0,i=e.length;for(;ss&&e[i-1]>n;)i--;return s>0||i{const s="_onData"+Gu(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function Pf(e,t){const n=e._chartjs;if(!n)return;const s=n.listeners,i=s.indexOf(t);i!==-1&&s.splice(i,1),!(s.length>0)&&(w_.forEach(o=>{delete e[o]}),delete e._chartjs)}function E_(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const S_=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function A_(e,t){let n=[],s=!1;return function(...i){n=i,s||(s=!0,S_.call(window,()=>{s=!1,e.apply(t,n)}))}}function CO(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}const Ju=e=>e==="start"?"left":e==="end"?"right":"center",fe=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,TO=(e,t,n,s)=>e===(s?"left":"right")?n:e==="center"?(t+n)/2:t;function C_(e,t,n){const s=t.length;let i=0,o=s;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:u,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(i=le(Math.min($n(a,l,c).lo,n?s:$n(t,l,r.getPixelForValue(c)).lo),0,s-1)),f?o=le(Math.max($n(a,r.axis,u,!0).hi+1,n?0:$n(t,l,r.getPixelForValue(u),!0).hi+1),i,s)-i:o=s-i}return{start:i,count:o}}function T_(e){const{xScale:t,yScale:n,_scaleRanges:s}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!s)return e._scaleRanges=i,!0;const o=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,i),o}const Ur=e=>e===0||e===1,kf=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Yt/n)),$f=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Yt/n)+1,Do={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*te)+1,easeOutSine:e=>Math.sin(e*te),easeInOutSine:e=>-.5*(Math.cos(qt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ur(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ur(e)?e:kf(e,.075,.3),easeOutElastic:e=>Ur(e)?e:$f(e,.075,.3),easeInOutElastic(e){return Ur(e)?e:e<.5?.5*kf(e*2,.1125,.45):.5+.5*$f(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Do.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Do.easeInBounce(e*2)*.5:Do.easeOutBounce(e*2-1)*.5+.5};function Zu(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Mf(e){return Zu(e)?e:new Xo(e)}function ql(e){return Zu(e)?e:new Xo(e).saturate(.5).darken(.1).hexString()}const PO=["x","y","borderWidth","radius","tension"],kO=["color","borderColor","backgroundColor"];function $O(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:kO},numbers:{type:"number",properties:PO}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function MO(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Of=new Map;function OO(e,t){t=t||{};const n=e+JSON.stringify(t);let s=Of.get(n);return s||(s=new Intl.NumberFormat(e,t),Of.set(n,s)),s}function dr(e,t,n){return OO(t,n).format(e)}const P_={values(e){return zt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const s=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=DO(e,n)}const r=es(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),dr(e,s,l)},logarithmic(e,t,n){if(e===0)return"0";const s=n[t].significand||e/Math.pow(10,Math.floor(es(e)));return[1,2,3,5,10,15].includes(s)||t>.8*n.length?P_.numeric.call(this,e,t,n):""}};function DO(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ul={formatters:P_};function IO(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ul.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Qs=Object.create(null),Ic=Object.create(null);function Io(e,t){if(!t)return e;const n=t.split(".");for(let s=0,i=n.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,i)=>ql(i.backgroundColor),this.hoverBorderColor=(s,i)=>ql(i.borderColor),this.hoverColor=(s,i)=>ql(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Gl(this,t,n)}get(t){return Io(this,t)}describe(t,n){return Gl(Ic,t,n)}override(t,n){return Gl(Qs,t,n)}route(t,n,s,i){const o=Io(this,t),r=Io(this,s),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[i];return $t(l)?Object.assign({},c,l):Et(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Zt=new LO({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[$O,MO,IO]);function RO(e){return!e||Lt(e.size)||Lt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ta(e,t,n,s,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>s&&(s=o),s}function NO(e,t,n,s){s=s||{};let i=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(i=s.data={},o=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let r=0;const a=n.length;let l,c,u,d,f;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function Mn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,VO(e,o),l=0;l+e||0;function td(e,t){const n={},s=$t(t),i=s?Object.keys(t):t,o=$t(e)?s?r=>Et(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of i)n[r]=KO(o(r));return n}function $_(e){return td(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ks(e){return td(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ge(e){const t=$_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function oe(e,t){e=e||{},t=t||Zt.font;let n=Et(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=Et(e.style,t.style);s&&!(""+s).match(zO)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const i={family:Et(e.family,t.family),lineHeight:UO(Et(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:Et(e.weight,t.weight),string:""};return i.string=RO(i),i}function yo(e,t,n,s){let i=!0,o,r,a;for(o=0,r=e.length;on&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(i,o)}}function bs(e,t){return Object.assign(Object.create(e),t)}function ed(e,t=[""],n,s,i=()=>e[0]){const o=n||e;typeof s>"u"&&(s=I_("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:i,override:a=>ed([a,...e],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return O_(a,l,()=>eD(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Lf(a).includes(l)},ownKeys(a){return Lf(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function qi(e,t,n,s){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:M_(e,s),setContext:o=>qi(e,o,n,s),override:o=>qi(e.override(o),t,n,s)};return new Proxy(i,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return O_(o,r,()=>GO(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function M_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:s,isScriptable:ps(n)?n:()=>n,isIndexable:ps(s)?s:()=>s}}const qO=(e,t)=>e?e+Gu(t):t,nd=(e,t)=>$t(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function O_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const s=n();return e[t]=s,s}function GO(e,t,n){const{_proxy:s,_context:i,_subProxy:o,_descriptors:r}=e;let a=s[t];return ps(a)&&r.isScriptable(t)&&(a=XO(t,a,e,n)),zt(a)&&a.length&&(a=QO(t,a,e,r.isIndexable)),nd(t,a)&&(a=qi(a,i,o&&o[t],r)),a}function XO(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||s);return a.delete(e),nd(e,l)&&(l=sd(i._scopes,i,e,l)),l}function QO(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&s(e))return t[o.index%t.length];if($t(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=sd(c,i,e,u);t.push(qi(d,o,r&&r[e],a))}}return t}function D_(e,t,n){return ps(e)?e(t,n):e}const JO=(e,t)=>e===!0?t:typeof e=="string"?fs(t,e):void 0;function ZO(e,t,n,s,i){for(const o of t){const r=JO(n,o);if(r){e.add(r);const a=D_(r._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==s)return a}else if(r===!1&&typeof s<"u"&&n!==s)return null}return!1}function sd(e,t,n,s){const i=t._rootScopes,o=D_(t._fallback,n,s),r=[...e,...i],a=new Set;a.add(s);let l=If(a,r,n,o||n,s);return l===null||typeof o<"u"&&o!==n&&(l=If(a,r,o,l,s),l===null)?!1:ed(Array.from(a),[""],i,o,()=>tD(t,n,s))}function If(e,t,n,s,i){for(;n;)n=ZO(e,t,n,s,i);return n}function tD(e,t,n){const s=e._getTarget();t in s||(s[t]={});const i=s[t];return zt(i)&&$t(n)?n:i||{}}function eD(e,t,n,s){let i;for(const o of t)if(i=I_(qO(o,e),n),typeof i<"u")return nd(e,i)?sd(n,s,e,i):i}function I_(e,t){for(const n of t){if(!n)continue;const s=n[e];if(typeof s<"u")return s}}function Lf(e){let t=e._keys;return t||(t=e._keys=nD(e._scopes)),t}function nD(e){const t=new Set;for(const n of e)for(const s of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(s);return Array.from(t)}function L_(e,t,n,s){const{iScale:i}=e,{key:o="r"}=this._parsing,r=new Array(s);let a,l,c,u;for(a=0,l=s;ate==="x"?"y":"x";function iD(e,t,n,s){const i=e.skip?t:e,o=t,r=n.skip?t:n,a=Dc(o,i),l=Dc(r,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=s*c,f=s*u;return{previous:{x:o.x-d*(r.x-i.x),y:o.y-d*(r.y-i.y)},next:{x:o.x+f*(r.x-i.x),y:o.y+f*(r.y-i.y)}}}function oD(e,t,n){const s=e.length;let i,o,r,a,l,c=Gi(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")aD(e,i);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function uD(e,t){return fl(e).getPropertyValue(t)}const dD=["top","right","bottom","left"];function Ys(e,t,n){const s={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=dD[i];s[o]=parseFloat(e[t+"-"+o+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const hD=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function fD(e,t){const n=e.touches,s=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=s;let r=!1,a,l;if(hD(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Rs(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:s}=t,i=fl(n),o=i.boxSizing==="border-box",r=Ys(i,"padding"),a=Ys(i,"border","width"),{x:l,y:c,box:u}=fD(e,n),d=r.left+(u&&a.left),f=r.top+(u&&a.top);let{width:p,height:m}=t;return o&&(p-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/p*n.width/s),y:Math.round((c-f)/m*n.height/s)}}function pD(e,t,n){let s,i;if(t===void 0||n===void 0){const o=od(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=fl(o),l=Ys(a,"border","width"),c=Ys(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,s=Pa(a.maxWidth,o,"clientWidth"),i=Pa(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:s||Ca,maxHeight:i||Ca}}const Yr=e=>Math.round(e*10)/10;function gD(e,t,n,s){const i=fl(e),o=Ys(i,"margin"),r=Pa(i.maxWidth,e,"clientWidth")||Ca,a=Pa(i.maxHeight,e,"clientHeight")||Ca,l=pD(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=Ys(i,"border","width"),p=Ys(i,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,s?c/s:u-o.height),c=Yr(Math.min(c,r,l.maxWidth)),u=Yr(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Yr(c/2)),(t!==void 0||n!==void 0)&&s&&l.height&&u>l.height&&(u=l.height,c=Yr(Math.floor(u*s))),{width:c,height:u}}function Rf(e,t,n){const s=t||1,i=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==i||r.width!==o?(e.currentDevicePixelRatio=s,r.height=i,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const mD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};id()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Nf(e,t){const n=uD(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Ns(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function _D(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:s==="middle"?n<.5?e.y:t.y:s==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function bD(e,t,n,s){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=Ns(e,i,n),a=Ns(i,o,n),l=Ns(o,t,n),c=Ns(r,a,n),u=Ns(a,l,n);return Ns(c,u,n)}const vD=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},yD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ci(e,t,n){return e?vD(t,n):yD()}function N_(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function F_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function B_(e){return e==="angle"?{between:Zo,compare:xO,normalize:$e}:{between:kn,compare:(t,n)=>t-n,normalize:t=>t}}function Ff({start:e,end:t,count:n,loop:s,style:i}){return{start:e%n,end:t%n,loop:s&&(t-e+1)%n===0,style:i}}function xD(e,t,n){const{property:s,start:i,end:o}=n,{between:r,normalize:a}=B_(s),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;fl(i,P,x)&&a(i,P)!==0,y=()=>a(o,x)===0||l(o,P,x),E=()=>_||A(),C=()=>!_||y();for(let w=u,$=u;w<=d;++w)S=t[w%r],!S.skip&&(x=c(S[s]),x!==P&&(_=l(x,i,o),v===null&&E()&&(v=a(x,i)===0?w:$),v!==null&&C()&&(m.push(Ff({start:v,end:w,loop:f,count:r,style:p})),v=null),$=w,P=x));return v!==null&&m.push(Ff({start:v,end:d,loop:f,count:r,style:p})),m}function H_(e,t){const n=[],s=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function ED(e,t,n,s){const i=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(s=!1,o.push({start:t%i,end:(l-1)%i,loop:s}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%i,end:r%i,loop:s}),o}function SD(e,t){const n=e.points,s=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:r,end:a}=wD(n,i,o,s);if(s===!0)return Bf(e,[{start:r,end:a,loop:o}],n,t);const l=a{let e=0;return()=>e++})();function Ft(e){return e===null||typeof e>"u"}function qt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function It(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Qt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Oe(e,t){return Qt(e)?e:t}function St(e,t){return typeof e>"u"?t:e}const ID=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,P_=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Kt(e,t,s){if(e&&typeof e.call=="function")return e.apply(s,t)}function zt(e,t,s,n){let i,o,r;if(qt(e))if(o=e.length,n)for(i=o-1;i>=0;i--)t.call(s,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function ND(e){const t=e.split("."),s=[];let n="";for(const i of t)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(s.push(n),n="");return s}function FD(e){const t=ND(e);return s=>{for(const n of t){if(n==="")break;s=s&&s[n]}return s}}function _n(e,t){return(Pf[t]||(Pf[t]=FD(t)))(e)}function Jd(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Yo=e=>typeof e<"u",bn=e=>typeof e=="function",kf=(e,t)=>{if(e.size!==t.size)return!1;for(const s of e)if(!t.has(s))return!1;return!0};function BD(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Xt=Math.PI,Gt=2*Xt,VD=Gt+Xt,Ta=Number.POSITIVE_INFINITY,HD=Xt/180,te=Xt/2,Rn=Xt/4,Tf=Xt*2/3,an=Math.log10,_s=Math.sign;function Oo(e,t,s){return Math.abs(e-t)i-o).pop(),t}function zi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function WD(e,t){const s=Math.round(e);return s-t<=e&&s+t>=e}function T_(e,t,s){let n,i,o;for(n=0,i=e.length;nl&&c=Math.min(t,s)-n&&e<=Math.max(t,s)+n}function Zd(e,t,s){s=s||(r=>e[r]1;)o=i+n>>1,s(o)?i=o:n=o;return{lo:i,hi:n}}const Ds=(e,t,s,n)=>Zd(e,s,n?i=>{const o=e[i][t];return oe[i][t]Zd(e,s,n=>e[n][t]>=s);function YD(e,t,s){let n=0,i=e.length;for(;nn&&e[i-1]>s;)i--;return n>0||i{const n="_onData"+Jd(s),i=e[s];Object.defineProperty(e,s,{configurable:!0,enumerable:!1,value(...o){const r=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...o)}),r}})})}function Df(e,t){const s=e._chartjs;if(!s)return;const n=s.listeners,i=n.indexOf(t);i!==-1&&n.splice(i,1),!(n.length>0)&&(O_.forEach(o=>{delete e[o]}),delete e._chartjs)}function D_(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const I_=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function L_(e,t){let s=[],n=!1;return function(...i){s=i,n||(n=!0,I_.call(window,()=>{n=!1,e.apply(t,s)}))}}function GD(e,t){let s;return function(...n){return t?(clearTimeout(s),s=setTimeout(e,t,n)):e.apply(this,n),t}}const tu=e=>e==="start"?"left":e==="end"?"right":"center",ge=(e,t,s)=>e==="start"?t:e==="end"?s:(t+s)/2,XD=(e,t,s,n)=>e===(n?"left":"right")?s:e==="center"?(t+s)/2:t;function R_(e,t,s){const n=t.length;let i=0,o=n;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:d,minDefined:u,maxDefined:f}=r.getUserBounds();u&&(i=de(Math.min(Ds(a,l,c).lo,s?n:Ds(t,l,r.getPixelForValue(c)).lo),0,n-1)),f?o=de(Math.max(Ds(a,r.axis,d,!0).hi+1,s?0:Ds(t,l,r.getPixelForValue(d),!0).hi+1),i,n)-i:o=n-i}return{start:i,count:o}}function N_(e){const{xScale:t,yScale:s,_scaleRanges:n}=e,i={xmin:t.min,xmax:t.max,ymin:s.min,ymax:s.max};if(!n)return e._scaleRanges=i,!0;const o=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==s.min||n.ymax!==s.max;return Object.assign(n,i),o}const Hr=e=>e===0||e===1,If=(e,t,s)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Gt/s)),Lf=(e,t,s)=>Math.pow(2,-10*e)*Math.sin((e-t)*Gt/s)+1,Do={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*te)+1,easeOutSine:e=>Math.sin(e*te),easeInOutSine:e=>-.5*(Math.cos(Xt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Hr(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Hr(e)?e:If(e,.075,.3),easeOutElastic:e=>Hr(e)?e:Lf(e,.075,.3),easeInOutElastic(e){return Hr(e)?e:e<.5?.5*If(e*2,.1125,.45):.5+.5*Lf(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Do.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Do.easeInBounce(e*2)*.5:Do.easeOutBounce(e*2-1)*.5+.5};function eu(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Rf(e){return eu(e)?e:new Uo(e)}function Xl(e){return eu(e)?e:new Uo(e).saturate(.5).darken(.1).hexString()}const JD=["x","y","borderWidth","radius","tension"],QD=["color","borderColor","backgroundColor"];function ZD(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:QD},numbers:{type:"number",properties:JD}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function tI(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Nf=new Map;function eI(e,t){t=t||{};const s=e+JSON.stringify(t);let n=Nf.get(s);return n||(n=new Intl.NumberFormat(e,t),Nf.set(s,n)),n}function lr(e,t,s){return eI(t,s).format(e)}const F_={values(e){return qt(e)?e:""+e},numeric(e,t,s){if(e===0)return"0";const n=this.chart.options.locale;let i,o=e;if(s.length>1){const c=Math.max(Math.abs(s[0].value),Math.abs(s[s.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=sI(e,s)}const r=an(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),lr(e,n,l)},logarithmic(e,t,s){if(e===0)return"0";const n=s[t].significand||e/Math.pow(10,Math.floor(an(e)));return[1,2,3,5,10,15].includes(n)||t>.8*s.length?F_.numeric.call(this,e,t,s):""}};function sI(e,t){let s=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(s)>=1&&e!==Math.floor(e)&&(s=e-Math.floor(e)),s}var cl={formatters:F_};function nI(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,s)=>s.lineWidth,tickColor:(t,s)=>s.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:cl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ti=Object.create(null),Lc=Object.create(null);function Io(e,t){if(!t)return e;const s=t.split(".");for(let n=0,i=s.length;nn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>Xl(i.backgroundColor),this.hoverBorderColor=(n,i)=>Xl(i.borderColor),this.hoverColor=(n,i)=>Xl(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(s)}set(t,s){return Jl(this,t,s)}get(t){return Io(this,t)}describe(t,s){return Jl(Lc,t,s)}override(t,s){return Jl(ti,t,s)}route(t,s,n,i){const o=Io(this,t),r=Io(this,n),a="_"+s;Object.defineProperties(o,{[a]:{value:o[s],writable:!0},[s]:{enumerable:!0,get(){const l=this[a],c=r[i];return It(l)?Object.assign({},c,l):St(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(s=>s(this))}}var Zt=new iI({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[ZD,tI,nI]);function oI(e){return!e||Ft(e.size)||Ft(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ma(e,t,s,n,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,s.push(i)),o>n&&(n=o),n}function rI(e,t,s,n){n=n||{};let i=n.data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(i=n.data={},o=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let r=0;const a=s.length;let l,c,d,u,f;for(l=0;ls.length){for(l=0;l0&&e.stroke()}}function Is(e,t,s){return s=s||.5,!t||e&&e.x>t.left-s&&e.xt.top-s&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,cI(e,o),l=0;l+e||0;function su(e,t){const s={},n=It(t),i=n?Object.keys(t):t,o=It(e)?n?r=>St(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of i)s[r]=gI(o(r));return s}function V_(e){return su(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Gn(e){return su(e,["topLeft","topRight","bottomLeft","bottomRight"])}function be(e){const t=V_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function re(e,t){e=e||{},t=t||Zt.font;let s=St(e.size,t.size);typeof s=="string"&&(s=parseInt(s,10));let n=St(e.style,t.style);n&&!(""+n).match(fI)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:St(e.family,t.family),lineHeight:pI(St(e.lineHeight,t.lineHeight),s),size:s,style:n,weight:St(e.weight,t.weight),string:""};return i.string=oI(i),i}function _o(e,t,s,n){let i=!0,o,r,a;for(o=0,r=e.length;os&&a===0?0:a+l;return{min:r(n,-Math.abs(o)),max:r(i,o)}}function En(e,t){return Object.assign(Object.create(e),t)}function nu(e,t=[""],s,n,i=()=>e[0]){const o=s||e;typeof n>"u"&&(n=z_("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:n,_getTarget:i,override:a=>nu([a,...e],t,o,n)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return j_(a,l,()=>SI(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Vf(a).includes(l)},ownKeys(a){return Vf(a)},set(a,l,c){const d=a._storage||(a._storage=i());return a[l]=d[l]=c,delete a._keys,!0}})}function Ui(e,t,s,n){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:s,_stack:new Set,_descriptors:H_(e,n),setContext:o=>Ui(e,o,s,n),override:o=>Ui(e.override(o),t,s,n)};return new Proxy(i,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return j_(o,r,()=>bI(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function H_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:s=t.scriptable,_indexable:n=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:s,indexable:n,isScriptable:bn(s)?s:()=>s,isIndexable:bn(n)?n:()=>n}}const _I=(e,t)=>e?e+Jd(t):t,iu=(e,t)=>It(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function j_(e,t,s){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const n=s();return e[t]=n,n}function bI(e,t,s){const{_proxy:n,_context:i,_subProxy:o,_descriptors:r}=e;let a=n[t];return bn(a)&&r.isScriptable(t)&&(a=vI(t,a,e,s)),qt(a)&&a.length&&(a=yI(t,a,e,r.isIndexable)),iu(t,a)&&(a=Ui(a,i,o&&o[t],r)),a}function vI(e,t,s,n){const{_proxy:i,_context:o,_subProxy:r,_stack:a}=s;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||n);return a.delete(e),iu(e,l)&&(l=ou(i._scopes,i,e,l)),l}function yI(e,t,s,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=s;if(typeof o.index<"u"&&n(e))return t[o.index%t.length];if(It(t[0])){const l=t,c=i._scopes.filter(d=>d!==l);t=[];for(const d of l){const u=ou(c,i,e,d);t.push(Ui(u,o,r&&r[e],a))}}return t}function W_(e,t,s){return bn(e)?e(t,s):e}const xI=(e,t)=>e===!0?t:typeof e=="string"?_n(t,e):void 0;function wI(e,t,s,n,i){for(const o of t){const r=xI(s,o);if(r){e.add(r);const a=W_(r._fallback,s,i);if(typeof a<"u"&&a!==s&&a!==n)return a}else if(r===!1&&typeof n<"u"&&s!==n)return null}return!1}function ou(e,t,s,n){const i=t._rootScopes,o=W_(t._fallback,s,n),r=[...e,...i],a=new Set;a.add(n);let l=Bf(a,r,s,o||s,n);return l===null||typeof o<"u"&&o!==s&&(l=Bf(a,r,o,l,n),l===null)?!1:nu(Array.from(a),[""],i,o,()=>EI(t,s,n))}function Bf(e,t,s,n,i){for(;s;)s=wI(e,t,s,n,i);return s}function EI(e,t,s){const n=e._getTarget();t in n||(n[t]={});const i=n[t];return qt(i)&&It(s)?s:i||{}}function SI(e,t,s,n){let i;for(const o of t)if(i=z_(_I(o,e),s),typeof i<"u")return iu(e,i)?ou(s,n,e,i):i}function z_(e,t){for(const s of t){if(!s)continue;const n=s[e];if(typeof n<"u")return n}}function Vf(e){let t=e._keys;return t||(t=e._keys=AI(e._scopes)),t}function AI(e){const t=new Set;for(const s of e)for(const n of Object.keys(s).filter(i=>!i.startsWith("_")))t.add(n);return Array.from(t)}function U_(e,t,s,n){const{iScale:i}=e,{key:o="r"}=this._parsing,r=new Array(n);let a,l,c,d;for(a=0,l=n;ate==="x"?"y":"x";function $I(e,t,s,n){const i=e.skip?t:e,o=t,r=s.skip?t:s,a=Ic(o,i),l=Ic(r,o);let c=a/(a+l),d=l/(a+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const u=n*c,f=n*d;return{previous:{x:o.x-u*(r.x-i.x),y:o.y-u*(r.y-i.y)},next:{x:o.x+f*(r.x-i.x),y:o.y+f*(r.y-i.y)}}}function PI(e,t,s){const n=e.length;let i,o,r,a,l,c=Ki(e,0);for(let d=0;d!c.skip)),t.cubicInterpolationMode==="monotone")TI(e,i);else{let c=n?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function DI(e,t){return hl(e).getPropertyValue(t)}const II=["top","right","bottom","left"];function Xn(e,t,s){const n={};s=s?"-"+s:"";for(let i=0;i<4;i++){const o=II[i];n[o]=parseFloat(e[t+"-"+o+s])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const LI=(e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot);function RI(e,t){const s=e.touches,n=s&&s.length?s[0]:e,{offsetX:i,offsetY:o}=n;let r=!1,a,l;if(LI(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Vn(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:n}=t,i=hl(s),o=i.boxSizing==="border-box",r=Xn(i,"padding"),a=Xn(i,"border","width"),{x:l,y:c,box:d}=RI(e,s),u=r.left+(d&&a.left),f=r.top+(d&&a.top);let{width:g,height:m}=t;return o&&(g-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-u)/g*s.width/n),y:Math.round((c-f)/m*s.height/n)}}function NI(e,t,s){let n,i;if(t===void 0||s===void 0){const o=au(e);if(!o)t=e.clientWidth,s=e.clientHeight;else{const r=o.getBoundingClientRect(),a=hl(o),l=Xn(a,"border","width"),c=Xn(a,"padding");t=r.width-c.width-l.width,s=r.height-c.height-l.height,n=Oa(a.maxWidth,o,"clientWidth"),i=Oa(a.maxHeight,o,"clientHeight")}}return{width:t,height:s,maxWidth:n||Ta,maxHeight:i||Ta}}const Wr=e=>Math.round(e*10)/10;function FI(e,t,s,n){const i=hl(e),o=Xn(i,"margin"),r=Oa(i.maxWidth,e,"clientWidth")||Ta,a=Oa(i.maxHeight,e,"clientHeight")||Ta,l=NI(e,t,s);let{width:c,height:d}=l;if(i.boxSizing==="content-box"){const f=Xn(i,"border","width"),g=Xn(i,"padding");c-=g.width+f.width,d-=g.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,n?c/n:d-o.height),c=Wr(Math.min(c,r,l.maxWidth)),d=Wr(Math.min(d,a,l.maxHeight)),c&&!d&&(d=Wr(c/2)),(t!==void 0||s!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,c=Wr(Math.floor(d*n))),{width:c,height:d}}function Hf(e,t,s){const n=t||1,i=Math.floor(e.height*n),o=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(s||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||r.height!==i||r.width!==o?(e.currentDevicePixelRatio=n,r.height=i,r.width=o,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const BI=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};ru()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function jf(e,t){const s=DI(e,t),n=s&&s.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Hn(e,t,s,n){return{x:e.x+s*(t.x-e.x),y:e.y+s*(t.y-e.y)}}function VI(e,t,s,n){return{x:e.x+s*(t.x-e.x),y:n==="middle"?s<.5?e.y:t.y:n==="after"?s<1?e.y:t.y:s>0?t.y:e.y}}function HI(e,t,s,n){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=Hn(e,i,s),a=Hn(i,o,s),l=Hn(o,t,s),c=Hn(r,a,s),d=Hn(a,l,s);return Hn(c,d,s)}const jI=function(e,t){return{x(s){return e+e+t-s},setWidth(s){t=s},textAlign(s){return s==="center"?s:s==="right"?"left":"right"},xPlus(s,n){return s-n},leftForLtr(s,n){return s-n}}},WI=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ai(e,t,s){return e?jI(t,s):WI()}function Y_(e,t){let s,n;(t==="ltr"||t==="rtl")&&(s=e.canvas.style,n=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",t,"important"),e.prevTextDirection=n)}function q_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function G_(e){return e==="angle"?{between:qo,compare:zD,normalize:Ie}:{between:Os,compare:(t,s)=>t-s,normalize:t=>t}}function Wf({start:e,end:t,count:s,loop:n,style:i}){return{start:e%s,end:t%s,loop:n&&(t-e+1)%s===0,style:i}}function zI(e,t,s){const{property:n,start:i,end:o}=s,{between:r,normalize:a}=G_(n),l=t.length;let{start:c,end:d,loop:u}=e,f,g;if(u){for(c+=l,d+=l,f=0,g=l;fl(i,$,w)&&a(i,$)!==0,y=()=>a(o,w)===0||l(o,$,w),x=()=>b||T(),C=()=>!b||y();for(let S=d,P=d;S<=u;++S)E=t[S%r],!E.skip&&(w=c(E[n]),w!==$&&(b=l(w,i,o),v===null&&x()&&(v=a(w,i)===0?S:P),v!==null&&C()&&(m.push(Wf({start:v,end:S,loop:f,count:r,style:g})),v=null),P=S,$=w));return v!==null&&m.push(Wf({start:v,end:u,loop:f,count:r,style:g})),m}function J_(e,t){const s=[],n=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function KI(e,t,s,n){const i=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=s;++l){const c=e[l%i];c.skip||c.stop?a.skip||(n=!1,o.push({start:t%i,end:(l-1)%i,loop:n}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%i,end:r%i,loop:n}),o}function YI(e,t){const s=e.points,n=e.options.spanGaps,i=s.length;if(!i)return[];const o=!!e._loop,{start:r,end:a}=UI(s,i,o,n);if(n===!0)return zf(e,[{start:r,end:a,loop:o}],s,t);const l=aa({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(s-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=S_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,s,t,"progress")),o.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const s=n.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var En=new TD;const Hf="transparent",PD={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const s=Mf(e||Hf),i=s.valid&&Mf(t||Hf);return i&&i.valid?i.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class kD{constructor(t,n,s,i){const o=n[s];i=yo([t.to,i,o,t.from]);const r=yo([t.from,o,i]);this._active=!0,this._fn=t.fn||PD[t.type||typeof r],this._easing=Do[t.easing]||Do.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);const i=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=yo([t.to,n,i,t.from]),this._from=yo([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,s=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s})})}_notify(t){const n=t?"res":"rej",s=this._promises||[];for(let i=0;i{const o=t[i];if(!$t(o))return;const r={};for(const a of n)r[a]=o[a];(zt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,n){const s=n.options,i=MD(t,s);if(!i)return[];const o=this._createAnimations(i,s);return s.$shared&&$D(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,n){const s=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=s.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new kD(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const s=this._createAnimations(t,n);if(s.length)return En.add(this._chart,s),!0}}function $D(e,t){const n=[],s=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function Kf(e,t){const{chart:n,_cachedMeta:s}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,u=LD(o,r,s),d=t.length;let f;for(let p=0;pn[s].axis===t).shift()}function FD(e,t){return bs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function BD(e,t,n){return bs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ho(e,t){const n=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[s]===void 0||o[s][n]===void 0)return;delete o[s][n],o[s]._visualValues!==void 0&&o[s]._visualValues[n]!==void 0&&delete o[s]._visualValues[n]}}}const Ql=e=>e==="reset"||e==="none",Yf=(e,t)=>t?e:Object.assign({},e),VD=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:W_(n,!0),values:null};class en{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=zf(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ho(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(d,f,p,m)=>d==="x"?f:d==="r"?m:p,o=n.xAxisID=Et(s.xAxisID,Xl(t,"x")),r=n.yAxisID=Et(s.yAxisID,Xl(t,"y")),a=n.rAxisID=Et(s.rAxisID,Xl(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,r,a),u=n.vAxisID=i(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Pf(this._data,this),t._stacked&&ho(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if($t(n))this._data=ID(n);else if(s!==n){if(s){Pf(s,this);const i=this._cachedMeta;ho(i),i._parsed=[]}n&&Object.isExtensible(n)&&AO(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=zf(n.vScale,n),n.stack!==s.stack&&(i=!0,ho(n),n.stack=s.stack),this._resyncElements(t),(i||o!==n._stacked)&&Kf(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:s,_data:i}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&n===i.length?!0:s._sorted,c=t>0&&s._parsed[t-1],u,d,f;if(this._parsing===!1)s._parsed=i,s._sorted=!0,f=i;else{zt(i[t])?f=this.parseArrayData(s,i,t,n):$t(i[t])?f=this.parseObjectData(s,i,t,n):f=this.parsePrimitiveData(s,i,t,n);const p=()=>d[a]===null||c&&d[a]_||d<_}for(f=0;f=0;--f)if(!m()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,s=[];let i,o,r;for(i=0,o=n.length;i=0&&tthis.getContext(s,i,n),_=c.resolveNamedOptions(f,p,m,d);return _.$shared&&(_.$shared=l,o[r]=Object.freeze(Yf(_,l))),_}_resolveAnimations(t,n,s){const i=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,s,n))}const c=new j_(i,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Ql(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const s=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,s),{sharedOptions:o,includeOptions:r}}updateElement(t,n,s,i){Ql(i)?Object.assign(t,s):this._resolveAnimations(n,i).update(t,s)}updateSharedOptions(t,n,s){t&&!Ql(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=s.length,o=n.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;ai-o))}return e._cache.$bar}function jD(e){const t=e.iScale,n=HD(t,e.type);let s=t._length,i,o,r,a;const l=()=>{r===32767||r===-32768||(Jo(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:r,max:a}}function z_(e,t,n,s){return zt(e)?UD(e,t,n,s):t[n.axis]=n.parse(e,s),t}function qf(e,t,n,s){const i=e.iScale,o=e.vScale,r=i.getLabels(),a=i===o,l=[];let c,u,d,f;for(c=n,u=n+s;c=n?1:-1)}function YD(e){let t,n,s,i,o;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.basel.controller.options.grouped),o=s.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(Lt(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){const i=this._getStacks(t,s),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,s=n.iScale,i=[];let o,r;for(o=0,r=n.data.length;o=0;--s)n=Math.max(n,t[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:o}=n,r=this.getParsed(t),a=i.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:s[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=r.axis,d=a.axis;for(let f=n;fZo(P,a,l,!0)?1:Math.max(A,A*n,y,y*n),m=(P,A,y)=>Zo(P,a,l,!0)?-1:Math.min(A,A*n,y,y*n),_=p(0,c,d),v=p(te,u,f),x=m(qt,c,d),S=m(qt+te,u,f);s=(_-x)/2,i=(v-S)/2,o=-(_+x)/2,r=-(v+S)/2}return{ratioX:s,ratioY:i,offsetX:o,offsetY:r}}class Vs extends en{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const s=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=s;else{let o=l=>+s[l];if($t(s[t])){const{key:l="value"}=this._parsing;o=c=>+fs(s[c],l)}let r,a;for(r=t,a=t+n;r0&&!isNaN(t)?Yt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=dr(n._parsed[t],s.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const s=this.chart;let i,o,r,a,l;if(!t){for(i=0,o=s.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),it(Vs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}});class Pi extends en{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:s,data:i=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=C_(n,i,r);this._drawStart=a,this._drawCount=l,T_(n)&&(a=0,l=i.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=r.axis,p=a.axis,{spanGaps:m,segment:_}=this.options,v=Yi(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none",S=n+s,P=t.length;let A=n>0&&this.getParsed(n-1);for(let y=0;y=S){C.skip=!0;continue}const w=this.getParsed(y),$=Lt(w[p]),D=C[f]=r.getPixelForValue(w[f],y),I=C[p]=o||$?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,w,l):w[p],y);C.skip=isNaN(D)||isNaN(I)||$,C.stop=y>0&&Math.abs(w[f]-A[f])>v,_&&(C.parsed=w,C.raw=c.data[y]),d&&(C.options=u||this.resolveDataElementOptions(y,E.active?"active":i)),x||this.updateElement(E,y,C,i),A=w}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return s;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}it(Pi,"id","line"),it(Pi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),it(Pi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ro extends en{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=dr(n._parsed[t].r,s.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,s,i){return L_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,s=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),r=Math.max(s.cutoutPercentage?o/100*s.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,s,i){const o=i==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*qt;let p=f,m;const _=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,s){return this.chart.getDataVisibility(t)?tn(this.resolveDataElementOptions(t,n).angle||s):0}}it(Ro,"id","polarArea"),it(Ro,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),it(Ro,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ka extends Vs{}it(ka,"id","pie"),it(ka,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class No extends en{getLabelAndValue(t){const n=this._cachedMeta.vScale,s=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(s[n.axis])}}parseObjectData(t,n,s,i){return L_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta,s=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(s.points=i,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:r};this.updateElement(s,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,s,i){const o=this._cachedMeta.rScale,r=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let A=n;A0&&Math.abs(E[p]-P[p])>x,v&&(C.parsed=E,C.raw=c.data[A]),f&&(C.options=d||this.resolveDataElementOptions(A,y.active?"active":i)),S||this.updateElement(y,A,C,i),P=E}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const s=t.dataset,i=s.options&&s.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,r)/2}}it(Fo,"id","scatter"),it(Fo,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),it(Fo,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function Is(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class rd{constructor(t){it(this,"options");this.options=t||{}}static override(t){Object.assign(rd.prototype,t)}init(){}formats(){return Is()}parse(){return Is()}format(){return Is()}add(){return Is()}diff(){return Is()}startOf(){return Is()}endOf(){return Is()}}var JD={_date:rd};function ZD(e,t,n,s){const{controller:i,data:o,_sorted:r}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?EO:$n;if(s){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),f=l(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function hr(e,t,n,s,i){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a{l[r](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,i))}),s&&!a?[]:o}var sI={evaluateInteractionItems:hr,modes:{index(e,t,n,s){const i=Rs(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Zl(e,i,o,s,r):tc(e,i,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,s){const i=Rs(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Zl(e,i,o,s,r):tc(e,i,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===t)}function Jf(e,t){return e.filter(n=>U_.indexOf(n.pos)===-1&&n.box.axis===t)}function po(e,t){return e.sort((n,s)=>{const i=t?s:n,o=t?n:s;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function iI(e){const t=[];let n,s,i,o,r,a;for(n=0,s=(e||[]).length;nc.box.fullSize),!0),s=po(fo(t,"left"),!0),i=po(fo(t,"right")),o=po(fo(t,"top"),!0),r=po(fo(t,"bottom")),a=Jf(t,"x"),l=Jf(t,"y");return{fullSize:n,leftAndTop:s.concat(o),rightAndBottom:i.concat(l).concat(r).concat(a),chartArea:fo(t,"chartArea"),vertical:s.concat(i).concat(l),horizontal:o.concat(r).concat(a)}}function Zf(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function K_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function lI(e,t,n,s){const{pos:i,box:o}=n,r=e.maxPadding;if(!$t(i)){n.size&&(e[i]-=n.size);const d=s[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&K_(r,o.getPadding());const a=Math.max(0,t.outerWidth-Zf(r,e,"left","right")),l=Math.max(0,t.outerHeight-Zf(r,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function cI(e){const t=e.maxPadding;function n(s){const i=Math.max(t[s]-e[s],0);return e[s]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function uI(e,t){const n=t.maxPadding;function s(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return s(e?["left","right"]:["top","bottom"])}function xo(e,t,n,s){const i=[];let o,r,a,l,c,u;for(o=0,r=e.length,c=0;o{typeof _.beforeLayout=="function"&&_.beforeLayout()});const u=l.reduce((_,v)=>v.box.options&&v.box.options.display===!1?_:_+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},i);K_(f,ge(s));const p=Object.assign({maxPadding:f,w:o,h:r,x:i.left,y:i.top},i),m=rI(l.concat(c),d);xo(a.fullSize,p,d,m),xo(l,p,d,m),xo(c,p,d,m)&&xo(l,p,d,m),cI(p),tp(a.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,tp(a.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Bt(a.chartArea,_=>{const v=_.box;Object.assign(v,e.chartArea),v.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Y_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,i){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(t){return!0}updateConfig(t){}}class dI extends Y_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const da="$chartjs",hI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ep=e=>e===null||e==="";function fI(e,t){const n=e.style,s=e.getAttribute("height"),i=e.getAttribute("width");if(e[da]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ep(i)){const o=Nf(e,"width");o!==void 0&&(e.width=o)}if(ep(s))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Nf(e,"height");o!==void 0&&(e.height=o)}return e}const q_=mD?{passive:!0}:!1;function pI(e,t,n){e.addEventListener(t,n,q_)}function gI(e,t,n){e.canvas.removeEventListener(t,n,q_)}function mI(e,t){const n=hI[e.type]||e.type,{x:s,y:i}=Rs(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:i!==void 0?i:null}}function $a(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function _I(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||$a(a.addedNodes,s),r=r&&!$a(a.removedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function bI(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||$a(a.removedNodes,s),r=r&&!$a(a.addedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const er=new Map;let np=0;function G_(){const e=window.devicePixelRatio;e!==np&&(np=e,er.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function vI(e,t){er.size||window.addEventListener("resize",G_),er.set(e,t)}function yI(e){er.delete(e),er.size||window.removeEventListener("resize",G_)}function xI(e,t,n){const s=e.canvas,i=s&&od(s);if(!i)return;const o=A_((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return r.observe(i),vI(e,o),r}function ec(e,t,n){n&&n.disconnect(),t==="resize"&&yI(e)}function wI(e,t,n){const s=e.canvas,i=A_(o=>{e.ctx!==null&&n(mI(o,e))},e);return pI(s,t,i),i}class EI extends Y_{acquireContext(t,n){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(fI(t,n),s):null}releaseContext(t){const n=t.canvas;if(!n[da])return!1;const s=n[da].initial;["height","width"].forEach(o=>{const r=s[o];Lt(r)?n.removeAttribute(o):n.setAttribute(o,r)});const i=s.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[da],!0}addEventListener(t,n,s){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),r={attach:_I,detach:bI,resize:xI}[n]||wI;i[n]=r(t,n,s)}removeEventListener(t,n){const s=t.$proxies||(t.$proxies={}),i=s[n];if(!i)return;({attach:ec,detach:ec,resize:ec}[n]||gI)(t,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,i){return gD(t,n,s,i)}isAttached(t){const n=od(t);return!!(n&&n.isConnected)}}function SI(e){return!id()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?dI:EI}var na;let Fn=(na=class{constructor(){it(this,"x");it(this,"y");it(this,"active",!1);it(this,"options");it(this,"$animations")}tooltipPosition(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return Yi(this.x)&&Yi(this.y)}getProps(t,n){const s=this.$animations;if(!n||!s)return this;const i={};return t.forEach(o=>{i[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),i}},it(na,"defaults",{}),it(na,"defaultRoutes"),na);function AI(e,t){const n=e.options.ticks,s=CI(e),i=Math.min(n.maxTicksLimit||s,s),o=n.major.enabled?PI(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>i)return kI(t,c,o,r/i),c;const u=TI(o,t,i);if(r>0){let d,f;const p=r>1?Math.round((l-a)/(r-1)):null;for(Gr(t,c,u,Lt(p)?0:a-p,a),d=0,f=r-1;di)return l}return Math.max(i,1)}function PI(e){const t=[];let n,s;for(n=0,s=e.length;ne==="left"?"right":e==="right"?"left":e,sp=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,ip=(e,t)=>Math.min(t||e,e);function op(e,t){const n=[],s=e.length/t,i=e.length;let o=0;for(;or+a)))return l}function DI(e,t){Bt(e,n=>{const s=n.gc,i=s.length/2;let o;if(i>t){for(o=0;os?s:n,s=i&&n>s?n:s,{min:Pe(n,Pe(s,n)),max:Pe(s,Pe(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ht(this.options.beforeUpdate,[this])}update(t,n,s){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=YO(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=le(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:p/(s-1),d+6>a&&(a=p/(s-(t.offset?.5:1)),l=this.maxHeight-go(t.grid)-n.padding-rp(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Xu(Math.min(Math.asin(le((u.highest.height+6)/a,-1,1)),Math.asin(le(l/c,-1,1))-Math.asin(le(f/c,-1,1)))),r=Math.max(i,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Ht(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ht(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=rp(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=go(o)+l):(t.height=this.maxHeight,t.width=go(o)+l),s.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=s.padding*2,m=tn(this.labelRotation),_=Math.cos(m),v=Math.sin(m);if(a){const x=s.mirror?0:v*d.width+_*f.height;t.height=Math.min(this.maxHeight,t.height+x+p)}else{const x=s.mirror?0:_*d.width+v*f.height;t.width=Math.min(this.maxWidth,t.width+x+p)}this._calculatePadding(c,u,v,_)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,i){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=i*t.width,p=s*n.height):(f=s*t.height,p=i*n.width):o==="start"?p=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+r)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ht(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n({width:r[$]||0,height:a[$]||0});return{first:w(0),last:w(n-1),widest:w(E),highest:w(C),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return wO(this._alignToPixels?Ds(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/s:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,s=this.chart,i=this.options,{grid:o,position:r,border:a}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=go(o),p=[],m=a.setContext(this.getContext()),_=m.display?m.width:0,v=_/2,x=function(R){return Ds(s,R,_)};let S,P,A,y,E,C,w,$,D,I,N,Q;if(r==="top")S=x(this.bottom),C=this.bottom-f,$=S-v,I=x(t.top)+v,Q=t.bottom;else if(r==="bottom")S=x(this.top),I=t.top,Q=x(t.bottom)-v,C=S+v,$=this.top+f;else if(r==="left")S=x(this.right),E=this.right-f,w=S-v,D=x(t.left)+v,N=t.right;else if(r==="right")S=x(this.left),D=t.left,N=x(t.right)-v,E=S+v,w=this.left+f;else if(n==="x"){if(r==="center")S=x((t.top+t.bottom)/2+.5);else if($t(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}I=t.top,Q=t.bottom,C=S+v,$=C+f}else if(n==="y"){if(r==="center")S=x((t.left+t.right)/2);else if($t(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}E=S-v,w=E-f,D=t.left,N=t.right}const Y=Et(i.ticks.maxTicksLimit,d),H=Math.max(1,Math.ceil(d/Y));for(P=0;P0&&(Ct-=At/2);break}mt={left:Ct,top:Mt,width:At+pt.width,height:Pt+pt.height,color:H.backdropColor}}v.push({label:A,font:$,textOffset:N,options:{rotation:_,color:W,strokeColor:U,strokeWidth:rt,textAlign:ct,textBaseline:Q,translation:[y,E],backdrop:mt}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-tn(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:s,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,u;return n==="left"?i?(u=this.right+o,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:s,top:i,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,i,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,u)=>{!u.width||!u.color||(s.save(),s.lineWidth=u.width,s.strokeStyle=u.color,s.setLineDash(u.borderDash||[]),s.lineDashOffset=u.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(n.display)for(o=0,r=i.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let o,r;for(o=0,r=n.length;o{const s=n.split("."),i=s.pop(),o=[e].concat(s).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");Zt.route(o,i,l,a)})}function VI(e){return"id"in e&&"defaults"in e}class HI{constructor(){this.controllers=new Xr(en,"datasets",!0),this.elements=new Xr(Fn,"elements"),this.plugins=new Xr(Object,"plugins"),this.scales=new Xr(si,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,s){[...n].forEach(i=>{const o=s||this._getRegistryForType(i);s||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Bt(i,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,s){const i=Gu(t);Ht(s["before"+i],[],s),n[t](s),Ht(s["after"+i],[],s)}_getRegistryForType(t){for(let n=0;no.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,s),t,"stop"),this._notify(i(s,n),t,"start")}}function WI(e){const t={},n=[],s=Object.keys(an.plugins.items);for(let o=0;o1&&ap(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function lp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function XI(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(n.length)return lp(e,"x",n[0])||lp(e,"y",n[0])}return{}}function QI(e,t){const n=Qs[e.type]||{scales:{}},s=t.scales||{},i=Rc(e.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!$t(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Nc(r,a,XI(r,e),Zt.scales[a.type]),c=qI(l,i),u=n.scales||{};o[r]=Mo(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Rc(a,t),u=(Qs[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=YI(d,l),p=r[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),Mo(o[p],[{axis:f},s[p],u[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Mo(a,[Zt.scales[a.type],Zt.scale])}),o}function X_(e){const t=e.options||(e.options={});t.plugins=Et(t.plugins,{}),t.scales=QI(e,t)}function Q_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function JI(e){return e=e||{},e.data=Q_(e.data),X_(e),e}const cp=new Map,J_=new Set;function Qr(e,t){let n=cp.get(e);return n||(n=t(),cp.set(e,n),J_.add(n)),n}const mo=(e,t,n)=>{const s=fs(t,n);s!==void 0&&e.add(s)};let ZI=class{constructor(t){this._config=JI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Q_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),X_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Qr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Qr(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Qr(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,s=this.type;return Qr(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const s=this._scopeCache;let i=s.get(t);return(!i||n)&&(i=new Map,s.set(t,i)),i}getOptionScopes(t,n,s){const{options:i,type:o}=this,r=this._cachedScopes(t,s),a=r.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>mo(l,t,d))),u.forEach(d=>mo(l,i,d)),u.forEach(d=>mo(l,Qs[o]||{},d)),u.forEach(d=>mo(l,Zt,d)),u.forEach(d=>mo(l,Ic,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),J_.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Qs[n]||{},Zt.datasets[n]||{},{type:n},Zt,Ic]}resolveNamedOptions(t,n,s,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=up(this._resolverCache,t,i);let l=r;if(e2(r,n)){o.$shared=!1,s=ps(s)?s():s;const c=this.createResolver(t,s,a);l=qi(r,s,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,s=[""],i){const{resolver:o}=up(this._resolverCache,t,s);return $t(n)?qi(o,n,void 0,i):o}};function up(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));const i=n.join();let o=s.get(i);return o||(o={resolver:ed(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(i,o)),o}const t2=e=>$t(e)&&Object.getOwnPropertyNames(e).some(t=>ps(e[t]));function e2(e,t){const{isScriptable:n,isIndexable:s}=M_(e);for(const i of t){const o=n(i),r=s(i),a=(r||o)&&e[i];if(o&&(ps(a)||t2(a))||r&&zt(a))return!0}return!1}var n2="4.4.1";const s2=["top","bottom","left","right","chartArea"];function dp(e,t){return e==="top"||e==="bottom"||s2.indexOf(e)===-1&&t==="x"}function hp(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function fp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ht(n&&n.onComplete,[e],t)}function i2(e){const t=e.chart,n=t.options.animation;Ht(n&&n.onProgress,[e],t)}function Z_(e){return id()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ha={},pp=e=>{const t=Z_(e);return Object.values(ha).filter(n=>n.canvas===t).pop()};function o2(e,t,n){const s=Object.keys(e);for(const i of s){const o=+i;if(o>=t){const r=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=r)}}}function r2(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}function Jr(e,t,n){return e.options.clip?e[n]:t[n]}function a2(e,t){const{xScale:n,yScale:s}=e;return n&&s?{left:Jr(n,t,"left"),right:Jr(n,t,"right"),top:Jr(s,t,"top"),bottom:Jr(s,t,"bottom")}:t}var Un;let fr=(Un=class{static register(...t){an.add(...t),gp()}static unregister(...t){an.remove(...t),gp()}constructor(t,n){const s=this.config=new ZI(n),i=Z_(t),o=pp(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||SI(i)),this.platform.updateConfig(s);const a=this.platform.acquireContext(i,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=uO(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=CO(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],ha[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}En.listen(this,"complete",fp),En.listen(this,"progress",i2),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:i,_aspectRatio:o}=this;return Lt(t)?n&&o?o:i?s/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return an}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Rf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Df(this.canvas,this.ctx),this}stop(){return En.stop(this),this}resize(t,n){En.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const s=this.options,i=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,n,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Rf(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Ht(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Bt(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,s=this.scales,i=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Nc(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Bt(o,r=>{const a=r.options,l=a.id,c=Nc(l,a),u=Et(a.type,r.dtype);(a.position===void 0||dp(a.position,c)!==dp(r.dposition))&&(a.position=r.dposition),i[l]=!0;let d=null;if(l in s&&s[l].type===u)d=s[l];else{const f=an.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),Bt(i,(r,a)=>{r||delete s[a]}),Bt(s,r=>{Ke.configure(this,r,r.options),Ke.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((i,o)=>i.index-o.index),s>n){for(let i=n;in.length&&delete this._stacks,t.forEach((s,i)=>{n.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hp("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Bt(this.scales,t=>{Ke.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Sf(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:o}of n){const r=s==="_removeElements"?-o:o;o2(t,i,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),i=s(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ke.update(this,this.width,this.height,t);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],Bt(this.boxes,i=>{s&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,s=t._clip,i=!s.disabled,o=a2(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&dl(n,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),i&&hl(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Mn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,i){const o=sI.modes[n];return typeof o=="function"?o(this,t,s,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],s=this._metasets;let i=s.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=bs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){const s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){const i=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);Jo(n)?(o.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),En.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,r),t[o]=r},i=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};Bt(this.options.events,o=>s(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,s=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){Bt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Bt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){const i=s?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Sa(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),r=o(n,t),a=s?t:o(t,n);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;const o=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(o||s.changed)&&this.render(),this}_handleEvent(t,n,s){const{_active:i=[],options:o}=this,r=n,a=this._getActiveElements(t,i,s,r),l=mO(t),c=r2(t,this._lastEvent,s,l);s&&(this._lastEvent=null,Ht(o.onHover,[t,a,this],this),l&&Ht(o.onClick,[t,a,this],this));const u=!Sa(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,s,i){if(t.type==="mouseout")return[];if(!s)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},it(Un,"defaults",Zt),it(Un,"instances",ha),it(Un,"overrides",Qs),it(Un,"registry",an),it(Un,"version",n2),it(Un,"getChart",pp),Un);function gp(){return Bt(fr.instances,e=>e._plugins.invalidate())}function l2(e,t,n){const{startAngle:s,pixelMargin:i,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,r,a,s-c,n+c),l>i?(c=i/l,e.arc(o,r,l,n+c,s-c,!0)):e.arc(o,r,i,n+te,s-te),e.closePath(),e.clip()}function c2(e){return td(e,["outerStart","outerEnd","innerStart","innerEnd"])}function u2(e,t,n,s){const i=c2(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(n-Math.min(o,l))*s/2;return le(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:le(i.innerStart,0,r),innerEnd:le(i.innerEnd,0,r)}}function gi(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function Ma(e,t,n,s,i,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+s+n-c,0),f=u>0?u+s+n+c:0;let p=0;const m=i-l;if(s){const H=u>0?u-s:0,R=d>0?d-s:0,W=(H+R)/2,U=W!==0?m*W/(W+s):m;p=(m-U)/2}const _=Math.max(.001,m*d-n/qt)/d,v=(m-_)/2,x=l+v+p,S=i-v-p,{outerStart:P,outerEnd:A,innerStart:y,innerEnd:E}=u2(t,f,d,S-x),C=d-P,w=d-A,$=x+P/C,D=S-A/w,I=f+y,N=f+E,Q=x+y/I,Y=S-E/N;if(e.beginPath(),o){const H=($+D)/2;if(e.arc(r,a,d,$,H),e.arc(r,a,d,H,D),A>0){const rt=gi(w,D,r,a);e.arc(rt.x,rt.y,A,D,S+te)}const R=gi(N,S,r,a);if(e.lineTo(R.x,R.y),E>0){const rt=gi(N,Y,r,a);e.arc(rt.x,rt.y,E,S+te,Y+Math.PI)}const W=(S-E/f+(x+y/f))/2;if(e.arc(r,a,f,S-E/f,W,!0),e.arc(r,a,f,W,x+y/f,!0),y>0){const rt=gi(I,Q,r,a);e.arc(rt.x,rt.y,y,Q+Math.PI,x-te)}const U=gi(C,x,r,a);if(e.lineTo(U.x,U.y),P>0){const rt=gi(C,$,r,a);e.arc(rt.x,rt.y,P,x-te,$)}}else{e.moveTo(r,a);const H=Math.cos($)*d+r,R=Math.sin($)*d+a;e.lineTo(H,R);const W=Math.cos(D)*d+r,U=Math.sin(D)*d+a;e.lineTo(W,U)}e.closePath()}function d2(e,t,n,s,i){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Ma(e,t,n,s,l,i);for(let c=0;c=Yt||Zo(r,l,c),v=kn(a,u+p,d+p);return _&&v}getCenterPoint(n){const{x:s,y:i,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(o+r)/2,f=(a+l+u+c)/2;return{x:s+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:s,circumference:i}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=i>Yt?Math.floor(i/Yt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(qt,i||0)),u=o*c;n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,d2(n,this,u,r,a),h2(n,this,u,r,a),n.restore()}}it(yi,"id","arc"),it(yi,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),it(yi,"defaultRoutes",{backgroundColor:"backgroundColor"}),it(yi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function tb(e,t,n=t){e.lineCap=Et(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Et(n.borderDash,t.borderDash)),e.lineDashOffset=Et(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Et(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Et(n.borderWidth,t.borderWidth),e.strokeStyle=Et(n.borderColor,t.borderColor)}function f2(e,t,n){e.lineTo(n.x,n.y)}function p2(e){return e.stepped?FO:e.tension||e.cubicInterpolationMode==="monotone"?BO:f2}function eb(e,t,n={}){const s=e.length,{start:i=0,end:o=s-1}=n,{start:r,end:a}=t,l=Math.max(i,r),c=Math.min(o,a),u=ia&&o>a;return{count:s,start:l,loop:t.loop,ilen:c(r+(c?a-A:A))%o,P=()=>{_!==v&&(e.lineTo(u,v),e.lineTo(u,_),e.lineTo(u,x))};for(l&&(p=i[S(0)],e.moveTo(p.x,p.y)),f=0;f<=a;++f){if(p=i[S(f)],p.skip)continue;const A=p.x,y=p.y,E=A|0;E===m?(y<_?_=y:y>v&&(v=y),u=(d*u+A)/++d):(P(),e.lineTo(A,y),m=E,d=0,_=v=y),x=y}P()}function Fc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?m2:g2}function _2(e){return e.stepped?_D:e.tension||e.cubicInterpolationMode==="monotone"?bD:Ns}function b2(e,t,n,s){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,s)&&i.closePath()),tb(e,t.options),e.stroke(i)}function v2(e,t,n,s){const{segments:i,options:o}=t,r=Fc(t);for(const a of i)tb(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+s-1})&&e.closePath(),e.stroke()}const y2=typeof Path2D=="function";function x2(e,t,n,s){y2&&!t.options.segment?b2(e,t,n,s):v2(e,t,n,s)}class On extends Fn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;cD(this._points,s,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=SD(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){const s=this.options,i=t[n],o=this.points,r=H_(this,{property:n,start:i,end:i});if(!r.length)return;const a=[],l=_2(s);let c,u;for(c=0,u=r.length;ct!=="borderDash"&&t!=="fill"});function mp(e,t,n,s){const i=e.options,{[n]:o}=e.getProps([n],s);return Math.abs(t-o)=n)return e.slice(t,t+n);const r=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,f,p,m,_;for(r[l++]=e[u],d=0;dp&&(p=m,f=e[S],_=S);r[l++]=f,u=_}return r[l++]=e[c],r}function P2(e,t,n,s){let i=0,o=0,r,a,l,c,u,d,f,p,m,_;const v=[],x=t+n-1,S=e[t].x,A=e[x].x-S;for(r=t;r_&&(_=c,f=r),i=(o*i+a.x)/++o;else{const E=r-1;if(!Lt(d)&&!Lt(f)){const C=Math.min(d,f),w=Math.max(d,f);C!==p&&C!==E&&v.push({...e[C],x:i}),w!==p&&w!==E&&v.push({...e[w],x:i})}r>0&&E!==p&&v.push(e[E]),v.push(a),u=y,o=0,m=_=c,d=f=p=r}}return v}function sb(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function _p(e){e.data.datasets.forEach(t=>{sb(t)})}function k2(e,t){const n=t.length;let s=0,i;const{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=le($n(t,o.axis,r).lo,0,n-1)),c?i=le($n(t,o.axis,a).hi+1,s,n)-s:i=n-s,{start:s,count:i}}var ib={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){_p(e);return}const s=e.width;e.data.datasets.forEach((i,o)=>{const{_data:r,indexAxis:a}=i,l=e.getDatasetMeta(o),c=r||i.data;if(yo([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=k2(l,c);const p=n.threshold||4*s;if(f<=p){sb(i);return}Lt(r)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(_){this._data=_}}));let m;switch(n.algorithm){case"lttb":m=T2(c,d,f,s,n);break;case"min-max":m=P2(c,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=m})},destroy(e){_p(e)}};function $2(e,t,n){const s=e.segments,i=e.points,o=t.points,r=[];for(const a of s){let{start:l,end:c}=a;c=ad(l,c,i);const u=Bc(n,i[l],i[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=H_(t,u);for(const f of d){const p=Bc(n,o[f.start],o[f.end],f.loop),m=V_(a,i,p);for(const _ of m)r.push({source:_,target:f,start:{[n]:bp(u,p,"start",Math.max)},end:{[n]:bp(u,p,"end",Math.min)}})}}return r}function Bc(e,t,n,s){if(s)return;let i=t[e],o=n[e];return e==="angle"&&(i=$e(i),o=$e(o)),{property:e,start:i,end:o}}function M2(e,t){const{x:n=null,y:s=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=ad(r,a,i);const l=i[r],c=i[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function ad(e,t,n){for(;t>e;t--){const s=n[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function bp(e,t,n,s){return e&&t?s(e[n],t[n]):e?e[n]:t?t[n]:0}function ob(e,t){let n=[],s=!1;return zt(e)?(s=!0,n=e):n=M2(e,t),n.length?new On({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function vp(e){return e&&e.fill!==!1}function O2(e,t,n){let i=e[t].fill;const o=[t];let r;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Jt(i))return i;if(r=e[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function D2(e,t,n){const s=N2(e);if($t(s))return isNaN(s.value)?!1:s;let i=parseFloat(s);return Jt(i)&&Math.floor(i)===i?I2(s[0],t,i,n):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function I2(e,t,n,s){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=s?!1:n}function L2(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:$t(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function R2(e,t,n){let s;return e==="start"?s=n:e==="end"?s=t.options.reverse?t.min:t.max:$t(e)?s=e.value:s=t.getBaseValue(),s}function N2(e){const t=e.options,n=t.fill;let s=Et(n&&n.target,n);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function F2(e){const{scale:t,index:n,line:s}=e,i=[],o=s.segments,r=s.points,a=B2(t,n);a.push(ob({x:null,y:t.bottom},s));for(let l=0;l=0;--r){const a=i[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&ic(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const s=e.getSortedVisibleDatasetMetas();for(let i=s.length-1;i>=0;--i){const o=s[i].$filler;vp(o)&&ic(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const s=t.meta.$filler;!vp(s)||n.drawTime!=="beforeDatasetDraw"||ic(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ep=(e,t)=>{let{boxHeight:n=t,boxWidth:s=t}=e;return e.usePointStyle&&(n=Math.min(n,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(t,n)}},G2=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Sp extends Fn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,s){this.maxWidth=t,this.maxHeight=n,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ht(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(s=>t.filter(s,this.chart.data))),t.sort&&(n=n.sort((s,i)=>t.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,i=oe(s.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Ep(s,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,s,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((m,_)=>{const v=s+n/2+o.measureText(m.text).width;(_===0||c[c.length-1]+v+2*a>r)&&(d+=u,c[c.length-(_>0?0:1)]=0,p+=u,f++),l[_]={left:0,top:p,row:f,width:v,height:i},c[c.length-1]+=v+a}),d}_fitCols(t,n,s,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let d=a,f=0,p=0,m=0,_=0;return this.legendItems.forEach((v,x)=>{const{itemWidth:S,itemHeight:P}=X2(s,n,o,v,i);x>0&&p+P+2*a>u&&(d+=f+a,c.push({width:f,height:p}),m+=f+a,_++,f=p=0),l[x]={left:m,top:p,col:_,width:S,height:P},f=Math.max(f,S),p+=P+a}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:o}}=this,r=Ci(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=fe(s,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=fe(s,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+i}else{let a=0,l=fe(s,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=fe(s,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;dl(t,this),this._draw(),hl(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:s,ctx:i}=this,{align:o,labels:r}=t,a=Zt.color,l=Ci(t.rtl,this.left,this.width),c=oe(r.font),{padding:u}=r,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:_,itemHeight:v}=Ep(r,d),x=function(E,C,w){if(isNaN(m)||m<=0||isNaN(_)||_<0)return;i.save();const $=Et(w.lineWidth,1);if(i.fillStyle=Et(w.fillStyle,a),i.lineCap=Et(w.lineCap,"butt"),i.lineDashOffset=Et(w.lineDashOffset,0),i.lineJoin=Et(w.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=Et(w.strokeStyle,a),i.setLineDash(Et(w.lineDash,[])),r.usePointStyle){const D={radius:_*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:$},I=l.xPlus(E,m/2),N=C+f;k_(i,D,I,N,r.pointStyleWidth&&m)}else{const D=C+Math.max((d-_)/2,0),I=l.leftForLtr(E,m),N=Ks(w.borderRadius);i.beginPath(),Object.values(N).some(Q=>Q!==0)?tr(i,{x:I,y:D,w:m,h:_,radius:N}):i.rect(I,D,m,_),i.fill(),$!==0&&i.stroke()}i.restore()},S=function(E,C,w){Js(i,w.text,E,C+v/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},P=this.isHorizontal(),A=this._computeTitleHeight();P?p={x:fe(o,this.left+u,this.right-s[0]),y:this.top+u+A,line:0}:p={x:this.left+u,y:fe(o,this.top+A+u,this.bottom-n[0].height),line:0},N_(this.ctx,t.textDirection);const y=v+u;this.legendItems.forEach((E,C)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const w=i.measureText(E.text).width,$=l.textAlign(E.textAlign||(E.textAlign=r.textAlign)),D=m+f+w;let I=p.x,N=p.y;l.setWidth(this.width),P?C>0&&I+D+u>this.right&&(N=p.y+=y,p.line++,I=p.x=fe(o,this.left+u,this.right-s[p.line])):C>0&&N+y>this.bottom&&(I=p.x=I+n[p.line].width+u,p.line++,N=p.y=fe(o,this.top+A+u,this.bottom-n[p.line].height));const Q=l.x(I);if(x(Q,N,E),I=TO($,I+m+f,P?I+D:this.right,t.rtl),S(l.x(I),N,E),P)p.x+=D+u;else if(typeof E.text!="string"){const Y=c.lineHeight;p.y+=lb(E,Y)+u}else p.y+=y}),F_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,s=oe(n.font),i=ge(n.padding);if(!n.display)return;const o=Ci(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=s.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=fe(t.align,d,this.right-f);else{const m=this.columnSizes.reduce((_,v)=>Math.max(_,v.height),0);u=c+fe(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const p=fe(a,d,d+f);r.textAlign=o.textAlign(Ju(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=s.string,Js(r,n.text,p,u,s)}_computeTitleHeight(){const t=this.options.title,n=oe(t.font),s=ge(t.padding);return t.display?n.lineHeight+s.height:0}_getLegendItemAt(t,n){let s,i,o;if(kn(t,this.left,this.right)&&kn(n,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),t+n.size/2+s.measureText(i).width}function J2(e,t,n){let s=e;return typeof t.text!="string"&&(s=lb(t,n)),s}function lb(e,t){const n=e.text?e.text.length:0;return t*n}function Z2(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var cb={id:"legend",_element:Sp,start(e,t,n){const s=e.legend=new Sp({ctx:e.ctx,options:n,chart:e});Ke.configure(e,s,n),Ke.addBox(e,s)},stop(e){Ke.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const s=e.legend;Ke.configure(e,s,n),s.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const s=t.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),t.hidden=!0):(i.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:i,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=ge(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ub extends Fn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=zt(s.text)?s.text.length:1;this._padding=ge(s.padding);const o=i*oe(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:s,bottom:i,right:o,options:r}=this,a=r.align;let l=0,c,u,d;return this.isHorizontal()?(u=fe(a,s,o),d=n+t,c=o-s):(r.position==="left"?(u=s+t,d=fe(a,i,n),l=qt*-.5):(u=o-t,d=fe(a,n,i),l=qt*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const s=oe(n.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Js(t,n.text,0,0,s,{color:n.color,maxWidth:l,rotation:c,textAlign:Ju(n.align),textBaseline:"middle",translation:[r,a]})}}function tL(e,t){const n=new ub({ctx:e.ctx,options:t,chart:e});Ke.configure(e,n,t),Ke.addBox(e,n),e.titleBlock=n}var db={id:"title",_element:ub,start(e,t,n){tL(e,n)},stop(e){const t=e.titleBlock;Ke.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const s=e.titleBlock;Ke.configure(e,s,n),s.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wo={average(e){if(!e.length)return!1;let t,n,s=0,i=0,o=0;for(t=0,n=e.length;ta({chart:t,initial:s.initial,numSteps:r,currentStep:Math.min(n-s.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=I_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let s=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),s+=o.length}),this._lastDate=t,s===0&&(this._running=!1)}_getAnims(t){const s=this._charts;let n=s.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},s.set(t,n)),n}listen(t,s,n){this._getAnims(t).listeners[s].push(n)}add(t,s){!s||!s.length||this._getAnims(t).items.push(...s)}has(t){return this._getAnims(t).items.length>0}start(t){const s=this._charts.get(t);s&&(s.running=!0,s.start=Date.now(),s.duration=s.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const s=this._charts.get(t);return!(!s||!s.running||!s.items.length)}stop(t){const s=this._charts.get(t);if(!s||!s.items.length)return;const n=s.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();s.items=[],this._notify(t,s,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var $s=new XI;const Kf="transparent",JI={boolean(e,t,s){return s>.5?t:e},color(e,t,s){const n=Rf(e||Kf),i=n.valid&&Rf(t||Kf);return i&&i.valid?i.mix(n,s).hexString():t},number(e,t,s){return e+(t-e)*s}};class QI{constructor(t,s,n,i){const o=s[n];i=_o([t.to,i,o,t.from]);const r=_o([t.from,o,i]);this._active=!0,this._fn=t.fn||JI[t.type||typeof r],this._easing=Do[t.easing]||Do.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=s,this._prop=n,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,s,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=_o([t.to,s,i,t.from]),this._from=_o([t.from,i,s])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const s=t-this._start,n=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||s1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((s,n)=>{t.push({res:s,rej:n})})}_notify(t){const s=t?"res":"rej",n=this._promises||[];for(let i=0;i{const o=t[i];if(!It(o))return;const r={};for(const a of s)r[a]=o[a];(qt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!n.has(a))&&n.set(a,r)})})}_animateOptions(t,s){const n=s.options,i=t2(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&ZI(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,s){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(s),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,s));continue}const d=s[c];let u=o[c];const f=n.get(c);if(u)if(f&&u.active()){u.update(f,d,a);continue}else u.cancel();if(!f||!f.duration){t[c]=d;continue}o[c]=u=new QI(f,t,c,d),i.push(u)}return i}update(t,s){if(this._properties.size===0){Object.assign(t,s);return}const n=this._createAnimations(t,s);if(n.length)return $s.add(this._chart,n),!0}}function ZI(e,t){const s=[],n=Object.keys(t);for(let i=0;i0||!s&&o<0)return i.index}return null}function Jf(e,t){const{chart:s,_cachedMeta:n}=e,i=s._stacks||(s._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,c=r.axis,d=i2(o,r,n),u=t.length;let f;for(let g=0;gs[n].axis===t).shift()}function a2(e,t){return En(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function l2(e,t,s){return En(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:s,index:t,mode:"default",type:"data"})}function lo(e,t){const s=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[n]===void 0||o[n][s]===void 0)return;delete o[n][s],o[n]._visualValues!==void 0&&o[n]._visualValues[s]!==void 0&&delete o[n]._visualValues[s]}}}const Zl=e=>e==="reset"||e==="none",Qf=(e,t)=>t?e:Object.assign({},e),c2=(e,t,s)=>e&&!t.hidden&&t._stacked&&{keys:Z_(s,!0),values:null};class os{constructor(t,s){this.chart=t,this._ctx=t.ctx,this.index=s,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Gf(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&lo(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,s=this._cachedMeta,n=this.getDataset(),i=(u,f,g,m)=>u==="x"?f:u==="r"?m:g,o=s.xAxisID=St(n.xAxisID,Ql(t,"x")),r=s.yAxisID=St(n.yAxisID,Ql(t,"y")),a=s.rAxisID=St(n.rAxisID,Ql(t,"r")),l=s.indexAxis,c=s.iAxisID=i(l,o,r,a),d=s.vAxisID=i(l,r,o,a);s.xScale=this.getScaleForId(o),s.yScale=this.getScaleForId(r),s.rScale=this.getScaleForId(a),s.iScale=this.getScaleForId(c),s.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Df(this._data,this),t._stacked&&lo(t)}_dataCheck(){const t=this.getDataset(),s=t.data||(t.data=[]),n=this._data;if(It(s))this._data=n2(s);else if(n!==s){if(n){Df(n,this);const i=this._cachedMeta;lo(i),i._parsed=[]}s&&Object.isExtensible(s)&&qD(s,this),this._syncList=[],this._data=s}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const s=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=s._stacked;s._stacked=Gf(s.vScale,s),s.stack!==n.stack&&(i=!0,lo(s),s.stack=n.stack),this._resyncElements(t),(i||o!==s._stacked)&&Jf(this,s._parsed)}configure(){const t=this.chart.config,s=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),s,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,s){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:r}=n,a=o.axis;let l=t===0&&s===i.length?!0:n._sorted,c=t>0&&n._parsed[t-1],d,u,f;if(this._parsing===!1)n._parsed=i,n._sorted=!0,f=i;else{qt(i[t])?f=this.parseArrayData(n,i,t,s):It(i[t])?f=this.parseObjectData(n,i,t,s):f=this.parsePrimitiveData(n,i,t,s);const g=()=>u[a]===null||c&&u[a]b||u=0;--f)if(!m()){this.updateRangeFromParsed(c,t,g,l);break}}return c}getAllParsedValues(t){const s=this._cachedMeta._parsed,n=[];let i,o,r;for(i=0,o=s.length;i=0&&tthis.getContext(n,i,s),b=c.resolveNamedOptions(f,g,m,u);return b.$shared&&(b.$shared=l,o[r]=Object.freeze(Qf(b,l))),b}_resolveAnimations(t,s,n){const i=this.chart,o=this._cachedDataOpts,r=`animation-${s}`,a=o[r];if(a)return a;let l;if(i.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,s),f=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(f,this.getContext(t,n,s))}const c=new Q_(i,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,s){return!s||Zl(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){const n=this.resolveDataElementOptions(t,s),i=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(s,o)||o!==i;return this.updateSharedOptions(o,s,n),{sharedOptions:o,includeOptions:r}}updateElement(t,s,n,i){Zl(i)?Object.assign(t,n):this._resolveAnimations(s,i).update(t,n)}updateSharedOptions(t,s,n){t&&!Zl(s)&&this._resolveAnimations(void 0,s).update(t,n)}_setStyle(t,s,n,i){t.active=i;const o=this.getStyle(s,i);this._resolveAnimations(s,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,s,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,s,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const s=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=n.length,o=s.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o{for(c.length+=s,a=c.length-1;a>=r;a--)c[a]=c[a-s]};for(l(o),a=t;ai-o))}return e._cache.$bar}function u2(e){const t=e.iScale,s=d2(t,e.type);let n=t._length,i,o,r,a;const l=()=>{r===32767||r===-32768||(Yo(a)&&(n=Math.min(n,Math.abs(r-a)||n)),a=r)};for(i=0,o=s.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),t[s.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:r,max:a}}function tb(e,t,s,n){return qt(e)?p2(e,t,s,n):t[s.axis]=s.parse(e,n),t}function Zf(e,t,s,n){const i=e.iScale,o=e.vScale,r=i.getLabels(),a=i===o,l=[];let c,d,u,f;for(c=s,d=s+n;c=s?1:-1)}function m2(e){let t,s,n,i,o;return e.horizontal?(t=e.base>e.x,s="left",n="right"):(t=e.basel.controller.options.grouped),o=n.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(s),d=c&&c[l.vScale.axis];if(Ft(d)||isNaN(d))return!0};for(const l of i)if(!(s!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,s,n){const i=this._getStacks(t,n),o=s!==void 0?i.indexOf(s):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,s=this._cachedMeta,n=s.iScale,i=[];let o,r;for(o=0,r=s.data.length;o=0;--n)s=Math.max(s,t[n].size(this.resolveDataElementOptions(n))/2);return s>0&&s}getLabelAndValue(t){const s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:o}=s,r=this.getParsed(t),a=i.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:n[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const s=this._cachedMeta.data;this.updateElements(s,0,s.length,t)}updateElements(t,s,n,i){const o=i==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(s,i),d=r.axis,u=a.axis;for(let f=s;fqo($,a,l,!0)?1:Math.max(T,T*s,y,y*s),m=($,T,y)=>qo($,a,l,!0)?-1:Math.min(T,T*s,y,y*s),b=g(0,c,u),v=g(te,d,f),w=m(Xt,c,u),E=m(Xt+te,d,f);n=(b-w)/2,i=(v-E)/2,o=-(b+w)/2,r=-(v+E)/2}return{ratioX:n,ratioY:i,offsetX:o,offsetY:r}}class vi extends os{constructor(t,s){super(t,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,s){const n=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=n;else{let o=l=>+n[l];if(It(n[t])){const{key:l="value"}=this._parsing;o=c=>+_n(n[c],l)}let r,a;for(r=t,a=t+s;r0&&!isNaN(t)?Gt*(Math.abs(t)/s):0}getLabelAndValue(t){const s=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=lr(s._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let s=0;const n=this.chart;let i,o,r,a,l;if(!t){for(i=0,o=n.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),it(vi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const s=t.data;if(s.labels.length&&s.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return s.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}}});class Ro extends os{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const s=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=s,r=this.chart._animationsDisabled;let{start:a,count:l}=R_(s,i,r);this._drawStart=a,this._drawCount=l,N_(s)&&(a=0,l=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,s,n,i){const o=i==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:u}=this._getSharedOptions(s,i),f=r.axis,g=a.axis,{spanGaps:m,segment:b}=this.options,v=zi(m)?m:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||o||i==="none",E=s+n,$=t.length;let T=s>0&&this.getParsed(s-1);for(let y=0;y<$;++y){const x=t[y],C=w?x:{};if(y=E){C.skip=!0;continue}const S=this.getParsed(y),P=Ft(S[g]),M=C[f]=r.getPixelForValue(S[f],y),I=C[g]=o||P?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,S,l):S[g],y);C.skip=isNaN(M)||isNaN(I)||P,C.stop=y>0&&Math.abs(S[f]-T[f])>v,b&&(C.parsed=S,C.raw=c.data[y]),u&&(C.options=d||this.resolveDataElementOptions(y,x.active?"active":i)),w||this.updateElement(x,y,C,i),T=S}}getMaxOverflow(){const t=this._cachedMeta,s=t.dataset,n=s.options&&s.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}it(Ro,"id","line"),it(Ro,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),it(Ro,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class ca extends os{constructor(t,s){super(t,s),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const s=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=lr(s._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,s,n,i){return U_.bind(this)(t,s,n,i)}update(t){const s=this._cachedMeta.data;this._updateRadius(),this.updateElements(s,0,s.length,t)}getMinMax(){const t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(os.max&&(s.max=o))}),s}_updateRadius(){const t=this.chart,s=t.chartArea,n=t.options,i=Math.min(s.right-s.left,s.bottom-s.top),o=Math.max(i/2,0),r=Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,s,n,i){const o=i==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,d=c.xCenter,u=c.yCenter,f=c.getIndexAngle(0)-.5*Xt;let g=f,m;const b=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&s++}),s}_computeAngle(t,s,n){return this.chart.getDataVisibility(t)?ns(this.resolveDataElementOptions(t,s).angle||n):0}}it(ca,"id","polarArea"),it(ca,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),it(ca,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const s=t.data;if(s.labels.length&&s.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return s.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Nc extends vi{}it(Nc,"id","pie"),it(Nc,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class da extends os{getLabelAndValue(t){const s=this._cachedMeta.vScale,n=this.getParsed(t);return{label:s.getLabels()[t],value:""+s.getLabelForValue(n[s.axis])}}parseObjectData(t,s,n,i){return U_.bind(this)(t,s,n,i)}update(t){const s=this._cachedMeta,n=s.dataset,i=s.data||[],o=s.iScale.getLabels();if(n.points=i,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:r};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,s,n,i){const o=this._cachedMeta.rScale,r=i==="reset";for(let a=s;a0&&this.getParsed(s-1);for(let T=s;T0&&Math.abs(x[g]-$[g])>w,v&&(C.parsed=x,C.raw=c.data[T]),f&&(C.options=u||this.resolveDataElementOptions(T,y.active?"active":i)),E||this.updateElement(y,T,C,i),$=x}this.updateSharedOptions(u,i,d)}getMaxOverflow(){const t=this._cachedMeta,s=t.data||[];if(!this.options.showLine){let a=0;for(let l=s.length-1;l>=0;--l)a=Math.max(a,s[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}}it(ua,"id","scatter"),it(ua,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),it(ua,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function Fn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class lu{constructor(t){it(this,"options");this.options=t||{}}static override(t){Object.assign(lu.prototype,t)}init(){}formats(){return Fn()}parse(){return Fn()}format(){return Fn()}add(){return Fn()}diff(){return Fn()}startOf(){return Fn()}endOf(){return Fn()}}var x2={_date:lu};function w2(e,t,s,n){const{controller:i,data:o,_sorted:r}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?KD:Ds;if(n){if(i._sharedOptions){const c=o[0],d=typeof c.getRange=="function"&&c.getRange(t);if(d){const u=l(o,t,s-d),f=l(o,t,s+d);return{lo:u.lo,hi:f.hi}}}}else return l(o,t,s)}return{lo:0,hi:o.length-1}}function cr(e,t,s,n,i){const o=e.getSortedVisibleDatasetMetas(),r=s[t];for(let a=0,l=o.length;a{l[r](t[s],i)&&(o.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(t.x,t.y,i))}),n&&!a?[]:o}var C2={evaluateInteractionItems:cr,modes:{index(e,t,s,n){const i=Vn(t,e),o=s.axis||"x",r=s.includeInvisible||!1,a=s.intersect?ec(e,i,o,n,r):sc(e,i,o,!1,n,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(e,t,s,n){const i=Vn(t,e),o=s.axis||"xy",r=s.includeInvisible||!1;let a=s.intersect?ec(e,i,o,n,r):sc(e,i,o,!1,n,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let d=0;ds.pos===t)}function np(e,t){return e.filter(s=>eb.indexOf(s.pos)===-1&&s.box.axis===t)}function uo(e,t){return e.sort((s,n)=>{const i=t?n:s,o=t?s:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function $2(e){const t=[];let s,n,i,o,r,a;for(s=0,n=(e||[]).length;sc.box.fullSize),!0),n=uo(co(t,"left"),!0),i=uo(co(t,"right")),o=uo(co(t,"top"),!0),r=uo(co(t,"bottom")),a=np(t,"x"),l=np(t,"y");return{fullSize:s,leftAndTop:n.concat(o),rightAndBottom:i.concat(l).concat(r).concat(a),chartArea:co(t,"chartArea"),vertical:n.concat(i).concat(l),horizontal:o.concat(r).concat(a)}}function ip(e,t,s,n){return Math.max(e[s],t[s])+Math.max(e[n],t[n])}function sb(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function M2(e,t,s,n){const{pos:i,box:o}=s,r=e.maxPadding;if(!It(i)){s.size&&(e[i]-=s.size);const u=n[s.stack]||{size:0,count:1};u.size=Math.max(u.size,s.horizontal?o.height:o.width),s.size=u.size/u.count,e[i]+=s.size}o.getPadding&&sb(r,o.getPadding());const a=Math.max(0,t.outerWidth-ip(r,e,"left","right")),l=Math.max(0,t.outerHeight-ip(r,e,"top","bottom")),c=a!==e.w,d=l!==e.h;return e.w=a,e.h=l,s.horizontal?{same:c,other:d}:{same:d,other:c}}function O2(e){const t=e.maxPadding;function s(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=s("top"),e.x+=s("left"),s("right"),s("bottom")}function D2(e,t){const s=t.maxPadding;function n(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(r=>{o[r]=Math.max(t[r],s[r])}),o}return n(e?["left","right"]:["top","bottom"])}function bo(e,t,s,n){const i=[];let o,r,a,l,c,d;for(o=0,r=e.length,c=0;o{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=l.reduce((b,v)=>v.box.options&&v.box.options.display===!1?b:b+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:s,padding:i,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/d,hBoxMaxHeight:r/2}),f=Object.assign({},i);sb(f,be(n));const g=Object.assign({maxPadding:f,w:o,h:r,x:i.left,y:i.top},i),m=k2(l.concat(c),u);bo(a.fullSize,g,u,m),bo(l,g,u,m),bo(c,g,u,m)&&bo(l,g,u,m),O2(g),op(a.leftAndTop,g,u,m),g.x+=g.w,g.y+=g.h,op(a.rightAndBottom,g,u,m),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},zt(a.chartArea,b=>{const v=b.box;Object.assign(v,e.chartArea),v.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class nb{acquireContext(t,s){}releaseContext(t){return!1}addEventListener(t,s,n){}removeEventListener(t,s,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,s,n,i){return s=Math.max(0,s||t.width),n=n||t.height,{width:s,height:Math.max(0,i?Math.floor(s/i):n)}}isAttached(t){return!0}updateConfig(t){}}class I2 extends nb{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ha="$chartjs",L2={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},rp=e=>e===null||e==="";function R2(e,t){const s=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[ha]={initial:{height:n,width:i,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",rp(i)){const o=jf(e,"width");o!==void 0&&(e.width=o)}if(rp(n))if(e.style.height==="")e.height=e.width/(t||2);else{const o=jf(e,"height");o!==void 0&&(e.height=o)}return e}const ib=BI?{passive:!0}:!1;function N2(e,t,s){e.addEventListener(t,s,ib)}function F2(e,t,s){e.canvas.removeEventListener(t,s,ib)}function B2(e,t){const s=L2[e.type]||e.type,{x:n,y:i}=Vn(e,t);return{type:s,chart:t,native:e,x:n!==void 0?n:null,y:i!==void 0?i:null}}function Da(e,t){for(const s of e)if(s===t||s.contains(t))return!0}function V2(e,t,s){const n=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Da(a.addedNodes,n),r=r&&!Da(a.removedNodes,n);r&&s()});return i.observe(document,{childList:!0,subtree:!0}),i}function H2(e,t,s){const n=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Da(a.removedNodes,n),r=r&&!Da(a.addedNodes,n);r&&s()});return i.observe(document,{childList:!0,subtree:!0}),i}const Xo=new Map;let ap=0;function ob(){const e=window.devicePixelRatio;e!==ap&&(ap=e,Xo.forEach((t,s)=>{s.currentDevicePixelRatio!==e&&t()}))}function j2(e,t){Xo.size||window.addEventListener("resize",ob),Xo.set(e,t)}function W2(e){Xo.delete(e),Xo.size||window.removeEventListener("resize",ob)}function z2(e,t,s){const n=e.canvas,i=n&&au(n);if(!i)return;const o=L_((a,l)=>{const c=i.clientWidth;s(a,l),c{const l=a[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return r.observe(i),j2(e,o),r}function nc(e,t,s){s&&s.disconnect(),t==="resize"&&W2(e)}function U2(e,t,s){const n=e.canvas,i=L_(o=>{e.ctx!==null&&s(B2(o,e))},e);return N2(n,t,i),i}class K2 extends nb{acquireContext(t,s){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(R2(t,s),n):null}releaseContext(t){const s=t.canvas;if(!s[ha])return!1;const n=s[ha].initial;["height","width"].forEach(o=>{const r=n[o];Ft(r)?s.removeAttribute(o):s.setAttribute(o,r)});const i=n.style||{};return Object.keys(i).forEach(o=>{s.style[o]=i[o]}),s.width=s.width,delete s[ha],!0}addEventListener(t,s,n){this.removeEventListener(t,s);const i=t.$proxies||(t.$proxies={}),r={attach:V2,detach:H2,resize:z2}[s]||U2;i[s]=r(t,s,n)}removeEventListener(t,s){const n=t.$proxies||(t.$proxies={}),i=n[s];if(!i)return;({attach:nc,detach:nc,resize:nc}[s]||F2)(t,s,i),n[s]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,s,n,i){return FI(t,s,n,i)}isAttached(t){const s=au(t);return!!(s&&s.isConnected)}}function Y2(e){return!ru()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?I2:K2}var Qr;let js=(Qr=class{constructor(){it(this,"x");it(this,"y");it(this,"active",!1);it(this,"options");it(this,"$animations")}tooltipPosition(t){const{x:s,y:n}=this.getProps(["x","y"],t);return{x:s,y:n}}hasValue(){return zi(this.x)&&zi(this.y)}getProps(t,s){const n=this.$animations;if(!s||!n)return this;const i={};return t.forEach(o=>{i[o]=n[o]&&n[o].active()?n[o]._to:this[o]}),i}},it(Qr,"defaults",{}),it(Qr,"defaultRoutes"),Qr);function q2(e,t){const s=e.options.ticks,n=G2(e),i=Math.min(s.maxTicksLimit||n,n),o=s.major.enabled?J2(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>i)return Q2(t,c,o,r/i),c;const d=X2(o,t,i);if(r>0){let u,f;const g=r>1?Math.round((l-a)/(r-1)):null;for(Ur(t,c,d,Ft(g)?0:a-g,a),u=0,f=r-1;ui)return l}return Math.max(i,1)}function J2(e){const t=[];let s,n;for(s=0,n=e.length;se==="left"?"right":e==="right"?"left":e,lp=(e,t,s)=>t==="top"||t==="left"?e[t]+s:e[t]-s,cp=(e,t)=>Math.min(t||e,e);function dp(e,t){const s=[],n=e.length/t,i=e.length;let o=0;for(;or+a)))return l}function sL(e,t){zt(e,s=>{const n=s.gc,i=n.length/2;let o;if(i>t){for(o=0;on?n:s,n=i&&s>n?s:n,{min:Oe(s,Oe(n,s)),max:Oe(n,Oe(s,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Kt(this.options.beforeUpdate,[this])}update(t,s,n){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=s,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=mI(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||n<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),u=d.widest.width,f=d.highest.height,g=de(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/n:g/(n-1),u+6>a&&(a=g/(n-(t.offset?.5:1)),l=this.maxHeight-ho(t.grid)-s.padding-up(t.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),r=Qd(Math.min(Math.asin(de((d.highest.height+6)/a,-1,1)),Math.asin(de(l/c,-1,1))-Math.asin(de(f/c,-1,1)))),r=Math.max(i,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Kt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Kt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:s,options:{ticks:n,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=up(i,s.options.font);if(a?(t.width=this.maxWidth,t.height=ho(o)+l):(t.height=this.maxHeight,t.width=ho(o)+l),n.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),g=n.padding*2,m=ns(this.labelRotation),b=Math.cos(m),v=Math.sin(m);if(a){const w=n.mirror?0:v*u.width+b*f.height;t.height=Math.min(this.maxHeight,t.height+w+g)}else{const w=n.mirror?0:b*u.width+v*f.height;t.width=Math.min(this.maxWidth,t.width+w+g)}this._calculatePadding(c,d,v,b)}}this._handleMargins(),a?(this.width=this._length=s.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=s.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,s,n,i){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,g=0;l?c?(f=i*t.width,g=n*s.height):(f=n*t.height,g=i*s.width):o==="start"?g=s.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,g=s.width/2),this.paddingLeft=Math.max((f-d+r)*this.width/(this.width-d),0),this.paddingRight=Math.max((g-u+r)*this.width/(this.width-u),0)}else{let d=s.height/2,u=t.height/2;o==="start"?(d=0,u=t.height):o==="end"&&(d=s.height,u=0),this.paddingTop=d+r,this.paddingBottom=u+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Kt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:s}=this.options;return s==="top"||s==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let s,n;for(s=0,n=t.length;s({width:r[P]||0,height:a[P]||0});return{first:S(0),last:S(s-1),widest:S(x),highest:S(C),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,s){return NaN}getValueForPixel(t){}getPixelForTick(t){const s=this.ticks;return t<0||t>s.length-1?null:this.getPixelForValue(s[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const s=this._startPixel+t*this._length;return UD(this._alignToPixels?Nn(this.chart,s,0):s)}getDecimalForPixel(t){const s=(t-this._startPixel)/this._length;return this._reversePixels?1-s:s}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:s}=this;return t<0&&s<0?s:t>0&&s>0?t:0}getContext(t){const s=this.ticks||[];if(t>=0&&ta*i?a/n:l/i:l*i0}_computeGridLineItems(t){const s=this.axis,n=this.chart,i=this.options,{grid:o,position:r,border:a}=i,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=ho(o),g=[],m=a.setContext(this.getContext()),b=m.display?m.width:0,v=b/2,w=function(L){return Nn(n,L,b)};let E,$,T,y,x,C,S,P,M,I,N,Q;if(r==="top")E=w(this.bottom),C=this.bottom-f,P=E-v,I=w(t.top)+v,Q=t.bottom;else if(r==="bottom")E=w(this.top),I=t.top,Q=w(t.bottom)-v,C=E+v,P=this.top+f;else if(r==="left")E=w(this.right),x=this.right-f,S=E-v,M=w(t.left)+v,N=t.right;else if(r==="right")E=w(this.left),M=t.left,N=w(t.right)-v,x=E+v,S=this.left+f;else if(s==="x"){if(r==="center")E=w((t.top+t.bottom)/2+.5);else if(It(r)){const L=Object.keys(r)[0],W=r[L];E=w(this.chart.scales[L].getPixelForValue(W))}I=t.top,Q=t.bottom,C=E+v,P=C+f}else if(s==="y"){if(r==="center")E=w((t.left+t.right)/2);else if(It(r)){const L=Object.keys(r)[0],W=r[L];E=w(this.chart.scales[L].getPixelForValue(W))}x=E-v,S=x-f,M=t.left,N=t.right}const G=St(i.ticks.maxTicksLimit,u),V=Math.max(1,Math.ceil(u/G));for($=0;$0&&(Ct-=At/2);break}bt={left:Ct,top:Lt,width:At+_t.width,height:Pt+_t.height,color:V.backdropColor}}v.push({label:T,font:P,textOffset:N,options:{rotation:b,color:W,strokeColor:K,strokeWidth:ot,textAlign:ut,textBaseline:Q,translation:[y,x],backdrop:bt}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:s}=this.options;if(-ns(this.labelRotation))return t==="top"?"left":"right";let i="center";return s.align==="start"?i="left":s.align==="end"?i="right":s.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:s,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,d;return s==="left"?i?(d=this.right+o,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-a,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d=this.left)):s==="right"?i?(d=this.left+o,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+a,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,s=this.options.position;if(s==="left"||s==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(s==="top"||s==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:s},left:n,top:i,width:o,height:r}=this;s&&(t.save(),t.fillStyle=s,t.fillRect(n,i,o,r),t.restore())}getLineWidthForValue(t){const s=this.options.grid;if(!this._isVisible()||!s.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?s.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const s=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,d)=>{!d.width||!d.color||(n.save(),n.lineWidth=d.width,n.strokeStyle=d.color,n.setLineDash(d.borderDash||[]),n.lineDashOffset=d.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(s.display)for(o=0,r=i.length;o{this.draw(o)}}]:[{z:n,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:s,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const s=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,r;for(o=0,r=s.length;o{const n=s.split("."),i=n.pop(),o=[e].concat(n).join("."),r=t[s].split("."),a=r.pop(),l=r.join(".");Zt.route(o,i,l,a)})}function cL(e){return"id"in e&&"defaults"in e}class dL{constructor(){this.controllers=new Kr(os,"datasets",!0),this.elements=new Kr(js,"elements"),this.plugins=new Kr(Object,"plugins"),this.scales=new Kr(ni,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,s,n){[...s].forEach(i=>{const o=n||this._getRegistryForType(i);n||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):zt(i,r=>{const a=n||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,s,n){const i=Jd(t);Kt(n["before"+i],[],n),s[t](n),Kt(n["after"+i],[],n)}_getRegistryForType(t){for(let s=0;so.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(i(s,n),t,"stop"),this._notify(i(n,s),t,"start")}}function hL(e){const t={},s=[],n=Object.keys(us.plugins.items);for(let o=0;o1&&hp(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function fp(e,t,s){if(s[t+"AxisID"]===e)return{axis:t}}function vL(e,t){if(t.data&&t.data.datasets){const s=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(s.length)return fp(e,"x",s[0])||fp(e,"y",s[0])}return{}}function yL(e,t){const s=ti[e.type]||{scales:{}},n=t.scales||{},i=Fc(e.type,t),o=Object.create(null);return Object.keys(n).forEach(r=>{const a=n[r];if(!It(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Bc(r,a,vL(r,e),Zt.scales[a.type]),c=_L(l,i),d=s.scales||{};o[r]=Mo(Object.create(null),[{axis:l},a,d[l],d[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Fc(a,t),d=(ti[a]||{}).scales||{};Object.keys(d).forEach(u=>{const f=mL(u,l),g=r[f+"AxisID"]||f;o[g]=o[g]||Object.create(null),Mo(o[g],[{axis:f},n[g],d[u]])})}),Object.keys(o).forEach(r=>{const a=o[r];Mo(a,[Zt.scales[a.type],Zt.scale])}),o}function rb(e){const t=e.options||(e.options={});t.plugins=St(t.plugins,{}),t.scales=yL(e,t)}function ab(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function xL(e){return e=e||{},e.data=ab(e.data),rb(e),e}const pp=new Map,lb=new Set;function Yr(e,t){let s=pp.get(e);return s||(s=t(),pp.set(e,s),lb.add(s)),s}const fo=(e,t,s)=>{const n=_n(t,s);n!==void 0&&e.add(n)};let wL=class{constructor(t){this._config=xL(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=ab(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),rb(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Yr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,s){return Yr(`${t}.transition.${s}`,()=>[[`datasets.${t}.transitions.${s}`,`transitions.${s}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,s){return Yr(`${t}-${s}`,()=>[[`datasets.${t}.elements.${s}`,`datasets.${t}`,`elements.${s}`,""]])}pluginScopeKeys(t){const s=t.id,n=this.type;return Yr(`${n}-plugin-${s}`,()=>[[`plugins.${s}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,s){const n=this._scopeCache;let i=n.get(t);return(!i||s)&&(i=new Map,n.set(t,i)),i}getOptionScopes(t,s,n){const{options:i,type:o}=this,r=this._cachedScopes(t,n),a=r.get(s);if(a)return a;const l=new Set;s.forEach(d=>{t&&(l.add(t),d.forEach(u=>fo(l,t,u))),d.forEach(u=>fo(l,i,u)),d.forEach(u=>fo(l,ti[o]||{},u)),d.forEach(u=>fo(l,Zt,u)),d.forEach(u=>fo(l,Lc,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),lb.has(s)&&r.set(s,c),c}chartOptionScopes(){const{options:t,type:s}=this;return[t,ti[s]||{},Zt.datasets[s]||{},{type:s},Zt,Lc]}resolveNamedOptions(t,s,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=gp(this._resolverCache,t,i);let l=r;if(SL(r,s)){o.$shared=!1,n=bn(n)?n():n;const c=this.createResolver(t,n,a);l=Ui(r,n,c)}for(const c of s)o[c]=l[c];return o}createResolver(t,s,n=[""],i){const{resolver:o}=gp(this._resolverCache,t,n);return It(s)?Ui(o,s,void 0,i):o}};function gp(e,t,s){let n=e.get(t);n||(n=new Map,e.set(t,n));const i=s.join();let o=n.get(i);return o||(o={resolver:nu(t,s),subPrefixes:s.filter(a=>!a.toLowerCase().includes("hover"))},n.set(i,o)),o}const EL=e=>It(e)&&Object.getOwnPropertyNames(e).some(t=>bn(e[t]));function SL(e,t){const{isScriptable:s,isIndexable:n}=H_(e);for(const i of t){const o=s(i),r=n(i),a=(r||o)&&e[i];if(o&&(bn(a)||EL(a))||r&&qt(a))return!0}return!1}var AL="4.4.1";const CL=["top","bottom","left","right","chartArea"];function mp(e,t){return e==="top"||e==="bottom"||CL.indexOf(e)===-1&&t==="x"}function _p(e,t){return function(s,n){return s[e]===n[e]?s[t]-n[t]:s[e]-n[e]}}function bp(e){const t=e.chart,s=t.options.animation;t.notifyPlugins("afterRender"),Kt(s&&s.onComplete,[e],t)}function $L(e){const t=e.chart,s=t.options.animation;Kt(s&&s.onProgress,[e],t)}function cb(e){return ru()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const fa={},vp=e=>{const t=cb(e);return Object.values(fa).filter(s=>s.canvas===t).pop()};function PL(e,t,s){const n=Object.keys(e);for(const i of n){const o=+i;if(o>=t){const r=e[i];delete e[i],(s>0||o>t)&&(e[o+s]=r)}}}function kL(e,t,s,n){return!s||e.type==="mouseout"?null:n?t:e}function qr(e,t,s){return e.options.clip?e[s]:t[s]}function TL(e,t){const{xScale:s,yScale:n}=e;return s&&n?{left:qr(s,t,"left"),right:qr(s,t,"right"),top:qr(n,t,"top"),bottom:qr(n,t,"bottom")}:t}var Gs;let fl=(Gs=class{static register(...t){us.add(...t),yp()}static unregister(...t){us.remove(...t),yp()}constructor(t,s){const n=this.config=new wL(s),i=cb(t),o=vp(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Y2(i)),this.platform.updateConfig(n);const a=this.platform.acquireContext(i,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,d=l&&l.width;if(this.id=DD(),this.ctx=a,this.canvas=l,this.width=d,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new uL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=GD(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],fa[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}$s.listen(this,"complete",bp),$s.listen(this,"progress",$L),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:s},width:n,height:i,_aspectRatio:o}=this;return Ft(t)?s&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return us}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Hf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ff(this.canvas,this.ctx),this}stop(){return $s.stop(this),this}resize(t,s){$s.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,s,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Hf(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Kt(n.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const s=this.options.scales||{};zt(s,(n,i)=>{n.id=i})}buildOrUpdateScales(){const t=this.options,s=t.scales,n=this.scales,i=Object.keys(n).reduce((r,a)=>(r[a]=!1,r),{});let o=[];s&&(o=o.concat(Object.keys(s).map(r=>{const a=s[r],l=Bc(r,a),c=l==="r",d=l==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),zt(o,r=>{const a=r.options,l=a.id,c=Bc(l,a),d=St(a.type,r.dtype);(a.position===void 0||mp(a.position,c)!==mp(r.dposition))&&(a.position=r.dposition),i[l]=!0;let u=null;if(l in n&&n[l].type===d)u=n[l];else{const f=us.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(a,t)}),zt(i,(r,a)=>{r||delete n[a]}),zt(n,r=>{Ge.configure(this,r,r.options),Ge.addBox(this,r)})}_updateMetasets(){const t=this._metasets,s=this.data.datasets.length,n=t.length;if(t.sort((i,o)=>i.index-o.index),n>s){for(let i=s;is.length&&delete this._stacks,t.forEach((n,i)=>{s.filter(o=>o===n._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],s=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=s.length;n{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const s=this.config;s.update();const n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(_p("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){zt(this.scales,t=>{Ge.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!kf(s,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of s){const r=n==="_removeElements"?-o:o;PL(t,i,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const s=this.data.datasets.length,n=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),i=n(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ge.update(this,this.width,this.height,t);const s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],zt(this.boxes,i=>{n&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const s=this.ctx,n=t._clip,i=!n.disabled,o=TL(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&dl(s,{left:n.left===!1?0:o.left-n.left,right:n.right===!1?this.width:o.right+n.right,top:n.top===!1?0:o.top-n.top,bottom:n.bottom===!1?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&ul(s),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Is(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,n,i){const o=C2.modes[s];return typeof o=="function"?o(this,t,n,i):[]}getDatasetMeta(t){const s=this.data.datasets[t],n=this._metasets;let i=n.filter(o=>o&&o._dataset===s).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:t,_dataset:s,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=En(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const s=this.data.datasets[t];if(!s)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!s.hidden}setDatasetVisibility(t,s){const n=this.getDatasetMeta(t);n.hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);Yo(s)?(o.data[s].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,s){this._updateVisibility(t,s,!1)}show(t,s){this._updateVisibility(t,s,!0)}_destroyDatasetMeta(t){const s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),$s.remove(this),t=0,s=this.data.datasets.length;t{s.addEventListener(this,o,r),t[o]=r},i=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};zt(this.options.events,o=>n(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,s=this.platform,n=(l,c)=>{s.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(s.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",a)},s.isAttached(this.canvas)?a():r()}unbindEvents(){zt(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},zt(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){const i=n?"set":"remove";let o,r,a,l;for(s==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Pa(n,s)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,s))}notifyPlugins(t,s,n){return this._plugins.notify(this,t,s,n)}isPluginEnabled(t){return this._plugins._cache.filter(s=>s.plugin.id===t).length===1}_updateHoverStyles(t,s,n){const i=this.options.hover,o=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),r=o(s,t),a=n?t:o(t,s);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,s){const n={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},i=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,i)===!1)return;const o=this._handleEvent(t,s,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,s,n){const{_active:i=[],options:o}=this,r=s,a=this._getActiveElements(t,i,n,r),l=BD(t),c=kL(t,this._lastEvent,n,l);n&&(this._lastEvent=null,Kt(o.onHover,[t,a,this],this),l&&Kt(o.onClick,[t,a,this],this));const d=!Pa(a,i);return(d||s)&&(this._active=a,this._updateHoverStyles(a,i,s)),this._lastEvent=c,d}_getActiveElements(t,s,n,i){if(t.type==="mouseout")return[];if(!n)return s;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},it(Gs,"defaults",Zt),it(Gs,"instances",fa),it(Gs,"overrides",ti),it(Gs,"registry",us),it(Gs,"version",AL),it(Gs,"getChart",vp),Gs);function yp(){return zt(fl.instances,e=>e._plugins.invalidate())}function ML(e,t,s){const{startAngle:n,pixelMargin:i,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,r,a,n-c,s+c),l>i?(c=i/l,e.arc(o,r,l,s+c,n-c,!0)):e.arc(o,r,i,s+te,n-te),e.closePath(),e.clip()}function OL(e){return su(e,["outerStart","outerEnd","innerStart","innerEnd"])}function DL(e,t,s,n){const i=OL(e.options.borderRadius),o=(s-t)/2,r=Math.min(o,n*t/2),a=l=>{const c=(s-Math.min(o,l))*n/2;return de(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:de(i.innerStart,0,r),innerEnd:de(i.innerEnd,0,r)}}function gi(e,t,s,n){return{x:s+e*Math.cos(t),y:n+e*Math.sin(t)}}function Ia(e,t,s,n,i,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=t,u=Math.max(t.outerRadius+n+s-c,0),f=d>0?d+n+s+c:0;let g=0;const m=i-l;if(n){const V=d>0?d-n:0,L=u>0?u-n:0,W=(V+L)/2,K=W!==0?m*W/(W+n):m;g=(m-K)/2}const b=Math.max(.001,m*u-s/Xt)/u,v=(m-b)/2,w=l+v+g,E=i-v-g,{outerStart:$,outerEnd:T,innerStart:y,innerEnd:x}=DL(t,f,u,E-w),C=u-$,S=u-T,P=w+$/C,M=E-T/S,I=f+y,N=f+x,Q=w+y/I,G=E-x/N;if(e.beginPath(),o){const V=(P+M)/2;if(e.arc(r,a,u,P,V),e.arc(r,a,u,V,M),T>0){const ot=gi(S,M,r,a);e.arc(ot.x,ot.y,T,M,E+te)}const L=gi(N,E,r,a);if(e.lineTo(L.x,L.y),x>0){const ot=gi(N,G,r,a);e.arc(ot.x,ot.y,x,E+te,G+Math.PI)}const W=(E-x/f+(w+y/f))/2;if(e.arc(r,a,f,E-x/f,W,!0),e.arc(r,a,f,W,w+y/f,!0),y>0){const ot=gi(I,Q,r,a);e.arc(ot.x,ot.y,y,Q+Math.PI,w-te)}const K=gi(C,w,r,a);if(e.lineTo(K.x,K.y),$>0){const ot=gi(C,P,r,a);e.arc(ot.x,ot.y,$,w-te,P)}}else{e.moveTo(r,a);const V=Math.cos(P)*u+r,L=Math.sin(P)*u+a;e.lineTo(V,L);const W=Math.cos(M)*u+r,K=Math.sin(M)*u+a;e.lineTo(W,K)}e.closePath()}function IL(e,t,s,n,i){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Ia(e,t,s,n,l,i);for(let c=0;c=Gt||qo(r,l,c),v=Os(a,d+g,u+g);return b&&v}getCenterPoint(s){const{x:n,y:i,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],s),{offset:c,spacing:d}=this.options,u=(o+r)/2,f=(a+l+d+c)/2;return{x:n+Math.cos(u)*f,y:i+Math.sin(u)*f}}tooltipPosition(s){return this.getCenterPoint(s)}draw(s){const{options:n,circumference:i}=this,o=(n.offset||0)/4,r=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>Gt?Math.floor(i/Gt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;s.save();const l=(this.startAngle+this.endAngle)/2;s.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Xt,i||0)),d=o*c;s.fillStyle=n.backgroundColor,s.strokeStyle=n.borderColor,IL(s,this,d,r,a),LL(s,this,d,r,a),s.restore()}}it(vo,"id","arc"),it(vo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),it(vo,"defaultRoutes",{backgroundColor:"backgroundColor"}),it(vo,"descriptors",{_scriptable:!0,_indexable:s=>s!=="borderDash"});function db(e,t,s=t){e.lineCap=St(s.borderCapStyle,t.borderCapStyle),e.setLineDash(St(s.borderDash,t.borderDash)),e.lineDashOffset=St(s.borderDashOffset,t.borderDashOffset),e.lineJoin=St(s.borderJoinStyle,t.borderJoinStyle),e.lineWidth=St(s.borderWidth,t.borderWidth),e.strokeStyle=St(s.borderColor,t.borderColor)}function RL(e,t,s){e.lineTo(s.x,s.y)}function NL(e){return e.stepped?aI:e.tension||e.cubicInterpolationMode==="monotone"?lI:RL}function ub(e,t,s={}){const n=e.length,{start:i=0,end:o=n-1}=s,{start:r,end:a}=t,l=Math.max(i,r),c=Math.min(o,a),d=ia&&o>a;return{count:n,start:l,loop:t.loop,ilen:c(r+(c?a-T:T))%o,$=()=>{b!==v&&(e.lineTo(d,v),e.lineTo(d,b),e.lineTo(d,w))};for(l&&(g=i[E(0)],e.moveTo(g.x,g.y)),f=0;f<=a;++f){if(g=i[E(f)],g.skip)continue;const T=g.x,y=g.y,x=T|0;x===m?(yv&&(v=y),d=(u*d+T)/++u):($(),e.lineTo(T,y),m=x,u=0,b=v=y),w=y}$()}function Vc(e){const t=e.options,s=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!s?BL:FL}function VL(e){return e.stepped?VI:e.tension||e.cubicInterpolationMode==="monotone"?HI:Hn}function HL(e,t,s,n){let i=t._path;i||(i=t._path=new Path2D,t.path(i,s,n)&&i.closePath()),db(e,t.options),e.stroke(i)}function jL(e,t,s,n){const{segments:i,options:o}=t,r=Vc(t);for(const a of i)db(e,o,a.style),e.beginPath(),r(e,t,a,{start:s,end:s+n-1})&&e.closePath(),e.stroke()}const WL=typeof Path2D=="function";function zL(e,t,s,n){WL&&!t.options.segment?HL(e,t,s,n):jL(e,t,s,n)}class ln extends js{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,s){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;OI(this._points,n,t,i,s),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=YI(this,this.options.segment))}first(){const t=this.segments,s=this.points;return t.length&&s[t[0].start]}last(){const t=this.segments,s=this.points,n=t.length;return n&&s[t[n-1].end]}interpolate(t,s){const n=this.options,i=t[s],o=this.points,r=J_(this,{property:s,start:i,end:i});if(!r.length)return;const a=[],l=VL(n);let c,d;for(c=0,d=r.length;ct!=="borderDash"&&t!=="fill"});function xp(e,t,s,n){const i=e.options,{[s]:o}=e.getProps([s],n);return Math.abs(t-o)=s)return e.slice(t,t+s);const r=[],a=(s-2)/(o-2);let l=0;const c=t+s-1;let d=t,u,f,g,m,b;for(r[l++]=e[d],u=0;ug&&(g=m,f=e[E],b=E);r[l++]=f,d=b}return r[l++]=e[c],r}function JL(e,t,s,n){let i=0,o=0,r,a,l,c,d,u,f,g,m,b;const v=[],w=t+s-1,E=e[t].x,T=e[w].x-E;for(r=t;rb&&(b=c,f=r),i=(o*i+a.x)/++o;else{const x=r-1;if(!Ft(u)&&!Ft(f)){const C=Math.min(u,f),S=Math.max(u,f);C!==g&&C!==x&&v.push({...e[C],x:i}),S!==g&&S!==x&&v.push({...e[S],x:i})}r>0&&x!==g&&v.push(e[x]),v.push(a),d=y,o=0,m=b=c,u=f=g=r}}return v}function fb(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function wp(e){e.data.datasets.forEach(t=>{fb(t)})}function QL(e,t){const s=t.length;let n=0,i;const{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(n=de(Ds(t,o.axis,r).lo,0,s-1)),c?i=de(Ds(t,o.axis,a).hi+1,n,s)-n:i=s-n,{start:n,count:i}}var ZL={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,s)=>{if(!s.enabled){wp(e);return}const n=e.width;e.data.datasets.forEach((i,o)=>{const{_data:r,indexAxis:a}=i,l=e.getDatasetMeta(o),c=r||i.data;if(_o([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const d=e.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:u,count:f}=QL(l,c);const g=s.threshold||4*n;if(f<=g){fb(i);return}Ft(r)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let m;switch(s.algorithm){case"lttb":m=XL(c,u,f,n,s);break;case"min-max":m=JL(c,u,f,n);break;default:throw new Error(`Unsupported decimation algorithm '${s.algorithm}'`)}i._decimated=m})},destroy(e){wp(e)}};function tR(e,t,s){const n=e.segments,i=e.points,o=t.points,r=[];for(const a of n){let{start:l,end:c}=a;c=cu(l,c,i);const d=Hc(s,i[l],i[c],a.loop);if(!t.segments){r.push({source:a,target:d,start:i[l],end:i[c]});continue}const u=J_(t,d);for(const f of u){const g=Hc(s,o[f.start],o[f.end],f.loop),m=X_(a,i,g);for(const b of m)r.push({source:b,target:f,start:{[s]:Ep(d,g,"start",Math.max)},end:{[s]:Ep(d,g,"end",Math.min)}})}}return r}function Hc(e,t,s,n){if(n)return;let i=t[e],o=s[e];return e==="angle"&&(i=Ie(i),o=Ie(o)),{property:e,start:i,end:o}}function eR(e,t){const{x:s=null,y:n=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=cu(r,a,i);const l=i[r],c=i[a];n!==null?(o.push({x:l.x,y:n}),o.push({x:c.x,y:n})):s!==null&&(o.push({x:s,y:l.y}),o.push({x:s,y:c.y}))}),o}function cu(e,t,s){for(;t>e;t--){const n=s[t];if(!isNaN(n.x)&&!isNaN(n.y))break}return t}function Ep(e,t,s,n){return e&&t?n(e[s],t[s]):e?e[s]:t?t[s]:0}function pb(e,t){let s=[],n=!1;return qt(e)?(n=!0,s=e):s=eR(e,t),s.length?new ln({points:s,options:{tension:0},_loop:n,_fullLoop:n}):null}function Sp(e){return e&&e.fill!==!1}function sR(e,t,s){let i=e[t].fill;const o=[t];let r;if(!s)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Qt(i))return i;if(r=e[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function nR(e,t,s){const n=aR(e);if(It(n))return isNaN(n.value)?!1:n;let i=parseFloat(n);return Qt(i)&&Math.floor(i)===i?iR(n[0],t,i,s):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function iR(e,t,s,n){return(e==="-"||e==="+")&&(s=t+s),s===t||s<0||s>=n?!1:s}function oR(e,t){let s=null;return e==="start"?s=t.bottom:e==="end"?s=t.top:It(e)?s=t.getPixelForValue(e.value):t.getBasePixel&&(s=t.getBasePixel()),s}function rR(e,t,s){let n;return e==="start"?n=s:e==="end"?n=t.options.reverse?t.min:t.max:It(e)?n=e.value:n=t.getBaseValue(),n}function aR(e){const t=e.options,s=t.fill;let n=St(s&&s.target,s);return n===void 0&&(n=!!t.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function lR(e){const{scale:t,index:s,line:n}=e,i=[],o=n.segments,r=n.points,a=cR(t,s);a.push(pb({x:null,y:t.bottom},n));for(let l=0;l=0;--r){const a=i[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),n&&a.fill&&rc(e.ctx,a,o))}},beforeDatasetsDraw(e,t,s){if(s.drawTime!=="beforeDatasetsDraw")return;const n=e.getSortedVisibleDatasetMetas();for(let i=n.length-1;i>=0;--i){const o=n[i].$filler;Sp(o)&&rc(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,s){const n=t.meta.$filler;!Sp(n)||s.drawTime!=="beforeDatasetDraw"||rc(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Pp=(e,t)=>{let{boxHeight:s=t,boxWidth:n=t}=e;return e.usePointStyle&&(s=Math.min(s,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:s,itemHeight:Math.max(t,s)}},yR=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class kp extends js{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,s,n){this.maxWidth=t,this.maxHeight=s,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let s=Kt(t.generateLabels,[this.chart],this)||[];t.filter&&(s=s.filter(n=>t.filter(n,this.chart.data))),t.sort&&(s=s.sort((n,i)=>t.sort(n,i,this.chart.data))),this.options.reverse&&s.reverse(),this.legendItems=s}fit(){const{options:t,ctx:s}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,i=re(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Pp(n,o);let c,d;s.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(r,o,a,l)+10):(d=this.maxHeight,c=this._fitCols(r,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,s,n,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=i+a;let u=t;o.textAlign="left",o.textBaseline="middle";let f=-1,g=-d;return this.legendItems.forEach((m,b)=>{const v=n+s/2+o.measureText(m.text).width;(b===0||c[c.length-1]+v+2*a>r)&&(u+=d,c[c.length-(b>0?0:1)]=0,g+=d,f++),l[b]={left:0,top:g,row:f,width:v,height:i},c[c.length-1]+=v+a}),u}_fitCols(t,s,n,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=r-t;let u=a,f=0,g=0,m=0,b=0;return this.legendItems.forEach((v,w)=>{const{itemWidth:E,itemHeight:$}=xR(n,s,o,v,i);w>0&&g+$+2*a>d&&(u+=f+a,c.push({width:f,height:g}),m+=f+a,b++,f=g=0),l[w]={left:m,top:g,col:b,width:E,height:$},f=Math.max(f,E),g+=$+a}),u+=f,c.push({width:f,height:g}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:s,options:{align:n,labels:{padding:i},rtl:o}}=this,r=Ai(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ge(n,this.left+i,this.right-this.lineWidths[a]);for(const c of s)a!==c.row&&(a=c.row,l=ge(n,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+i}else{let a=0,l=ge(n,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of s)c.col!==a&&(a=c.col,l=ge(n,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;dl(t,this),this._draw(),ul(t)}}_draw(){const{options:t,columnSizes:s,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,a=Zt.color,l=Ai(t.rtl,this.left,this.width),c=re(r.font),{padding:d}=r,u=c.size,f=u/2;let g;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:b,itemHeight:v}=Pp(r,u),w=function(x,C,S){if(isNaN(m)||m<=0||isNaN(b)||b<0)return;i.save();const P=St(S.lineWidth,1);if(i.fillStyle=St(S.fillStyle,a),i.lineCap=St(S.lineCap,"butt"),i.lineDashOffset=St(S.lineDashOffset,0),i.lineJoin=St(S.lineJoin,"miter"),i.lineWidth=P,i.strokeStyle=St(S.strokeStyle,a),i.setLineDash(St(S.lineDash,[])),r.usePointStyle){const M={radius:b*Math.SQRT2/2,pointStyle:S.pointStyle,rotation:S.rotation,borderWidth:P},I=l.xPlus(x,m/2),N=C+f;B_(i,M,I,N,r.pointStyleWidth&&m)}else{const M=C+Math.max((u-b)/2,0),I=l.leftForLtr(x,m),N=Gn(S.borderRadius);i.beginPath(),Object.values(N).some(Q=>Q!==0)?Go(i,{x:I,y:M,w:m,h:b,radius:N}):i.rect(I,M,m,b),i.fill(),P!==0&&i.stroke()}i.restore()},E=function(x,C,S){ei(i,S.text,x,C+v/2,c,{strikethrough:S.hidden,textAlign:l.textAlign(S.textAlign)})},$=this.isHorizontal(),T=this._computeTitleHeight();$?g={x:ge(o,this.left+d,this.right-n[0]),y:this.top+d+T,line:0}:g={x:this.left+d,y:ge(o,this.top+T+d,this.bottom-s[0].height),line:0},Y_(this.ctx,t.textDirection);const y=v+d;this.legendItems.forEach((x,C)=>{i.strokeStyle=x.fontColor,i.fillStyle=x.fontColor;const S=i.measureText(x.text).width,P=l.textAlign(x.textAlign||(x.textAlign=r.textAlign)),M=m+f+S;let I=g.x,N=g.y;l.setWidth(this.width),$?C>0&&I+M+d>this.right&&(N=g.y+=y,g.line++,I=g.x=ge(o,this.left+d,this.right-n[g.line])):C>0&&N+y>this.bottom&&(I=g.x=I+s[g.line].width+d,g.line++,N=g.y=ge(o,this.top+T+d,this.bottom-s[g.line].height));const Q=l.x(I);if(w(Q,N,x),I=XD(P,I+m+f,$?I+M:this.right,t.rtl),E(l.x(I),N,x),$)g.x+=M+d;else if(typeof x.text!="string"){const G=c.lineHeight;g.y+=mb(x,G)+d}else g.y+=y}),q_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,s=t.title,n=re(s.font),i=be(s.padding);if(!s.display)return;const o=Ai(t.rtl,this.left,this.width),r=this.ctx,a=s.position,l=n.size/2,c=i.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=ge(t.align,u,this.right-f);else{const m=this.columnSizes.reduce((b,v)=>Math.max(b,v.height),0);d=c+ge(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const g=ge(a,u,u+f);r.textAlign=o.textAlign(tu(a)),r.textBaseline="middle",r.strokeStyle=s.color,r.fillStyle=s.color,r.font=n.string,ei(r,s.text,g,d,n)}_computeTitleHeight(){const t=this.options.title,s=re(t.font),n=be(t.padding);return t.display?s.lineHeight+n.height:0}_getLegendItemAt(t,s){let n,i,o;if(Os(t,this.left,this.right)&&Os(s,this.top,this.bottom)){for(o=this.legendHitBoxes,n=0;no.length>r.length?o:r)),t+s.size/2+n.measureText(i).width}function ER(e,t,s){let n=e;return typeof t.text!="string"&&(n=mb(t,s)),n}function mb(e,t){const s=e.text?e.text.length:0;return t*s}function SR(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var AR={id:"legend",_element:kp,start(e,t,s){const n=e.legend=new kp({ctx:e.ctx,options:s,chart:e});Ge.configure(e,n,s),Ge.addBox(e,n)},stop(e){Ge.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,s){const n=e.legend;Ge.configure(e,n,s),n.options=s},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,s){const n=t.datasetIndex,i=s.chart;i.isDatasetVisible(n)?(i.hide(n),t.hidden=!0):(i.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:s,pointStyle:n,textAlign:i,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(s?0:void 0),d=be(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class _b extends js{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,s){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=s;const i=qt(n.text)?n.text.length:1;this._padding=be(n.padding);const o=i*re(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:s,left:n,bottom:i,right:o,options:r}=this,a=r.align;let l=0,c,d,u;return this.isHorizontal()?(d=ge(a,n,o),u=s+t,c=o-n):(r.position==="left"?(d=n+t,u=ge(a,i,s),l=Xt*-.5):(d=o-t,u=ge(a,s,i),l=Xt*.5),c=i-s),{titleX:d,titleY:u,maxWidth:c,rotation:l}}draw(){const t=this.ctx,s=this.options;if(!s.display)return;const n=re(s.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);ei(t,s.text,0,0,n,{color:s.color,maxWidth:l,rotation:c,textAlign:tu(s.align),textBaseline:"middle",translation:[r,a]})}}function CR(e,t){const s=new _b({ctx:e.ctx,options:t,chart:e});Ge.configure(e,s,t),Ge.addBox(e,s),e.titleBlock=s}var $R={id:"title",_element:_b,start(e,t,s){CR(e,s)},stop(e){const t=e.titleBlock;Ge.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,s){const n=e.titleBlock;Ge.configure(e,n,s),n.options=s},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const yo={average(e){if(!e.length)return!1;let t,s,n=0,i=0,o=0;for(t=0,s=e.length;t-1?e.split(` -`):e}function eL(e,t){const{element:n,datasetIndex:s,index:i}=t,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(i);return{chart:e,label:r,parsed:o.getParsed(i),raw:e.data.datasets[s].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function Ap(e,t){const n=e.chart.ctx,{body:s,footer:i,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=oe(t.bodyFont),c=oe(t.titleFont),u=oe(t.footerFont),d=o.length,f=i.length,p=s.length,m=ge(t.padding);let _=m.height,v=0,x=s.reduce((A,y)=>A+y.before.length+y.lines.length+y.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,d&&(_+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),x){const A=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;_+=p*A+(x-p)*l.lineHeight+(x-1)*t.bodySpacing}f&&(_+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let S=0;const P=function(A){v=Math.max(v,n.measureText(A).width+S)};return n.save(),n.font=c.string,Bt(e.title,P),n.font=l.string,Bt(e.beforeBody.concat(e.afterBody),P),S=t.displayColors?r+2+t.boxPadding:0,Bt(s,A=>{Bt(A.before,P),Bt(A.lines,P),Bt(A.after,P)}),S=0,n.font=u.string,Bt(e.footer,P),n.restore(),v+=m.width,{width:v,height:_}}function nL(e,t){const{y:n,height:s}=t;return ne.height-s/2?"bottom":"center"}function sL(e,t,n,s){const{x:i,width:o}=s,r=n.caretSize+n.caretPadding;if(e==="left"&&i+o+r>t.width||e==="right"&&i-o-r<0)return!0}function iL(e,t,n,s){const{x:i,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return s==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=r-o/2&&(c="right"),sL(c,e,t,n)&&(c="center"),c}function Cp(e,t,n){const s=n.yAlign||t.yAlign||nL(e,n);return{xAlign:n.xAlign||t.xAlign||iL(e,t,n,s),yAlign:s}}function oL(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function rL(e,t,n){let{y:s,height:i}=e;return t==="top"?s+=n:t==="bottom"?s-=i+n:s-=i/2,s}function Tp(e,t,n,s){const{caretSize:i,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Ks(r);let m=oL(t,a);const _=rL(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,f)+i:a==="right"&&(m+=Math.max(d,p)+i),{x:le(m,0,s.width-t.width),y:le(_,0,s.height-t.height)}}function Zr(e,t,n){const s=ge(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function Pp(e){return rn([],Sn(e))}function aL(e,t,n){return bs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function kp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const hb={beforeTitle:xn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex"u"?hb[t].call(n,s):i}class Vc extends Fn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,o=new j_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=aL(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:s}=n,i=xe(s,"beforeTitle",this,t),o=xe(s,"title",this,t),r=xe(s,"afterTitle",this,t);let a=[];return a=rn(a,Sn(i)),a=rn(a,Sn(o)),a=rn(a,Sn(r)),a}getBeforeBody(t,n){return Pp(xe(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:s}=n,i=[];return Bt(t,o=>{const r={before:[],lines:[],after:[]},a=kp(s,o);rn(r.before,Sn(xe(a,"beforeLabel",this,o))),rn(r.lines,xe(a,"label",this,o)),rn(r.after,Sn(xe(a,"afterLabel",this,o))),i.push(r)}),i}getAfterBody(t,n){return Pp(xe(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:s}=n,i=xe(s,"beforeFooter",this,t),o=xe(s,"footer",this,t),r=xe(s,"afterFooter",this,t);let a=[];return a=rn(a,Sn(i)),a=rn(a,Sn(o)),a=rn(a,Sn(r)),a}_createItems(t){const n=this._active,s=this.chart.data,i=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;lt.filter(u,d,f,s))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,s))),Bt(a,u=>{const d=kp(t.callbacks,u);i.push(xe(d,"labelColor",this,u)),o.push(xe(d,"labelPointStyle",this,u)),r.push(xe(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const s=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=wo[s.position].call(this,i,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=Ap(this,s),c=Object.assign({},a,l),u=Cp(this.chart,s,c),d=Tp(s,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,i){const o=this.getCaretPosition(t,s,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,s){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Ks(a),{x:f,y:p}=t,{width:m,height:_}=n;let v,x,S,P,A,y;return o==="center"?(A=p+_/2,i==="left"?(v=f,x=v-r,P=A+r,y=A-r):(v=f+m,x=v+r,P=A-r,y=A+r),S=v):(i==="left"?x=f+Math.max(l,u)+r:i==="right"?x=f+m-Math.max(c,d)-r:x=this.caretX,o==="top"?(P=p,A=P-r,v=x-r,S=x+r):(P=p+_,A=P+r,v=x+r,S=x-r),y=P),{x1:v,x2:x,x3:S,y1:P,y2:A,y3:y}}drawTitle(t,n,s){const i=this.title,o=i.length;let r,a,l;if(o){const c=Ci(s.rtl,this.x,this.width);for(t.x=Zr(this,s.titleAlign,s),n.textAlign=c.textAlign(s.titleAlign),n.textBaseline="middle",r=oe(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=r.string,l=0;lS!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,tr(t,{x:_,y:m,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),tr(t,{x:v,y:m+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(_,m,c,l),t.strokeRect(_,m,c,l),t.fillStyle=r.backgroundColor,t.fillRect(v,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=s,d=oe(s.bodyFont);let f=d.lineHeight,p=0;const m=Ci(s.rtl,this.x,this.width),_=function(w){n.fillText(w,m.x(t.x+p),t.y+f/2),t.y+=f+o},v=m.textAlign(r);let x,S,P,A,y,E,C;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=Zr(this,v,s),n.fillStyle=s.bodyColor,Bt(this.beforeBody,_),p=a&&v!=="right"?r==="center"?c/2+u:c+2+u:0,A=0,E=i.length;A0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,s=this.$animations,i=s&&s.x,o=s&&s.y;if(i||o){const r=wo[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Ap(this,t),l=Object.assign({},r,this._size),c=Cp(n,t,l),u=Tp(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=ge(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,i,n),N_(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),F_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const s=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Sa(s,i),r=this._positionChanged(i,n);(o||r)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,s),a=this._positionChanged(r,t),l=n||!Sa(r,o)||a;return l&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,s,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:s,caretY:i,options:o}=this,r=wo[o.position].call(this,t,n);return r!==!1&&(s!==r.x||i!==r.y)}}it(Vc,"positioners",wo);var fb={id:"tooltip",_element:Vc,positioners:wo,afterInit(e,t,n){n&&(e.tooltip=new Vc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:hb},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const lL=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function cL(e,t,n,s){const i=e.indexOf(t);if(i===-1)return lL(e,t,n,s);const o=e.lastIndexOf(t);return i!==o?n:i}const uL=(e,t)=>e===null?null:le(Math.round(e),0,t);function $p(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}it(Oa,"id","category"),it(Oa,"defaults",{ticks:{callback:$p}});function dL(e,t){const n=[],{bounds:i,step:o,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=o||1,m=u-1,{min:_,max:v}=t,x=!Lt(r),S=!Lt(a),P=!Lt(c),A=(v-_)/(d+1);let y=Cf((v-_)/m/p)*p,E,C,w,$;if(y<1e-14&&!x&&!S)return[{value:_},{value:v}];$=Math.ceil(v/y)-Math.floor(_/y),$>m&&(y=Cf($*y/m/p)*p),Lt(l)||(E=Math.pow(10,l),y=Math.ceil(y*E)/E),i==="ticks"?(C=Math.floor(_/y)*y,w=Math.ceil(v/y)*y):(C=_,w=v),x&&S&&o&&yO((a-r)/o,y/1e3)?($=Math.round(Math.min((a-r)/y,u)),y=(a-r)/$,C=r,w=a):P?(C=x?r:C,w=S?a:w,$=c-1,y=(w-C)/$):($=(w-C)/y,Oo($,Math.round($),y/1e3)?$=Math.round($):$=Math.ceil($));const D=Math.max(Tf(y),Tf(C));E=Math.pow(10,Lt(l)?D:l),C=Math.round(C*E)/E,w=Math.round(w*E)/E;let I=0;for(x&&(f&&C!==r?(n.push({value:r}),Ca)break;n.push({value:N})}return S&&f&&w!==a?n.length&&Oo(n[n.length-1].value,a,Mp(a,A,e))?n[n.length-1].value=a:n.push({value:a}):(!S||w===a)&&n.push({value:w}),n}function Mp(e,t,{horizontal:n,minRotation:s}){const i=tn(s),o=(n?Math.sin(i):Math.cos(i))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class Da extends si{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Lt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:i,max:o}=this;const r=l=>i=n?i:l,a=l=>o=s?o:l;if(t){const l=fn(i),c=fn(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=t,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const i={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=dL(i,o);return t.bounds==="ticks"&&y_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const i=(s-n)/Math.max(t.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return dr(t,this.chart.options.locale,this.options.ticks.format)}}class Ia extends Da{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Jt(t)?t:0,this.max=Jt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,s=tn(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}it(Ia,"id","linear"),it(Ia,"defaults",{ticks:{callback:ul.formatters.numeric}});const nr=e=>Math.floor(es(e)),Ls=(e,t)=>Math.pow(10,nr(e)+t);function Op(e){return e/Math.pow(10,nr(e))===1}function Dp(e,t,n){const s=Math.pow(10,n),i=Math.floor(e/s);return Math.ceil(t/s)-i}function hL(e,t){const n=t-e;let s=nr(n);for(;Dp(e,t,s)>10;)s++;for(;Dp(e,t,s)<10;)s--;return Math.min(s,nr(e))}function fL(e,{min:t,max:n}){t=Pe(e.min,t);const s=[],i=nr(t);let o=hL(t,n),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),f=Pe(e.min,Math.round((l+u+d*Math.pow(10,o))*r)/r);for(;f=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),f=Math.round((l+u+d*Math.pow(10,o))*r)/r;const p=Pe(e.max,f);return s.push({value:p,major:Op(p),significand:d}),s}class La extends si{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const s=Da.prototype.parse.apply(this,[t,n]);if(s===0){this._zero=!0;return}return Jt(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Jt(t)?Math.max(0,t):null,this.max=Jt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Jt(this._userMin)&&(this.min=t===Ls(this.min,0)?Ls(this.min,-1):Ls(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let s=this.min,i=this.max;const o=a=>s=t?s:a,r=a=>i=n?i:a;s===i&&(s<=0?(o(1),r(10)):(o(Ls(s,-1)),r(Ls(i,1)))),s<=0&&o(Ls(i,-1)),i<=0&&r(Ls(s,1)),this.min=s,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},s=fL(n,this);return t.bounds==="ticks"&&y_(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":dr(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=es(t),this._valueRange=es(this.max)-es(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(es(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}it(La,"id","logarithmic"),it(La,"defaults",{ticks:{callback:ul.formatters.logarithmic,major:{enabled:!0}}});function Hc(e){const t=e.ticks;if(t.display&&e.display){const n=ge(t.backdropPadding);return Et(t.font&&t.font.size,Zt.font.size)+n.height}return 0}function pL(e,t,n){return n=zt(n)?n:[n],{w:NO(e,t.string,n),h:n.length*t.lineHeight}}function Ip(e,t,n,s,i){return e===s||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function gL(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),s=[],i=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?qt/o:0;for(let l=0;lt.r&&(a=(s.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function _L(e,t,n){const s=e.drawingArea,{extra:i,additionalAngle:o,padding:r,size:a}=n,l=e.getPointPosition(t,s+i+r,o),c=Math.round(Xu($e(l.angle+te))),u=wL(l.y,a.h,c),d=yL(c),f=xL(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function bL(e,t){if(!t)return!0;const{left:n,top:s,right:i,bottom:o}=e;return!(Mn({x:n,y:s},t)||Mn({x:n,y:o},t)||Mn({x:i,y:s},t)||Mn({x:i,y:o},t))}function vL(e,t,n){const s=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:Hc(o)/2,additionalAngle:r?qt/i:0};let c;for(let u=0;u270||n<90)&&(e-=t),e}function EL(e,t,n){const{left:s,top:i,right:o,bottom:r}=n,{backdropColor:a}=t;if(!Lt(a)){const l=Ks(t.borderRadius),c=ge(t.backdropPadding);e.fillStyle=a;const u=s-c.left,d=i-c.top,f=o-s+c.width,p=r-i+c.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),tr(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function SL(e,t){const{ctx:n,options:{pointLabels:s}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const r=s.setContext(e.getPointLabelContext(i));EL(n,r,o);const a=oe(r.font),{x:l,y:c,textAlign:u}=o;Js(n,e._pointLabels[i],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function pb(e,t,n,s){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Yt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let r=1;r{const i=Ht(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?gL(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,s,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,s,i))}getIndexAngle(t){const n=Yt/(this._pointLabels.length||1),s=this.options.startAngle||0;return $e(t*n+tn(s))}getDistanceFromCenterForValue(t){if(Lt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Lt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=i.setContext(f),m=o.setContext(f);AL(this,p,l,r,m)}}),s.display){for(t.save(),a=r-1;a>=0;a--){const u=s.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=s.setContext(this.getContext(l)),u=oe(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=ge(c.backdropPadding);t.fillRect(-r/2-d.left,-o-u.size/2-d.top,r+d.width,u.size+d.height)}Js(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}it(xi,"id","radialLinear"),it(xi,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ul.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),it(xi,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),it(xi,"descriptors",{angleLines:{_fallback:"grid"}});const pl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ee=Object.keys(pl);function Lp(e,t){return e-t}function Rp(e,t){if(Lt(t))return null;const n=e._adapter,{parser:s,round:i,isoWeekday:o}=e._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),Jt(r)||(r=typeof s=="string"?n.parse(r,s):n.parse(r)),r===null?null:(i&&(r=i==="week"&&(Yi(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,i)),+r)}function Np(e,t,n,s){const i=Ee.length;for(let o=Ee.indexOf(e);o=Ee.indexOf(n);o--){const r=Ee[o];if(pl[r].common&&e._adapter.diff(i,s,r)>=t-1)return r}return Ee[n?Ee.indexOf(n):0]}function PL(e){for(let t=Ee.indexOf(e)+1,n=Ee.length;t=t?n[s]:n[i];e[o]=!0}}function kL(e,t,n,s){const i=e._adapter,o=+i.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+i.add(a,1,s))l=n[a],l>=0&&(t[l].major=!0);return t}function Bp(e,t,n){const s=[],i={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let n=0,s=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=le(n,0,r),s=le(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,n=this.min,s=this.max,i=this.options,o=i.time,r=o.unit||Np(o.minUnit,n,s,this._getLabelCapacity(n)),a=Et(i.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=Yi(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,n,r)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+r);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f+_)}getLabelForValue(t){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,r=n||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,s,i){const o=this.options,r=o.ticks.callback;if(r)return Ht(r,[t,n,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=s[n],p=c&&d&&f&&f.major;return this._adapter.format(t,i||(p?d:u))}generateTickLabels(t){let n,s,i;for(n=0,s=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n=e[s].pos&&t<=e[i].pos&&({lo:s,hi:i}=$n(e,"pos",t)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[i]):(t>=e[s].time&&t<=e[i].time&&({lo:s,hi:i}=$n(e,"time",t)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[i]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Ra extends Xi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=ta(n,this.min),this._tableRange=ta(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:s}=this,i=[],o=[];let r,a,l,c,u;for(r=0,a=t.length;r=n&&c<=s&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(r=0,a=i.length;ri-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(ta(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return ta(this._table,s*this._tableRange+this._minPos,!0)}}it(Ra,"id","timeseries"),it(Ra,"defaults",Xi.defaults);const gb={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},$L={ariaLabel:{type:String},ariaDescribedby:{type:String}},ML={type:{type:String,required:!0},...gb,...$L},OL=ym[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function mi(e){return Ua(e)?kt(e):e}function DL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return Ua(t)?new Proxy(e,{}):e}function IL(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function mb(e,t){e.labels=t}function _b(e,t,n){const s=[];e.datasets=t.map(i=>{const o=e.datasets.find(r=>r[n]===i[n]);return!o||!i.data||s.includes(o)?{...i}:(s.push(o),Object.assign(o,i),o)})}function LL(e,t){const n={labels:[],datasets:[]};return mb(n,e.labels),_b(n,e.datasets,t),n}const RL=Ga({props:ML,setup(e,t){let{expose:n,slots:s}=t;const i=Li(null),o=yu(null);n({chart:o});const r=()=>{if(!i.value)return;const{type:c,data:u,options:d,plugins:f,datasetIdKey:p}=e,m=LL(u,p),_=DL(m,u);o.value=new fr(i.value,{type:c,data:_,options:{...d},plugins:f})},a=()=>{const c=kt(o.value);c&&(c.destroy(),o.value=null)},l=c=>{c.update(e.updateMode)};return ku(r),$u(a),zs([()=>e.options,()=>e.data],(c,u)=>{let[d,f]=c,[p,m]=u;const _=kt(o.value);if(!_)return;let v=!1;if(d){const x=mi(d),S=mi(p);x&&x!==S&&(IL(_,x),v=!0)}if(f){const x=mi(f.labels),S=mi(m.labels),P=mi(f.datasets),A=mi(m.datasets);x!==S&&(mb(_.config.data,x),v=!0),P&&P!==A&&(_b(_.config.data,P,e.datasetIdKey),v=!0)}v&&Ka(()=>{l(_)})},{deep:!0}),()=>Fi("canvas",{role:"img",ariaLabel:e.ariaLabel,ariaDescribedby:e.ariaDescribedby,ref:i},[Fi("p",{},[s.default?s.default():""])])}});function bb(e,t){return fr.register(t),Ga({props:gb,setup(n,s){let{expose:i}=s;const o=yu(null),r=a=>{o.value=a==null?void 0:a.chart};return i({chart:o}),()=>Fi(RL,OL({ref:r},{type:e,...n}))}})}const NL=bb("bar",Ti),FL=bb("line",Pi);function Rn(e){return Array.isArray?Array.isArray(e):xb(e)==="[object Array]"}const BL=1/0;function VL(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-BL?"-0":t}function HL(e){return e==null?"":VL(e)}function un(e){return typeof e=="string"}function vb(e){return typeof e=="number"}function jL(e){return e===!0||e===!1||WL(e)&&xb(e)=="[object Boolean]"}function yb(e){return typeof e=="object"}function WL(e){return yb(e)&&e!==null}function Me(e){return e!=null}function oc(e){return!e.trim().length}function xb(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const zL="Incorrect 'index' type",UL=e=>`Invalid value for key ${e}`,KL=e=>`Pattern length exceeds max of ${e}.`,YL=e=>`Missing ${e} property in key`,qL=e=>`Property 'weight' in key '${e}' must be a positive integer`,Vp=Object.prototype.hasOwnProperty;class GL{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let i=wb(s);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function wb(e){let t=null,n=null,s=null,i=1,o=null;if(un(e)||Rn(e))s=e,t=Hp(e),n=jc(e);else{if(!Vp.call(e,"name"))throw new Error(YL("name"));const r=e.name;if(s=r,Vp.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(qL(r));t=Hp(r),n=jc(r),o=e.getFn}return{path:t,id:n,weight:i,src:s,getFn:o}}function Hp(e){return Rn(e)?e:e.split(".")}function jc(e){return Rn(e)?e.join("."):e}function XL(e,t){let n=[],s=!1;const i=(o,r,a)=>{if(Me(o))if(!r[a])n.push(o);else{let l=r[a];const c=o[l];if(!Me(c))return;if(a===r.length-1&&(un(c)||vb(c)||jL(c)))n.push(HL(c));else if(Rn(c)){s=!0;for(let u=0,d=c.length;ue.score===t.score?e.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,un(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();un(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(Me(r)){if(Rn(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(Me(u))if(un(u)&&!oc(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else Rn(u)&&u.forEach((d,f)=>{l.push({nestedArrIndex:f,value:d})})}s.$[o]=a}else if(un(r)&&!oc(r)){let a={v:r,n:this.norm.get(r)};s.$[o]=a}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Eb(e,t,{getFn:n=yt.getFn,fieldNormWeight:s=yt.fieldNormWeight}={}){const i=new ld({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(wb)),i.setSources(t),i.create(),i}function sR(e,{getFn:t=yt.getFn,fieldNormWeight:n=yt.fieldNormWeight}={}){const{keys:s,records:i}=e,o=new ld({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(i),o}function ea(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:i=yt.distance,ignoreLocation:o=yt.ignoreLocation}={}){const r=t/e.length;if(o)return r;const a=Math.abs(s-n);return i?r+a/i:a?1:r}function iR(e=[],t=yt.minMatchCharLength){let n=[],s=-1,i=-1,o=0;for(let r=e.length;o=t&&n.push([s,i]),s=-1)}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const Bs=32;function oR(e,t,n,{location:s=yt.location,distance:i=yt.distance,threshold:o=yt.threshold,findAllMatches:r=yt.findAllMatches,minMatchCharLength:a=yt.minMatchCharLength,includeMatches:l=yt.includeMatches,ignoreLocation:c=yt.ignoreLocation}={}){if(t.length>Bs)throw new Error(KL(Bs));const u=t.length,d=e.length,f=Math.max(0,Math.min(s,d));let p=o,m=f;const _=a>1||l,v=_?Array(d):[];let x;for(;(x=e.indexOf(t,m))>-1;){let C=ea(t,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:c});if(p=Math.min(C,p),m=x+u,_){let w=0;for(;w=D;Y-=1){let H=Y-1,R=n[e.charAt(H)];if(_&&(v[H]=+!!R),N[Y]=(N[Y+1]<<1|1)&R,C&&(N[Y]|=(S[Y+1]|S[Y])<<1|1|S[Y+1]),N[Y]&y&&(P=ea(t,{errors:C,currentLocation:H,expectedLocation:f,distance:i,ignoreLocation:c}),P<=p)){if(p=P,m=H,m<=f)break;D=Math.max(1,2*f-m)}}if(ea(t,{errors:C+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:c})>p)break;S=N}const E={isMatch:m>=0,score:Math.max(.001,P)};if(_){const C=iR(v,a);C.length?l&&(E.indices=C):E.isMatch=!1}return E}function rR(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:f,alphabet:rR(f),startIndex:p})},d=this.pattern.length;if(d>Bs){let f=0;const p=d%Bs,m=d-p;for(;f{const{isMatch:x,score:S,indices:P}=oR(t,m,_,{location:i+v,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:s,ignoreLocation:c});x&&(f=!0),d+=S,x&&P&&(u=[...u,...P])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&s&&(p.indices=u),p}}class vs{constructor(t){this.pattern=t}static isMultiMatch(t){return jp(t,this.multiRegex)}static isSingleMatch(t){return jp(t,this.singleRegex)}search(){}}function jp(e,t){const n=e.match(t);return n?n[1]:null}class aR extends vs{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class lR extends vs{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class cR extends vs{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class uR extends vs{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class dR extends vs{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class hR extends vs{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Ab extends vs{constructor(t,{location:n=yt.location,threshold:s=yt.threshold,distance:i=yt.distance,includeMatches:o=yt.includeMatches,findAllMatches:r=yt.findAllMatches,minMatchCharLength:a=yt.minMatchCharLength,isCaseSensitive:l=yt.isCaseSensitive,ignoreLocation:c=yt.ignoreLocation}={}){super(t),this._bitapSearch=new Sb(t,{location:n,threshold:s,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Cb extends vs{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const i=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,i.push([s,n-1]);const r=!!i.length;return{isMatch:r,score:r?0:1,indices:i}}}const Wc=[aR,Cb,cR,uR,hR,dR,lR,Ab],Wp=Wc.length,fR=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pR="|";function gR(e,t={}){return e.split(pR).map(n=>{let s=n.trim().split(fR).filter(o=>o&&!!o.trim()),i=[];for(let o=0,r=s.length;o!!(e[Na.AND]||e[Na.OR]),vR=e=>!!e[Kc.PATH],yR=e=>!Rn(e)&&yb(e)&&!Yc(e),zp=e=>({[Na.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Tb(e,t,{auto:n=!0}={}){const s=i=>{let o=Object.keys(i);const r=vR(i);if(!r&&o.length>1&&!Yc(i))return s(zp(i));if(yR(i)){const l=r?i[Kc.PATH]:o[0],c=r?i[Kc.PATTERN]:i[l];if(!un(c))throw new Error(UL(l));const u={keyId:jc(l),pattern:c};return n&&(u.searcher=Uc(c,t)),u}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];Rn(c)&&c.forEach(u=>{a.children.push(s(u))})}),a};return Yc(e)||(e=zp(e)),s(e)}function xR(e,{ignoreFieldNorm:t=yt.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:i,norm:o,score:r})=>{const a=i?i.weight:null;s*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:o))}),n.score=s})}function wR(e,t){const n=e.matches;t.matches=[],Me(n)&&n.forEach(s=>{if(!Me(s.indices)||!s.indices.length)return;const{indices:i,value:o}=s;let r={indices:i,value:o};s.key&&(r.key=s.key.src),s.idx>-1&&(r.refIndex=s.idx),t.matches.push(r)})}function ER(e,t){t.score=e.score}function SR(e,t,{includeMatches:n=yt.includeMatches,includeScore:s=yt.includeScore}={}){const i=[];return n&&i.push(wR),s&&i.push(ER),e.map(o=>{const{idx:r}=o,a={item:t[r],refIndex:r};return i.length&&i.forEach(l=>{l(o,a)}),a})}class so{constructor(t,n={},s){this.options={...yt,...n},this.options.useExtendedSearch,this._keyStore=new GL(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof ld))throw new Error(zL);this._myIndex=n||Eb(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Me(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,i=this._docs.length;s-1&&(l=l.slice(0,n)),SR(l,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(t){const n=Uc(t,this.options),{records:s}=this._myIndex,i=[];return s.forEach(({v:o,i:r,n:a})=>{if(!Me(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({item:o,idx:r,matches:[{score:c,value:o,norm:a,indices:u}]})}),i}_searchLogical(t){const n=Tb(t,this.options),s=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:f}=a,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:f});return p&&p.length?[{idx:c,item:l,matches:p}]:[]}const u=[];for(let d=0,f=a.children.length;d{if(Me(a)){let c=s(n,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},r.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),r}_searchObjectList(t){const n=Uc(t,this.options),{keys:s,records:i}=this._myIndex,o=[];return i.forEach(({$:r,i:a})=>{if(!Me(r))return;let l=[];s.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:r[u],searcher:n}))}),l.length&&o.push({idx:a,item:r,matches:l})}),o}_findMatches({key:t,value:n,searcher:s}){if(!Me(n))return[];let i=[];if(Rn(n))n.forEach(({v:o,i:r,n:a})=>{if(!Me(o))return;const{isMatch:l,score:c,indices:u}=s.searchIn(o);l&&i.push({score:c,key:t,value:o,idx:r,norm:a,indices:u})});else{const{v:o,n:r}=n,{isMatch:a,score:l,indices:c}=s.searchIn(o);a&&i.push({score:l,key:t,value:o,norm:r,indices:c})}return i}}so.version="7.0.0";so.createIndex=Eb;so.parseIndex=sR;so.config=yt;so.parseQuery=Tb;bR(_R);var Pb={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Kp,function(){var n=1e3,s=6e4,i=36e5,o="millisecond",r="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",p="year",m="date",_="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var H=["th","st","nd","rd"],R=Y%100;return"["+Y+(H[(R-20)%10]||H[R]||H[0])+"]"}},P=function(Y,H,R){var W=String(Y);return!W||W.length>=H?Y:""+Array(H+1-W.length).join(R)+Y},A={s:P,z:function(Y){var H=-Y.utcOffset(),R=Math.abs(H),W=Math.floor(R/60),U=R%60;return(H<=0?"+":"-")+P(W,2,"0")+":"+P(U,2,"0")},m:function Y(H,R){if(H.date()1)return Y(ct[0])}else{var mt=H.name;E[mt]=H,U=mt}return!W&&U&&(y=U),U||!W&&y},D=function(Y,H){if(w(Y))return Y.clone();var R=typeof H=="object"?H:{};return R.date=Y,R.args=arguments,new N(R)},I=A;I.l=$,I.i=w,I.w=function(Y,H){return D(Y,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var N=function(){function Y(R){this.$L=$(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[C]=!0}var H=Y.prototype;return H.parse=function(R){this.$d=function(W){var U=W.date,rt=W.utc;if(U===null)return new Date(NaN);if(I.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ct=U.match(v);if(ct){var mt=ct[2]-1||0,pt=(ct[7]||"0").substring(0,3);return rt?new Date(Date.UTC(ct[1],mt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,pt)):new Date(ct[1],mt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,pt)}}return new Date(U)}(R),this.init()},H.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},H.$utils=function(){return I},H.isValid=function(){return this.$d.toString()!==_},H.isSame=function(R,W){var U=D(R);return this.startOf(W)<=U&&U<=this.endOf(W)},H.isAfter=function(R,W){return D(R){t.status&&this.store.getConfiguration()})},updateRefreshInterval(e){Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:e},t=>{t.status&&this.store.getConfiguration()})}},mounted(){this.$el.querySelectorAll(".dropdown").forEach(e=>{e.addEventListener("show.bs.dropdown",t=>{console.log(t.target.parentNode.children),console.log(t.target.closest("ul.dropdown-menu"))})})}},TR={class:"d-flex gap-2 mb-3 z-3"},PR={class:"dropdown"},kR=g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[g("i",{class:"bi bi-filter-circle me-2"}),gt(" Sort ")],-1),$R={class:"dropdown-menu mt-2 shadow"},MR=["onClick"],OR={class:"me-auto"},DR={key:0,class:"bi bi-check"},IR={class:"dropdown"},LR=g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[g("i",{class:"bi bi-arrow-repeat me-2"}),gt("Refresh Interval ")],-1),RR={class:"dropdown-menu shadow mt-2"},NR=["onClick"],FR={class:"me-auto"},BR={key:0,class:"bi bi-check"},VR={class:"ms-auto d-flex align-items-center"},HR=g("label",{class:"d-flex me-2 text-muted",for:"searchPeers"},[g("i",{class:"bi bi-search me-1"})],-1);function jR(e,t,n,s,i,o){return X(),ot("div",TR,[g("div",PR,[kR,g("ul",$R,[(X(!0),ot(Qt,null,us(this.sort,(r,a)=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>this.updateSort(a)},[g("span",OR,wt(r),1),s.store.Configuration.Server.dashboard_sort===a?(X(),ot("i",DR)):Kt("",!0)],8,MR)]))),256))])]),g("div",IR,[LR,g("ul",RR,[(X(!0),ot(Qt,null,us(this.interval,(r,a)=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>o.updateRefreshInterval(a)},[g("span",FR,wt(r),1),s.store.Configuration.Server.dashboard_refresh_interval===a?(X(),ot("i",BR)):Kt("",!0)],8,NR)]))),256))])]),g("div",VR,[HR,bt(g("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[0]||(t[0]=r=>this.wireguardConfigurationStore.searchString=r)},null,512),[[vt,this.wireguardConfigurationStore.searchString]])])])}const WR=Rt(CR,[["render",jR]]),zR={name:"peerSettings",props:{selectedPeer:Object},data(){return{data:void 0,dataChanged:!1,showKey:!1,saving:!1}},setup(){return{dashboardConfigurationStore:Xt()}},methods:{reset(){this.selectedPeer&&(this.data=JSON.parse(JSON.stringify(this.selectedPeer)),this.dataChanged=!1)},savePeer(){this.saving=!0,Ce(`/api/updatePeerSettings/${this.$route.params.id}`,this.data,e=>{this.saving=!1,e.status?this.dashboardConfigurationStore.newMessage("Server","Peer Updated!","success"):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.$emit("refresh")})}},beforeMount(){this.reset()},mounted(){this.$el.querySelectorAll("input").forEach(e=>{e.addEventListener("keyup",()=>{this.dataChanged=!0})})}},ve=e=>(ei("data-v-6fc123c2"),e=e(),ni(),e),UR={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},KR={class:"container d-flex h-100 w-100"},YR={class:"card m-auto rounded-3 shadow",style:{width:"700px"}},qR={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},GR=ve(()=>g("h4",{class:"mb-0"},"Peer Settings",-1)),XR={key:0,class:"card-body px-4 pb-4"},QR={class:"d-flex flex-column gap-2 mb-4"},JR=ve(()=>g("small",{class:"text-muted"},"Public Key",-1)),ZR=ve(()=>g("br",null,null,-1)),tN=ve(()=>g("label",{for:"peer_name_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Name")],-1)),eN=["disabled"],nN={class:"d-flex position-relative"},sN=ve(()=>g("label",{for:"peer_private_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Private Key "),g("code",null,"(Required for QR Code and Download)")])],-1)),iN=["type","disabled"],oN=ve(()=>g("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Allowed IPs "),g("code",null,"(Required)")])],-1)),rN=["disabled"],aN=ve(()=>g("label",{for:"peer_DNS_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("DNS "),g("code",null,"(Required)")])],-1)),lN=["disabled"],cN=ve(()=>g("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[g("small",{class:"text-muted"},[gt("Endpoint Allowed IPs "),g("code",null,"(Required)")])],-1)),uN=["disabled"],dN=ve(()=>g("hr",null,null,-1)),hN={class:"accordion mt-2",id:"peerSettingsAccordion"},fN={class:"accordion-item"},pN=ve(()=>g("h2",{class:"accordion-header"},[g("button",{class:"accordion-button rounded-3 collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#peerSettingsAccordionOptional"}," Optional Settings ")],-1)),gN={id:"peerSettingsAccordionOptional",class:"accordion-collapse collapse","data-bs-parent":"#peerSettingsAccordion"},mN={class:"accordion-body d-flex flex-column gap-2 mb-2"},_N=ve(()=>g("label",{for:"peer_preshared_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Pre-Shared Key")],-1)),bN=["disabled"],vN=ve(()=>g("label",{for:"peer_mtu",class:"form-label"},[g("small",{class:"text-muted"},"MTU")],-1)),yN=["disabled"],xN=ve(()=>g("label",{for:"peer_keep_alive",class:"form-label"},[g("small",{class:"text-muted"},"Persistent Keepalive")],-1)),wN=["disabled"],EN={class:"d-flex align-items-center gap-2"},SN=["disabled"],AN=ve(()=>g("i",{class:"bi bi-arrow-clockwise ms-2"},null,-1)),CN=["disabled"],TN=ve(()=>g("i",{class:"bi bi-save-fill ms-2"},null,-1));function PN(e,t,n,s,i,o){return X(),ot("div",UR,[g("div",KR,[g("div",YR,[g("div",qR,[GR,g("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),this.data?(X(),ot("div",XR,[g("div",QR,[g("div",null,[JR,ZR,g("small",null,[g("samp",null,wt(this.data.id),1)])]),g("div",null,[tN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,eN),[[vt,this.data.name]])]),g("div",null,[g("div",nN,[sN,g("a",{role:"button",class:"ms-auto text-decoration-none toggleShowKey",onClick:t[2]||(t[2]=r=>this.showKey=!this.showKey)},[g("i",{class:jt(["bi",[this.showKey?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)])]),bt(g("input",{type:[this.showKey?"text":"password"],class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[3]||(t[3]=r=>this.data.private_key=r),id:"peer_private_key_textbox",style:{"padding-right":"40px"}},null,8,iN),[[TE,this.data.private_key]])]),g("div",null,[oN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[4]||(t[4]=r=>this.data.allowed_ip=r),id:"peer_allowed_ip_textbox"},null,8,rN),[[vt,this.data.allowed_ip]])]),g("div",null,[aN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[5]||(t[5]=r=>this.data.DNS=r),id:"peer_DNS_textbox"},null,8,lN),[[vt,this.data.DNS]])]),g("div",null,[cN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[6]||(t[6]=r=>this.data.endpoint_allowed_ip=r),id:"peer_endpoint_allowed_ips"},null,8,uN),[[vt,this.data.endpoint_allowed_ip]])]),dN,g("div",hN,[g("div",fN,[pN,g("div",gN,[g("div",mN,[g("div",null,[_N,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[7]||(t[7]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,bN),[[vt,this.data.preshared_key]])]),g("div",null,[vN,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[8]||(t[8]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,yN),[[vt,this.data.mtu]])]),g("div",null,[xN,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[9]||(t[9]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,wN),[[vt,this.data.keepalive]])])])])])])]),g("div",EN,[g("button",{class:"btn btn-secondary rounded-3 shadow",onClick:t[10]||(t[10]=r=>this.reset()),disabled:!this.dataChanged||this.saving},[gt(" Reset "),AN],8,SN),g("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.dataChanged||this.saving,onClick:t[11]||(t[11]=r=>this.savePeer())},[gt(" Save Peer"),TN],8,CN)])])):Kt("",!0)])])])}const kN=Rt(zR,[["render",PN],["__scopeId","data-v-6fc123c2"]]),$N={name:"peerQRCode",props:{peerConfigData:String},mounted(){eo.toCanvas(document.querySelector("#qrcode"),this.peerConfigData,function(e){e&&console.error(e)})}},MN=e=>(ei("data-v-0f1cea80"),e=e(),ni(),e),ON={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},DN={class:"container d-flex h-100 w-100"},IN={class:"card m-auto rounded-3 shadow"},LN={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},RN=MN(()=>g("h4",{class:"mb-0"},"QR Code",-1)),NN={class:"card-body"},FN={id:"qrcode",class:"rounded-3 shadow",ref:"qrcode"};function BN(e,t,n,s,i,o){return X(),ot("div",ON,[g("div",DN,[g("div",IN,[g("div",LN,[RN,g("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),g("div",NN,[g("canvas",FN,null,512)])])])])}const VN=Rt($N,[["render",BN],["__scopeId","data-v-0f1cea80"]]),HN={name:"nameInput",props:{bulk:Boolean,data:Object,saving:Boolean}},jN=g("label",{for:"peer_name_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Name")],-1),WN=["disabled"];function zN(e,t,n,s,i,o){return X(),ot("div",{class:jt({inactiveField:this.bulk})},[jN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||this.bulk,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,WN),[[vt,this.data.name]])],2)}const UN=Rt(HN,[["render",zN]]),KN={name:"privatePublicKeyInput",props:{data:Object,saving:Boolean,bulk:Boolean},setup(){return{dashboardStore:Xt()}},data(){return{keypair:{publicKey:"",privateKey:"",presharedKey:""},editKey:!1,error:!1}},methods:{genKeyPair(){this.editKey=!1,this.keypair=window.wireguard.generateKeypair(),this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey},checkMatching(){try{window.wireguard.generatePublicKey(this.keypair.privateKey)!==this.keypair.publicKey&&(this.error=!0,this.dashboardStore.newMessage("WGDashboard","Private Key and Public Key does not match.","danger"))}catch{this.error=!0,this.data.private_key="",this.data.public_key=""}}},mounted(){this.genKeyPair()},watch:{keypair:{deep:!0,handler(){this.error=!1,this.checkMatching()}}}},YN=g("label",{for:"peer_private_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Private Key "),g("code",null,"(Required for QR Code and Download)")])],-1),qN={class:"input-group"},GN=["disabled"],XN=["disabled"],QN=g("i",{class:"bi bi-arrow-repeat"},null,-1),JN=[QN],ZN={class:"d-flex"},tF=g("label",{for:"public_key",class:"form-label"},[g("small",{class:"text-muted"},[gt("Public Key "),g("code",null,"(Required)")])],-1),eF={class:"form-check form-switch ms-auto"},nF=["disabled"],sF=g("label",{class:"form-check-label",for:"enablePublicKeyEdit"},[g("small",null,"Edit")],-1),iF=["disabled"];function oF(e,t,n,s,i,o){return X(),ot("div",{class:jt(["d-flex gap-2 flex-column",{inactiveField:this.bulk}])},[g("div",null,[YN,g("div",qN,[bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-start-3",{"is-invalid":this.error}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.keypair.privateKey=r),disabled:!this.editKey||this.bulk,onBlur:t[1]||(t[1]=r=>this.checkMatching()),id:"peer_private_key_textbox"},null,42,GN),[[vt,this.keypair.privateKey]]),g("button",{class:"btn btn-outline-info btn-sm rounded-end-3",onClick:t[2]||(t[2]=r=>this.genKeyPair()),disabled:this.bulk,type:"button",id:"button-addon2"},JN,8,XN)])]),g("div",null,[g("div",ZN,[tF,g("div",eF,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:this.bulk,id:"enablePublicKeyEdit","onUpdate:modelValue":t[3]||(t[3]=r=>this.editKey=r)},null,8,nF),[[lr,this.editKey]]),sF])]),bt(g("input",{class:jt(["form-control-sm form-control rounded-3",{"is-invalid":this.error}]),"onUpdate:modelValue":t[4]||(t[4]=r=>this.keypair.publicKey=r),onBlur:t[5]||(t[5]=r=>this.checkMatching()),disabled:!this.editKey||this.bulk,type:"text",id:"public_key"},null,42,iF),[[vt,this.keypair.publicKey]])])],2)}const rF=Rt(KN,[["render",oF]]),aF={name:"allowedIPsInput",props:{data:Object,saving:Boolean,bulk:Boolean,availableIp:void 0},data(){return{allowedIp:[],availableIpSearchString:"",customAvailableIp:"",allowedIpFormatError:!1}},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},computed:{searchAvailableIps(){return this.availableIpSearchString?this.availableIp.filter(e=>e.includes(this.availableIpSearchString)&&!this.data.allowed_ip.includes(e)):this.availableIp.filter(e=>!this.data.allowed_ip.includes(e))}},methods:{addAllowedIp(e){return this.store.checkCIDR(e)?(this.data.allowed_ip.push(e),!0):!1}},watch:{customAvailableIp(){this.allowedIpFormatError=!1}}},pr=e=>(ei("data-v-f2538e55"),e=e(),ni(),e),lF=pr(()=>g("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Allowed IPs "),g("code",null,"(Required)")])],-1)),cF=["onClick"],uF=pr(()=>g("i",{class:"bi bi-x-circle-fill ms-1"},null,-1)),dF=[uF],hF={class:"d-flex gap-2 align-items-center"},fF={class:"input-group"},pF=["disabled"],gF=["disabled"],mF=pr(()=>g("i",{class:"bi bi-plus-lg"},null,-1)),_F=[mF],bF=pr(()=>g("small",{class:"text-muted"},"or",-1)),vF={class:"dropdown flex-grow-1"},yF=["disabled"],xF=pr(()=>g("i",{class:"bi bi-filter-circle me-2"},null,-1)),wF={key:0,class:"dropdown-menu mt-2 shadow w-100 dropdown-menu-end rounded-3",style:{"overflow-y":"scroll","max-height":"270px",width:"300px !important"}},EF={class:"px-3 pb-2 pt-1"},SF=["onClick"],AF={class:"me-auto"},CF={key:0},TF={class:"px-3 text-muted"};function PF(e,t,n,s,i,o){return X(),ot("div",{class:jt({inactiveField:this.bulk})},[lF,g("div",{class:jt(["d-flex gap-2 flex-wrap",{"mb-2":this.data.allowed_ip.length>0}])},[dt(Lu,{name:"list"},{default:Ut(()=>[(X(!0),ot(Qt,null,us(this.data.allowed_ip,(r,a)=>(X(),ot("span",{class:"badge rounded-pill text-bg-success",key:r},[gt(wt(r)+" ",1),g("a",{role:"button",onClick:l=>this.data.allowed_ip.splice(a,1)},dF,8,cF)]))),128))]),_:1})],2),g("div",hF,[g("div",fF,[bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-start-3",{"is-invalid":this.allowedIpFormatError}]),placeholder:"Enter IP Address/CIDR","onUpdate:modelValue":t[0]||(t[0]=r=>i.customAvailableIp=r),disabled:n.bulk},null,10,pF),[[vt,i.customAvailableIp]]),g("button",{class:"btn btn-outline-success btn-sm rounded-end-3",disabled:n.bulk||!this.customAvailableIp,onClick:t[1]||(t[1]=r=>{this.addAllowedIp(this.customAvailableIp)?this.customAvailableIp="":this.allowedIpFormatError=!0,this.dashboardStore.newMessage("WGDashboard","Allowed IP is invalid","danger")}),type:"button",id:"button-addon2"},_F,8,gF)]),bF,g("div",vF,[g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3 w-100",disabled:!n.availableIp||n.bulk,"data-bs-auto-close":"outside",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[xF,gt(" Pick Available IP ")],8,yF),this.availableIp?(X(),ot("ul",wF,[g("li",null,[g("div",EF,[bt(g("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[2]||(t[2]=r=>this.availableIpSearchString=r),placeholder:"Search..."},null,512),[[vt,this.availableIpSearchString]])])]),(X(!0),ot(Qt,null,us(this.searchAvailableIps,r=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:a=>this.addAllowedIp(r)},[g("span",AF,[g("small",null,wt(r),1)])],8,SF)]))),256)),this.searchAvailableIps.length===0?(X(),ot("li",CF,[g("small",TF,'No available IP containing "'+wt(this.availableIpSearchString)+'"',1)])):Kt("",!0)])):Kt("",!0)])])],2)}const kF=Rt(aF,[["render",PF],["__scopeId","data-v-f2538e55"]]),$F={name:"dnsInput",props:{data:Object,saving:Boolean},data(){return{error:!1,dns:JSON.parse(JSON.stringify(this.data.DNS))}},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},methods:{checkDNS(){let e=this.dns.split(",").map(t=>t.replaceAll(" ",""));for(let t in e)if(!this.store.regexCheckIP(e[t])){this.error||this.dashboardStore.newMessage("WGDashboard","DNS is invalid","danger"),this.error=!0,this.data.DNS="";return}this.error=!1,this.data.DNS=this.dns}},watch:{dns(){this.checkDNS()}}},MF=g("label",{for:"peer_DNS_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("DNS "),g("code",null,"(Required)")])],-1),OF=["disabled"];function DF(e,t,n,s,i,o){return X(),ot("div",null,[MF,bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-3",{"is-invalid":this.error}]),disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.dns=r),id:"peer_DNS_textbox"},null,10,OF),[[vt,this.dns]])])}const IF=Rt($F,[["render",DF]]),LF={name:"endpointAllowedIps",props:{data:Object,saving:Boolean},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},data(){return{endpointAllowedIps:JSON.parse(JSON.stringify(this.data.endpoint_allowed_ip)),error:!1}},methods:{checkAllowedIP(){let e=this.endpointAllowedIps.split(",").map(t=>t.replaceAll(" ",""));for(let t in e)if(!this.store.checkCIDR(e[t])){this.error||this.dashboardStore.newMessage("WGDashboard","Endpoint Allowed IP is invalid.","danger"),this.data.endpoint_allowed_ip="",this.error=!0;return}this.error=!1,this.data.endpoint_allowed_ip=this.endpointAllowedIps}},watch:{endpointAllowedIps(){this.checkAllowedIP()}}},RF=g("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[g("small",{class:"text-muted"},[gt("Endpoint Allowed IPs "),g("code",null,"(Required)")])],-1),NF=["disabled"];function FF(e,t,n,s,i,o){return X(),ot("div",null,[RF,bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-3",{"is-invalid":i.error}]),disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.endpointAllowedIps=r),onBlur:t[1]||(t[1]=r=>this.checkAllowedIP()),id:"peer_endpoint_allowed_ips"},null,42,NF),[[vt,this.endpointAllowedIps]])])}const BF=Rt(LF,[["render",FF]]),VF={name:"presharedKeyInput",props:{data:Object,saving:Boolean}},HF=g("label",{for:"peer_preshared_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Pre-Shared Key")],-1),jF=["disabled"];function WF(e,t,n,s,i,o){return X(),ot("div",null,[HF,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,jF),[[vt,this.data.preshared_key]])])}const zF=Rt(VF,[["render",WF]]),UF={name:"mtuInput",props:{data:Object,saving:Boolean}},KF=g("label",{for:"peer_mtu",class:"form-label"},[g("small",{class:"text-muted"},"MTU")],-1),YF=["disabled"];function qF(e,t,n,s,i,o){return X(),ot("div",null,[KF,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,YF),[[vt,this.data.mtu]])])}const GF=Rt(UF,[["render",qF]]),XF={name:"persistentKeepAliveInput",props:{data:Object,saving:Boolean}},QF=g("label",{for:"peer_keep_alive",class:"form-label"},[g("small",{class:"text-muted"},"Persistent Keepalive")],-1),JF=["disabled"];function ZF(e,t,n,s,i,o){return X(),ot("div",null,[QF,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,JF),[[vt,this.data.keepalive]])])}const tB=Rt(XF,[["render",ZF]]),eB={name:"bulkAdd",props:{saving:Boolean,data:Object,availableIp:void 0}},nB={class:"form-check form-switch"},sB=["disabled"],iB=g("label",{class:"form-check-label me-2",for:"bulk_add"},[g("small",null,[g("strong",null,"Bulk Add")])],-1),oB=g("small",{class:"text-muted d-block"}," By adding peers by bulk, each peer's name will be auto generated, and Allowed IP will be assign to the next available IP. ",-1),rB=[oB],aB={key:0,class:"form-group"},lB=["max"],cB={class:"text-muted"};function uB(e,t,n,s,i,o){return X(),ot("div",null,[g("div",nB,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:!this.availableIp,id:"bulk_add","onUpdate:modelValue":t[0]||(t[0]=r=>this.data.bulkAdd=r)},null,8,sB),[[lr,this.data.bulkAdd]]),iB]),g("p",{class:jt({"mb-0":!this.data.bulkAdd})},rB,2),this.data.bulkAdd?(X(),ot("div",aB,[bt(g("input",{class:"form-control form-control-sm rounded-3 mb-1",type:"number",min:"1",max:this.availableIp.length,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.bulkAddAmount=r),placeholder:"How many peers you want to add?"},null,8,lB),[[vt,this.data.bulkAddAmount]]),g("small",cB,[gt(" You can add up to "),g("strong",null,wt(this.availableIp.length),1),gt(" peers ")])])):Kt("",!0)])}const dB=Rt(eB,[["render",uB]]),hB={name:"peerCreate",components:{BulkAdd:dB,PersistentKeepAliveInput:tB,MtuInput:GF,PresharedKeyInput:zF,EndpointAllowedIps:BF,DnsInput:IF,AllowedIPsInput:kF,PrivatePublicKeyInput:rF,NameInput:UN},data(){return{data:{bulkAdd:!1,bulkAddAmount:"",name:"",allowed_ip:[],private_key:"",public_key:"",DNS:this.dashboardStore.Configuration.Peers.peer_global_dns,endpoint_allowed_ip:this.dashboardStore.Configuration.Peers.peer_endpoint_allowed_ip,keepalive:parseInt(this.dashboardStore.Configuration.Peers.peer_keep_alive),mtu:parseInt(this.dashboardStore.Configuration.Peers.peer_mtu),preshared_key:""},availableIp:void 0,availableIpSearchString:"",saving:!1,allowedIpDropdown:void 0}},mounted(){Re("/api/getAvailableIPs/"+this.$route.params.id,{},e=>{e.status&&(this.availableIp=e.data)})},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},computed:{allRequireFieldsFilled(){let e=!0;return this.data.bulkAdd?(this.data.bulkAddAmount.length===0||this.data.bulkAddAmount>this.availableIp.length)&&(e=!1):["allowed_ip","private_key","public_key","DNS","endpoint_allowed_ip","keepalive","mtu"].forEach(n=>{this.data[n].length===0&&(e=!1)}),e}},watch:{bulkAdd(e){e||(this.data.bulkAddAmount="")},"data.bulkAddAmount"(){this.data.bulkAddAmount>this.availableIp.length&&(this.data.bulkAddAmount=this.availableIp.length)}}},gr=e=>(ei("data-v-cbe62677"),e=e(),ni(),e),fB={class:"container"},pB={class:"mb-4 d-flex align-items-center gap-4"},gB=gr(()=>g("h3",{class:"mb-0 text-body"},[g("i",{class:"bi bi-chevron-left"})],-1)),mB=gr(()=>g("h3",{class:"text-body mb-0"},"New Configuration",-1)),_B={class:"d-flex flex-column gap-2"},bB=gr(()=>g("hr",{class:"mb-0 mt-2"},null,-1)),vB=gr(()=>g("hr",{class:"mb-0 mt-2"},null,-1)),yB={class:"row"},xB={key:0,class:"col-sm"},wB={class:"col-sm"},EB={class:"col-sm"},SB={class:"d-flex mt-2"},AB=["disabled"],CB=gr(()=>g("i",{class:"bi bi-plus-circle-fill me-2"},null,-1));function TB(e,t,n,s,i,o){const r=Ot("RouterLink"),a=Ot("BulkAdd"),l=Ot("NameInput"),c=Ot("PrivatePublicKeyInput"),u=Ot("AllowedIPsInput"),d=Ot("DnsInput"),f=Ot("EndpointAllowedIps"),p=Ot("PresharedKeyInput"),m=Ot("MtuInput"),_=Ot("PersistentKeepAliveInput");return X(),ot("div",fB,[g("div",pB,[dt(r,{to:"peers"},{default:Ut(()=>[gB]),_:1}),mB]),g("div",_B,[dt(a,{saving:i.saving,data:this.data,availableIp:this.availableIp},null,8,["saving","data","availableIp"]),bB,this.data.bulkAdd?Kt("",!0):(X(),de(l,{key:0,saving:i.saving,data:this.data},null,8,["saving","data"])),this.data.bulkAdd?Kt("",!0):(X(),de(c,{key:1,saving:i.saving,data:i.data},null,8,["saving","data"])),this.data.bulkAdd?Kt("",!0):(X(),de(u,{key:2,availableIp:this.availableIp,saving:i.saving,data:i.data},null,8,["availableIp","saving","data"])),dt(d,{saving:i.saving,data:i.data},null,8,["saving","data"]),dt(f,{saving:i.saving,data:i.data},null,8,["saving","data"]),vB,g("div",yB,[this.data.bulkAdd?Kt("",!0):(X(),ot("div",xB,[dt(p,{saving:i.saving,data:i.data,bulk:this.data.bulkAdd},null,8,["saving","data","bulk"])])),g("div",wB,[dt(m,{saving:i.saving,data:i.data},null,8,["saving","data"])]),g("div",EB,[dt(_,{saving:i.saving,data:i.data},null,8,["saving","data"])])]),g("div",SB,[g("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.allRequireFieldsFilled},[CB,gt("Add ")],8,AB)])])])}const kb=Rt(hB,[["render",TB],["__scopeId","data-v-cbe62677"]]);fr.register(yi,On,Vo,Bo,Ti,Lo,Vs,Pi,ka,Ro,No,Fo,Oa,Ia,La,xi,Xi,Ra,ib,ab,cb,db,fb);const PB={name:"peerList",components:{PeerCreate:kb,PeerQRCode:VN,PeerSettings:kN,PeerSearch:WR,Peer:HM,Line:FL,Bar:NL},setup(){const e=Xt(),t=mn();return{dashboardConfigurationStore:e,wireguardConfigurationStore:t}},data(){return{loading:!1,error:null,configurationInfo:[],configurationPeers:[],historyDataSentDifference:[],historyDataReceivedDifference:[],historySentData:{labels:[],datasets:[{label:"Data Sent",data:[],fill:!1,borderColor:"#198754",tension:0}]},historyReceiveData:{labels:[],datasets:[{label:"Data Received",data:[],fill:!1,borderColor:"#0d6efd",tension:0}]},peerSetting:{modalOpen:!1,selectedPeer:void 0},peerQRCode:{modalOpen:!1,peerConfigData:void 0},peerCreate:{modalOpen:!1}}},watch:{"$route.params":{immediate:!0,handler(){clearInterval(this.interval),this.loading=!0;let e=this.$route.params.id;this.configurationInfo=[],this.configurationPeers=[],e&&(this.getPeers(e),this.setInterval())}},"dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval"(){clearInterval(this.interval),this.setInterval()}},beforeRouteLeave(){clearInterval(this.interval)},methods:{getPeers(e){Re("/api/getWireguardConfigurationInfo",{configurationName:e},t=>{if(this.configurationInfo=t.data.configurationInfo,this.configurationPeers=t.data.configurationPeers,this.loading=!1,this.configurationPeers.length>0){const n=this.configurationPeers.map(i=>i.total_sent+i.cumu_sent).reduce((i,o)=>i+o).toFixed(4),s=this.configurationPeers.map(i=>i.total_receive+i.cumu_receive).reduce((i,o)=>i+o).toFixed(4);this.historyDataSentDifference[this.historyDataSentDifference.length-1]!==n&&(this.historyDataSentDifference.length>0&&(this.historySentData={labels:[...this.historySentData.labels,Up().format("HH:mm:ss A")],datasets:[{label:"Data Sent",data:[...this.historySentData.datasets[0].data,((n-this.historyDataSentDifference[this.historyDataSentDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:" #198754",tension:0}]}),this.historyDataSentDifference.push(n)),this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1]!==s&&(this.historyDataReceivedDifference.length>0&&(this.historyReceiveData={labels:[...this.historyReceiveData.labels,Up().format("HH:mm:ss A")],datasets:[{label:"Data Received",data:[...this.historyReceiveData.datasets[0].data,((s-this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:"#0d6efd",tension:0}]}),this.historyDataReceivedDifference.push(s))}})},setInterval(){this.interval=setInterval(()=>{this.getPeers(this.$route.params.id)},parseInt(this.dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval))}},computed:{configurationSummary(){return{connectedPeers:this.configurationPeers.filter(e=>e.status==="running").length,totalUsage:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_data+e.cumu_data).reduce((e,t)=>e+t):0,totalReceive:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_receive+e.cumu_receive).reduce((e,t)=>e+t):0,totalSent:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_sent+e.cumu_sent).reduce((e,t)=>e+t):0}},receiveData(){return this.historyReceiveData},sentData(){return this.historySentData},individualDataUsage(){return{labels:this.configurationPeers.map(e=>e.name?e.name:`Untitled Peer - ${e.id}`),datasets:[{label:"Total Data Usage",data:this.configurationPeers.map(e=>e.cumu_data+e.total_data),backgroundColor:this.configurationPeers.map(e=>"#0dcaf0"),tooltip:{callbacks:{label:e=>`${e.formattedValue} GB`}}}]}},individualDataUsageChartOption(){return{responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} GB`},grid:{display:!1}}}}},chartOptions(){return{responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} MB/s`},grid:{display:!1}}}}},searchPeers(){const e=new so(this.configurationPeers,{keys:["name","id","allowed_ip"]});return(this.wireguardConfigurationStore.searchString?e.search(this.wireguardConfigurationStore.searchString).map(n=>n.item):this.configurationPeers).slice().sort((n,s)=>n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]s[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?1:0)}}},ce=e=>(ei("data-v-b59a7de8"),e=e(),ni(),e),kB={key:0},$B=ce(()=>g("small",{CLASS:"text-muted"},"CONFIGURATION",-1)),MB={class:"d-flex align-items-center gap-3"},OB={class:"mb-0"},DB=ce(()=>g("div",{class:"dot active ms-0"},null,-1)),IB={class:"row mt-3 gy-2 gx-2 mb-2"},LB={class:"col-6 col-lg-3"},RB={class:"card rounded-3 bg-transparent shadow-sm"},NB={class:"card-body py-2"},FB=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Address")],-1)),BB={class:"col-6 col-lg-3"},VB={class:"card rounded-3 bg-transparent shadow-sm"},HB={class:"card-body py-2"},jB=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Listen Port")],-1)),WB={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},zB={class:"card rounded-3 bg-transparent shadow-sm"},UB={class:"card-body py-2"},KB=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Public Key")],-1)),YB={class:"row gx-2 gy-2 mb-2"},qB={class:"col-6 col-lg-3"},GB={class:"card rounded-3 bg-transparent shadow-sm"},XB={class:"card-body d-flex"},QB=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Connected Peers")],-1)),JB={class:"h4"},ZB=ce(()=>g("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1)),t3={class:"col-6 col-lg-3"},e3={class:"card rounded-3 bg-transparent shadow-sm"},n3={class:"card-body d-flex"},s3=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Usage")],-1)),i3={class:"h4"},o3=ce(()=>g("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1)),r3={class:"col-6 col-lg-3"},a3={class:"card rounded-3 bg-transparent shadow-sm"},l3={class:"card-body d-flex"},c3=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Received")],-1)),u3={class:"h4 text-primary"},d3=ce(()=>g("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1)),h3={class:"col-6 col-lg-3"},f3={class:"card rounded-3 bg-transparent shadow-sm"},p3={class:"card-body d-flex"},g3=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Sent")],-1)),m3={class:"h4 text-success"},_3=ce(()=>g("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1)),b3={class:"row gx-2 gy-2 mb-5"},v3={class:"col-12 col-lg-6"},y3={class:"card rounded-3 bg-transparent shadow-sm"},x3=ce(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Peers Total Data Usage")],-1)),w3={class:"card-body pt-1"},E3={class:"col-sm col-lg-3"},S3={class:"card rounded-3 bg-transparent shadow-sm"},A3=ce(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Real Time Received Data Usage")],-1)),C3={class:"card-body pt-1"},T3={class:"col-sm col-lg-3"},P3={class:"card rounded-3 bg-transparent shadow-sm"},k3=ce(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Real Time Sent Data Usage")],-1)),$3={class:"card-body pt-1"},M3={class:"mb-4"},O3={class:"d-flex align-items-center gap-3 mb-2"},D3=ce(()=>g("h3",null,"Peers",-1)),I3=ce(()=>g("i",{class:"bi bi-plus-circle-fill me-2"},null,-1));function L3(e,t,n,s,i,o){const r=Ot("Bar"),a=Ot("Line"),l=Ot("RouterLink"),c=Ot("PeerSearch"),u=Ot("Peer"),d=Ot("PeerSettings"),f=Ot("PeerQRCode"),p=Ot("PeerCreate");return this.loading?Kt("",!0):(X(),ot("div",kB,[g("div",null,[$B,g("div",MB,[g("h1",OB,[g("samp",null,wt(this.configurationInfo.Name),1)]),DB])]),g("div",IB,[g("div",LB,[g("div",RB,[g("div",NB,[FB,gt(" "+wt(this.configurationInfo.Address),1)])])]),g("div",BB,[g("div",VB,[g("div",HB,[jB,gt(" "+wt(this.configurationInfo.ListenPort),1)])])]),g("div",WB,[g("div",zB,[g("div",UB,[KB,g("samp",null,wt(this.configurationInfo.PublicKey),1)])])])]),g("div",YB,[g("div",qB,[g("div",GB,[g("div",XB,[g("div",null,[QB,g("strong",JB,wt(o.configurationSummary.connectedPeers),1)]),ZB])])]),g("div",t3,[g("div",e3,[g("div",n3,[g("div",null,[s3,g("strong",i3,wt(o.configurationSummary.totalUsage.toFixed(4))+" GB",1)]),o3])])]),g("div",r3,[g("div",a3,[g("div",l3,[g("div",null,[c3,g("strong",u3,wt(o.configurationSummary.totalReceive.toFixed(4))+" GB",1)]),d3])])]),g("div",h3,[g("div",f3,[g("div",p3,[g("div",null,[g3,g("strong",m3,wt(o.configurationSummary.totalSent.toFixed(4))+" GB",1)]),_3])])])]),g("div",b3,[g("div",v3,[g("div",y3,[x3,g("div",w3,[dt(r,{data:o.individualDataUsage,options:o.individualDataUsageChartOption,style:{height:"200px",width:"100%"}},null,8,["data","options"])])])]),g("div",E3,[g("div",S3,[A3,g("div",C3,[dt(a,{options:o.chartOptions,data:o.receiveData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])]),g("div",T3,[g("div",P3,[k3,g("div",$3,[dt(a,{options:o.chartOptions,data:o.sentData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])])]),g("div",M3,[g("div",O3,[D3,dt(l,{to:"create",class:"text-decoration-none ms-auto"},{default:Ut(()=>[I3,gt("Add Peer")]),_:1})]),dt(c),dt(Lu,{name:"list",tag:"div",class:"row gx-2 gy-2 z-0"},{default:Ut(()=>[(X(!0),ot(Qt,null,us(this.searchPeers,m=>(X(),ot("div",{class:"col-12 col-lg-6 col-xl-4",key:m.id},[dt(u,{Peer:m,onSetting:_=>{i.peerSetting.modalOpen=!0,i.peerSetting.selectedPeer=this.configurationPeers.find(v=>v.id===m.id)},onQrcode:t[0]||(t[0]=_=>{this.peerQRCode.peerConfigData=_,this.peerQRCode.modalOpen=!0})},null,8,["Peer","onSetting"])]))),128))]),_:1})]),dt(Ln,{name:"fade"},{default:Ut(()=>[this.peerSetting.modalOpen?(X(),de(d,{key:0,selectedPeer:this.peerSetting.selectedPeer,onRefresh:t[1]||(t[1]=m=>this.getPeers(this.$route.params.id)),onClose:t[2]||(t[2]=m=>this.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):Kt("",!0)]),_:1}),dt(Ln,{name:"fade"},{default:Ut(()=>[i.peerQRCode.modalOpen?(X(),de(f,{key:0,peerConfigData:this.peerQRCode.peerConfigData,onClose:t[3]||(t[3]=m=>this.peerQRCode.modalOpen=!1)},null,8,["peerConfigData"])):Kt("",!0)]),_:1}),dt(p)]))}const $b=Rt(PB,[["render",L3],["__scopeId","data-v-b59a7de8"]]);fr.register(yi,On,Vo,Bo,Ti,Lo,Vs,Pi,ka,Ro,No,Fo,Oa,Ia,La,xi,Xi,Ra,ib,ab,cb,db,fb);const R3={name:"configuration",components:{PeerList:$b}},N3={class:"mt-5 text-body"};function F3(e,t,n,s,i,o){const r=Ot("RouterView");return X(),ot("div",N3,[dt(r,null,{default:Ut(({Component:a})=>[dt(Ln,{name:"fade2",mode:"out-in"},{default:Ut(()=>[(X(),de(Au(a)))]),_:2},1024)]),_:1})])}const B3=Rt(R3,[["render",F3]]),V3=async()=>{let e=!1;return await Re("/api/validateAuthentication",{},t=>{e=t.status}),e},cd=jS({history:oS(),routes:[{name:"Index",path:"/",component:DA,meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:EC,meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:dP,meta:{title:"Settings"}},{name:"New Configuration",path:"/new_configuration",component:nM,meta:{title:"New Configuration"}},{name:"Configuration",path:"/configuration/:id",component:B3,meta:{title:"Configuration"},children:[{name:"Peers List",path:"peers",component:$b},{name:"Peers Create",path:"create",component:kb}]}]},{path:"/signin",component:ZA,meta:{title:"Sign In"}},{path:"/welcome",component:Hk,meta:{requiresAuth:!0}}]});cd.beforeEach(async(e,t,n)=>{const s=mn(),i=Xt();e.meta.title?e.params.id?document.title=e.params.id+" | WGDashboard":document.title=e.meta.title+" | WGDashboard":document.title="WGDashboard",e.meta.requiresAuth?XS.getCookie("authToken")&&await V3()?(await i.getConfiguration(),!s.Configurations&&e.name!=="Configuration List"&&await s.getConfigurations(),n()):n("/signin"):n()});const ud=ME(GS);ud.use(cd);const Mb=LE();Mb.use(({store:e})=>{e.$router=rr(cd)});ud.use(Mb);ud.mount("#app"); +`):e}function PR(e,t){const{element:s,datasetIndex:n,index:i}=t,o=e.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(i);return{chart:e,label:r,parsed:o.getParsed(i),raw:e.data.datasets[n].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:n,element:s}}function Tp(e,t){const s=e.chart.ctx,{body:n,footer:i,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=re(t.bodyFont),c=re(t.titleFont),d=re(t.footerFont),u=o.length,f=i.length,g=n.length,m=be(t.padding);let b=m.height,v=0,w=n.reduce((T,y)=>T+y.before.length+y.lines.length+y.after.length,0);if(w+=e.beforeBody.length+e.afterBody.length,u&&(b+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),w){const T=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;b+=g*T+(w-g)*l.lineHeight+(w-1)*t.bodySpacing}f&&(b+=t.footerMarginTop+f*d.lineHeight+(f-1)*t.footerSpacing);let E=0;const $=function(T){v=Math.max(v,s.measureText(T).width+E)};return s.save(),s.font=c.string,zt(e.title,$),s.font=l.string,zt(e.beforeBody.concat(e.afterBody),$),E=t.displayColors?r+2+t.boxPadding:0,zt(n,T=>{zt(T.before,$),zt(T.lines,$),zt(T.after,$)}),E=0,s.font=d.string,zt(e.footer,$),s.restore(),v+=m.width,{width:v,height:b}}function kR(e,t){const{y:s,height:n}=t;return se.height-n/2?"bottom":"center"}function TR(e,t,s,n){const{x:i,width:o}=n,r=s.caretSize+s.caretPadding;if(e==="left"&&i+o+r>t.width||e==="right"&&i-o-r<0)return!0}function MR(e,t,s,n){const{x:i,width:o}=s,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return n==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=r-o/2&&(c="right"),TR(c,e,t,s)&&(c="center"),c}function Mp(e,t,s){const n=s.yAlign||t.yAlign||kR(e,s);return{xAlign:s.xAlign||t.xAlign||MR(e,t,s,n),yAlign:n}}function OR(e,t){let{x:s,width:n}=e;return t==="right"?s-=n:t==="center"&&(s-=n/2),s}function DR(e,t,s){let{y:n,height:i}=e;return t==="top"?n+=s:t==="bottom"?n-=i+s:n-=i/2,n}function Op(e,t,s,n){const{caretSize:i,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=s,c=i+o,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:g}=Gn(r);let m=OR(t,a);const b=DR(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(d,f)+i:a==="right"&&(m+=Math.max(u,g)+i),{x:de(m,0,n.width-t.width),y:de(b,0,n.height-t.height)}}function Gr(e,t,s){const n=be(s.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function Dp(e){return ds([],Ps(e))}function IR(e,t,s){return En(e,{tooltip:t,tooltipItems:s,type:"tooltip"})}function Ip(e,t){const s=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return s?e.override(s):e}const bb={beforeTitle:As,title(e){if(e.length>0){const t=e[0],s=t.chart.data.labels,n=s?s.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex"u"?bb[t].call(s,n):i}class jc extends js{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const s=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&s.options.animation&&n.animations,o=new Q_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=IR(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,s){const{callbacks:n}=s,i=Pe(n,"beforeTitle",this,t),o=Pe(n,"title",this,t),r=Pe(n,"afterTitle",this,t);let a=[];return a=ds(a,Ps(i)),a=ds(a,Ps(o)),a=ds(a,Ps(r)),a}getBeforeBody(t,s){return Dp(Pe(s.callbacks,"beforeBody",this,t))}getBody(t,s){const{callbacks:n}=s,i=[];return zt(t,o=>{const r={before:[],lines:[],after:[]},a=Ip(n,o);ds(r.before,Ps(Pe(a,"beforeLabel",this,o))),ds(r.lines,Pe(a,"label",this,o)),ds(r.after,Ps(Pe(a,"afterLabel",this,o))),i.push(r)}),i}getAfterBody(t,s){return Dp(Pe(s.callbacks,"afterBody",this,t))}getFooter(t,s){const{callbacks:n}=s,i=Pe(n,"beforeFooter",this,t),o=Pe(n,"footer",this,t),r=Pe(n,"afterFooter",this,t);let a=[];return a=ds(a,Ps(i)),a=ds(a,Ps(o)),a=ds(a,Ps(r)),a}_createItems(t){const s=this._active,n=this.chart.data,i=[],o=[],r=[];let a=[],l,c;for(l=0,c=s.length;lt.filter(d,u,f,n))),t.itemSort&&(a=a.sort((d,u)=>t.itemSort(d,u,n))),zt(a,d=>{const u=Ip(t.callbacks,d);i.push(Pe(u,"labelColor",this,d)),o.push(Pe(u,"labelPointStyle",this,d)),r.push(Pe(u,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,s){const n=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=yo[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const l=this._size=Tp(this,n),c=Object.assign({},a,l),d=Mp(this.chart,n,c),u=Op(n,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:s})}drawCaret(t,s,n,i){const o=this.getCaretPosition(t,n,i);s.lineTo(o.x1,o.y1),s.lineTo(o.x2,o.y2),s.lineTo(o.x3,o.y3)}getCaretPosition(t,s,n){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Gn(a),{x:f,y:g}=t,{width:m,height:b}=s;let v,w,E,$,T,y;return o==="center"?(T=g+b/2,i==="left"?(v=f,w=v-r,$=T+r,y=T-r):(v=f+m,w=v+r,$=T-r,y=T+r),E=v):(i==="left"?w=f+Math.max(l,d)+r:i==="right"?w=f+m-Math.max(c,u)-r:w=this.caretX,o==="top"?($=g,T=$-r,v=w-r,E=w+r):($=g+b,T=$+r,v=w+r,E=w-r),y=$),{x1:v,x2:w,x3:E,y1:$,y2:T,y3:y}}drawTitle(t,s,n){const i=this.title,o=i.length;let r,a,l;if(o){const c=Ai(n.rtl,this.x,this.width);for(t.x=Gr(this,n.titleAlign,n),s.textAlign=c.textAlign(n.titleAlign),s.textBaseline="middle",r=re(n.titleFont),a=n.titleSpacing,s.fillStyle=n.titleColor,s.font=r.string,l=0;lE!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Go(t,{x:b,y:m,w:c,h:l,radius:w}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Go(t,{x:v,y:m+1,w:c-2,h:l-2,radius:w}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(b,m,c,l),t.strokeRect(b,m,c,l),t.fillStyle=r.backgroundColor,t.fillRect(v,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,s,n){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:d}=n,u=re(n.bodyFont);let f=u.lineHeight,g=0;const m=Ai(n.rtl,this.x,this.width),b=function(S){s.fillText(S,m.x(t.x+g),t.y+f/2),t.y+=f+o},v=m.textAlign(r);let w,E,$,T,y,x,C;for(s.textAlign=r,s.textBaseline="middle",s.font=u.string,t.x=Gr(this,v,n),s.fillStyle=n.bodyColor,zt(this.beforeBody,b),g=a&&v!=="right"?r==="center"?c/2+d:c+2+d:0,T=0,x=i.length;T0&&s.stroke()}_updateAnimationTarget(t){const s=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const r=yo[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Tp(this,t),l=Object.assign({},r,this._size),c=Mp(s,t,l),d=Op(t,l,c,s);(i._to!==d.x||o._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const s=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(s);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=be(s.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;s.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,s),Y_(t,s.textDirection),o.y+=r.top,this.drawTitle(o,t,s),this.drawBody(o,t,s),this.drawFooter(o,t,s),q_(t,s.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,s){const n=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Pa(n,i),r=this._positionChanged(i,s);(o||r)&&(this._active=i,this._eventPosition=s,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,s,n=!0){if(s&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,s,n),a=this._positionChanged(r,t),l=s||!Pa(r,o)||a;return l&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,s))),l}_getActiveElements(t,s,n,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return s.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,s){const{caretX:n,caretY:i,options:o}=this,r=yo[o.position].call(this,t,s);return r!==!1&&(n!==r.x||i!==r.y)}}it(jc,"positioners",yo);var LR={id:"tooltip",_element:jc,positioners:yo,afterInit(e,t,s){s&&(e.tooltip=new jc({chart:e,options:s}))},beforeUpdate(e,t,s){e.tooltip&&e.tooltip.initialize(s)},reset(e,t,s){e.tooltip&&e.tooltip.initialize(s)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const s={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...s,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",s)}},afterEvent(e,t){if(e.tooltip){const s=t.replay;e.tooltip.handleEvent(t.event,s,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:bb},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const RR=(e,t,s,n)=>(typeof t=="string"?(s=e.push(t)-1,n.unshift({index:s,label:t})):isNaN(t)&&(s=null),s);function NR(e,t,s,n){const i=e.indexOf(t);if(i===-1)return RR(e,t,s,n);const o=e.lastIndexOf(t);return i!==o?s:i}const FR=(e,t)=>e===null?null:de(Math.round(e),0,t);function Lp(e){const t=this.getLabels();return e>=0&&es.length-1?null:this.getPixelForValue(s[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}it(Wc,"id","category"),it(Wc,"defaults",{ticks:{callback:Lp}});function BR(e,t){const s=[],{bounds:i,step:o,min:r,max:a,precision:l,count:c,maxTicks:d,maxDigits:u,includeBounds:f}=e,g=o||1,m=d-1,{min:b,max:v}=t,w=!Ft(r),E=!Ft(a),$=!Ft(c),T=(v-b)/(u+1);let y=Mf((v-b)/m/g)*g,x,C,S,P;if(y<1e-14&&!w&&!E)return[{value:b},{value:v}];P=Math.ceil(v/y)-Math.floor(b/y),P>m&&(y=Mf(P*y/m/g)*g),Ft(l)||(x=Math.pow(10,l),y=Math.ceil(y*x)/x),i==="ticks"?(C=Math.floor(b/y)*y,S=Math.ceil(v/y)*y):(C=b,S=v),w&&E&&o&&WD((a-r)/o,y/1e3)?(P=Math.round(Math.min((a-r)/y,d)),y=(a-r)/P,C=r,S=a):$?(C=w?r:C,S=E?a:S,P=c-1,y=(S-C)/P):(P=(S-C)/y,Oo(P,Math.round(P),y/1e3)?P=Math.round(P):P=Math.ceil(P));const M=Math.max(Of(y),Of(C));x=Math.pow(10,Ft(l)?M:l),C=Math.round(C*x)/x,S=Math.round(S*x)/x;let I=0;for(w&&(f&&C!==r?(s.push({value:r}),Ca)break;s.push({value:N})}return E&&f&&S!==a?s.length&&Oo(s[s.length-1].value,a,Rp(a,T,e))?s[s.length-1].value=a:s.push({value:a}):(!E||S===a)&&s.push({value:S}),s}function Rp(e,t,{horizontal:s,minRotation:n}){const i=ns(n),o=(s?Math.sin(i):Math.cos(i))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class La extends ni{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,s){return Ft(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:s,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const r=l=>i=s?i:l,a=l=>o=n?o:l;if(t){const l=_s(i),c=_s(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:s,stepSize:n}=t,i;return n?(i=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),s=s||11),s&&(i=Math.min(s,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,s=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:s.precision,step:s.stepSize,count:s.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:s.minRotation||0,includeBounds:s.includeBounds!==!1},o=this._range||this,r=BR(i,o);return t.bounds==="ticks"&&T_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let s=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-s)/Math.max(t.length-1,1)/2;s-=i,n+=i}this._startValue=s,this._endValue=n,this._valueRange=n-s}getLabelForValue(t){return lr(t,this.chart.options.locale,this.options.ticks.format)}}class zc extends La{determineDataLimits(){const{min:t,max:s}=this.getMinMax(!0);this.min=Qt(t)?t:0,this.max=Qt(s)?s:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),s=t?this.width:this.height,n=ns(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(s/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}it(zc,"id","linear"),it(zc,"defaults",{ticks:{callback:cl.formatters.numeric}});const Jo=e=>Math.floor(an(e)),Bn=(e,t)=>Math.pow(10,Jo(e)+t);function Np(e){return e/Math.pow(10,Jo(e))===1}function Fp(e,t,s){const n=Math.pow(10,s),i=Math.floor(e/n);return Math.ceil(t/n)-i}function VR(e,t){const s=t-e;let n=Jo(s);for(;Fp(e,t,n)>10;)n++;for(;Fp(e,t,n)<10;)n--;return Math.min(n,Jo(e))}function HR(e,{min:t,max:s}){t=Oe(e.min,t);const n=[],i=Jo(t);let o=VR(t,s),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*r)/r,d=Math.floor((t-l)/a/10)*a*10;let u=Math.floor((c-d)/Math.pow(10,o)),f=Oe(e.min,Math.round((l+d+u*Math.pow(10,o))*r)/r);for(;f=10?u=u<15?15:20:u++,u>=20&&(o++,u=2,r=o>=0?1:r),f=Math.round((l+d+u*Math.pow(10,o))*r)/r;const g=Oe(e.max,f);return n.push({value:g,major:Np(g),significand:u}),n}class Uc extends ni{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,s){const n=La.prototype.parse.apply(this,[t,s]);if(n===0){this._zero=!0;return}return Qt(n)&&n>0?n:null}determineDataLimits(){const{min:t,max:s}=this.getMinMax(!0);this.min=Qt(t)?Math.max(0,t):null,this.max=Qt(s)?Math.max(0,s):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Qt(this._userMin)&&(this.min=t===Bn(this.min,0)?Bn(this.min,-1):Bn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:s}=this.getUserBounds();let n=this.min,i=this.max;const o=a=>n=t?n:a,r=a=>i=s?i:a;n===i&&(n<=0?(o(1),r(10)):(o(Bn(n,-1)),r(Bn(i,1)))),n<=0&&o(Bn(i,-1)),i<=0&&r(Bn(n,1)),this.min=n,this.max=i}buildTicks(){const t=this.options,s={min:this._userMin,max:this._userMax},n=HR(s,this);return t.bounds==="ticks"&&T_(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(t){return t===void 0?"0":lr(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=an(t),this._valueRange=an(this.max)-an(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(an(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const s=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+s*this._valueRange)}}it(Uc,"id","logarithmic"),it(Uc,"defaults",{ticks:{callback:cl.formatters.logarithmic,major:{enabled:!0}}});function Kc(e){const t=e.ticks;if(t.display&&e.display){const s=be(t.backdropPadding);return St(t.font&&t.font.size,Zt.font.size)+s.height}return 0}function jR(e,t,s){return s=qt(s)?s:[s],{w:rI(e,t.string,s),h:s.length*t.lineHeight}}function Bp(e,t,s,n,i){return e===n||e===i?{start:t-s/2,end:t+s/2}:ei?{start:t-s,end:t}:{start:t,end:t+s}}function WR(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},s=Object.assign({},t),n=[],i=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?Xt/o:0;for(let l=0;lt.r&&(a=(n.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function UR(e,t,s){const n=e.drawingArea,{extra:i,additionalAngle:o,padding:r,size:a}=s,l=e.getPointPosition(t,n+i+r,o),c=Math.round(Qd(Ie(l.angle+te))),d=XR(l.y,a.h,c),u=qR(c),f=GR(l.x,a.w,u);return{visible:!0,x:l.x,y:d,textAlign:u,left:f,top:d,right:f+a.w,bottom:d+a.h}}function KR(e,t){if(!t)return!0;const{left:s,top:n,right:i,bottom:o}=e;return!(Is({x:s,y:n},t)||Is({x:s,y:o},t)||Is({x:i,y:n},t)||Is({x:i,y:o},t))}function YR(e,t,s){const n=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:Kc(o)/2,additionalAngle:r?Xt/i:0};let c;for(let d=0;d270||s<90)&&(e-=t),e}function JR(e,t,s){const{left:n,top:i,right:o,bottom:r}=s,{backdropColor:a}=t;if(!Ft(a)){const l=Gn(t.borderRadius),c=be(t.backdropPadding);e.fillStyle=a;const d=n-c.left,u=i-c.top,f=o-n+c.width,g=r-i+c.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),Go(e,{x:d,y:u,w:f,h:g,radius:l}),e.fill()):e.fillRect(d,u,f,g)}}function QR(e,t){const{ctx:s,options:{pointLabels:n}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const r=n.setContext(e.getPointLabelContext(i));JR(s,r,o);const a=re(r.font),{x:l,y:c,textAlign:d}=o;ei(s,e._pointLabels[i],l,c+a.lineHeight/2,a,{color:r.color,textAlign:d,textBaseline:"middle"})}}function vb(e,t,s,n){const{ctx:i}=e;if(s)i.arc(e.xCenter,e.yCenter,t,0,Gt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let r=1;r{const i=Kt(this.options.pointLabels.callback,[s,n],this);return i||i===0?i:""}).filter((s,n)=>this.chart.getDataVisibility(n))}fit(){const t=this.options;t.display&&t.pointLabels.display?WR(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,s,n,i){this.xCenter+=Math.floor((t-s)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,s,n,i))}getIndexAngle(t){const s=Gt/(this._pointLabels.length||1),n=this.options.startAngle||0;return Ie(t*s+ns(n))}getDistanceFromCenterForValue(t){if(Ft(t))return NaN;const s=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*s:(t-this.min)*s}getValueForDistanceFromCenter(t){if(Ft(t))return NaN;const s=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-s:this.min+s}getPointLabelContext(t){const s=this._pointLabels||[];if(t>=0&&t{if(u!==0){l=this.getDistanceFromCenterForValue(d.value);const f=this.getContext(u),g=i.setContext(f),m=o.setContext(f);ZR(this,g,l,r,m)}}),n.display){for(t.save(),a=r-1;a>=0;a--){const d=n.setContext(this.getPointLabelContext(a)),{color:u,lineWidth:f}=d;!f||!u||(t.lineWidth=f,t.strokeStyle=u,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(s.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,s=this.options,n=s.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!s.reverse)return;const c=n.setContext(this.getContext(l)),d=re(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=d.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const u=be(c.backdropPadding);t.fillRect(-r/2-u.left,-o-d.size/2-u.top,r+u.width,d.size+u.height)}ei(t,a.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}it(xo,"id","radialLinear"),it(xo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:cl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),it(xo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),it(xo,"descriptors",{angleLines:{_fallback:"grid"}});const pl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Te=Object.keys(pl);function Vp(e,t){return e-t}function Hp(e,t){if(Ft(t))return null;const s=e._adapter,{parser:n,round:i,isoWeekday:o}=e._parseOpts;let r=t;return typeof n=="function"&&(r=n(r)),Qt(r)||(r=typeof n=="string"?s.parse(r,n):s.parse(r)),r===null?null:(i&&(r=i==="week"&&(zi(o)||o===!0)?s.startOf(r,"isoWeek",o):s.startOf(r,i)),+r)}function jp(e,t,s,n){const i=Te.length;for(let o=Te.indexOf(e);o=Te.indexOf(s);o--){const r=Te[o];if(pl[r].common&&e._adapter.diff(i,n,r)>=t-1)return r}return Te[s?Te.indexOf(s):0]}function sN(e){for(let t=Te.indexOf(e)+1,s=Te.length;t=t?s[n]:s[i];e[o]=!0}}function nN(e,t,s,n){const i=e._adapter,o=+i.startOf(t[0].value,n),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+i.add(a,1,n))l=s[a],l>=0&&(t[l].major=!0);return t}function zp(e,t,s){const n=[],i={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let s=0,n=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?s=1-i:s=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?n=o:n=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;s=de(s,0,r),n=de(n,0,r),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,s=this.min,n=this.max,i=this.options,o=i.time,r=o.unit||jp(o.minUnit,s,n,this._getLabelCapacity(s)),a=St(i.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=zi(l)||l===!0,d={};let u=s,f,g;if(c&&(u=+t.startOf(u,"isoWeek",l)),u=+t.startOf(u,c?"day":r),t.diff(n,s,r)>1e5*a)throw new Error(s+" and "+n+" are too far apart with stepSize of "+a+" "+r);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(f=u,g=0;f+b)}getLabelForValue(t){const s=this._adapter,n=this.options.time;return n.tooltipFormat?s.format(t,n.tooltipFormat):s.format(t,n.displayFormats.datetime)}format(t,s){const i=this.options.time.displayFormats,o=this._unit,r=s||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,s,n,i){const o=this.options,r=o.ticks.callback;if(r)return Kt(r,[t,s,n],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&a[l],u=c&&a[c],f=n[s],g=c&&u&&f&&f.major;return this._adapter.format(t,i||(g?u:d))}generateTickLabels(t){let s,n,i;for(s=0,n=t.length;s0?a:1}getDataTimestamps(){let t=this._cache.data||[],s,n;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(s=0,n=i.length;s=e[n].pos&&t<=e[i].pos&&({lo:n,hi:i}=Ds(e,"pos",t)),{pos:o,time:a}=e[n],{pos:r,time:l}=e[i]):(t>=e[n].time&&t<=e[i].time&&({lo:n,hi:i}=Ds(e,"time",t)),{time:o,pos:a}=e[n],{time:r,pos:l}=e[i]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Yc extends Qo{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),s=this._table=this.buildLookupTable(t);this._minPos=Xr(s,this.min),this._tableRange=Xr(s,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:s,max:n}=this,i=[],o=[];let r,a,l,c,d;for(r=0,a=t.length;r=s&&c<=n&&i.push(c);if(i.length<2)return[{time:s,pos:0},{time:n,pos:1}];for(r=0,a=i.length;ri-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const s=this.getDataTimestamps(),n=this.getLabelTimestamps();return s.length&&n.length?t=this.normalize(s.concat(n)):t=s.length?s:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Xr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const s=this._offsets,n=this.getDecimalForPixel(t)/s.factor-s.end;return Xr(this._table,n*this._tableRange+this._minPos,!0)}}it(Yc,"id","timeseries"),it(Yc,"defaults",Qo.defaults);const yb={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},iN={ariaLabel:{type:String},ariaDescribedby:{type:String}},oN={type:{type:String,required:!0},...yb,...iN},rN=Tm[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function mi(e){return za(e)?Tt(e):e}function aN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return za(t)?new Proxy(e,{}):e}function lN(e,t){const s=e.options;s&&t&&Object.assign(s,t)}function xb(e,t){e.labels=t}function wb(e,t,s){const n=[];e.datasets=t.map(i=>{const o=e.datasets.find(r=>r[s]===i[s]);return!o||!i.data||n.includes(o)?{...i}:(n.push(o),Object.assign(o,i),o)})}function cN(e,t){const s={labels:[],datasets:[]};return xb(s,e.labels),wb(s,e.datasets,t),s}const dN=Xa({props:oN,setup(e,t){let{expose:s,slots:n}=t;const i=Oi(null),o=Ad(null);s({chart:o});const r=()=>{if(!i.value)return;const{type:c,data:d,options:u,plugins:f,datasetIdKey:g}=e,m=cN(d,g),b=aN(m,d);o.value=new fl(i.value,{type:c,data:b,options:{...u},plugins:f})},a=()=>{const c=Tt(o.value);c&&(c.destroy(),o.value=null)},l=c=>{c.update(e.updateMode)};return Od(r),Dd(a),qn([()=>e.options,()=>e.data],(c,d)=>{let[u,f]=c,[g,m]=d;const b=Tt(o.value);if(!b)return;let v=!1;if(u){const w=mi(u),E=mi(g);w&&w!==E&&(lN(b,w),v=!0)}if(f){const w=mi(f.labels),E=mi(m.labels),$=mi(f.datasets),T=mi(m.datasets);w!==E&&(xb(b.config.data,w),v=!0),$&&$!==T&&(wb(b.config.data,$,e.datasetIdKey),v=!0)}v&&nr(()=>{l(b)})},{deep:!0}),()=>Li("canvas",{role:"img",ariaLabel:e.ariaLabel,ariaDescribedby:e.ariaDescribedby,ref:i},[Li("p",{},[n.default?n.default():""])])}});function Eb(e,t){return fl.register(t),Xa({props:yb,setup(s,n){let{expose:i}=n;const o=Ad(null),r=a=>{o.value=a==null?void 0:a.chart};return i({chart:o}),()=>Li(dN,rN({ref:r},{type:e,...s}))}})}const uN=Eb("bar",Lo),hN=Eb("line",Ro);function Fs(e){return Array.isArray?Array.isArray(e):Cb(e)==="[object Array]"}const fN=1/0;function pN(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-fN?"-0":t}function gN(e){return e==null?"":pN(e)}function ps(e){return typeof e=="string"}function Sb(e){return typeof e=="number"}function mN(e){return e===!0||e===!1||_N(e)&&Cb(e)=="[object Boolean]"}function Ab(e){return typeof e=="object"}function _N(e){return Ab(e)&&e!==null}function Le(e){return e!=null}function ac(e){return!e.trim().length}function Cb(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const bN="Incorrect 'index' type",vN=e=>`Invalid value for key ${e}`,yN=e=>`Pattern length exceeds max of ${e}.`,xN=e=>`Missing ${e} property in key`,wN=e=>`Property 'weight' in key '${e}' must be a positive integer`,Up=Object.prototype.hasOwnProperty;class EN{constructor(t){this._keys=[],this._keyMap={};let s=0;t.forEach(n=>{let i=$b(n);this._keys.push(i),this._keyMap[i.id]=i,s+=i.weight}),this._keys.forEach(n=>{n.weight/=s})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $b(e){let t=null,s=null,n=null,i=1,o=null;if(ps(e)||Fs(e))n=e,t=Kp(e),s=qc(e);else{if(!Up.call(e,"name"))throw new Error(xN("name"));const r=e.name;if(n=r,Up.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(wN(r));t=Kp(r),s=qc(r),o=e.getFn}return{path:t,id:s,weight:i,src:n,getFn:o}}function Kp(e){return Fs(e)?e:e.split(".")}function qc(e){return Fs(e)?e.join("."):e}function SN(e,t){let s=[],n=!1;const i=(o,r,a)=>{if(Le(o))if(!r[a])s.push(o);else{let l=r[a];const c=o[l];if(!Le(c))return;if(a===r.length-1&&(ps(c)||Sb(c)||mN(c)))s.push(gN(c));else if(Fs(c)){n=!0;for(let d=0,u=c.length;de.score===t.score?e.idx{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ps(this.docs[0])?this.docs.forEach((t,s)=>{this._addString(t,s)}):this.docs.forEach((t,s)=>{this._addObject(t,s)}),this.norm.clear())}add(t){const s=this.size();ps(t)?this._addString(t,s):this._addObject(t,s)}removeAt(t){this.records.splice(t,1);for(let s=t,n=this.size();s{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(Le(r)){if(Fs(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(Le(d))if(ps(d)&&!ac(d)){let u={v:d,i:c,n:this.norm.get(d)};a.push(u)}else Fs(d)&&d.forEach((u,f)=>{l.push({nestedArrIndex:f,value:u})})}n.$[o]=a}else if(ps(r)&&!ac(r)){let a={v:r,n:this.norm.get(r)};n.$[o]=a}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Pb(e,t,{getFn:s=xt.getFn,fieldNormWeight:n=xt.fieldNormWeight}={}){const i=new du({getFn:s,fieldNormWeight:n});return i.setKeys(e.map($b)),i.setSources(t),i.create(),i}function MN(e,{getFn:t=xt.getFn,fieldNormWeight:s=xt.fieldNormWeight}={}){const{keys:n,records:i}=e,o=new du({getFn:t,fieldNormWeight:s});return o.setKeys(n),o.setIndexRecords(i),o}function Jr(e,{errors:t=0,currentLocation:s=0,expectedLocation:n=0,distance:i=xt.distance,ignoreLocation:o=xt.ignoreLocation}={}){const r=t/e.length;if(o)return r;const a=Math.abs(n-s);return i?r+a/i:a?1:r}function ON(e=[],t=xt.minMatchCharLength){let s=[],n=-1,i=-1,o=0;for(let r=e.length;o=t&&s.push([n,i]),n=-1)}return e[o-1]&&o-n>=t&&s.push([n,o-1]),s}const Wn=32;function DN(e,t,s,{location:n=xt.location,distance:i=xt.distance,threshold:o=xt.threshold,findAllMatches:r=xt.findAllMatches,minMatchCharLength:a=xt.minMatchCharLength,includeMatches:l=xt.includeMatches,ignoreLocation:c=xt.ignoreLocation}={}){if(t.length>Wn)throw new Error(yN(Wn));const d=t.length,u=e.length,f=Math.max(0,Math.min(n,u));let g=o,m=f;const b=a>1||l,v=b?Array(u):[];let w;for(;(w=e.indexOf(t,m))>-1;){let C=Jr(t,{currentLocation:w,expectedLocation:f,distance:i,ignoreLocation:c});if(g=Math.min(C,g),m=w+d,b){let S=0;for(;S=M;G-=1){let V=G-1,L=s[e.charAt(V)];if(b&&(v[V]=+!!L),N[G]=(N[G+1]<<1|1)&L,C&&(N[G]|=(E[G+1]|E[G])<<1|1|E[G+1]),N[G]&y&&($=Jr(t,{errors:C,currentLocation:V,expectedLocation:f,distance:i,ignoreLocation:c}),$<=g)){if(g=$,m=V,m<=f)break;M=Math.max(1,2*f-m)}}if(Jr(t,{errors:C+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:c})>g)break;E=N}const x={isMatch:m>=0,score:Math.max(.001,$)};if(b){const C=ON(v,a);C.length?l&&(x.indices=C):x.isMatch=!1}return x}function IN(e){let t={};for(let s=0,n=e.length;s{this.chunks.push({pattern:f,alphabet:IN(f),startIndex:g})},u=this.pattern.length;if(u>Wn){let f=0;const g=u%Wn,m=u-g;for(;f{const{isMatch:w,score:E,indices:$}=DN(t,m,b,{location:i+v,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});w&&(f=!0),u+=E,w&&$&&(d=[...d,...$])});let g={isMatch:f,score:f?u/this.chunks.length:1};return f&&n&&(g.indices=d),g}}class Sn{constructor(t){this.pattern=t}static isMultiMatch(t){return Yp(t,this.multiRegex)}static isSingleMatch(t){return Yp(t,this.singleRegex)}search(){}}function Yp(e,t){const s=e.match(t);return s?s[1]:null}class LN extends Sn{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const s=t===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class RN extends Sn{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class NN extends Sn{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const s=t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class FN extends Sn{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const s=!t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class BN extends Sn{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const s=t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class VN extends Sn{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const s=!t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Tb extends Sn{constructor(t,{location:s=xt.location,threshold:n=xt.threshold,distance:i=xt.distance,includeMatches:o=xt.includeMatches,findAllMatches:r=xt.findAllMatches,minMatchCharLength:a=xt.minMatchCharLength,isCaseSensitive:l=xt.isCaseSensitive,ignoreLocation:c=xt.ignoreLocation}={}){super(t),this._bitapSearch=new kb(t,{location:s,threshold:n,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Mb extends Sn{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let s=0,n;const i=[],o=this.pattern.length;for(;(n=t.indexOf(this.pattern,s))>-1;)s=n+o,i.push([n,s-1]);const r=!!i.length;return{isMatch:r,score:r?0:1,indices:i}}}const Gc=[LN,Mb,NN,FN,VN,BN,RN,Tb],qp=Gc.length,HN=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,jN="|";function WN(e,t={}){return e.split(jN).map(s=>{let n=s.trim().split(HN).filter(o=>o&&!!o.trim()),i=[];for(let o=0,r=n.length;o!!(e[Ra.AND]||e[Ra.OR]),YN=e=>!!e[Qc.PATH],qN=e=>!Fs(e)&&Ab(e)&&!Zc(e),Gp=e=>({[Ra.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Ob(e,t,{auto:s=!0}={}){const n=i=>{let o=Object.keys(i);const r=YN(i);if(!r&&o.length>1&&!Zc(i))return n(Gp(i));if(qN(i)){const l=r?i[Qc.PATH]:o[0],c=r?i[Qc.PATTERN]:i[l];if(!ps(c))throw new Error(vN(l));const d={keyId:qc(l),pattern:c};return s&&(d.searcher=Jc(c,t)),d}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];Fs(c)&&c.forEach(d=>{a.children.push(n(d))})}),a};return Zc(e)||(e=Gp(e)),n(e)}function GN(e,{ignoreFieldNorm:t=xt.ignoreFieldNorm}){e.forEach(s=>{let n=1;s.matches.forEach(({key:i,norm:o,score:r})=>{const a=i?i.weight:null;n*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:o))}),s.score=n})}function XN(e,t){const s=e.matches;t.matches=[],Le(s)&&s.forEach(n=>{if(!Le(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let r={indices:i,value:o};n.key&&(r.key=n.key.src),n.idx>-1&&(r.refIndex=n.idx),t.matches.push(r)})}function JN(e,t){t.score=e.score}function QN(e,t,{includeMatches:s=xt.includeMatches,includeScore:n=xt.includeScore}={}){const i=[];return s&&i.push(XN),n&&i.push(JN),e.map(o=>{const{idx:r}=o,a={item:t[r],refIndex:r};return i.length&&i.forEach(l=>{l(o,a)}),a})}class Zi{constructor(t,s={},n){this.options={...xt,...s},this.options.useExtendedSearch,this._keyStore=new EN(this.options.keys),this.setCollection(t,n)}setCollection(t,s){if(this._docs=t,s&&!(s instanceof du))throw new Error(bN);this._myIndex=s||Pb(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Le(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const s=[];for(let n=0,i=this._docs.length;n-1&&(l=l.slice(0,s)),QN(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(t){const s=Jc(t,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:r,n:a})=>{if(!Le(o))return;const{isMatch:l,score:c,indices:d}=s.searchIn(o);l&&i.push({item:o,idx:r,matches:[{score:c,value:o,norm:a,indices:d}]})}),i}_searchLogical(t){const s=Ob(t,this.options),n=(a,l,c)=>{if(!a.children){const{keyId:u,searcher:f}=a,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(l,u),searcher:f});return g&&g.length?[{idx:c,item:l,matches:g}]:[]}const d=[];for(let u=0,f=a.children.length;u{if(Le(a)){let c=n(s,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},r.push(o[l])),c.forEach(({matches:d})=>{o[l].matches.push(...d)}))}}),r}_searchObjectList(t){const s=Jc(t,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:r,i:a})=>{if(!Le(r))return;let l=[];n.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:r[d],searcher:s}))}),l.length&&o.push({idx:a,item:r,matches:l})}),o}_findMatches({key:t,value:s,searcher:n}){if(!Le(s))return[];let i=[];if(Fs(s))s.forEach(({v:o,i:r,n:a})=>{if(!Le(o))return;const{isMatch:l,score:c,indices:d}=n.searchIn(o);l&&i.push({score:c,key:t,value:o,idx:r,norm:a,indices:d})});else{const{v:o,n:r}=s,{isMatch:a,score:l,indices:c}=n.searchIn(o);a&&i.push({score:l,key:t,value:o,norm:r,indices:c})}return i}}Zi.version="7.0.0";Zi.createIndex=Pb;Zi.parseIndex=MN;Zi.config=xt;Zi.parseQuery=Ob;KN(UN);var Db={exports:{}};(function(e,t){(function(s,n){e.exports=n()})(Jp,function(){var s=1e3,n=6e4,i=36e5,o="millisecond",r="second",a="minute",l="hour",c="day",d="week",u="month",f="quarter",g="year",m="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(G){var V=["th","st","nd","rd"],L=G%100;return"["+G+(V[(L-20)%10]||V[L]||V[0])+"]"}},$=function(G,V,L){var W=String(G);return!W||W.length>=V?G:""+Array(V+1-W.length).join(L)+G},T={s:$,z:function(G){var V=-G.utcOffset(),L=Math.abs(V),W=Math.floor(L/60),K=L%60;return(V<=0?"+":"-")+$(W,2,"0")+":"+$(K,2,"0")},m:function G(V,L){if(V.date()1)return G(ut[0])}else{var bt=V.name;x[bt]=V,K=bt}return!W&&K&&(y=K),K||!W&&y},M=function(G,V){if(S(G))return G.clone();var L=typeof V=="object"?V:{};return L.date=G,L.args=arguments,new N(L)},I=T;I.l=P,I.i=S,I.w=function(G,V){return M(G,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var N=function(){function G(L){this.$L=P(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[C]=!0}var V=G.prototype;return V.parse=function(L){this.$d=function(W){var K=W.date,ot=W.utc;if(K===null)return new Date(NaN);if(I.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var ut=K.match(v);if(ut){var bt=ut[2]-1||0,_t=(ut[7]||"0").substring(0,3);return ot?new Date(Date.UTC(ut[1],bt,ut[3]||1,ut[4]||0,ut[5]||0,ut[6]||0,_t)):new Date(ut[1],bt,ut[3]||1,ut[4]||0,ut[5]||0,ut[6]||0,_t)}}return new Date(K)}(L),this.init()},V.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},V.$utils=function(){return I},V.isValid=function(){return this.$d.toString()!==b},V.isSame=function(L,W){var K=M(L);return this.startOf(W)<=K&&K<=this.endOf(W)},V.isAfter=function(L,W){return M(L)(Bs("data-v-0f1cea80"),e=e(),Vs(),e),sF={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},nF={class:"container d-flex h-100 w-100"},iF={class:"card m-auto rounded-3 shadow"},oF={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},rF=eF(()=>p("h4",{class:"mb-0"},"QR Code",-1)),aF={class:"card-body"},lF={id:"qrcode",class:"rounded-3 shadow",ref:"qrcode"};function cF(e,t,s,n,i,o){return H(),q("div",sF,[p("div",nF,[p("div",iF,[p("div",oF,[rF,p("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),p("div",aF,[p("canvas",lF,null,512)])])])])}const dF=kt(tF,[["render",cF],["__scopeId","data-v-0f1cea80"]]),uF={name:"nameInput",props:{bulk:Boolean,data:Object,saving:Boolean}},hF=p("label",{for:"peer_name_textbox",class:"form-label"},[p("small",{class:"text-muted"},"Name")],-1),fF=["disabled"];function pF(e,t,s,n,i,o){return H(),q("div",{class:Rt({inactiveField:this.bulk})},[hF,mt(p("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||this.bulk,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,fF),[[yt,this.data.name]])],2)}const gF=kt(uF,[["render",pF]]),mF={name:"privatePublicKeyInput",props:{data:Object,saving:Boolean,bulk:Boolean},setup(){return{dashboardStore:Jt()}},data(){return{keypair:{publicKey:"",privateKey:"",presharedKey:""},editKey:!1,error:!1}},methods:{genKeyPair(){this.editKey=!1,this.keypair=window.wireguard.generateKeypair(),this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey},checkMatching(){try{window.wireguard.generatePublicKey(this.keypair.privateKey)!==this.keypair.publicKey&&(this.error=!0,this.dashboardStore.newMessage("WGDashboard","Private Key and Public Key does not match.","danger"))}catch{this.error=!0,this.data.private_key="",this.data.public_key=""}}},mounted(){this.genKeyPair()},watch:{keypair:{deep:!0,handler(){this.error=!1,this.checkMatching()}}}},_F=p("label",{for:"peer_private_key_textbox",class:"form-label"},[p("small",{class:"text-muted"},[ht("Private Key "),p("code",null,"(Required for QR Code and Download)")])],-1),bF={class:"input-group"},vF=["disabled"],yF=["disabled"],xF=p("i",{class:"bi bi-arrow-repeat"},null,-1),wF=[xF],EF={class:"d-flex"},SF=p("label",{for:"public_key",class:"form-label"},[p("small",{class:"text-muted"},[ht("Public Key "),p("code",null,"(Required)")])],-1),AF={class:"form-check form-switch ms-auto"},CF=["disabled"],$F=p("label",{class:"form-check-label",for:"enablePublicKeyEdit"},[p("small",null,"Edit")],-1),PF=["disabled"];function kF(e,t,s,n,i,o){return H(),q("div",{class:Rt(["d-flex gap-2 flex-column",{inactiveField:this.bulk}])},[p("div",null,[_F,p("div",bF,[mt(p("input",{type:"text",class:Rt(["form-control form-control-sm rounded-start-3",{"is-invalid":this.error}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.keypair.privateKey=r),disabled:!this.editKey||this.bulk,onBlur:t[1]||(t[1]=r=>this.checkMatching()),id:"peer_private_key_textbox"},null,42,vF),[[yt,this.keypair.privateKey]]),p("button",{class:"btn btn-outline-info btn-sm rounded-end-3",onClick:t[2]||(t[2]=r=>this.genKeyPair()),disabled:this.bulk,type:"button",id:"button-addon2"},wF,8,yF)])]),p("div",null,[p("div",EF,[SF,p("div",AF,[mt(p("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:this.bulk,id:"enablePublicKeyEdit","onUpdate:modelValue":t[3]||(t[3]=r=>this.editKey=r)},null,8,CF),[[Xi,this.editKey]]),$F])]),mt(p("input",{class:Rt(["form-control-sm form-control rounded-3",{"is-invalid":this.error}]),"onUpdate:modelValue":t[4]||(t[4]=r=>this.keypair.publicKey=r),onBlur:t[5]||(t[5]=r=>this.checkMatching()),disabled:!this.editKey||this.bulk,type:"text",id:"public_key"},null,42,PF),[[yt,this.keypair.publicKey]])])],2)}const TF=kt(mF,[["render",kF]]),MF={name:"allowedIPsInput",props:{data:Object,saving:Boolean,bulk:Boolean,availableIp:void 0},data(){return{allowedIp:[],availableIpSearchString:"",customAvailableIp:"",allowedIpFormatError:!1}},setup(){const e=as(),t=Jt();return{store:e,dashboardStore:t}},computed:{searchAvailableIps(){return this.availableIpSearchString?this.availableIp.filter(e=>e.includes(this.availableIpSearchString)&&!this.data.allowed_ips.includes(e)):this.availableIp.filter(e=>!this.data.allowed_ips.includes(e))}},methods:{addAllowedIp(e){return this.store.checkCIDR(e)?(this.data.allowed_ips.push(e),!0):!1}},watch:{customAvailableIp(){this.allowedIpFormatError=!1}}},dr=e=>(Bs("data-v-99ae26e7"),e=e(),Vs(),e),OF=dr(()=>p("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[p("small",{class:"text-muted"},[ht("Allowed IPs "),p("code",null,"(Required)")])],-1)),DF=["onClick"],IF=dr(()=>p("i",{class:"bi bi-x-circle-fill ms-1"},null,-1)),LF=[IF],RF={class:"d-flex gap-2 align-items-center"},NF={class:"input-group"},FF=["disabled"],BF=["disabled"],VF=dr(()=>p("i",{class:"bi bi-plus-lg"},null,-1)),HF=[VF],jF=dr(()=>p("small",{class:"text-muted"},"or",-1)),WF={class:"dropdown flex-grow-1"},zF=["disabled"],UF=dr(()=>p("i",{class:"bi bi-filter-circle me-2"},null,-1)),KF={key:0,class:"dropdown-menu mt-2 shadow w-100 dropdown-menu-end rounded-3",style:{"overflow-y":"scroll","max-height":"270px",width:"300px !important"}},YF={class:"px-3 pb-2 pt-1"},qF=["onClick"],GF={class:"me-auto"},XF={key:0},JF={class:"px-3 text-muted"};function QF(e,t,s,n,i,o){return H(),q("div",{class:Rt({inactiveField:this.bulk})},[OF,p("div",{class:Rt(["d-flex gap-2 flex-wrap",{"mb-2":this.data.allowed_ips.length>0}])},[dt(or,{name:"list"},{default:Bt(()=>[(H(!0),q(Ht,null,_e(this.data.allowed_ips,(r,a)=>(H(),q("span",{class:"badge rounded-pill text-bg-success",key:r},[ht(lt(r)+" ",1),p("a",{role:"button",onClick:l=>this.data.allowed_ips.splice(a,1)},LF,8,DF)]))),128))]),_:1})],2),p("div",RF,[p("div",NF,[mt(p("input",{type:"text",class:Rt(["form-control form-control-sm rounded-start-3",{"is-invalid":this.allowedIpFormatError}]),placeholder:"Enter IP Address/CIDR","onUpdate:modelValue":t[0]||(t[0]=r=>i.customAvailableIp=r),disabled:s.bulk},null,10,FF),[[yt,i.customAvailableIp]]),p("button",{class:"btn btn-outline-success btn-sm rounded-end-3",disabled:s.bulk||!this.customAvailableIp,onClick:t[1]||(t[1]=r=>{this.addAllowedIp(this.customAvailableIp)?this.customAvailableIp="":this.allowedIpFormatError=!0,this.dashboardStore.newMessage("WGDashboard","Allowed IP is invalid","danger")}),type:"button",id:"button-addon2"},HF,8,BF)]),jF,p("div",WF,[p("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3 w-100",disabled:!s.availableIp||s.bulk,"data-bs-auto-close":"outside",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[UF,ht(" Pick Available IP ")],8,zF),this.availableIp?(H(),q("ul",KF,[p("li",null,[p("div",YF,[mt(p("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[2]||(t[2]=r=>this.availableIpSearchString=r),placeholder:"Search..."},null,512),[[yt,this.availableIpSearchString]])])]),(H(!0),q(Ht,null,_e(this.searchAvailableIps,r=>(H(),q("li",null,[p("a",{class:"dropdown-item d-flex",role:"button",onClick:a=>this.addAllowedIp(r)},[p("span",GF,[p("small",null,lt(r),1)])],8,qF)]))),256)),this.searchAvailableIps.length===0?(H(),q("li",XF,[p("small",JF,'No available IP containing "'+lt(this.availableIpSearchString)+'"',1)])):Vt("",!0)])):Vt("",!0)])])],2)}const ZF=kt(MF,[["render",QF],["__scopeId","data-v-99ae26e7"]]),tB={name:"dnsInput",props:{data:Object,saving:Boolean},data(){return{error:!1,dns:JSON.parse(JSON.stringify(this.data.DNS))}},setup(){const e=as(),t=Jt();return{store:e,dashboardStore:t}},methods:{checkDNS(){if(this.dns){let e=this.dns.split(",").map(t=>t.replaceAll(" ",""));for(let t in e)if(!this.store.regexCheckIP(e[t])){this.error||this.dashboardStore.newMessage("WGDashboard","DNS is invalid","danger"),this.error=!0,this.data.DNS="";return}this.error=!1,this.data.DNS=this.dns}}},watch:{dns(){this.checkDNS()}}},eB=p("label",{for:"peer_DNS_textbox",class:"form-label"},[p("small",{class:"text-muted"},"DNS")],-1),sB=["disabled"];function nB(e,t,s,n,i,o){return H(),q("div",null,[eB,mt(p("input",{type:"text",class:Rt(["form-control form-control-sm rounded-3",{"is-invalid":this.error}]),disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.dns=r),id:"peer_DNS_textbox"},null,10,sB),[[yt,this.dns]])])}const iB=kt(tB,[["render",nB]]),oB={name:"endpointAllowedIps",props:{data:Object,saving:Boolean},setup(){const e=as(),t=Jt();return{store:e,dashboardStore:t}},data(){return{endpointAllowedIps:JSON.parse(JSON.stringify(this.data.endpoint_allowed_ip)),error:!1}},methods:{checkAllowedIP(){let e=this.endpointAllowedIps.split(",").map(t=>t.replaceAll(" ",""));for(let t in e)if(!this.store.checkCIDR(e[t])){this.error||this.dashboardStore.newMessage("WGDashboard","Endpoint Allowed IP is invalid.","danger"),this.data.endpoint_allowed_ip="",this.error=!0;return}this.error=!1,this.data.endpoint_allowed_ip=this.endpointAllowedIps}},watch:{endpointAllowedIps(){this.checkAllowedIP()}}},rB=p("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[p("small",{class:"text-muted"},[ht("Endpoint Allowed IPs "),p("code",null,"(Required)")])],-1),aB=["disabled"];function lB(e,t,s,n,i,o){return H(),q("div",null,[rB,mt(p("input",{type:"text",class:Rt(["form-control form-control-sm rounded-3",{"is-invalid":i.error}]),disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.endpointAllowedIps=r),onBlur:t[1]||(t[1]=r=>this.checkAllowedIP()),id:"peer_endpoint_allowed_ips"},null,42,aB),[[yt,this.endpointAllowedIps]])])}const cB=kt(oB,[["render",lB]]),dB={name:"presharedKeyInput",props:{data:Object,saving:Boolean}},uB=p("label",{for:"peer_preshared_key_textbox",class:"form-label"},[p("small",{class:"text-muted"},"Pre-Shared Key")],-1),hB=["disabled"];function fB(e,t,s,n,i,o){return H(),q("div",null,[uB,mt(p("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,hB),[[yt,this.data.preshared_key]])])}const pB=kt(dB,[["render",fB]]),gB={name:"mtuInput",props:{data:Object,saving:Boolean}},mB=p("label",{for:"peer_mtu",class:"form-label"},[p("small",{class:"text-muted"},"MTU")],-1),_B=["disabled"];function bB(e,t,s,n,i,o){return H(),q("div",null,[mB,mt(p("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,_B),[[yt,this.data.mtu]])])}const vB=kt(gB,[["render",bB]]),yB={name:"persistentKeepAliveInput",props:{data:Object,saving:Boolean}},xB=p("label",{for:"peer_keep_alive",class:"form-label"},[p("small",{class:"text-muted"},"Persistent Keepalive")],-1),wB=["disabled"];function EB(e,t,s,n,i,o){return H(),q("div",null,[xB,mt(p("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,wB),[[yt,this.data.keepalive]])])}const SB=kt(yB,[["render",EB]]),AB={name:"bulkAdd",props:{saving:Boolean,data:Object,availableIp:void 0}},CB={class:"form-check form-switch"},$B=["disabled"],PB=p("label",{class:"form-check-label me-2",for:"bulk_add"},[p("small",null,[p("strong",null,"Bulk Add")])],-1),kB=p("small",{class:"text-muted d-block"}," By adding peers by bulk, each peer's name will be auto generated, and Allowed IP will be assign to the next available IP. ",-1),TB=[kB],MB={key:0,class:"form-group"},OB=["max"],DB={class:"text-muted"};function IB(e,t,s,n,i,o){return H(),q("div",null,[p("div",CB,[mt(p("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:!this.availableIp,id:"bulk_add","onUpdate:modelValue":t[0]||(t[0]=r=>this.data.bulkAdd=r)},null,8,$B),[[Xi,this.data.bulkAdd]]),PB]),p("p",{class:Rt({"mb-0":!this.data.bulkAdd})},TB,2),this.data.bulkAdd?(H(),q("div",MB,[mt(p("input",{class:"form-control form-control-sm rounded-3 mb-1",type:"number",min:"1",max:this.availableIp.length,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.bulkAddAmount=r),placeholder:"How many peers you want to add?"},null,8,OB),[[yt,this.data.bulkAddAmount]]),p("small",DB,[ht(" You can add up to "),p("strong",null,lt(this.availableIp.length),1),ht(" peers ")])])):Vt("",!0)])}const LB=kt(AB,[["render",IB]]),RB={name:"peerCreate",components:{BulkAdd:LB,PersistentKeepAliveInput:SB,MtuInput:vB,PresharedKeyInput:pB,EndpointAllowedIps:cB,DnsInput:iB,AllowedIPsInput:ZF,PrivatePublicKeyInput:TF,NameInput:gF},data(){return{data:{bulkAdd:!1,bulkAddAmount:"",name:"",allowed_ips:[],private_key:"",public_key:"",DNS:this.dashboardStore.Configuration.Peers.peer_global_dns,endpoint_allowed_ip:this.dashboardStore.Configuration.Peers.peer_endpoint_allowed_ip,keepalive:parseInt(this.dashboardStore.Configuration.Peers.peer_keep_alive),mtu:parseInt(this.dashboardStore.Configuration.Peers.peer_mtu),preshared_key:""},availableIp:void 0,availableIpSearchString:"",saving:!1,allowedIpDropdown:void 0}},mounted(){he("/api/getAvailableIPs/"+this.$route.params.id,{},e=>{e.status&&(this.availableIp=e.data)})},setup(){const e=as(),t=Jt();return{store:e,dashboardStore:t}},methods:{peerCreate(){ue("/api/addPeers/"+this.$route.params.id,this.data,e=>{e.status?(this.$router.push(`/configuration/${this.$route.params.id}/peers`),this.dashboardStore.newMessage("Server","Peer create successfully","success")):this.dashboardStore.newMessage("Server",e.message,"danger")})}},computed:{allRequireFieldsFilled(){let e=!0;return this.data.bulkAdd?(this.data.bulkAddAmount.length===0||this.data.bulkAddAmount>this.availableIp.length)&&(e=!1):["allowed_ips","private_key","public_key","endpoint_allowed_ip","keepalive","mtu"].forEach(s=>{this.data[s].length===0&&(e=!1)}),e}},watch:{bulkAdd(e){e||(this.data.bulkAddAmount="")},"data.bulkAddAmount"(){this.data.bulkAddAmount>this.availableIp.length&&(this.data.bulkAddAmount=this.availableIp.length)}}},ur=e=>(Bs("data-v-1938be91"),e=e(),Vs(),e),NB={class:"container"},FB={class:"mb-4"},BB=ur(()=>p("h3",{class:"mb-0 text-body"},[p("i",{class:"bi bi-chevron-left"})],-1)),VB=ur(()=>p("h3",{class:"text-body mb-0"},"Add Peers",-1)),HB={class:"d-flex flex-column gap-2"},jB=ur(()=>p("hr",{class:"mb-0 mt-2"},null,-1)),WB=ur(()=>p("hr",{class:"mb-0 mt-2"},null,-1)),zB={class:"row"},UB={key:0,class:"col-sm"},KB={class:"col-sm"},YB={class:"col-sm"},qB={class:"d-flex mt-2"},GB=["disabled"],XB=ur(()=>p("i",{class:"bi bi-plus-circle-fill me-2"},null,-1));function JB(e,t,s,n,i,o){const r=Dt("RouterLink"),a=Dt("BulkAdd"),l=Dt("NameInput"),c=Dt("PrivatePublicKeyInput"),d=Dt("AllowedIPsInput"),u=Dt("EndpointAllowedIps"),f=Dt("DnsInput"),g=Dt("PresharedKeyInput"),m=Dt("MtuInput"),b=Dt("PersistentKeepAliveInput");return H(),q("div",NB,[p("div",FB,[dt(r,{to:"peers",is:"div",class:"d-flex align-items-center gap-4 text-decoration-none"},{default:Bt(()=>[BB,VB]),_:1})]),p("div",HB,[dt(a,{saving:i.saving,data:this.data,availableIp:this.availableIp},null,8,["saving","data","availableIp"]),jB,this.data.bulkAdd?Vt("",!0):(H(),oe(l,{key:0,saving:i.saving,data:this.data},null,8,["saving","data"])),this.data.bulkAdd?Vt("",!0):(H(),oe(c,{key:1,saving:i.saving,data:i.data},null,8,["saving","data"])),this.data.bulkAdd?Vt("",!0):(H(),oe(d,{key:2,availableIp:this.availableIp,saving:i.saving,data:i.data},null,8,["availableIp","saving","data"])),dt(u,{saving:i.saving,data:i.data},null,8,["saving","data"]),dt(f,{saving:i.saving,data:i.data},null,8,["saving","data"]),WB,p("div",zB,[this.data.bulkAdd?Vt("",!0):(H(),q("div",UB,[dt(g,{saving:i.saving,data:i.data,bulk:this.data.bulkAdd},null,8,["saving","data","bulk"])])),p("div",KB,[dt(m,{saving:i.saving,data:i.data},null,8,["saving","data"])]),p("div",YB,[dt(b,{saving:i.saving,data:i.data},null,8,["saving","data"])])]),p("div",qB,[p("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.allRequireFieldsFilled,onClick:t[0]||(t[0]=v=>this.peerCreate())},[XB,ht("Add ")],8,GB)])])])}const Ib=kt(RB,[["render",JB],["__scopeId","data-v-1938be91"]]),QB={name:"scheduleDropdown",props:{options:Array,data:String},mounted(){console.log(this.options)},computed:{currentSelection(){return this.options.find(e=>e.value===this.data)}}},ZB={class:"dropdown"},t3={class:"btn btn-sm btn-outline-primary rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},e3={class:"dropdown-menu rounded-3 shadow",style:{"font-size":"0.875rem",width:"200px"}},s3=["onClick"],n3={key:0,class:"bi bi-check ms-auto"};function i3(e,t,s,n,i,o){return H(),q("div",ZB,[p("button",t3,[p("samp",null,lt(this.currentSelection.display),1)]),p("ul",e3,[(H(!0),q(Ht,null,_e(this.options,r=>(H(),q("li",null,[p("a",{class:"dropdown-item d-flex align-items-center",role:"button",onClick:a=>e.$emit("update",r.value)},[p("samp",null,lt(r.display),1),r.value===this.currentSelection.value?(H(),q("i",n3)):Vt("",!0)],8,s3)]))),256))])])}const Lb=kt(QB,[["render",i3]]),o3={name:"schedulePeerJob",components:{ScheduleDropdown:Lb},props:{dropdowns:Array[Object],job:Object}},r3={class:"card shadow-sm rounded-3"},a3={class:"card-header bg-transparent text-muted border-0"},l3={class:"d-flex"},c3=p("strong",{class:"me-auto"},"Job ID",-1),d3={class:"card-body pt-1"},u3={class:"d-flex gap-3 align-items-center mb-2"},h3=p("samp",null," if ",-1),f3=p("samp",null," is ",-1),p3=p("input",{class:"form-control form-control-sm form-control-dark rounded-3 flex-grow-1",style:{width:"auto"}},null,-1),g3=p("samp",null," { ",-1),m3={class:"px-5 d-flex gap-3 align-items-center"},_3=p("samp",null," execute ",-1),b3=p("samp",null," ; ",-1),v3=p("div",null,[p("samp",null,"}")],-1);function y3(e,t,s,n,i,o){const r=Dt("ScheduleDropdown");return H(),q("div",r3,[p("div",a3,[p("small",l3,[c3,ht(" "+lt(this.job.JobID),1)])]),p("div",d3,[p("div",u3,[h3,dt(r,{options:this.dropdowns.Field,data:this.job.Field,onUpdate:t[0]||(t[0]=a=>this.job.Field=a)},null,8,["options","data"]),f3,dt(r,{options:this.dropdowns.Operator,data:this.job.Operator,onUpdate:t[1]||(t[1]=a=>this.job.Operator=a)},null,8,["options","data"]),p3,g3]),p("div",m3,[_3,dt(r,{options:this.dropdowns.Action,data:this.job.Action,onUpdate:t[2]||(t[2]=a=>this.job.Action=a)},null,8,["options","data"]),b3]),v3])])}const x3=kt(o3,[["render",y3]]),w3={name:"peerJobs",props:{selectedPeer:Object},components:{SchedulePeerJob:x3,ScheduleDropdown:Lb},data(){return{dropdowns:{Field:[{display:"Total Received",value:"total_receive"},{display:"Total Sent",value:"total_sent"},{display:"Total Data",value:"total_data"},{display:"Date",value:"date"}],Operator:[{display:"equal",value:"eq"},{display:"not equal",value:"neq"},{display:"larger than",value:"lgt"},{display:"less than",value:"lst"}],Action:[{display:"Restrict Peer",value:"restrict"},{display:"Delete Peer",value:"delete"}]}}}},E3={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},S3={class:"container d-flex h-100 w-100"},A3={class:"card m-auto rounded-3 shadow",style:{width:"700px"}},C3={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2"},$3=p("h4",{class:"mb-0 fw-normal"},[ht("Schedule Jobs "),p("strong")],-1),P3={class:"card-body px-4 pb-4 pt-0"},k3={class:"d-flex"},T3=p("small",{class:"text-muted"}," Name ",-1),M3={class:"ms-auto"},O3={class:"mb-4 d-flex"},D3=p("small",{class:"text-muted"}," Public Key ",-1),I3={class:"ms-auto"};function L3(e,t,s,n,i,o){const r=Dt("SchedulePeerJob");return H(),q("div",E3,[p("div",S3,[p("div",A3,[p("div",C3,[$3,p("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=a=>this.$emit("close"))})]),p("div",P3,[p("div",k3,[T3,p("small",M3,lt(s.selectedPeer.name?s.selectedPeer.name:"Untitled Peer"),1)]),p("div",O3,[D3,p("small",I3,[p("samp",null,lt(this.selectedPeer.id),1)])]),(H(!0),q(Ht,null,_e(this.selectedPeer.jobs,a=>(H(),oe(r,{dropdowns:this.dropdowns,job:a},null,8,["dropdowns","job"]))),256))])])])])}const R3=kt(w3,[["render",L3]]);fl.register(vo,ln,ga,pa,Lo,la,vi,Ro,Nc,ca,da,ua,Wc,zc,Uc,xo,Qo,Yc,ZL,vR,AR,$R,LR);const N3={name:"peerList",components:{PeerJobs:R3,PeerCreate:Ib,PeerQRCode:dF,PeerSettings:sO,PeerSearch:xO,Peer:dD,Line:hN,Bar:uN},setup(){const e=Jt(),t=as();return{dashboardConfigurationStore:e,wireguardConfigurationStore:t}},data(){return{configurationToggling:!1,loading:!1,error:null,configurationInfo:[],configurationPeers:[],historyDataSentDifference:[],historyDataReceivedDifference:[],historySentData:{labels:[],datasets:[{label:"Data Sent",data:[],fill:!1,borderColor:"#198754",tension:0}]},historyReceiveData:{labels:[],datasets:[{label:"Data Received",data:[],fill:!1,borderColor:"#0d6efd",tension:0}]},peerSetting:{modalOpen:!1,selectedPeer:void 0},peerScheduleJobs:{modalOpen:!1,selectedPeer:void 0},peerQRCode:{modalOpen:!1,peerConfigData:void 0},peerCreate:{modalOpen:!1}}},mounted(){},watch:{$route:{immediate:!0,handler(){clearInterval(this.interval),this.loading=!0;let e=this.$route.params.id;this.configurationInfo=[],this.configurationPeers=[],e&&(this.getPeers(e),this.setInterval())}},"dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval"(){clearInterval(this.interval),this.setInterval()}},beforeRouteLeave(){clearInterval(this.interval)},methods:{toggle(){this.configurationToggling=!0,he("/api/toggleWireguardConfiguration/",{configurationName:this.configurationInfo.Name},e=>{e.status?this.dashboardConfigurationStore.newMessage("Server",`${this.configurationInfo.Name} is + ${e.data?"is on":"is off"}`,"Success"):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.configurationInfo.Status=e.data,this.configurationToggling=!1})},getPeers(e=this.$route.params.id){he("/api/getWireguardConfigurationInfo",{configurationName:e},t=>{if(this.configurationInfo=t.data.configurationInfo,this.configurationPeers=t.data.configurationPeers,this.configurationPeers.forEach(s=>{s.restricted=!1}),t.data.configurationRestrictedPeers.forEach(s=>{s.restricted=!0,this.configurationPeers.push(s)}),this.loading=!1,this.configurationPeers.length>0){const s=this.configurationPeers.map(i=>i.total_sent+i.cumu_sent).reduce((i,o)=>i+o).toFixed(4),n=this.configurationPeers.map(i=>i.total_receive+i.cumu_receive).reduce((i,o)=>i+o).toFixed(4);this.historyDataSentDifference[this.historyDataSentDifference.length-1]!==s&&(this.historyDataSentDifference.length>0&&(this.historySentData={labels:[...this.historySentData.labels,Xp().format("HH:mm:ss A")],datasets:[{label:"Data Sent",data:[...this.historySentData.datasets[0].data,((s-this.historyDataSentDifference[this.historyDataSentDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:" #198754",tension:0}]}),this.historyDataSentDifference.push(s)),this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1]!==n&&(this.historyDataReceivedDifference.length>0&&(this.historyReceiveData={labels:[...this.historyReceiveData.labels,Xp().format("HH:mm:ss A")],datasets:[{label:"Data Received",data:[...this.historyReceiveData.datasets[0].data,((n-this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:"#0d6efd",tension:0}]}),this.historyDataReceivedDifference.push(n))}})},setInterval(){this.interval=setInterval(()=>{this.getPeers()},parseInt(this.dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval))}},computed:{configurationSummary(){return{connectedPeers:this.configurationPeers.filter(e=>e.status==="running").length,totalUsage:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_data+e.cumu_data).reduce((e,t)=>e+t):0,totalReceive:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_receive+e.cumu_receive).reduce((e,t)=>e+t):0,totalSent:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_sent+e.cumu_sent).reduce((e,t)=>e+t):0}},receiveData(){return this.historyReceiveData},sentData(){return this.historySentData},individualDataUsage(){return{labels:this.configurationPeers.map(e=>e.name?e.name:`Untitled Peer - ${e.id}`),datasets:[{label:"Total Data Usage",data:this.configurationPeers.map(e=>e.cumu_data+e.total_data),backgroundColor:this.configurationPeers.map(e=>"#0dcaf0"),tooltip:{callbacks:{label:e=>`${e.formattedValue} GB`}}}]}},individualDataUsageChartOption(){return{responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} GB`},grid:{display:!1}}}}},chartOptions(){return{responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} MB/s`},grid:{display:!1}}}}},searchPeers(){const e=new Zi(this.configurationPeers,{keys:["name","id","allowed_ip"]}),t=this.wireguardConfigurationStore.searchString?e.search(this.wireguardConfigurationStore.searchString).map(s=>s.item):this.configurationPeers;return this.dashboardConfigurationStore.Configuration.Server.dashboard_sort==="restricted"?t.slice().sort((s,n)=>s[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?-1:0):t.slice().sort((s,n)=>s[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?1:0)}}},ve=e=>(Bs("data-v-b60a7b13"),e=e(),Vs(),e),F3={key:0},B3={class:"d-flex align-items-center"},V3=ve(()=>p("small",{CLASS:"text-muted"},"CONFIGURATION",-1)),H3={class:"d-flex align-items-center gap-3"},j3={class:"mb-0"},W3={class:"card rounded-3 bg-transparent shadow-sm ms-auto"},z3={class:"card-body py-2 d-flex align-items-center"},U3=ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Status")],-1)),K3={class:"form-check form-switch ms-auto"},Y3=["for"],q3={key:0,class:"spinner-border spinner-border-sm","aria-hidden":"true"},G3=["disabled","id"],X3={class:"row mt-3 gy-2 gx-2 mb-2"},J3={class:"col-6 col-lg-3"},Q3={class:"card rounded-3 bg-transparent shadow-sm"},Z3={class:"card-body py-2"},t5=ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Address")],-1)),e5={class:"col-6 col-lg-3"},s5={class:"card rounded-3 bg-transparent shadow-sm"},n5={class:"card-body py-2"},i5=ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Listen Port")],-1)),o5={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},r5={class:"card rounded-3 bg-transparent shadow-sm"},a5={class:"card-body py-2"},l5=ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Public Key")],-1)),c5={class:"row gx-2 gy-2 mb-2"},d5={class:"col-6 col-lg-3"},u5={class:"card rounded-3 bg-transparent shadow-sm"},h5={class:"card-body d-flex"},f5=ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Connected Peers")],-1)),p5={class:"h4"},g5=ve(()=>p("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1)),m5={class:"col-6 col-lg-3"},_5={class:"card rounded-3 bg-transparent shadow-sm"},b5={class:"card-body d-flex"},v5=ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Total Usage")],-1)),y5={class:"h4"},x5=ve(()=>p("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1)),w5={class:"col-6 col-lg-3"},E5={class:"card rounded-3 bg-transparent shadow-sm"},S5={class:"card-body d-flex"},A5=ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Total Received")],-1)),C5={class:"h4 text-primary"},$5=ve(()=>p("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1)),P5={class:"col-6 col-lg-3"},k5={class:"card rounded-3 bg-transparent shadow-sm"},T5={class:"card-body d-flex"},M5=ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Total Sent")],-1)),O5={class:"h4 text-success"},D5=ve(()=>p("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1)),I5={class:"row gx-2 gy-2 mb-3"},L5={class:"col-12 col-lg-6"},R5={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},N5=ve(()=>p("div",{class:"card-header bg-transparent border-0"},[p("small",{class:"text-muted"},"Peers Total Data Usage")],-1)),F5={class:"card-body pt-1"},B5={class:"col-sm col-lg-3"},V5={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},H5=ve(()=>p("div",{class:"card-header bg-transparent border-0"},[p("small",{class:"text-muted"},"Real Time Received Data Usage")],-1)),j5={class:"card-body pt-1"},W5={class:"col-sm col-lg-3"},z5={class:"card rounded-3 bg-transparent shadow-sm",style:{height:"270px"}},U5=ve(()=>p("div",{class:"card-header bg-transparent border-0"},[p("small",{class:"text-muted"},"Real Time Sent Data Usage")],-1)),K5={class:"card-body pt-1"},Y5={class:"mb-4"};function q5(e,t,s,n,i,o){const r=Dt("Bar"),a=Dt("Line"),l=Dt("PeerSearch"),c=Dt("Peer"),d=Dt("PeerSettings"),u=Dt("PeerQRCode"),f=Dt("PeerJobs");return this.loading?Vt("",!0):(H(),q("div",F3,[p("div",B3,[p("div",null,[V3,p("div",H3,[p("h1",j3,[p("samp",null,lt(this.configurationInfo.Name),1)])])]),p("div",W3,[p("div",z3,[p("div",null,[U3,p("div",K3,[p("label",{class:"form-check-label",style:{cursor:"pointer"},for:"switch"+this.configurationInfo.id},[ht(lt(this.configurationToggling?"Turning ":"")+" "+lt(this.configurationInfo.Status?"On":"Off")+" ",1),this.configurationToggling?(H(),q("span",q3)):Vt("",!0)],8,Y3),mt(p("input",{class:"form-check-input",style:{cursor:"pointer"},disabled:this.configurationToggling,type:"checkbox",role:"switch",id:"switch"+this.configurationInfo.id,onChange:t[0]||(t[0]=g=>this.toggle()),"onUpdate:modelValue":t[1]||(t[1]=g=>this.configurationInfo.Status=g)},null,40,G3),[[Xi,this.configurationInfo.Status]])])]),p("div",{class:Rt(["dot ms-5",{active:this.configurationInfo.Status}])},null,2)])])]),p("div",X3,[p("div",J3,[p("div",Q3,[p("div",Z3,[t5,ht(" "+lt(this.configurationInfo.Address),1)])])]),p("div",e5,[p("div",s5,[p("div",n5,[i5,ht(" "+lt(this.configurationInfo.ListenPort),1)])])]),p("div",o5,[p("div",r5,[p("div",a5,[l5,p("samp",null,lt(this.configurationInfo.PublicKey),1)])])])]),p("div",c5,[p("div",d5,[p("div",u5,[p("div",h5,[p("div",null,[f5,p("strong",p5,lt(o.configurationSummary.connectedPeers),1)]),g5])])]),p("div",m5,[p("div",_5,[p("div",b5,[p("div",null,[v5,p("strong",y5,lt(o.configurationSummary.totalUsage.toFixed(4))+" GB",1)]),x5])])]),p("div",w5,[p("div",E5,[p("div",S5,[p("div",null,[A5,p("strong",C5,lt(o.configurationSummary.totalReceive.toFixed(4))+" GB",1)]),$5])])]),p("div",P5,[p("div",k5,[p("div",T5,[p("div",null,[M5,p("strong",O5,lt(o.configurationSummary.totalSent.toFixed(4))+" GB",1)]),D5])])])]),p("div",I5,[p("div",L5,[p("div",R5,[N5,p("div",F5,[dt(r,{data:o.individualDataUsage,options:o.individualDataUsageChartOption,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["data","options"])])])]),p("div",B5,[p("div",V5,[H5,p("div",j5,[dt(a,{options:o.chartOptions,data:o.receiveData,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])]),p("div",W5,[p("div",z5,[U5,p("div",K5,[dt(a,{options:o.chartOptions,data:o.sentData,style:{width:"100%",height:"200px","max-height":"200px"}},null,8,["options","data"])])])])]),p("div",Y5,[dt(l,{configuration:this.configurationInfo},null,8,["configuration"]),dt(or,{name:"list",tag:"div",class:"row gx-2 gy-2 z-0"},{default:Bt(()=>[(H(!0),q(Ht,null,_e(this.searchPeers,g=>(H(),q("div",{class:"col-12 col-lg-6 col-xl-4",key:g.id},[dt(c,{Peer:g,onRefresh:t[2]||(t[2]=m=>this.getPeers()),onJobs:m=>{i.peerScheduleJobs.modalOpen=!0,i.peerScheduleJobs.selectedPeer=this.configurationPeers.find(b=>b.id===g.id)},onSetting:m=>{i.peerSetting.modalOpen=!0,i.peerSetting.selectedPeer=this.configurationPeers.find(b=>b.id===g.id)},onQrcode:t[3]||(t[3]=m=>{this.peerQRCode.peerConfigData=m,this.peerQRCode.modalOpen=!0})},null,8,["Peer","onJobs","onSetting"])]))),128))]),_:1})]),dt(is,{name:"fade"},{default:Bt(()=>[this.peerSetting.modalOpen?(H(),oe(d,{key:"settings",selectedPeer:this.peerSetting.selectedPeer,onRefresh:t[4]||(t[4]=g=>this.getPeers()),onClose:t[5]||(t[5]=g=>this.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):Vt("",!0)]),_:1}),dt(is,{name:"fade"},{default:Bt(()=>[i.peerQRCode.modalOpen?(H(),oe(u,{peerConfigData:this.peerQRCode.peerConfigData,key:"qrcode",onClose:t[6]||(t[6]=g=>this.peerQRCode.modalOpen=!1)},null,8,["peerConfigData"])):Vt("",!0)]),_:1}),dt(is,{name:"fade"},{default:Bt(()=>[this.peerScheduleJobs.modalOpen?(H(),oe(f,{key:0,selectedPeer:this.peerScheduleJobs.selectedPeer,onClose:t[7]||(t[7]=g=>this.peerScheduleJobs.modalOpen=!1)},null,8,["selectedPeer"])):Vt("",!0)]),_:1})]))}const G5=kt(N3,[["render",q5],["__scopeId","data-v-b60a7b13"]]),X5={name:"ping",data(){return{loading:!1,cips:{},selectedConfiguration:void 0,selectedPeer:void 0,selectedIp:void 0,count:4,pingResult:void 0,pinging:!1}},setup(){return{store:Jt()}},mounted(){he("/api/ping/getAllPeersIpAddress",{},e=>{e.status&&(this.loading=!0,this.cips=e.data,console.log(this.cips))})},methods:{execute(){this.selectedIp&&(this.pinging=!0,this.pingResult=void 0,he("/api/ping/execute",{ipAddress:this.selectedIp,count:this.count},e=>{e.status?this.pingResult=e.data:this.store.newMessage("Server",e.message,"danger")}))}},watch:{selectedConfiguration(){this.selectedPeer=void 0,this.selectedIp=void 0},selectedPeer(){this.selectedIp=void 0}}},Ve=e=>(Bs("data-v-875f5a3c"),e=e(),Vs(),e),J5={class:"mt-5 text-body"},Q5={class:"container"},Z5=Ve(()=>p("h3",{class:"mb-3 text-body"},"Ping",-1)),tV={class:"row"},eV={class:"col-sm-4 d-flex gap-2 flex-column"},sV=Ve(()=>p("label",{class:"mb-1 text-muted",for:"configuration"},[p("small",null,"Configuration")],-1)),nV=Ve(()=>p("option",{disabled:"",selected:"",value:void 0},"Select a Configuration...",-1)),iV=["value"],oV=Ve(()=>p("label",{class:"mb-1 text-muted",for:"peer"},[p("small",null,"Peer")],-1)),rV=["disabled"],aV=Ve(()=>p("option",{disabled:"",selected:"",value:void 0},"Select a Peer...",-1)),lV=["value"],cV=Ve(()=>p("label",{class:"mb-1 text-muted",for:"ip"},[p("small",null,"IP Address")],-1)),dV=["disabled"],uV=Ve(()=>p("option",{disabled:"",selected:"",value:void 0},"Select a IP...",-1)),hV=Ve(()=>p("label",{class:"mb-1 text-muted",for:"count"},[p("small",null,"Ping Count")],-1)),fV=["disabled"],pV=Ve(()=>p("i",{class:"bi bi-person-walking me-2"},null,-1)),gV={class:"col-sm-8"},mV={key:"pingPlaceholder"},_V={key:"pingResult",class:"d-flex flex-column gap-2 w-100"},bV={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.15s"}},vV={class:"card-body"},yV=Ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Address")],-1)),xV={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.3s"}},wV={class:"card-body"},EV=Ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Is Alive")],-1)),SV={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.45s"}},AV={class:"card-body"},CV=Ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Average / Min / Max Round Trip Time")],-1)),$V={class:"card rounded-3 bg-transparent shadow-sm animate__animated animate__fadeIn",style:{"animation-delay":"0.6s"}},PV={class:"card-body"},kV=Ve(()=>p("p",{class:"mb-0 text-muted"},[p("small",null,"Sent / Received / Lost Package")],-1));function TV(e,t,s,n,i,o){return H(),q("div",J5,[p("div",Q5,[Z5,p("div",tV,[p("div",eV,[p("div",null,[sV,mt(p("select",{class:"form-select","onUpdate:modelValue":t[0]||(t[0]=r=>this.selectedConfiguration=r)},[nV,(H(!0),q(Ht,null,_e(this.cips,(r,a)=>(H(),q("option",{value:a},lt(a),9,iV))),256))],512),[[ra,this.selectedConfiguration]])]),p("div",null,[oV,mt(p("select",{id:"peer",class:"form-select","onUpdate:modelValue":t[1]||(t[1]=r=>this.selectedPeer=r),disabled:this.selectedConfiguration===void 0},[aV,this.selectedConfiguration!==void 0?(H(!0),q(Ht,{key:0},_e(this.cips[this.selectedConfiguration],(r,a)=>(H(),q("option",{value:a},lt(a),9,lV))),256)):Vt("",!0)],8,rV),[[ra,this.selectedPeer]])]),p("div",null,[cV,mt(p("select",{id:"ip",class:"form-select","onUpdate:modelValue":t[2]||(t[2]=r=>this.selectedIp=r),disabled:this.selectedPeer===void 0},[uV,this.selectedPeer!==void 0?(H(!0),q(Ht,{key:0},_e(this.cips[this.selectedConfiguration][this.selectedPeer].allowed_ips,r=>(H(),q("option",null,lt(r),1))),256)):Vt("",!0)],8,dV),[[ra,this.selectedIp]])]),p("div",null,[hV,mt(p("input",{class:"form-control",type:"number","onUpdate:modelValue":t[3]||(t[3]=r=>this.count=r),min:"1",id:"count",placeholder:"How many times you want to ping?"},null,512),[[yt,this.count]])]),p("button",{class:"btn btn-primary rounded-3 mt-3",disabled:!this.selectedIp,onClick:t[4]||(t[4]=r=>this.execute())},[pV,ht("Go! ")],8,fV)]),p("div",gV,[dt(or,{name:"ping"},{default:Bt(()=>[this.pingResult?(H(),q("div",_V,[p("div",bV,[p("div",vV,[yV,ht(" "+lt(this.pingResult.address),1)])]),p("div",xV,[p("div",wV,[EV,p("span",{class:Rt([this.pingResult.is_alive?"text-success":"text-danger"])},[p("i",{class:Rt(["bi me-1",[this.pingResult.is_alive?"bi-check-circle-fill":"bi-x-circle-fill"]])},null,2),ht(" "+lt(this.pingResult.is_alive?"Yes":"No"),1)],2)])]),p("div",SV,[p("div",AV,[CV,p("samp",null,lt(this.pingResult.avg_rtt)+"ms / "+lt(this.pingResult.min_rtt)+"ms / "+lt(this.pingResult.max_rtt)+"ms ",1)])]),p("div",$V,[p("div",PV,[kV,p("samp",null,lt(this.pingResult.package_sent)+" / "+lt(this.pingResult.package_received)+" / "+lt(this.pingResult.package_loss),1)])])])):(H(),q("div",mV,[(H(),q(Ht,null,_e(4,r=>p("div",{class:Rt(["pingPlaceholder bg-body-secondary rounded-3 mb-3",{"animate__animated animate__flash animate__slower animate__infinite":this.pinging}]),style:Mi({"animation-delay":`${r*.15}s`})},null,6)),64))]))]),_:1})])])])])}const MV=kt(X5,[["render",TV],["__scopeId","data-v-875f5a3c"]]),OV={name:"traceroute",data(){return{tracing:!1,ipAddress:void 0,tracerouteResult:void 0}},setup(){return{store:as()}},methods:{execute(){this.ipAddress&&(this.tracing=!0,this.tracerouteResult=void 0,he("/api/traceroute/execute",{ipAddress:this.ipAddress},e=>{e.status?this.tracerouteResult=e.data:this.store.newMessage("Server",e.message,"danger"),this.tracing=!1}))}}},gl=e=>(Bs("data-v-dda37ccf"),e=e(),Vs(),e),DV={class:"mt-5 text-body"},IV={class:"container"},LV=gl(()=>p("h3",{class:"mb-3 text-body"},"Traceroute",-1)),RV={class:"row"},NV={class:"col-sm-4 d-flex gap-2 flex-column"},FV=gl(()=>p("label",{class:"mb-1 text-muted",for:"ipAddress"},[p("small",null,"IP Address")],-1)),BV=["disabled"],VV=gl(()=>p("i",{class:"bi bi-bullseye me-2"},null,-1)),HV={class:"col-sm-8 position-relative"},jV={key:"pingPlaceholder"},WV={key:"table",class:"w-100"},zV={class:"table table-borderless rounded-3 w-100"},UV=gl(()=>p("thead",null,[p("tr",null,[p("th",{scope:"col"},"Hop"),p("th",{scope:"col"},"IP Address"),p("th",{scope:"col"},"Average / Min / Max Round Trip Time")])],-1));function KV(e,t,s,n,i,o){return H(),q("div",DV,[p("div",IV,[LV,p("div",RV,[p("div",NV,[p("div",null,[FV,mt(p("input",{id:"ipAddress",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=r=>this.ipAddress=r),type:"text",placeholder:"Enter an IP Address you want to trace :)"},null,512),[[yt,this.ipAddress]])]),p("button",{class:"btn btn-primary rounded-3 mt-3",disabled:!this.store.regexCheckIP(this.ipAddress)||this.tracing,onClick:t[1]||(t[1]=r=>this.execute())},[VV,ht(" "+lt(this.tracing?"Tracing...":"Trace It!"),1)],8,BV)]),p("div",HV,[dt(or,{name:"ping"},{default:Bt(()=>[this.tracerouteResult?(H(),q("div",WV,[p("table",zV,[UV,p("tbody",null,[(H(!0),q(Ht,null,_e(this.tracerouteResult,(r,a)=>(H(),q("tr",{class:"animate__fadeInUp animate__animated",style:Mi({"animation-delay":`${a*.05}s`})},[p("td",null,lt(r.hop),1),p("td",null,lt(r.ip),1),p("td",null,lt(r.avg_rtt)+" / "+lt(r.min_rtt)+" / "+lt(r.max_rtt),1)],4))),256))])])])):(H(),q("div",jV,[(H(),q(Ht,null,_e(10,r=>p("div",{class:Rt(["pingPlaceholder bg-body-secondary rounded-3 mb-3",{"animate__animated animate__flash animate__slower animate__infinite":this.tracing}]),style:Mi({"animation-delay":`${r*.05}s`})},null,6)),64))]))]),_:1})])])])])}const YV=kt(OV,[["render",KV],["__scopeId","data-v-dda37ccf"]]),qV=async()=>{let e=!1;return await he("/api/validateAuthentication",{},t=>{e=t.status}),e},uu=zS({history:aS(),routes:[{name:"Index",path:"/",component:VA,meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:DC,meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:xP,meta:{title:"Settings"}},{path:"/ping",name:"Ping",component:MV},{path:"/traceroute",name:"Traceroute",component:YV},{name:"New Configuration",path:"/new_configuration",component:hM,meta:{title:"New Configuration"}},{name:"Configuration",path:"/configuration/:id",component:mM,meta:{title:"Configuration"},children:[{name:"Peers List",path:"peers",component:G5},{name:"Peers Create",path:"create",component:Ib}]}]},{path:"/signin",component:aC,meta:{title:"Sign In"}},{path:"/welcome",component:Jk,meta:{requiresAuth:!0}}]});uu.beforeEach(async(e,t,s)=>{const n=as(),i=Jt();e.meta.title?e.params.id?document.title=e.params.id+" | WGDashboard":document.title=e.meta.title+" | WGDashboard":document.title="WGDashboard",e.meta.requiresAuth?QS.getCookie("authToken")&&await qV()?(await i.getConfiguration(),!n.Configurations&&e.name!=="Configuration List"&&await n.getConfigurations(),i.Redirect=void 0,s()):(i.Redirect=e,s("/signin")):s()});const hu=DE(JS);hu.use(uu);const Rb=NE();Rb.use(({store:e})=>{e.$router=Ua(uu)});hu.use(Rb);hu.mount("#app"); diff --git a/src/static/app/dist/dashboard.css b/src/static/app/dist/dashboard.css deleted file mode 100644 index c821f75..0000000 --- a/src/static/app/dist/dashboard.css +++ /dev/null @@ -1,938 +0,0 @@ -body { - font-size: .875rem; - /*font-family: 'Poppins', sans-serif;*/ -} - -.codeFont{ - font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -.feather { - width: 16px; - height: 16px; - vertical-align: text-bottom; -} - -.btn-primary { - font-weight: bold; -} - -.dashboardLogo{ - background: -webkit-linear-gradient(#178bff, #ff4a00); -} - -/* - * Sidebar - */ - -/*.sidebar {*/ -/* position: fixed;*/ -/* top: 0;*/ -/* bottom: 0;*/ -/* left: 0;*/ -/* z-index: 100;*/ -/* !* Behind the navbar *!*/ -/* padding: 48px 0 0;*/ -/* !* Height of navbar *!*/ -/* box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);*/ -/*}*/ - -/*.sidebar-sticky {*/ -/* position: relative;*/ -/* top: 0;*/ -/* height: calc(100vh - 48px);*/ -/* padding-top: .5rem;*/ -/* overflow-x: hidden;*/ -/* overflow-y: auto;*/ -/* !* Scrollable contents if viewport is shorter than content. *!*/ -/*}*/ - -/*@supports ((position: -webkit-sticky) or (position: sticky)) {*/ -/* .sidebar-sticky {*/ -/* position: -webkit-sticky;*/ -/* position: sticky;*/ -/* }*/ -/*}*/ - -.sidebar .nav-link, .bottomNavContainer .nav-link{ - font-weight: 500; - color: #333; - transition: 0.2s cubic-bezier(0.82, -0.07, 0, 1.01); -} - -.nav-link:hover { - padding-left: 30px; - background-color: #dfdfdf; -} - -.sidebar .nav-link .feather { - margin-right: 4px; - color: #999; -} - -.sidebar .nav-link.active, .bottomNavContainer .nav-link.active { - color: #007bff; -} - -.sidebar .nav-link:hover .feather, -.sidebar .nav-link.active .feather { - color: inherit; -} - -.sidebar-heading { - font-size: .75rem; - text-transform: uppercase; -} - - -/* - * Navbar - */ - -.navbar-brand { - padding-top: .75rem; - padding-bottom: .75rem; - font-size: 1rem; - /*background-color: rgba(0, 0, 0, .25);*/ - /*box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);*/ -} - -.navbar .navbar-toggler { - top: .25rem; - right: 1rem; -} - -.form-control { - transition: all 0.2s ease-in-out; -} - -.form-control:disabled { - cursor: not-allowed; -} - -.navbar .form-control { - padding: .75rem 1rem; - border-width: 0; - border-radius: 0; -} - -.form-control-dark { - color: #fff; - background-color: rgba(255, 255, 255, .1); - border-color: rgba(255, 255, 255, .1); -} - -.form-control-dark:focus { - border-color: transparent; - box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); -} - -.dot { - width: 10px; - height: 10px; - border-radius: 50px; - display: inline-block; - margin-left: auto !important; -} - -.dot-running { - background-color: #28a745!important; - box-shadow: 0 0 0 0.2rem #28a74545; -} - -.h6-dot-running { - margin-left: 0.3rem; -} - -.dot-stopped { - background-color: #6c757d!important; -} - -.card-running { - border-color: #28a745; -} - -.info h6 { - line-break: anywhere; - transition: all 0.4s cubic-bezier(0.96, -0.07, 0.34, 1.01); - opacity: 1; -} - -.info .row .col-sm { - display: flex; - flex-direction: column; -} - -.info .row .col-sm small { - display: flex; -} - -.info .row .col-sm small strong:last-child(1) { - margin-left: auto !important; -} - -.btn-control { - border: none !important; - padding: 0; - margin: 0 1rem 0 0; -} - -.btn-control:hover{ - background-color: transparent !important; -} - -.btn-control:active, -.btn-control:focus { - background-color: transparent !important; - border: none !important; - box-shadow: none; -} - -.btn-qrcode-peer { - padding: 0 !important; -} - -.btn-qrcode-peer:active, -.btn-qrcode-peer:hover { - transform: scale(0.9) rotate(180deg); - border: 0 !important; -} - -.btn-download-peer:active, -.btn-download-peer:hover { - color: #17a2b8 !important; - transform: translateY(5px); -} - -.share_peer_btn_group .btn-control { - margin: 0 0 0 1rem; - padding: 0 !important; - transition: all 0.4s cubic-bezier(1, -0.43, 0, 1.37); -} - -.btn-control:hover { - background: white; -} - -.btn-delete-peer:hover { - color: #dc3545; -} - -.btn-lock-peer:hover { - color: #28a745; -} - -.btn-lock-peer.lock{ - color: #6c757d -} - -.btn-lock-peer.lock:hover{ - color: #6c757d -} - -.btn-control.btn-outline-primary:hover{ - color: #007bff -} - -/* .btn-setting-peer:hover { - color: #007bff -} */ - -.btn-download-peer:hover { - color: #17a2b8; -} - -.login-container { - padding: 2rem; -} - -@media (max-width: 992px) { - .card-col { - margin-bottom: 1rem; - } -} - -.switch { - font-size: 2rem; -} - -.switch:hover { - text-decoration: none -} - -.btn-group-label:hover { - color: #007bff; - border-color: #007bff; - background: white; -} - -.peer_data_group { - text-align: right; - display: flex; - margin-bottom: 0.5rem -} - -.peer_data_group p { - text-transform: uppercase; - margin-bottom: 0; - margin-right: 1rem -} - -@media (max-width: 768px) { - .peer_data_group { - text-align: left; - } -} - -.index-switch { - display: flex; - align-items: center; - justify-content: flex-end; -} - -main { - margin-bottom: 3rem; -} - -.peer_list { - margin-bottom: 7rem -} - -@media (max-width: 768px) { - .add_btn { - bottom: 1.5rem !important; - } - .peer_list { - margin-bottom: 7rem !important; - } -} - -.btn-manage-group { - z-index: 99; - position: fixed; - bottom: 3rem; - right: 2rem; - display: flex; -} - -.btn-manage-group .setting_btn_menu { - position: absolute; - top: -124px; - background-color: white; - padding: 1rem 0; - right: 0; - box-shadow: 0 10px 20px rgb(0 0 0 / 19%), 0 6px 6px rgb(0 0 0 / 23%); - border-radius: 10px; - min-width: 250px; - display: none; - transform: translateY(-30px); - opacity: 0; - transition: all 0.3s cubic-bezier(0.58, 0.03, 0.05, 1.28); -} - -.btn-manage-group .setting_btn_menu.show { - display: block; -} - -.setting_btn_menu.showing { - transform: translateY(0px); - opacity: 1; -} - -.setting_btn_menu a { - display: flex; - padding: 0.5rem 1rem; - transition: all 0.1s ease-in-out; - font-size: 1rem; - align-items: center; - cursor: pointer; -} - -.setting_btn_menu a:hover { - background-color: #efefef; - text-decoration: none; -} - -.setting_btn_menu a i { - margin-right: auto !important; -} - -.add_btn { - height: 54px; - z-index: 99; - border-radius: 100px !important; - padding: 0 14px; - box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23); - margin-right: 1rem; - font-size: 1.5rem; -} - -.setting_btn { - height: 54px; - z-index: 99; - border-radius: 100px !important; - padding: 0 14px; - box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23); - font-size: 1.5rem; -} - -@-webkit-keyframes rotating -/* Safari and Chrome */ - -{ - from { - -webkit-transform: rotate(0deg); - -o-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(360deg); - -o-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes rotating { - from { - -ms-transform: rotate(0deg); - -moz-transform: rotate(0deg); - -webkit-transform: rotate(0deg); - -o-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -ms-transform: rotate(360deg); - -moz-transform: rotate(360deg); - -webkit-transform: rotate(360deg); - -o-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -.rotating::before { - -webkit-animation: rotating 0.75s linear infinite; - -moz-animation: rotating 0.75s linear infinite; - -ms-animation: rotating 0.75s linear infinite; - -o-animation: rotating 0.75s linear infinite; - animation: rotating 0.75s linear infinite; -} - -.peer_private_key_textbox_switch { - position: absolute; - right: 2rem; - transform: translateY(-28px); - font-size: 1.2rem; - cursor: pointer; -} - -#peer_private_key_textbox, -#private_key, -#public_key, -#peer_preshared_key_textbox { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -.progress-bar { - transition: 0.3s ease-in-out; -} - -.key { - transition: 0.2s ease-in-out; - cursor: pointer; -} - -.key:hover { - color: #007bff; -} - -.card { - border-radius: 10px; -} - -.peer_list .card .button-group { - height: 22px; -} - -.form-control { - border-radius: 10px; -} - -.btn { - border-radius: 8px; - /*padding: 0.6rem 0.9em;*/ -} - -.login-box #username, -.login-box #password { - padding: 0.6rem calc( 0.9rem + 32px); - height: inherit; -} - -.login-box label[for="username"], -.login-box label[for="password"] { - font-size: 1rem; - margin: 0 !important; - transform: translateY(2.1rem) translateX(1rem); - padding: 0; -} - - -/*label[for="password"]{*/ - - -/* transform: translateY(32px) translateX(16px);*/ - - -/*}*/ - -.modal-content { - border-radius: 10px; -} - -.tooltip-inner { - font-size: 0.8rem; -} - -@-webkit-keyframes loading { - 0% { - background-color: #dfdfdf; - } - 50% { - background-color: #adadad; - } - 100% { - background-color: #dfdfdf; - } -} - -@-moz-keyframes loading { - 0% { - background-color: #dfdfdf; - } - 50% { - background-color: #adadad; - } - 100% { - background-color: #dfdfdf; - } -} - -.conf_card { - transition: 0.2s ease-in-out; -} - -.conf_card:hover { - border-color: #007bff; - cursor: pointer; -} - -.info_loading { - /* animation: loading 2s infinite ease-in-out; - /* border-radius: 5px; */ - height: 19.19px; - /* transition: 0.3s ease-in-out; */ - - /* transform: translateX(40px); */ - opacity: 0 !important; -} - -#conf_status_btn { - transition: 0.2s ease-in-out; -} - -#conf_status_btn.info_loading { - height: 38px; - border-radius: 5px; - animation: loading 3s infinite ease-in-out; -} - -#qrcode_img img { - width: 100%; -} - -#selected_ip_list .badge, -#selected_peer_list .badge { - margin: 0.1rem -} - -#add_modal.ip_modal_open { - transition: filter 0.2s ease-in-out; - filter: brightness(0.5); -} - -#delete_bulk_modal .list-group a.active { - background-color: #dc3545; - border-color: #dc3545; -} - -#selected_peer_list { - max-height: 80px; - overflow-y: scroll; - overflow-x: hidden; -} - -.no-response { - width: 100%; - height: 100%; - position: fixed; - background: #000000ba; - z-index: 10000; - display: none; - flex-direction: column; - align-items: center; - justify-content: center; - opacity: 0; - transition: all 1s ease-in-out; -} - -.no-response.active { - display: flex; -} - -.no-response.active.show { - opacity: 100; -} - -.no-response .container>* { - text-align: center; -} - -.no-responding { - transition: all 1s ease-in-out; - filter: blur(10px); -} - -pre.index-alert { - margin-bottom: 0; - padding: 1rem; - background-color: #343a40; - border: 1px solid rgba(0, 0, 0, .125); - border-radius: .25rem; - margin-top: 1rem; - color: white; -} - -.peerNameCol { - display: flex; - align-items: center; - margin-bottom: 0.2rem -} - -.peerName { - margin: 0; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.peerLightContainer { - text-transform: uppercase; - margin: 0; - margin-left: auto !important; -} - -.conf_card .dot, -.info .dot { - transform: translateX(10px); -} - -#config_body { - transition: 0.3s ease-in-out; -} - - -#config_body.firstLoading { - opacity: 0.2; -} - -.chartTitle { - display: flex; -} - -.chartControl { - margin-bottom: 1rem; - display: flex; - align-items: center; -} - -.chartTitle h6 { - margin-bottom: 0; - line-height: 1; - margin-right: 0.5rem; -} - -.chartContainer.fullScreen { - position: fixed; - z-index: 9999; - background-color: white; - top: 0; - left: 0; - width: calc( 100% + 15px); - height: 100%; - padding: 32px; -} - -.chartContainer.fullScreen .col-sm { - padding-right: 0; - height: 100%; -} - -.chartContainer.fullScreen .chartCanvasContainer { - width: 100%; - height: calc( 100% - 47px) !important; - max-height: calc( 100% - 47px) !important; -} - -#switch{ - transition: all 200ms ease-in; -} - -.toggle--switch{ - display: none; -} - -.toggleLabel{ - width: 64px; - height: 32px; - background-color: #6c757d17; - display: flex; - position: relative; - border: 2px solid #6c757d8c; - border-radius: 100px; - transition: all 200ms ease-in; - cursor: pointer; - margin: 0; -} - -.toggle--switch.waiting + .toggleLabel{ - opacity: 0.5; -} - -.toggleLabel::before{ - background-color: #6c757d; - height: 26px; - width: 26px; - content: ""; - border-radius: 100px; - margin: 1px; - position: absolute; - animation-name: off; - animation-duration: 350ms; - animation-fill-mode: forwards; - transition: all 200ms ease-in; - cursor: pointer; -} - -.toggleLabel:hover::before{ - filter: brightness(1.2); -} - - -.toggle--switch:checked + .toggleLabel{ - background-color: #007bff17 !important; - border: 2px solid #007bff8c; -} - -.toggle--switch:checked + .toggleLabel::before{ - background-color: #007bff; - animation-name: on; - animation-duration: 350ms; - animation-fill-mode: forwards; -} - -@keyframes on { - 0%{ - left: 0px; - } - 60%{ - left: 0px; - width: 40px; - } - 100%{ - left: 32px; - width: 26px; - } -} - -@keyframes off { - 0%{ - left: 32px; - } - 60%{ - left: 18px; - width: 40px; - } - 100%{ - left: 0px; - width: 26px; - } -} - -.toastContainer{ - z-index: 99999 !important; -} - -.toast{ - min-width: 300px; - background-color: rgba(255,255,255,1); - z-index: 99999; -} - -.toast-header{ - background-color: rgba(255,255,255); -} - -.toast-progressbar{ - width: 100%; - height: 4px; - background-color: #007bff; - border-bottom-left-radius: .25rem; -} - -.addConfigurationAvailableIPs{ - margin-bottom: 0; -} - -.input-feedback{ - display: none; -} - -#addConfigurationModal label{ - display: flex; - width: 100%; - align-items: center; -} - -#addConfigurationModal label a{ - margin-left: auto !important; -} - -#reGeneratePrivateKey{ - border-top-right-radius: 10px; - border-bottom-right-radius: 10px; -} - -.addConfigurationToggleStatus.waiting{ - opacity: 0.5; -} - -/*.conf_card .card-body .row .card-col{*/ -/* margin-bottom: 0.5rem;*/ -/*}*/ - -.peerDataUsageChartContainer{ - min-height: 50vh; - width: 100%; -} - -.peerDataUsageChartControl{ - display: block !important; - margin: 0; -} - -.peerDataUsageChartControl .switchUnit{ - width: 33.3%; -} - -.peerDataUsageChartControl .switchTimePeriod{ - width: 25%; -} - -@media (min-width: 1200px){ - #peerDataUsage .modal-xl { - max-width: 95vw; - } -} - -.bottom{ - display: none; -} - - -@media (max-width: 768px){ - .bottom{ - display: block; - } - - .btn-manage-group{ - bottom: calc( 3rem + 40px + env(safe-area-inset-bottom, 5px)); - } - - main{ - padding-bottom: calc( 3rem + 40px + env(safe-area-inset-bottom, 5px)); - } -} - - -.bottomNavContainer{ - display: flex; - color: #333; - padding-bottom: env(safe-area-inset-bottom, 5px); - box-shadow: inset 0 1px 0 rgb(0 0 0 / 10%); -} - -.bottomNavButton{ - width: 25vw; - display: flex; - flex-direction: column; - align-items: center; - margin: 0.7rem 0; - color: rgba(51, 51, 51, 0.5); - cursor: pointer; - transition: all ease-in 0.2s; -} - -.bottomNavButton.active{ - color: #333; -} - -.bottomNavButton i{ - font-size: 1.2rem; -} - -.bottomNavButton .subNav{ - width: 100vw; - position: absolute; - z-index: 10000; - bottom: 0; - left: 0; - background-color: #272b30; - display: none; - animation-duration: 400ms; - padding-bottom: env(safe-area-inset-bottom, 5px); -} - -.bottomNavButton .subNav.active{ - display: block; -} - - -.bottomNavButton .subNav .nav .nav-item .nav-link{ - padding: 0.7rem 1rem; -} - -.bottomNavWrapper{ - height: 100%; - width: 100%; - background-color: #000000a1; - position: fixed; - z-index: 1030; - display: none; - left: 0; -} - -.bottomNavWrapper.active{ - display: block; -} - -.sb-update-url .dot-running{ - transform: translateX(10px); -} - -.list-group-item{ - transition: all 0.1s ease-in; -} - -.theme-switch-btn{ - width: 100%; -} \ No newline at end of file diff --git a/src/static/app/dist/favicon.ico b/src/static/app/dist/favicon.ico deleted file mode 100644 index df36fcf..0000000 Binary files a/src/static/app/dist/favicon.ico and /dev/null differ diff --git a/src/static/app/dist/favicon.png b/src/static/app/dist/favicon.png new file mode 100644 index 0000000..3ab02c2 Binary files /dev/null and b/src/static/app/dist/favicon.png differ diff --git a/src/static/app/dist/index.html b/src/static/app/dist/index.html index 270798a..04c6129 100644 --- a/src/static/app/dist/index.html +++ b/src/static/app/dist/index.html @@ -2,9 +2,9 @@ - + - Vite App + WGDashboard diff --git a/src/static/app/index.html b/src/static/app/index.html index 4f1d70c..df1ea3a 100644 --- a/src/static/app/index.html +++ b/src/static/app/index.html @@ -2,9 +2,9 @@ - + - Vite App + WGDashboard
diff --git a/src/static/app/package-lock.json b/src/static/app/package-lock.json index fa8bf24..33e53b8 100644 --- a/src/static/app/package-lock.json +++ b/src/static/app/package-lock.json @@ -23,19 +23,19 @@ "qrcode": "^1.5.3", "qrcodejs": "^1.0.0", "uuid": "^9.0.1", - "vue": "^3.3.11", + "vue": "^3.4.29", "vue-chartjs": "^5.3.0", "vue-router": "^4.2.5" }, "devDependencies": { - "@vitejs/plugin-vue": "^4.5.2", + "@vitejs/plugin-vue": "^5.0.0", "vite": "^5.0.10" } }, "node_modules/@babel/parser": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", - "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", "bin": { "parser": "bin/babel-parser.js" }, @@ -613,62 +613,62 @@ "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==" }, "node_modules/@vitejs/plugin-vue": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.6.2.tgz", - "integrity": "sha512-kqf7SGFoG+80aZG6Pf+gsZIVvGSCKE98JbiWqcCV9cThtg91Jav0yvYFC9Zb+jKetNGF6ZKeoaxgZfND21fWKw==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.0.5.tgz", + "integrity": "sha512-LOjm7XeIimLBZyzinBQ6OSm3UBCNVCpLkxGC0oWmm2YPzVZoxMsdvNVimLTBzpAnR9hl/yn1SHGuRfe6/Td9rQ==", "dev": true, "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": "^18.0.0 || >=20.0.0" }, "peerDependencies": { - "vite": "^4.0.0 || ^5.0.0", + "vite": "^5.0.0", "vue": "^3.2.25" } }, "node_modules/@vue/compiler-core": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.3.tgz", - "integrity": "sha512-u8jzgFg0EDtSrb/hG53Wwh1bAOQFtc1ZCegBpA/glyvTlgHl+tq13o1zvRfLbegYUw/E4mSTGOiCnAJ9SJ+lsg==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.29.tgz", + "integrity": "sha512-TFKiRkKKsRCKvg/jTSSKK7mYLJEQdUiUfykbG49rubC9SfDyvT2JrzTReopWlz2MxqeLyxh9UZhvxEIBgAhtrg==", "dependencies": { - "@babel/parser": "^7.23.6", - "@vue/shared": "3.4.3", + "@babel/parser": "^7.24.7", + "@vue/shared": "3.4.29", "entities": "^4.5.0", "estree-walker": "^2.0.2", - "source-map-js": "^1.0.2" + "source-map-js": "^1.2.0" } }, "node_modules/@vue/compiler-dom": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.3.tgz", - "integrity": "sha512-oGF1E9/htI6JWj/lTJgr6UgxNCtNHbM6xKVreBWeZL9QhRGABRVoWGAzxmtBfSOd+w0Zi5BY0Es/tlJrN6WgEg==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.29.tgz", + "integrity": "sha512-A6+iZ2fKIEGnfPJejdB7b1FlJzgiD+Y/sxxKwJWg1EbJu6ZPgzaPQQ51ESGNv0CP6jm6Z7/pO6Ia8Ze6IKrX7w==", "dependencies": { - "@vue/compiler-core": "3.4.3", - "@vue/shared": "3.4.3" + "@vue/compiler-core": "3.4.29", + "@vue/shared": "3.4.29" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.3.tgz", - "integrity": "sha512-NuJqb5is9I4uzv316VRUDYgIlPZCG8D+ARt5P4t5UDShIHKL25J3TGZAUryY/Aiy0DsY7srJnZL5ryB6DD63Zw==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.29.tgz", + "integrity": "sha512-zygDcEtn8ZimDlrEQyLUovoWgKQic6aEQqRXce2WXBvSeHbEbcAsXyCk9oG33ZkyWH4sl9D3tkYc1idoOkdqZQ==", "dependencies": { - "@babel/parser": "^7.23.6", - "@vue/compiler-core": "3.4.3", - "@vue/compiler-dom": "3.4.3", - "@vue/compiler-ssr": "3.4.3", - "@vue/shared": "3.4.3", + "@babel/parser": "^7.24.7", + "@vue/compiler-core": "3.4.29", + "@vue/compiler-dom": "3.4.29", + "@vue/compiler-ssr": "3.4.29", + "@vue/shared": "3.4.29", "estree-walker": "^2.0.2", - "magic-string": "^0.30.5", - "postcss": "^8.4.32", - "source-map-js": "^1.0.2" + "magic-string": "^0.30.10", + "postcss": "^8.4.38", + "source-map-js": "^1.2.0" } }, "node_modules/@vue/compiler-ssr": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.3.tgz", - "integrity": "sha512-wnYQtMBkeFSxgSSQbYGQeXPhQacQiog2c6AlvMldQH6DB+gSXK/0F6DVXAJfEiuBSgBhUc8dwrrG5JQcqwalsA==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.29.tgz", + "integrity": "sha512-rFbwCmxJ16tDp3N8XCx5xSQzjhidYjXllvEcqX/lopkoznlNPz3jyy0WGJCyhAaVQK677WWFt3YO/WUEkMMUFQ==", "dependencies": { - "@vue/compiler-dom": "3.4.3", - "@vue/shared": "3.4.3" + "@vue/compiler-dom": "3.4.29", + "@vue/shared": "3.4.29" } }, "node_modules/@vue/devtools-api": { @@ -677,48 +677,49 @@ "integrity": "sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==" }, "node_modules/@vue/reactivity": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.3.tgz", - "integrity": "sha512-q5f9HLDU+5aBKizXHAx0w4whkIANs1Muiq9R5YXm0HtorSlflqv9u/ohaMxuuhHWCji4xqpQ1eL04WvmAmGnFg==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.29.tgz", + "integrity": "sha512-w8+KV+mb1a8ornnGQitnMdLfE0kXmteaxLdccm2XwdFxXst4q/Z7SEboCV5SqJNpZbKFeaRBBJBhW24aJyGINg==", "dependencies": { - "@vue/shared": "3.4.3" + "@vue/shared": "3.4.29" } }, "node_modules/@vue/runtime-core": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.3.tgz", - "integrity": "sha512-C1r6QhB1qY7D591RCSFhMULyzL9CuyrGc+3PpB0h7dU4Qqw6GNyo4BNFjHZVvsWncrUlKX3DIKg0Y7rNNr06NQ==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.29.tgz", + "integrity": "sha512-s8fmX3YVR/Rk5ig0ic0NuzTNjK2M7iLuVSZyMmCzN/+Mjuqqif1JasCtEtmtoJWF32pAtUjyuT2ljNKNLeOmnQ==", "dependencies": { - "@vue/reactivity": "3.4.3", - "@vue/shared": "3.4.3" + "@vue/reactivity": "3.4.29", + "@vue/shared": "3.4.29" } }, "node_modules/@vue/runtime-dom": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.3.tgz", - "integrity": "sha512-wrsprg7An5Ec+EhPngWdPuzkp0BEUxAKaQtN9dPU/iZctPyD9aaXmVtehPJerdQxQale6gEnhpnfywNw3zOv2A==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.29.tgz", + "integrity": "sha512-gI10atCrtOLf/2MPPMM+dpz3NGulo9ZZR9d1dWo4fYvm+xkfvRrw1ZmJ7mkWtiJVXSsdmPbcK1p5dZzOCKDN0g==", "dependencies": { - "@vue/runtime-core": "3.4.3", - "@vue/shared": "3.4.3", + "@vue/reactivity": "3.4.29", + "@vue/runtime-core": "3.4.29", + "@vue/shared": "3.4.29", "csstype": "^3.1.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.3.tgz", - "integrity": "sha512-BUxt8oVGMKKsqSkM1uU3d3Houyfy4WAc2SpSQRebNd+XJGATVkW/rO129jkyL+kpB/2VRKzE63zwf5RtJ3XuZw==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.29.tgz", + "integrity": "sha512-HMLCmPI2j/k8PVkSBysrA2RxcxC5DgBiCdj7n7H2QtR8bQQPqKAe8qoaxLcInzouBmzwJ+J0x20ygN/B5mYBng==", "dependencies": { - "@vue/compiler-ssr": "3.4.3", - "@vue/shared": "3.4.3" + "@vue/compiler-ssr": "3.4.29", + "@vue/shared": "3.4.29" }, "peerDependencies": { - "vue": "3.4.3" + "vue": "3.4.29" } }, "node_modules/@vue/shared": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.3.tgz", - "integrity": "sha512-rIwlkkP1n4uKrRzivAKPZIEkHiuwY5mmhMJ2nZKCBLz8lTUlE73rQh4n1OnnMurXt1vcUNyH4ZPfdh8QweTjpQ==" + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.29.tgz", + "integrity": "sha512-hQ2gAQcBO/CDpC82DCrinJNgOHI2v+FA7BDW4lMSPeBpQ7sRe2OLHWe5cph1s7D8DUQAwRt18dBDfJJ220APEA==" }, "node_modules/@vueuse/core": { "version": "10.9.0", @@ -1118,14 +1119,11 @@ } }, "node_modules/magic-string": { - "version": "0.30.5", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz", - "integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==", + "version": "0.30.10", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.10.tgz", + "integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==", "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" - }, - "engines": { - "node": ">=12" } }, "node_modules/nanoid": { @@ -4000,15 +3998,15 @@ } }, "node_modules/vue": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.3.tgz", - "integrity": "sha512-GjN+culMAGv/mUbkIv8zMKItno8npcj5gWlXkSxf1SPTQf8eJ4A+YfHIvQFyL1IfuJcMl3soA7SmN1fRxbf/wA==", + "version": "3.4.29", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.29.tgz", + "integrity": "sha512-8QUYfRcYzNlYuzKPfge1UWC6nF9ym0lx7mpGVPJYNhddxEf3DD0+kU07NTL0sXuiT2HuJuKr/iEO8WvXvT0RSQ==", "dependencies": { - "@vue/compiler-dom": "3.4.3", - "@vue/compiler-sfc": "3.4.3", - "@vue/runtime-dom": "3.4.3", - "@vue/server-renderer": "3.4.3", - "@vue/shared": "3.4.3" + "@vue/compiler-dom": "3.4.29", + "@vue/compiler-sfc": "3.4.29", + "@vue/runtime-dom": "3.4.29", + "@vue/server-renderer": "3.4.29", + "@vue/shared": "3.4.29" }, "peerDependencies": { "typescript": "*" diff --git a/src/static/app/package.json b/src/static/app/package.json index 1c3f3fc..c278609 100644 --- a/src/static/app/package.json +++ b/src/static/app/package.json @@ -24,12 +24,12 @@ "qrcode": "^1.5.3", "qrcodejs": "^1.0.0", "uuid": "^9.0.1", - "vue": "^3.3.11", + "vue": "^3.4.29", "vue-chartjs": "^5.3.0", "vue-router": "^4.2.5" }, "devDependencies": { - "@vitejs/plugin-vue": "^4.5.2", + "@vitejs/plugin-vue": "^5.0.0", "vite": "^5.0.10" } } diff --git a/src/static/app/public/favicon.ico b/src/static/app/public/favicon.ico deleted file mode 100644 index df36fcf..0000000 Binary files a/src/static/app/public/favicon.ico and /dev/null differ diff --git a/src/static/app/public/favicon.png b/src/static/app/public/favicon.png new file mode 100644 index 0000000..3ab02c2 Binary files /dev/null and b/src/static/app/public/favicon.png differ diff --git a/src/static/app/src/components/configurationComponents/peer.vue b/src/static/app/src/components/configurationComponents/peer.vue index 2e12ed7..7a306c3 100644 --- a/src/static/app/src/components/configurationComponents/peer.vue +++ b/src/static/app/src/components/configurationComponents/peer.vue @@ -86,6 +86,7 @@ export default { +import ScheduleDropdown from "@/components/configurationComponents/peerScheduleJobsComponents/scheduleDropdown.vue"; +import SchedulePeerJob from "@/components/configurationComponents/peerScheduleJobsComponents/schedulePeerJob.vue"; export default { - name: "peerJobs" + name: "peerJobs", + props:{ + selectedPeer: Object + }, + components:{ + SchedulePeerJob, + ScheduleDropdown, + }, + data(){ + return { + dropdowns: { + Field: [ + { + display: "Total Received", + value: "total_receive" + }, + { + display: "Total Sent", + value: "total_sent" + }, + { + display: "Total Data", + value: "total_data" + }, + { + display: "Date", + value: "date" + } + ], + Operator: [ + { + display: "equal", + value: "eq" + }, + { + display: "not equal", + value: "neq" + }, + { + display: "larger than", + value: "lgt" + }, + { + display: "less than", + value: "lst" + }, + ], + Action: [ + { + display: "Restrict Peer", + value: "restrict" + }, + { + display: "Delete Peer", + value: "delete" + } + ] + }, + + } + }, + } diff --git a/src/static/app/src/components/configurationComponents/peerScheduleJobsComponents/scheduleDropdown.vue b/src/static/app/src/components/configurationComponents/peerScheduleJobsComponents/scheduleDropdown.vue new file mode 100644 index 0000000..bde9f25 --- /dev/null +++ b/src/static/app/src/components/configurationComponents/peerScheduleJobsComponents/scheduleDropdown.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/src/static/app/src/components/configurationComponents/peerScheduleJobsComponents/schedulePeerJob.vue b/src/static/app/src/components/configurationComponents/peerScheduleJobsComponents/schedulePeerJob.vue new file mode 100644 index 0000000..39cfc2f --- /dev/null +++ b/src/static/app/src/components/configurationComponents/peerScheduleJobsComponents/schedulePeerJob.vue @@ -0,0 +1,67 @@ + + + + + \ No newline at end of file diff --git a/src/static/app/src/components/configurationComponents/peerSearch.vue b/src/static/app/src/components/configurationComponents/peerSearch.vue index 625f4b7..65913a8 100644 --- a/src/static/app/src/components/configurationComponents/peerSearch.vue +++ b/src/static/app/src/components/configurationComponents/peerSearch.vue @@ -76,11 +76,11 @@ export default { Peers - - Jobs - + + + + + diff --git a/src/static/app/src/components/configurationComponents/peerSettings.vue b/src/static/app/src/components/configurationComponents/peerSettings.vue index c5743a4..982e959 100644 --- a/src/static/app/src/components/configurationComponents/peerSettings.vue +++ b/src/static/app/src/components/configurationComponents/peerSettings.vue @@ -175,10 +175,6 @@ export default { > Save Peer - - - - @@ -187,10 +183,6 @@ export default { - - {% include "navbar.html" %} -
- Version: {{ version }} - -{% include "footer.html" %} - - \ No newline at end of file diff --git a/src/templates/tools.html b/src/templates/tools.html deleted file mode 100644 index 3153498..0000000 --- a/src/templates/tools.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - \ No newline at end of file